Closed parthea closed 1 year ago
This repository doesn't have sample code for InstanceGroupsClient. This issue tracks providing sample code similar to the following snippet.
InstanceGroupsClient
from google.cloud import compute_v1 project = "project-xxx" zone = "us-central1-a" instance_group = "test" instance_groups_list_instances_request_resource = compute_v1.InstanceGroupsListInstancesRequest() instance_groups_list_instances_request_resource.instance_state = "RUNNING" instance_groups_client = compute_v1.InstanceGroupsClient() instance_groups_list = instance_groups_client.list_instances(project=project, zone=zone, instance_group=instance_group, instance_groups_list_instances_request_resource=instance_groups_list_instances_request_resource) for instance in instance_groups_list: print(instance.name, instance.labels)
The samples have moved to python-docs-samples
This repository doesn't have sample code for
InstanceGroupsClient
. This issue tracks providing sample code similar to the following snippet.