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

            // Initialize request argument(s)
            string project    = "";
            string region     = "";
            string vpnGateway = "";
            // Make the request
            VpnGateway response = await vpnGatewaysClient.GetAsync(project, region, vpnGateway);

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

            // Initialize request argument(s)
            GetVpnGatewayRequest request = new GetVpnGatewayRequest
            {
                Region     = "",
                Project    = "",
                VpnGateway = "",
            };
            // Make the request
            VpnGateway response = await vpnGatewaysClient.GetAsync(request);

            // End snippet
        }