Ejemplo n.º 1
0
 /// <summary>Snippet for AggregatedList</summary>
 public void AggregatedList()
 {
     // Snippet: AggregatedList(string, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string project = "";
     // Make the request
     NodeGroupAggregatedList response = nodeGroupsClient.AggregatedList(project);
     // End snippet
 }
Ejemplo n.º 2
0
 /// <summary>Snippet for List</summary>
 public void List()
 {
     // Snippet: List(string, string, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string project = "";
     string zone    = "";
     // Make the request
     NodeGroupList response = nodeGroupsClient.List(project, zone);
     // End snippet
 }
Ejemplo n.º 3
0
 /// <summary>Snippet for Delete</summary>
 public void Delete()
 {
     // Snippet: Delete(string, string, string, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string project   = "";
     string zone      = "";
     string nodeGroup = "";
     // Make the request
     Operation response = nodeGroupsClient.Delete(project, zone, nodeGroup);
     // End snippet
 }
Ejemplo n.º 4
0
 /// <summary>Snippet for GetIamPolicy</summary>
 public void GetIamPolicy()
 {
     // Snippet: GetIamPolicy(string, string, string, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string project  = "";
     string zone     = "";
     string resource = "";
     // Make the request
     Policy response = nodeGroupsClient.GetIamPolicy(project, zone, resource);
     // End snippet
 }
Ejemplo n.º 5
0
 /// <summary>Snippet for Insert</summary>
 public void Insert()
 {
     // Snippet: Insert(string, string, int, NodeGroup, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string    project           = "";
     string    zone              = "";
     int       initialNodeCount  = 0;
     NodeGroup nodeGroupResource = new NodeGroup();
     // Make the request
     Operation response = nodeGroupsClient.Insert(project, zone, initialNodeCount, nodeGroupResource);
     // End snippet
 }
Ejemplo n.º 6
0
 /// <summary>Snippet for TestIamPermissions</summary>
 public void TestIamPermissions()
 {
     // Snippet: TestIamPermissions(string, string, string, TestPermissionsRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string project  = "";
     string zone     = "";
     string resource = "";
     TestPermissionsRequest testPermissionsRequestResource = new TestPermissionsRequest();
     // Make the request
     TestPermissionsResponse response = nodeGroupsClient.TestIamPermissions(project, zone, resource, testPermissionsRequestResource);
     // End snippet
 }
Ejemplo n.º 7
0
 /// <summary>Snippet for SetNodeTemplate</summary>
 public void SetNodeTemplate()
 {
     // Snippet: SetNodeTemplate(string, string, string, NodeGroupsSetNodeTemplateRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     string project   = "";
     string zone      = "";
     string nodeGroup = "";
     NodeGroupsSetNodeTemplateRequest nodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest();
     // Make the request
     Operation response = nodeGroupsClient.SetNodeTemplate(project, zone, nodeGroup, nodeGroupsSetNodeTemplateRequestResource);
     // End snippet
 }
Ejemplo n.º 8
0
 /// <summary>Snippet for Get</summary>
 public void GetRequestObject()
 {
     // Snippet: Get(GetNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     GetNodeGroupRequest request = new GetNodeGroupRequest
     {
         Zone      = "",
         NodeGroup = "",
         Project   = "",
     };
     // Make the request
     NodeGroup response = nodeGroupsClient.Get(request);
     // End snippet
 }
Ejemplo n.º 9
0
 /// <summary>Snippet for TestIamPermissions</summary>
 public void TestIamPermissionsRequestObject()
 {
     // Snippet: TestIamPermissions(TestIamPermissionsNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     TestIamPermissionsNodeGroupRequest request = new TestIamPermissionsNodeGroupRequest
     {
         Zone = "",
         TestPermissionsRequestResource = new TestPermissionsRequest(),
         Resource = "",
         Project  = "",
     };
     // Make the request
     TestPermissionsResponse response = nodeGroupsClient.TestIamPermissions(request);
     // End snippet
 }
Ejemplo n.º 10
0
 /// <summary>Snippet for SetIamPolicy</summary>
 public void SetIamPolicyRequestObject()
 {
     // Snippet: SetIamPolicy(SetIamPolicyNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     SetIamPolicyNodeGroupRequest request = new SetIamPolicyNodeGroupRequest
     {
         Zone = "",
         ZoneSetPolicyRequestResource = new ZoneSetPolicyRequest(),
         Resource = "",
         Project  = "",
     };
     // Make the request
     Policy response = nodeGroupsClient.SetIamPolicy(request);
     // End snippet
 }
