/// <summary>Snippet for GetEndpointAsync</summary> public async Task GetEndpointResourceNamesAsync() { // Snippet: GetEndpointAsync(EndpointName, CallSettings) // Additional: GetEndpointAsync(EndpointName, CancellationToken) // Create client IDSClient iDSClient = await IDSClient.CreateAsync(); // Initialize request argument(s) EndpointName name = EndpointName.FromProjectLocationEndpoint("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); // Make the request Endpoint response = await iDSClient.GetEndpointAsync(name); // End snippet }
/// <summary>Snippet for GetEndpointAsync</summary> public async Task GetEndpointAsync() { // Snippet: GetEndpointAsync(string, CallSettings) // Additional: GetEndpointAsync(string, CancellationToken) // Create client IDSClient iDSClient = await IDSClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/endpoints/[ENDPOINT]"; // Make the request Endpoint response = await iDSClient.GetEndpointAsync(name); // End snippet }