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/Android.bp b/Android.bp
index 25437d2..5e65614 100644
--- a/Android.bp
+++ b/Android.bp
@@ -42,7 +42,8 @@
"acloud_create",
"acloud_delete",
"acloud_internal",
- "acloud_metrics",
+ "acloud_list",
+ "acloud_metrics",
"acloud_proto",
"acloud_public",
"acloud_setup",
@@ -71,6 +72,7 @@
"acloud_create",
"acloud_delete",
"acloud_internal",
+ "acloud_list",
"acloud_proto",
"acloud_public",
"acloud_setup",
@@ -149,6 +151,14 @@
}
python_library_host{
+ name: "acloud_list",
+ defaults: ["acloud_default"],
+ srcs: [
+ "list/*.py",
+ ],
+}
+
+python_library_host{
name: "acloud_metrics",
defaults: ["acloud_default"],
srcs: [