Exemplo n.º 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
            InstanceGroupsClient instanceGroupsClient = await InstanceGroupsClient.CreateAsync();

            // Initialize request argument(s)
            string project       = "";
            string zone          = "";
            string instanceGroup = "";
            // Make the request
            InstanceGroup response = await instanceGroupsClient.GetAsync(project, zone, instanceGroup);

            // End snippet
        }
Exemplo n.º 2
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetInstanceGroupRequest, CallSettings)
            // Additional: GetAsync(GetInstanceGroupRequest, CancellationToken)
            // Create client
            InstanceGroupsClient instanceGroupsClient = await InstanceGroupsClient.CreateAsync();

            // Initialize request argument(s)
            GetInstanceGroupRequest request = new GetInstanceGroupRequest
            {
                Zone          = "",
                InstanceGroup = "",
                Project       = "",
            };
            // Make the request
            InstanceGroup response = await instanceGroupsClient.GetAsync(request);

            // End snippet
        }