http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/_zones_us_central1_a_instanceGroupManagers_myinstancegroup_listManagedInstances.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/_zones_us_central1_a_instanceGroupManagers_myinstancegroup_listManagedInstances.json b/libcloud/test/compute/fixtures/gce/_zones_us_central1_a_instanceGroupManagers_myinstancegroup_listManagedInstances.json new file mode 100644 index 0000000..141e5d6 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/_zones_us_central1_a_instanceGroupManagers_myinstancegroup_listManagedInstances.json @@ -0,0 +1,24 @@ +{ + "managedInstances": [ + { + "currentAction": "NONE", + "instance": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instances/base-foo-2vld", + "instanceStatus": "RUNNING" + }, + { + "currentAction": "NONE", + "instance": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instances/base-foo-il30", + "instanceStatus": "RUNNING" + }, + { + "currentAction": "NONE", + "instance": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instances/base-foo-lnnr", + "instanceStatus": "RUNNING" + }, + { + "currentAction": "NONE", + "instance": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instances/base-foo-s41w", + "instanceStatus": "RUNNING" + } + ] +}
http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/aggregated_autoscalers.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/aggregated_autoscalers.json b/libcloud/test/compute/fixtures/gce/aggregated_autoscalers.json new file mode 100644 index 0000000..ea7edcf --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/aggregated_autoscalers.json @@ -0,0 +1,255 @@ +{ + "items": { + "regions/asia-east1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "regions/asia-east1" + } + ], + "message": "There are no results for scope 'regions/asia-east1' on this page." + } + }, + "regions/europe-west1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "regions/europe-west1" + } + ], + "message": "There are no results for scope 'regions/europe-west1' on this page." + } + }, + "regions/us-central1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "regions/us-central1" + } + ], + "message": "There are no results for scope 'regions/us-central1' on this page." + } + }, + "regions/us-east1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "regions/us-east1" + } + ], + "message": "There are no results for scope 'regions/us-east1' on this page." + } + }, + "regions/us-west1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "regions/us-west1" + } + ], + "message": "There are no results for scope 'regions/us-west1' on this page." + } + }, + "zones/asia-east1-a": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/asia-east1-a" + } + ], + "message": "There are no results for scope 'zones/asia-east1-a' on this page." + } + }, + "zones/asia-east1-b": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/asia-east1-b" + } + ], + "message": "There are no results for scope 'zones/asia-east1-b' on this page." + } + }, + "zones/asia-east1-c": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/asia-east1-c" + } + ], + "message": "There are no results for scope 'zones/asia-east1-c' on this page." + } + }, + "zones/europe-west1-b": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/europe-west1-b" + } + ], + "message": "There are no results for scope 'zones/europe-west1-b' on this page." + } + }, + "zones/europe-west1-c": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/europe-west1-c" + } + ], + "message": "There are no results for scope 'zones/europe-west1-c' on this page." + } + }, + "zones/europe-west1-d": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/europe-west1-d" + } + ], + "message": "There are no results for scope 'zones/europe-west1-d' on this page." + } + }, + "zones/us-central1-a": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/us-central1-a" + } + ], + "message": "There are no results for scope 'zones/us-central1-a' on this page." + } + }, + "zones/us-central1-b": { + "autoscalers": [ + { + "autoscalingPolicy": { + "coolDownPeriodSec": 60, + "cpuUtilization": { + "utilizationTarget": 0.6 + }, + "maxNumReplicas": 10, + "minNumReplicas": 2 + }, + "creationTimestamp": "2016-07-20T10:29:22.850-07:00", + "id": "7161434716533557789", + "kind": "compute#autoscaler", + "name": "my-autoscaler", + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b/autoscalers/my-autoscaler", + "target": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b/instanceGroupManagers/myinstancegroup", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b" + } + ] + }, + "zones/us-central1-c": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/us-central1-c" + } + ], + "message": "There are no results for scope 'zones/us-central1-c' on this page." + } + }, + "zones/us-central1-f": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/us-central1-f" + } + ], + "message": "There are no results for scope 'zones/us-central1-f' on this page." + } + }, + "zones/us-east1-b": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/us-east1-b" + } + ], + "message": "There are no results for scope 'zones/us-east1-b' on this page." + } + }, + "zones/us-east1-c": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/us-east1-c" + } + ], + "message": "There are no results for scope 'zones/us-east1-c' on this page." + } + }, + "zones/us-east1-d": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/us-east1-d" + } + ], + "message": "There are no results for scope 'zones/us-east1-d' on this page." + } + }, + "zones/us-west1-a": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/us-west1-a" + } + ], + "message": "There are no results for scope 'zones/us-west1-a' on this page." + } + }, + "zones/us-west1-b": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "data": [ + { + "key": "scope", + "value": "zones/us-west1-b" + } + ], + "message": "There are no results for scope 'zones/us-west1-b' on this page." + } + } + }, + "kind": "compute#autoscalerAggregatedList", + "selfLink": "https://www.googleapis.com/compute/v1/projects/project_name/aggregated/autoscalers" +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/aggregated_instanceGroupManagers.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/aggregated_instanceGroupManagers.json b/libcloud/test/compute/fixtures/gce/aggregated_instanceGroupManagers.json new file mode 100644 index 0000000..f42644e --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/aggregated_instanceGroupManagers.json @@ -0,0 +1,277 @@ +{ + "kind": "compute#instanceGroupManagerAggregatedList", + "selfLink": "https://www.googleapis.com/compute/v1/projects/project_name/aggregated/instanceGroupManagers", + "items": { + "regions/us-central1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'regions/us-central1' on this page.", + "data": [ + { + "key": "scope", + "value": "regions/us-central1" + } + ] + } + }, + "regions/europe-west1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'regions/europe-west1' on this page.", + "data": [ + { + "key": "scope", + "value": "regions/europe-west1" + } + ] + } + }, + "regions/us-west1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'regions/us-west1' on this page.", + "data": [ + { + "key": "scope", + "value": "regions/us-west1" + } + ] + } + }, + "regions/asia-east1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'regions/asia-east1' on this page.", + "data": [ + { + "key": "scope", + "value": "regions/asia-east1" + } + ] + } + }, + "regions/us-east1": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'regions/us-east1' on this page.", + "data": [ + { + "key": "scope", + "value": "regions/us-east1" + } + ] + } + }, + "zones/us-central1-a": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/us-central1-a' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/us-central1-a" + } + ] + } + }, + "zones/us-central1-b": { + "instanceGroupManagers": [ + { + + "kind": "compute#instanceGroupManager", + "id": "8604381270851510464", + "creationTimestamp": "2016-07-18T15:54:39.153-07:00", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b", + "name": "myinstancegroup", + "description": "my description for myinstancegroup", + "instanceTemplate": "https://content.googleapis.com/compute/v1/projects/project_name/global/instanceTemplates/my-instance-template1", + "instanceGroup": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b/instanceGroups/myinstancegroup", + "baseInstanceName": "base-foo", + "fingerprint": "Q21hYveq9do=", + "currentActions": { + "none": 4, + "creating": 0, + "recreating": 0, + "deleting": 0, + "abandoning": 0, + "restarting": 0, + "refreshing": 0 + }, + "targetSize": 4, + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b/instanceGroupManagers/myinstancegroup" + } + ] + }, + "zones/us-central1-c": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/us-central1-c' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/us-central1-c" + } + ] + } + }, + "zones/us-central1-f": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/us-central1-f' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/us-central1-f" + } + ] + } + }, + "zones/europe-west1-b": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/europe-west1-b' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/europe-west1-b" + } + ] + } + }, + "zones/europe-west1-c": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/europe-west1-c' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/europe-west1-c" + } + ] + } + }, + "zones/europe-west1-d": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/europe-west1-d' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/europe-west1-d" + } + ] + } + }, + "zones/us-west1-a": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/us-west1-a' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/us-west1-a" + } + ] + } + }, + "zones/us-west1-b": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/us-west1-b' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/us-west1-b" + } + ] + } + }, + "zones/asia-east1-a": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/asia-east1-a' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/asia-east1-a" + } + ] + } + }, + "zones/asia-east1-b": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/asia-east1-b' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/asia-east1-b" + } + ] + } + }, + "zones/asia-east1-c": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/asia-east1-c' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/asia-east1-c" + } + ] + } + }, + "zones/us-east1-b": { + "instanceGroupManagers": [ + { + + "kind": "compute#instanceGroupManager", + "id": "8588434319274454491", + "creationTimestamp": "2016-07-18T10:34:44.679-07:00", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-east1-b", + "name": "myinstancegroup", + "instanceTemplate": "https://content.googleapis.com/compute/v1/projects/project_name/global/instanceTemplates/my-instance-template1", + "instanceGroup": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-east1-b/instanceGroups/myinstancegroup", + "baseInstanceName": "myinstancegroup", + "fingerprint": "5bKcxzAnGOg=", + "currentActions": { + "none": 2, + "creating": 0, + "recreating": 0, + "deleting": 0, + "abandoning": 0, + "restarting": 0, + "refreshing": 0 + }, + "targetSize": 2, + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-east1-b/instanceGroupManagers/myinstancegroup" + } + ] + }, + "zones/us-east1-c": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/us-east1-c' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/us-east1-c" + } + ] + } + }, + "zones/us-east1-d": { + "warning": { + "code": "NO_RESULTS_ON_PAGE", + "message": "There are no results for scope 'zones/us-east1-d' on this page.", + "data": [ + { + "key": "scope", + "value": "zones/us-east1-d" + } + ] + } + } + } +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/global_instanceTemplates.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/global_instanceTemplates.json b/libcloud/test/compute/fixtures/gce/global_instanceTemplates.json new file mode 100644 index 0000000..d2b0225 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/global_instanceTemplates.json @@ -0,0 +1,67 @@ +{ + "id": "projects/supertom-graphite/global/instanceTemplates", + "items": [ + { + "creationTimestamp": "2016-07-18T09:53:22.323-07:00", + "description": "", + "id": "8161922600535111533", + "kind": "compute#instanceTemplate", + "name": "my-instance-template1", + "properties": { + "canIpForward": false, + "disks": [ + { + "autoDelete": true, + "boot": true, + "deviceName": "my-instance-template1", + "initializeParams": { + "diskSizeGb": "10", + "diskType": "pd-standard", + "sourceImage": "projects/supertom-graphite/global/images/my-new-image1" + }, + "kind": "compute#attachedDisk", + "mode": "READ_WRITE", + "type": "PERSISTENT" + } + ], + "machineType": "n1-standard-1", + "metadata": { + "fingerprint": "Jt9ALJ07B8Q=", + "kind": "compute#metadata" + }, + "networkInterfaces": [ + { + "accessConfigs": [ + { + "kind": "compute#accessConfig", + "name": "External NAT", + "type": "ONE_TO_ONE_NAT" + } + ], + "network": "https://content.googleapis.com/compute/v1/projects/supertom-graphite/global/networks/default" + } + ], + "scheduling": { + "automaticRestart": true, + "onHostMaintenance": "MIGRATE", + "preemptible": false + }, + "serviceAccounts": [ + { + "email": "default", + "scopes": [ + "https://www.googleapis.com/auth/devstorage.read_only", + "https://www.googleapis.com/auth/logging.write", + "https://www.googleapis.com/auth/monitoring.write", + "https://www.googleapis.com/auth/servicecontrol", + "https://www.googleapis.com/auth/service.management" + ] + } + ] + }, + "selfLink": "https://content.googleapis.com/compute/v1/projects/supertom-graphite/global/instanceTemplates/my-instance-template1" + } + ], + "kind": "compute#instanceTemplateList", + "selfLink": "https://www.googleapis.com/compute/v1/projects/supertom-graphite/global/instanceTemplates" +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/global_instanceTemplates_my_instance_template1.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/global_instanceTemplates_my_instance_template1.json b/libcloud/test/compute/fixtures/gce/global_instanceTemplates_my_instance_template1.json new file mode 100644 index 0000000..bbb81ea --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/global_instanceTemplates_my_instance_template1.json @@ -0,0 +1,60 @@ +{ + "creationTimestamp": "2016-07-18T09:53:22.323-07:00", + "description": "", + "id": "8161922600535111533", + "kind": "compute#instanceTemplate", + "name": "my-instance-template1", + "properties": { + "canIpForward": false, + "disks": [ + { + "autoDelete": true, + "boot": true, + "deviceName": "my-instance-template1", + "initializeParams": { + "diskSizeGb": "10", + "diskType": "pd-standard", + "sourceImage": "projects/project_name/global/images/my-new-image1" + }, + "kind": "compute#attachedDisk", + "mode": "READ_WRITE", + "type": "PERSISTENT" + } + ], + "machineType": "n1-standard-1", + "metadata": { + "fingerprint": "Jt9ALJ07B8Q=", + "kind": "compute#metadata" + }, + "networkInterfaces": [ + { + "accessConfigs": [ + { + "kind": "compute#accessConfig", + "name": "External NAT", + "type": "ONE_TO_ONE_NAT" + } + ], + "network": "https://content.googleapis.com/compute/v1/projects/project_name/global/networks/default" + } + ], + "scheduling": { + "automaticRestart": true, + "onHostMaintenance": "MIGRATE", + "preemptible": false + }, + "serviceAccounts": [ + { + "email": "default", + "scopes": [ + "https://www.googleapis.com/auth/devstorage.read_only", + "https://www.googleapis.com/auth/logging.write", + "https://www.googleapis.com/auth/monitoring.write", + "https://www.googleapis.com/auth/servicecontrol", + "https://www.googleapis.com/auth/service.management" + ] + } + ] + }, + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/global/instanceTemplates/my-instance-template1" +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers.json b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers.json new file mode 100644 index 0000000..8f6c569 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers.json @@ -0,0 +1,30 @@ +{ + "kind": "compute#instanceGroupManagerList", + "selfLink": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instanceGroupManagers", + "id": "projects/project_name/zones/us-central1-a/instanceGroupManagers", + "items": [ + { + + "kind": "compute#instanceGroupManager", + "id": "8588434319274454491", + "creationTimestamp": "2016-07-18T10:34:44.679-07:00", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a", + "name": "myinstancegroup", + "instanceTemplate": "https://content.googleapis.com/compute/v1/projects/project_name/global/instanceTemplates/my-instance-template1", + "instanceGroup": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instanceGroups/myinstancegroup", + "baseInstanceName": "myinstancegroup", + "fingerprint": "5bKcxzAnGOg=", + "currentActions": { + "none": 2, + "creating": 0, + "recreating": 0, + "deleting": 0, + "abandoning": 0, + "restarting": 0, + "refreshing": 0 + }, + "targetSize": 2, + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instanceGroupManagers/myinstancegroup" + } + ] +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers_insert.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers_insert.json b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers_insert.json new file mode 100644 index 0000000..457ac26 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers_insert.json @@ -0,0 +1,16 @@ +{ + "kind": "compute#operation", + "id": "5029726187056811377", + "name": "operation-zones_us-central1-a_instanceGroupManagers_insert_post", + "zone": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a", + "operationType": "compute.instanceGroupManagers.insert", + "targetLink": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instanceGroupManagers/managed-instance-group-1", + "targetId": "1549031063416753526", + "status": "PENDING", + "user": "[email protected]", + "progress": 90, + "insertTime": "2016-08-12T09:04:46.114-07:00", + "startTime": "2016-08-12T09:04:46.117-07:00", + "endTime": "2016-08-12T09:04:46.117-07:00", + "selfLink" : "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/operations/operation-zones_us-central1-a_instanceGroupManagers_insert_post" +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers_myinstancegroup.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers_myinstancegroup.json b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers_myinstancegroup.json new file mode 100644 index 0000000..be0f0e7 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroupManagers_myinstancegroup.json @@ -0,0 +1,24 @@ +{ + + "kind": "compute#instanceGroupManager", + "id": "8604381270851510464", + "creationTimestamp": "2016-07-18T15:54:39.153-07:00", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a", + "name": "myinstancegroup", + "description": "my description for myinstancegroup", + "instanceTemplate": "https://content.googleapis.com/compute/v1/projects/project_name/global/instanceTemplates/my-instance-template1", + "instanceGroup": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instanceGroups/myinstancegroup", + "baseInstanceName": "base-foo", + "fingerprint": "Q21hYveq9do=", + "currentActions": { + "none": 4, + "creating": 0, + "recreating": 0, + "deleting": 0, + "abandoning": 0, + "restarting": 0, + "refreshing": 0 + }, + "targetSize": 4, + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instanceGroupManagers/myinstancegroup" +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroup_myinstancegroup.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroup_myinstancegroup.json b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroup_myinstancegroup.json new file mode 100644 index 0000000..ee36755 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_instanceGroup_myinstancegroup.json @@ -0,0 +1,14 @@ +{ + + "kind": "compute#instanceGroup", + "id": "1968709502073089769", + "creationTimestamp": "2016-08-11T16:53:42.413-07:00", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a", + "name": "managed-instance-group-1", + "description": "This instance group is controlled by Instance Group Manager 'myinstancegroup'. To modify instances in this group, use the Instance Group Manager API: https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers", + "network": "https://content.googleapis.com/compute/v1/projects/project_name/global/networks/default", + "fingerprint": "42WmSpB8rSM=", + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instanceGroups/myinstancegroup", + "size": 4, + "subnetwork": "https://content.googleapis.com/compute/v1/projects/project_name/regions/us-central1/subnetworks/cf-972cf02e6ad49112" +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/zones_us-central1-a_operations_operation_zones_us-central1-a_instanceGroupManagers_insert_post.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/zones_us-central1-a_operations_operation_zones_us-central1-a_instanceGroupManagers_insert_post.json b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_operations_operation_zones_us-central1-a_instanceGroupManagers_insert_post.json new file mode 100644 index 0000000..8f68b9a --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/zones_us-central1-a_operations_operation_zones_us-central1-a_instanceGroupManagers_insert_post.json @@ -0,0 +1,16 @@ +{ + "kind": "compute#operation", + "id": "5029726187056811377", + "name": "operation-zones_us-central1-a_instanceGroupManagers_insert_post", + "zone": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a", + "operationType": "compute.instanceGroupManagers.insert", + "targetLink": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/instanceGroupManagers/managed-instance-group-1", + "targetId": "1549031063416753526", + "status": "DONE", + "user": "[email protected]", + "progress": 100, + "insertTime": "2016-08-12T09:04:46.114-07:00", + "startTime": "2016-08-12T09:04:46.117-07:00", + "endTime": "2016-08-12T09:04:46.117-07:00", + "selfLink" : "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-central1-a/operations/operation-zones_us-central1-a_instanceGroupManagers_insert_post" +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/zones_us-central1-b_instanceGroupManagers_myinstancegroup.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/zones_us-central1-b_instanceGroupManagers_myinstancegroup.json b/libcloud/test/compute/fixtures/gce/zones_us-central1-b_instanceGroupManagers_myinstancegroup.json new file mode 100644 index 0000000..2385aa3 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/zones_us-central1-b_instanceGroupManagers_myinstancegroup.json @@ -0,0 +1,24 @@ +{ + + "kind": "compute#instanceGroupManager", + "id": "8604381270851510464", + "creationTimestamp": "2016-07-18T15:54:39.153-07:00", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b", + "name": "myinstancegroup", + "description": "my description for myinstancegroup", + "instanceTemplate": "https://content.googleapis.com/compute/v1/projects/project_name/global/instanceTemplates/my-instance-template1", + "instanceGroup": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b/instanceGroups/myinstancegroup", + "baseInstanceName": "base-foo", + "fingerprint": "Q21hYveq9do=", + "currentActions": { + "none": 4, + "creating": 0, + "recreating": 0, + "deleting": 0, + "abandoning": 0, + "restarting": 0, + "refreshing": 0 + }, + "targetSize": 4, + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b/instanceGroupManagers/myinstancegroup" +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/zones_us-central1-b_instanceGroup_myinstancegroup.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/zones_us-central1-b_instanceGroup_myinstancegroup.json b/libcloud/test/compute/fixtures/gce/zones_us-central1-b_instanceGroup_myinstancegroup.json new file mode 100644 index 0000000..c4330a8 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/zones_us-central1-b_instanceGroup_myinstancegroup.json @@ -0,0 +1,14 @@ +{ + + "kind": "compute#instanceGroup", + "id": "1968709502073089769", + "creationTimestamp": "2016-08-11T16:53:42.413-07:00", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b", + "name": "managed-instance-group-1", + "description": "This instance group is controlled by Instance Group Manager 'myinstancegroup'. To modify instances in this group, use the Instance Group Manager API: https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers", + "network": "https://content.googleapis.com/compute/v1/projects/project_name/global/networks/default", + "fingerprint": "42WmSpB8rSM=", + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-central1-b/instanceGroups/myinstancegroup", + "size": 4, + "subnetwork": "https://content.googleapis.com/compute/v1/projects/project_name/regions/us-central1/subnetworks/cf-972cf02e6ad49112" +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/zones_us-east1-b_instanceGroupManagers.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/zones_us-east1-b_instanceGroupManagers.json b/libcloud/test/compute/fixtures/gce/zones_us-east1-b_instanceGroupManagers.json new file mode 100644 index 0000000..1bf7014 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/zones_us-east1-b_instanceGroupManagers.json @@ -0,0 +1,30 @@ +{ + "kind": "compute#instanceGroupManagerList", + "selfLink": "https://www.googleapis.com/compute/v1/projects/project_name/zones/us-east1-b/instanceGroupManagers", + "id": "projects/project_name/zones/us-east1-b/instanceGroupManagers", + "items": [ + { + + "kind": "compute#instanceGroupManager", + "id": "8588434319274454491", + "creationTimestamp": "2016-07-18T10:34:44.679-07:00", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-east1-b", + "name": "myinstancegroup", + "instanceTemplate": "https://content.googleapis.com/compute/v1/projects/project_name/global/instanceTemplates/my-instance-template1", + "instanceGroup": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-east1-b/instanceGroups/myinstancegroup", + "baseInstanceName": "myinstancegroup", + "fingerprint": "5bKcxzAnGOg=", + "currentActions": { + "none": 2, + "creating": 0, + "recreating": 0, + "deleting": 0, + "abandoning": 0, + "restarting": 0, + "refreshing": 0 + }, + "targetSize": 2, + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-east1-b/instanceGroupManagers/myinstancegroup" + } + ] +} http://git-wip-us.apache.org/repos/asf/libcloud/blob/214677f4/libcloud/test/compute/fixtures/gce/zones_us-east1-b_instanceGroup_myinstancegroup.json ---------------------------------------------------------------------- diff --git a/libcloud/test/compute/fixtures/gce/zones_us-east1-b_instanceGroup_myinstancegroup.json b/libcloud/test/compute/fixtures/gce/zones_us-east1-b_instanceGroup_myinstancegroup.json new file mode 100644 index 0000000..3726373 --- /dev/null +++ b/libcloud/test/compute/fixtures/gce/zones_us-east1-b_instanceGroup_myinstancegroup.json @@ -0,0 +1,14 @@ +{ + + "kind": "compute#instanceGroup", + "id": "1968709502073089769", + "creationTimestamp": "2016-08-11T16:53:42.413-07:00", + "zone": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-east1-b", + "name": "managed-instance-group-1", + "description": "This instance group is controlled by Instance Group Manager 'myinstancegroup'. To modify instances in this group, use the Instance Group Manager API: https://cloud.google.com/compute/docs/reference/latest/instanceGroupManagers", + "network": "https://content.googleapis.com/compute/v1/projects/project_name/global/networks/default", + "fingerprint": "42WmSpB8rSM=", + "selfLink": "https://content.googleapis.com/compute/v1/projects/project_name/zones/us-east1-b/instanceGroups/myinstancegroup", + "size": 4, + "subnetwork": "https://content.googleapis.com/compute/v1/projects/project_name/regions/us-east1/subnetworks/cf-972cf02e6ad49112" +}
