Ejemplo n.º 1
0
 /// <summary>Snippet for List</summary>
 public void List()
 {
     // Snippet: List(string, string, CallSettings)
     // Create client
     AutoscalersClient autoscalersClient = AutoscalersClient.Create();
     // Initialize request argument(s)
     string project = "";
     string zone    = "";
     // Make the request
     AutoscalerList response = autoscalersClient.List(project, zone);
     // End snippet
 }
Ejemplo n.º 2
0
        /// <summary>Snippet for ListAsync</summary>
        public async Task ListAsync()
        {
            // Snippet: ListAsync(string, string, CallSettings)
            // Additional: ListAsync(string, string, CancellationToken)
            // Create client
            AutoscalersClient autoscalersClient = await AutoscalersClient.CreateAsync();

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

            // End snippet
        }
Ejemplo n.º 3
0
 /// <summary>Snippet for List</summary>
 public void ListRequestObject()
 {
     // Snippet: List(ListAutoscalersRequest, CallSettings)
     // Create client
     AutoscalersClient autoscalersClient = AutoscalersClient.Create();
     // Initialize request argument(s)
     ListAutoscalersRequest request = new ListAutoscalersRequest
     {
         Zone                 = "",
         PageToken            = "",
         MaxResults           = 0U,
         Filter               = "",
         OrderBy              = "",
         Project              = "",
         ReturnPartialSuccess = false,
     };
     // Make the request
     AutoscalerList response = autoscalersClient.List(request);
     // End snippet
 }
Ejemplo n.º 4
0
        /// <summary>Snippet for ListAsync</summary>
        public async Task ListRequestObjectAsync()
        {
            // Snippet: ListAsync(ListAutoscalersRequest, CallSettings)
            // Additional: ListAsync(ListAutoscalersRequest, CancellationToken)
            // Create client
            AutoscalersClient autoscalersClient = await AutoscalersClient.CreateAsync();

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

            // End snippet
        }