예제 #1
0
 /// <summary>Snippet for List</summary>
 public void List()
 {
     // Snippet: List(string, string, CallSettings)
     // Create client
     InstanceGroupsClient instanceGroupsClient = InstanceGroupsClient.Create();
     // Initialize request argument(s)
     string project = "";
     string zone    = "";
     // Make the request
     InstanceGroupList response = instanceGroupsClient.List(project, zone);
     // End snippet
 }
예제 #2
0
        /// <summary>Snippet for ListAsync</summary>
        public async Task ListAsync()
        {
            // Snippet: ListAsync(string, string, CallSettings)
            // Additional: ListAsync(string, string, CancellationToken)
            // Create client
            InstanceGroupsClient instanceGroupsClient = await InstanceGroupsClient.CreateAsync();

            // Initialize request argument(s)
            string project = "";
            string zone    = "";
            // Make the request
            InstanceGroupList response = await instanceGroupsClient.ListAsync(project, zone);

            // End snippet
        }
예제 #3
0
 /// <summary>Snippet for List</summary>
 public void ListRequestObject()
 {
     // Snippet: List(ListInstanceGroupsRequest, CallSettings)
     // Create client
     InstanceGroupsClient instanceGroupsClient = InstanceGroupsClient.Create();
     // Initialize request argument(s)
     ListInstanceGroupsRequest request = new ListInstanceGroupsRequest
     {
         Zone                 = "",
         PageToken            = "",
         MaxResults           = 0U,
         OrderBy              = "",
         Project              = "",
         Filter               = "",
         ReturnPartialSuccess = false,
     };
     // Make the request
     InstanceGroupList response = instanceGroupsClient.List(request);
     // End snippet
 }
예제 #4
0
        /// <summary>Snippet for ListAsync</summary>
        public async Task ListRequestObjectAsync()
        {
            // Snippet: ListAsync(ListInstanceGroupsRequest, CallSettings)
            // Additional: ListAsync(ListInstanceGroupsRequest, CancellationToken)
            // Create client
            InstanceGroupsClient instanceGroupsClient = await InstanceGroupsClient.CreateAsync();

            // Initialize request argument(s)
            ListInstanceGroupsRequest request = new ListInstanceGroupsRequest
            {
                Zone                 = "",
                PageToken            = "",
                MaxResults           = 0U,
                OrderBy              = "",
                Project              = "",
                Filter               = "",
                ReturnPartialSuccess = false,
            };
            // Make the request
            InstanceGroupList response = await instanceGroupsClient.ListAsync(request);

            // End snippet
        }