Example #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
            NetworkEndpointGroupsClient networkEndpointGroupsClient = await NetworkEndpointGroupsClient.CreateAsync();

            // Initialize request argument(s)
            string project = "";
            string zone    = "";
            string networkEndpointGroup = "";
            // Make the request
            NetworkEndpointGroup response = await networkEndpointGroupsClient.GetAsync(project, zone, networkEndpointGroup);

            // End snippet
        }
Example #2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetNetworkEndpointGroupRequest, CallSettings)
            // Additional: GetAsync(GetNetworkEndpointGroupRequest, CancellationToken)
            // Create client
            NetworkEndpointGroupsClient networkEndpointGroupsClient = await NetworkEndpointGroupsClient.CreateAsync();

            // Initialize request argument(s)
            GetNetworkEndpointGroupRequest request = new GetNetworkEndpointGroupRequest
            {
                Zone    = "",
                Project = "",
                NetworkEndpointGroup = "",
            };
            // Make the request
            NetworkEndpointGroup response = await networkEndpointGroupsClient.GetAsync(request);

            // End snippet
        }