예제 #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
            RegionTargetHttpsProxiesClient regionTargetHttpsProxiesClient = await RegionTargetHttpsProxiesClient.CreateAsync();

            // Initialize request argument(s)
            string project          = "";
            string region           = "";
            string targetHttpsProxy = "";
            // Make the request
            TargetHttpsProxy response = await regionTargetHttpsProxiesClient.GetAsync(project, region, targetHttpsProxy);

            // End snippet
        }
예제 #2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetRegionTargetHttpsProxyRequest, CallSettings)
            // Additional: GetAsync(GetRegionTargetHttpsProxyRequest, CancellationToken)
            // Create client
            RegionTargetHttpsProxiesClient regionTargetHttpsProxiesClient = await RegionTargetHttpsProxiesClient.CreateAsync();

            // Initialize request argument(s)
            GetRegionTargetHttpsProxyRequest request = new GetRegionTargetHttpsProxyRequest
            {
                TargetHttpsProxy = "",
                Region           = "",
                Project          = "",
            };
            // Make the request
            TargetHttpsProxy response = await regionTargetHttpsProxiesClient.GetAsync(request);

            // End snippet
        }