/// <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 }
/// <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 }