Ejemplo n.º 11
0
 /// <summary>Snippet for Delete</summary>
 public void DeleteRequestObject()
 {
     // Snippet: Delete(DeleteNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     DeleteNodeGroupRequest request = new DeleteNodeGroupRequest
     {
         Zone      = "",
         RequestId = "",
         NodeGroup = "",
         Project   = "",
     };
     // Make the request
     Operation response = nodeGroupsClient.Delete(request);
     // End snippet
 }
Ejemplo n.º 12
0
 /// <summary>Snippet for GetIamPolicy</summary>
 public void GetIamPolicyRequestObject()
 {
     // Snippet: GetIamPolicy(GetIamPolicyNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     GetIamPolicyNodeGroupRequest request = new GetIamPolicyNodeGroupRequest
     {
         Zone     = "",
         Resource = "",
         Project  = "",
         OptionsRequestedPolicyVersion = 0,
     };
     // Make the request
     Policy response = nodeGroupsClient.GetIamPolicy(request);
     // End snippet
 }
Ejemplo n.º 13
0
 /// <summary>Snippet for SetNodeTemplate</summary>
 public void SetNodeTemplateRequestObject()
 {
     // Snippet: SetNodeTemplate(SetNodeTemplateNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     SetNodeTemplateNodeGroupRequest request = new SetNodeTemplateNodeGroupRequest
     {
         Zone      = "",
         RequestId = "",
         NodeGroupsSetNodeTemplateRequestResource = new NodeGroupsSetNodeTemplateRequest(),
         NodeGroup = "",
         Project   = "",
     };
     // Make the request
     Operation response = nodeGroupsClient.SetNodeTemplate(request);
     // End snippet
 }
Ejemplo n.º 14
0
 /// <summary>Snippet for Patch</summary>
 public void PatchRequestObject()
 {
     // Snippet: Patch(PatchNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     PatchNodeGroupRequest request = new PatchNodeGroupRequest
     {
         Zone              = "",
         RequestId         = "",
         NodeGroup         = "",
         Project           = "",
         NodeGroupResource = new NodeGroup(),
     };
     // Make the request
     Operation response = nodeGroupsClient.Patch(request);
     // End snippet
 }
Ejemplo n.º 15
0
 /// <summary>Snippet for AddNodes</summary>
 public void AddNodesRequestObject()
 {
     // Snippet: AddNodes(AddNodesNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     AddNodesNodeGroupRequest request = new AddNodesNodeGroupRequest
     {
         Zone      = "",
         RequestId = "",
         NodeGroupsAddNodesRequestResource = new NodeGroupsAddNodesRequest(),
         NodeGroup = "",
         Project   = "",
     };
     // Make the request
     Operation response = nodeGroupsClient.AddNodes(request);
     // End snippet
 }
Ejemplo n.º 16
0
 /// <summary>Snippet for Insert</summary>
 public void InsertRequestObject()
 {
     // Snippet: Insert(InsertNodeGroupRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     InsertNodeGroupRequest request = new InsertNodeGroupRequest
     {
         Zone              = "",
         RequestId         = "",
         InitialNodeCount  = 0,
         Project           = "",
         NodeGroupResource = new NodeGroup(),
     };
     // Make the request
     Operation response = nodeGroupsClient.Insert(request);
     // End snippet
 }
Ejemplo n.º 17
0
 /// <summary>Snippet for AggregatedList</summary>
 public void AggregatedListRequestObject()
 {
     // Snippet: AggregatedList(AggregatedListNodeGroupsRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     AggregatedListNodeGroupsRequest request = new AggregatedListNodeGroupsRequest
     {
         PageToken            = "",
         MaxResults           = 0U,
         Filter               = "",
         IncludeAllScopes     = false,
         OrderBy              = "",
         Project              = "",
         ReturnPartialSuccess = false,
     };
     // Make the request
     NodeGroupAggregatedList response = nodeGroupsClient.AggregatedList(request);
     // End snippet
 }
Ejemplo n.º 18
0
 /// <summary>Snippet for List</summary>
 public void ListRequestObject()
 {
     // Snippet: List(ListNodeGroupsRequest, CallSettings)
     // Create client
     NodeGroupsClient nodeGroupsClient = NodeGroupsClient.Create();
     // Initialize request argument(s)
     ListNodeGroupsRequest request = new ListNodeGroupsRequest
     {
         Zone                 = "",
         PageToken            = "",
         MaxResults           = 0U,
         Filter               = "",
         OrderBy              = "",
         Project              = "",
         ReturnPartialSuccess = false,
     };
     // Make the request
     NodeGroupList response = nodeGroupsClient.List(request);
     // End snippet
 }