コード例 #1
0
        /// <summary>Snippet for GetAsync</summary>
        public async Task GetRequestObjectAsync()
        {
            // Snippet: GetAsync(GetNodeGroupRequest, CallSettings)
            // Additional: GetAsync(GetNodeGroupRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            GetNodeGroupRequest request = new GetNodeGroupRequest
            {
                Zone      = "",
                Project   = "",
                NodeGroup = "",
            };
            // Make the request
            NodeGroup response = await nodeGroupsClient.GetAsync(request);

            // End snippet
        }
コード例 #2
0
        /// <summary>Snippet for TestIamPermissionsAsync</summary>
        public async Task TestIamPermissionsRequestObjectAsync()
        {
            // Snippet: TestIamPermissionsAsync(TestIamPermissionsNodeGroupRequest, CallSettings)
            // Additional: TestIamPermissionsAsync(TestIamPermissionsNodeGroupRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            TestIamPermissionsNodeGroupRequest request = new TestIamPermissionsNodeGroupRequest
            {
                Zone = "",
                TestPermissionsRequestResource = new TestPermissionsRequest(),
                Resource = "",
                Project  = "",
            };
            // Make the request
            TestPermissionsResponse response = await nodeGroupsClient.TestIamPermissionsAsync(request);

            // End snippet
        }
コード例 #3
0
        /// <summary>Snippet for SetIamPolicyAsync</summary>
        public async Task SetIamPolicyRequestObjectAsync()
        {
            // Snippet: SetIamPolicyAsync(SetIamPolicyNodeGroupRequest, CallSettings)
            // Additional: SetIamPolicyAsync(SetIamPolicyNodeGroupRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            SetIamPolicyNodeGroupRequest request = new SetIamPolicyNodeGroupRequest
            {
                Zone = "",
                ZoneSetPolicyRequestResource = new ZoneSetPolicyRequest(),
                Resource = "",
                Project  = "",
            };
            // Make the request
            Policy response = await nodeGroupsClient.SetIamPolicyAsync(request);

            // End snippet
        }
コード例 #4
0
        /// <summary>Snippet for GetIamPolicyAsync</summary>
        public async Task GetIamPolicyRequestObjectAsync()
        {
            // Snippet: GetIamPolicyAsync(GetIamPolicyNodeGroupRequest, CallSettings)
            // Additional: GetIamPolicyAsync(GetIamPolicyNodeGroupRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            GetIamPolicyNodeGroupRequest request = new GetIamPolicyNodeGroupRequest
            {
                Zone     = "",
                Resource = "",
                Project  = "",
                OptionsRequestedPolicyVersion = 0,
            };
            // Make the request
            Policy response = await nodeGroupsClient.GetIamPolicyAsync(request);

            // End snippet
        }
コード例 #5
0
        /// <summary>Snippet for DeleteAsync</summary>
        public async Task DeleteRequestObjectAsync()
        {
            // Snippet: DeleteAsync(DeleteNodeGroupRequest, CallSettings)
            // Additional: DeleteAsync(DeleteNodeGroupRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            DeleteNodeGroupRequest request = new DeleteNodeGroupRequest
            {
                Zone      = "",
                RequestId = "",
                NodeGroup = "",
                Project   = "",
            };
            // Make the request
            Operation response = await nodeGroupsClient.DeleteAsync(request);

            // End snippet
        }
コード例 #6
0
        /// <summary>Snippet for PatchAsync</summary>
        public async Task PatchRequestObjectAsync()
        {
            // Snippet: PatchAsync(PatchNodeGroupRequest, CallSettings)
            // Additional: PatchAsync(PatchNodeGroupRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            PatchNodeGroupRequest request = new PatchNodeGroupRequest
            {
                Zone              = "",
                RequestId         = "",
                NodeGroup         = "",
                Project           = "",
                NodeGroupResource = new NodeGroup(),
            };
            // Make the request
            Operation response = await nodeGroupsClient.PatchAsync(request);

            // End snippet
        }
コード例 #7
0
        /// <summary>Snippet for SetNodeTemplateAsync</summary>
        public async Task SetNodeTemplateRequestObjectAsync()
        {
            // Snippet: SetNodeTemplateAsync(SetNodeTemplateNodeGroupRequest, CallSettings)
            // Additional: SetNodeTemplateAsync(SetNodeTemplateNodeGroupRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            SetNodeTemplateNodeGroupRequest request = new SetNodeTemplateNodeGroupRequest
            {
                Zone      = "",
                RequestId = "",
                NodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest(),
                Project   = "",
                NodeGroup = "",
            };
            // Make the request
            Operation response = await nodeGroupsClient.SetNodeTemplateAsync(request);

            // End snippet
        }
コード例 #8
0
        /// <summary>Snippet for ListAsync</summary>
        public async Task ListRequestObjectAsync()
        {
            // Snippet: ListAsync(ListNodeGroupsRequest, CallSettings)
            // Additional: ListAsync(ListNodeGroupsRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            ListNodeGroupsRequest request = new ListNodeGroupsRequest
            {
                Zone                 = "",
                PageToken            = "",
                MaxResults           = 0U,
                Filter               = "",
                OrderBy              = "",
                Project              = "",
                ReturnPartialSuccess = false,
            };
            // Make the request
            NodeGroupList response = await nodeGroupsClient.ListAsync(request);

            // End snippet
        }
コード例 #9
0
        /// <summary>Snippet for AggregatedListAsync</summary>
        public async Task AggregatedListRequestObjectAsync()
        {
            // Snippet: AggregatedListAsync(AggregatedListNodeGroupsRequest, CallSettings)
            // Additional: AggregatedListAsync(AggregatedListNodeGroupsRequest, CancellationToken)
            // Create client
            NodeGroupsClient nodeGroupsClient = await NodeGroupsClient.CreateAsync();

            // Initialize request argument(s)
            AggregatedListNodeGroupsRequest request = new AggregatedListNodeGroupsRequest
            {
                PageToken            = "",
                MaxResults           = 0U,
                Filter               = "",
                IncludeAllScopes     = false,
                OrderBy              = "",
                Project              = "",
                ReturnPartialSuccess = false,
            };
            // Make the request
            NodeGroupAggregatedList response = await nodeGroupsClient.AggregatedListAsync(request);

            // End snippet
        }