示例#1
0
        /// <summary>Snippet for RemoveInstancesAsync</summary>
        public async Task RemoveInstancesAsync()
        {
            // Snippet: RemoveInstancesAsync(string, string, string, InstanceGroupsRemoveInstancesRequest, CallSettings)
            // Additional: RemoveInstancesAsync(string, string, string, InstanceGroupsRemoveInstancesRequest, CancellationToken)
            // Create client
            InstanceGroupsClient instanceGroupsClient = await InstanceGroupsClient.CreateAsync();

            // Initialize request argument(s)
            string project       = "";
            string zone          = "";
            string instanceGroup = "";
            InstanceGroupsRemoveInstancesRequest instanceGroupsRemoveInstancesRequestResource = new InstanceGroupsRemoveInstancesRequest();
            // Make the request
            Operation response = await instanceGroupsClient.RemoveInstancesAsync(project, zone, instanceGroup, instanceGroupsRemoveInstancesRequestResource);

            // End snippet
        }
示例#2
0
        /// <summary>Snippet for RemoveInstancesAsync</summary>
        public async Task RemoveInstancesRequestObjectAsync()
        {
            // Snippet: RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest, CallSettings)
            // Additional: RemoveInstancesAsync(RemoveInstancesInstanceGroupRequest, CancellationToken)
            // Create client
            InstanceGroupsClient instanceGroupsClient = await InstanceGroupsClient.CreateAsync();

            // Initialize request argument(s)
            RemoveInstancesInstanceGroupRequest request = new RemoveInstancesInstanceGroupRequest
            {
                Zone          = "",
                RequestId     = "",
                InstanceGroup = "",
                Project       = "",
                InstanceGroupsRemoveInstancesRequestResource = new InstanceGroupsRemoveInstancesRequest(),
            };
            // Make the request
            Operation response = await instanceGroupsClient.RemoveInstancesAsync(request);

            // End snippet
        }