Пример #1
0
 /// <summary>Snippet for List</summary>
 public void List()
 {
     // Snippet: List(string, string, CallSettings)
     // Create client
     InterconnectAttachmentsClient interconnectAttachmentsClient = InterconnectAttachmentsClient.Create();
     // Initialize request argument(s)
     string project = "";
     string region  = "";
     // Make the request
     InterconnectAttachmentList response = interconnectAttachmentsClient.List(project, region);
     // End snippet
 }
Пример #2
0
        /// <summary>Snippet for ListAsync</summary>
        public async Task ListAsync()
        {
            // Snippet: ListAsync(string, string, CallSettings)
            // Additional: ListAsync(string, string, CancellationToken)
            // Create client
            InterconnectAttachmentsClient interconnectAttachmentsClient = await InterconnectAttachmentsClient.CreateAsync();

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

            // End snippet
        }
Пример #3
0
 /// <summary>Snippet for List</summary>
 public void ListRequestObject()
 {
     // Snippet: List(ListInterconnectAttachmentsRequest, CallSettings)
     // Create client
     InterconnectAttachmentsClient interconnectAttachmentsClient = InterconnectAttachmentsClient.Create();
     // Initialize request argument(s)
     ListInterconnectAttachmentsRequest request = new ListInterconnectAttachmentsRequest
     {
         PageToken            = "",
         MaxResults           = 0U,
         Region               = "",
         OrderBy              = "",
         Project              = "",
         Filter               = "",
         ReturnPartialSuccess = false,
     };
     // Make the request
     InterconnectAttachmentList response = interconnectAttachmentsClient.List(request);
     // End snippet
 }
Пример #4
0
        /// <summary>Snippet for ListAsync</summary>
        public async Task ListRequestObjectAsync()
        {
            // Snippet: ListAsync(ListInterconnectAttachmentsRequest, CallSettings)
            // Additional: ListAsync(ListInterconnectAttachmentsRequest, CancellationToken)
            // Create client
            InterconnectAttachmentsClient interconnectAttachmentsClient = await InterconnectAttachmentsClient.CreateAsync();

            // Initialize request argument(s)
            ListInterconnectAttachmentsRequest request = new ListInterconnectAttachmentsRequest
            {
                PageToken            = "",
                MaxResults           = 0U,
                Region               = "",
                OrderBy              = "",
                Project              = "",
                Filter               = "",
                ReturnPartialSuccess = false,
            };
            // Make the request
            InterconnectAttachmentList response = await interconnectAttachmentsClient.ListAsync(request);

            // End snippet
        }