コード例 #1
0
 /// <summary>Snippet for Get</summary>
 public void Get()
 {
     // Snippet: Get(string, string, string, CallSettings)
     // Create client
     ImageFamilyViewsClient imageFamilyViewsClient = ImageFamilyViewsClient.Create();
     // Initialize request argument(s)
     string project = "";
     string zone    = "";
     string family  = "";
     // Make the request
     ImageFamilyView response = imageFamilyViewsClient.Get(project, zone, family);
     // End snippet
 }
コード例 #2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetAsync()
        {
            // Snippet: GetAsync(string, string, string, CallSettings)
            // Additional: GetAsync(string, string, string, CancellationToken)
            // Create client
            ImageFamilyViewsClient imageFamilyViewsClient = await ImageFamilyViewsClient.CreateAsync();

            // Initialize request argument(s)
            string project = "";
            string zone    = "";
            string family  = "";
            // Make the request
            ImageFamilyView response = await imageFamilyViewsClient.GetAsync(project, zone, family);

            // End snippet
        }
コード例 #3
0
 /// <summary>Snippet for Get</summary>
 public void GetRequestObject()
 {
     // Snippet: Get(GetImageFamilyViewRequest, CallSettings)
     // Create client
     ImageFamilyViewsClient imageFamilyViewsClient = ImageFamilyViewsClient.Create();
     // Initialize request argument(s)
     GetImageFamilyViewRequest request = new GetImageFamilyViewRequest
     {
         Zone    = "",
         Project = "",
         Family  = "",
     };
     // Make the request
     ImageFamilyView response = imageFamilyViewsClient.Get(request);
     // End snippet
 }
コード例 #4
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetImageFamilyViewRequest, CallSettings)
            // Additional: GetAsync(GetImageFamilyViewRequest, CancellationToken)
            // Create client
            ImageFamilyViewsClient imageFamilyViewsClient = await ImageFamilyViewsClient.CreateAsync();

            // Initialize request argument(s)
            GetImageFamilyViewRequest request = new GetImageFamilyViewRequest
            {
                Zone    = "",
                Project = "",
                Family  = "",
            };
            // Make the request
            ImageFamilyView response = await imageFamilyViewsClient.GetAsync(request);

            // End snippet
        }