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

            // Initialize request argument(s)
            string project = "";
            string region  = "";
            string interconnectAttachment = "";
            // Make the request
            InterconnectAttachment response = await interconnectAttachmentsClient.GetAsync(project, region, interconnectAttachment);

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

            // Initialize request argument(s)
            GetInterconnectAttachmentRequest request = new GetInterconnectAttachmentRequest
            {
                Region  = "",
                Project = "",
                InterconnectAttachment = "",
            };
            // Make the request
            InterconnectAttachment response = await interconnectAttachmentsClient.GetAsync(request);

            // End snippet
        }