/// <summary>Snippet for AttachNetworkEndpointsAsync</summary> public async Task AttachNetworkEndpointsAsync() { // Snippet: AttachNetworkEndpointsAsync(string, string, string, NetworkEndpointGroupsAttachEndpointsRequest, CallSettings) // Additional: AttachNetworkEndpointsAsync(string, string, string, NetworkEndpointGroupsAttachEndpointsRequest, CancellationToken) // Create client NetworkEndpointGroupsClient networkEndpointGroupsClient = await NetworkEndpointGroupsClient.CreateAsync(); // Initialize request argument(s) string project = ""; string zone = ""; string networkEndpointGroup = ""; NetworkEndpointGroupsAttachEndpointsRequest networkEndpointGroupsAttachEndpointsRequestResource = new NetworkEndpointGroupsAttachEndpointsRequest(); // Make the request Operation response = await networkEndpointGroupsClient.AttachNetworkEndpointsAsync(project, zone, networkEndpointGroup, networkEndpointGroupsAttachEndpointsRequestResource); // End snippet }
/// <summary>Snippet for AttachNetworkEndpointsAsync</summary> public async Task AttachNetworkEndpointsRequestObjectAsync() { // Snippet: AttachNetworkEndpointsAsync(AttachNetworkEndpointsNetworkEndpointGroupRequest, CallSettings) // Additional: AttachNetworkEndpointsAsync(AttachNetworkEndpointsNetworkEndpointGroupRequest, CancellationToken) // Create client NetworkEndpointGroupsClient networkEndpointGroupsClient = await NetworkEndpointGroupsClient.CreateAsync(); // Initialize request argument(s) AttachNetworkEndpointsNetworkEndpointGroupRequest request = new AttachNetworkEndpointsNetworkEndpointGroupRequest { NetworkEndpointGroupsAttachEndpointsRequestResource = new NetworkEndpointGroupsAttachEndpointsRequest(), Zone = "", RequestId = "", Project = "", NetworkEndpointGroup = "", }; // Make the request Operation response = await networkEndpointGroupsClient.AttachNetworkEndpointsAsync(request); // End snippet }