Add Instance class for list and delete command.
Use Instance class to encapsulate instance properties and methods.
Instance object could be initialize by two way:
- process a gce instance which is queried from google compute api.
- parse the instance detail from launch_cvd process.
Bug: 118405737
Test: atest acloud_test
Change-Id: I44edbc63987347c11ed42631a3a4641cf4ff967d
diff --git a/internal/constants.py b/internal/constants.py
index 88cbe33..0951688 100755
--- a/internal/constants.py
+++ b/internal/constants.py
@@ -102,3 +102,22 @@
SSH_BIN = "ssh"
ADB_BIN = "adb"
+
+LABEL_CREATE_BY = "created_by"
+LABEL_FLAVOR = "flavor"
+LABEL_TYPE = "avd_type"
+
+# for list and delete cmd
+INS_KEY_NAME = "name"
+INS_KEY_FULLNAME = "full_name"
+INS_KEY_STATUS = "status"
+INS_KEY_DISPLAY = "display"
+INS_KEY_IP = "ip"
+INS_KEY_ADB = "adb"
+INS_KEY_VNC = "vnc"
+INS_KEY_CREATETIME = "creationTimestamp"
+INS_KEY_AVD_TYPE = LABEL_TYPE
+INS_KEY_AVD_FLAVOR = LABEL_FLAVOR
+INS_KEY_IS_LOCAL = "remote"
+INS_STATUS_RUNNING = "RUNNING"
+LOCAL_INS_NAME = "local-instance"