Ejemplo n.º 1
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetAsync()
        {
            // Snippet: GetAsync(string, string, string, CallSettings)
            // Additional: GetAsync(string, string, string, CancellationToken)
            // Create client
            AcceleratorTypesClient acceleratorTypesClient = await AcceleratorTypesClient.CreateAsync();

            // Initialize request argument(s)
            string project         = "";
            string zone            = "";
            string acceleratorType = "";
            // Make the request
            AcceleratorType response = await acceleratorTypesClient.GetAsync(project, zone, acceleratorType);

            // End snippet
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetAcceleratorTypeRequest, CallSettings)
            // Additional: GetAsync(GetAcceleratorTypeRequest, CancellationToken)
            // Create client
            AcceleratorTypesClient acceleratorTypesClient = await AcceleratorTypesClient.CreateAsync();

            // Initialize request argument(s)
            GetAcceleratorTypeRequest request = new GetAcceleratorTypeRequest
            {
                Zone            = "",
                AcceleratorType = "",
                Project         = "",
            };
            // Make the request
            AcceleratorType response = await acceleratorTypesClient.GetAsync(request);

            // End snippet
        }