public abstract class GkeHubClient
GkeHub client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.GkeHub.V1Assembly
Google.Cloud.GkeHub.V1.dll
Remarks
The GKE Hub service handles the registration of many Kubernetes clusters to Google Cloud, and the management of multi-cluster features over those clusters.
The GKE Hub service operates on the following resources:
- [Membership][google.cloud.gkehub.v1.Membership]
- [Feature][google.cloud.gkehub.v1.Feature]
GKE Hub is currently only available in the global region.
Membership management may be non-trivial: it is recommended to use one of the Google-provided client libraries or tools where possible when working with Membership resources.
Properties
CreateFeatureOperationsClient
public virtual OperationsClient CreateFeatureOperationsClient { get; }
The long-running operations client for CreateFeature
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateMembershipOperationsClient
public virtual OperationsClient CreateMembershipOperationsClient { get; }
The long-running operations client for CreateMembership
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the GkeHub service, which is a host of "gkehub.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default GkeHub scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default GkeHub scopes are:
DeleteFeatureOperationsClient
public virtual OperationsClient DeleteFeatureOperationsClient { get; }
The long-running operations client for DeleteFeature
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteMembershipOperationsClient
public virtual OperationsClient DeleteMembershipOperationsClient { get; }
The long-running operations client for DeleteMembership
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual GkeHub.GkeHubClient GrpcClient { get; }
The underlying gRPC GkeHub client
Property Value | |
---|---|
Type | Description |
GkeHub.GkeHubClient |
UpdateFeatureOperationsClient
public virtual OperationsClient UpdateFeatureOperationsClient { get; }
The long-running operations client for UpdateFeature
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateMembershipOperationsClient
public virtual OperationsClient UpdateMembershipOperationsClient { get; }
The long-running operations client for UpdateMembership
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
Create()
public static GkeHubClient Create()
Synchronously creates a GkeHubClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use GkeHubClientBuilder.
Returns | |
---|---|
Type | Description |
GkeHubClient | The created GkeHubClient. |
CreateAsync(CancellationToken)
public static Task<GkeHubClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a GkeHubClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use GkeHubClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<GkeHubClient> | The task representing the created GkeHubClient. |
CreateFeature(CreateFeatureRequest, CallSettings)
public virtual Operation<Feature, OperationMetadata> CreateFeature(CreateFeatureRequest request, CallSettings callSettings = null)
Adds a new Feature.
Parameters | |
---|---|
Name | Description |
request | CreateFeatureRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Feature, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
CreateFeatureRequest request = new CreateFeatureRequest
{
Parent = "",
FeatureId = "",
Resource = new Feature(),
RequestId = "",
};
// Make the request
Operation<Feature, OperationMetadata> response = gkeHubClient.CreateFeature(request);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeature(String, Feature, String, CallSettings)
public virtual Operation<Feature, OperationMetadata> CreateFeature(string parent, Feature resource, string featureId, CallSettings callSettings = null)
Adds a new Feature.
Parameters | |
---|---|
Name | Description |
parent | String The parent (project and location) where the Feature will be created.
Specified in the format |
resource | Feature The Feature resource to create. |
featureId | String The ID of the feature to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Feature, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "";
Feature resource = new Feature();
string featureId = "";
// Make the request
Operation<Feature, OperationMetadata> response = gkeHubClient.CreateFeature(parent, resource, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(CreateFeatureRequest, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> CreateFeatureAsync(CreateFeatureRequest request, CallSettings callSettings = null)
Adds a new Feature.
Parameters | |
---|---|
Name | Description |
request | CreateFeatureRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateFeatureRequest request = new CreateFeatureRequest
{
Parent = "",
FeatureId = "",
Resource = new Feature(),
RequestId = "",
};
// Make the request
Operation<Feature, OperationMetadata> response = await gkeHubClient.CreateFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(CreateFeatureRequest, CancellationToken)
public virtual Task<Operation<Feature, OperationMetadata>> CreateFeatureAsync(CreateFeatureRequest request, CancellationToken cancellationToken)
Adds a new Feature.
Parameters | |
---|---|
Name | Description |
request | CreateFeatureRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateFeatureRequest request = new CreateFeatureRequest
{
Parent = "",
FeatureId = "",
Resource = new Feature(),
RequestId = "",
};
// Make the request
Operation<Feature, OperationMetadata> response = await gkeHubClient.CreateFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(String, Feature, String, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> CreateFeatureAsync(string parent, Feature resource, string featureId, CallSettings callSettings = null)
Adds a new Feature.
Parameters | |
---|---|
Name | Description |
parent | String The parent (project and location) where the Feature will be created.
Specified in the format |
resource | Feature The Feature resource to create. |
featureId | String The ID of the feature to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
Feature resource = new Feature();
string featureId = "";
// Make the request
Operation<Feature, OperationMetadata> response = await gkeHubClient.CreateFeatureAsync(parent, resource, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateFeatureAsync(String, Feature, String, CancellationToken)
public virtual Task<Operation<Feature, OperationMetadata>> CreateFeatureAsync(string parent, Feature resource, string featureId, CancellationToken cancellationToken)
Adds a new Feature.
Parameters | |
---|---|
Name | Description |
parent | String The parent (project and location) where the Feature will be created.
Specified in the format |
resource | Feature The Feature resource to create. |
featureId | String The ID of the feature to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
Feature resource = new Feature();
string featureId = "";
// Make the request
Operation<Feature, OperationMetadata> response = await gkeHubClient.CreateFeatureAsync(parent, resource, featureId);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
CreateMembership(LocationName, Membership, String, CallSettings)
public virtual Operation<Membership, OperationMetadata> CreateMembership(LocationName parent, Membership resource, string membershipId, CallSettings callSettings = null)
Creates a new Membership.
This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent (project and location) where the Memberships will be created.
Specified in the format |
resource | Membership Required. The membership to create. |
membershipId | String Required. Client chosen ID for the membership.
Which can be expressed as the regex: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Membership, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Membership resource = new Membership();
string membershipId = "";
// Make the request
Operation<Membership, OperationMetadata> response = gkeHubClient.CreateMembership(parent, resource, membershipId);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembership(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
CreateMembership(CreateMembershipRequest, CallSettings)
public virtual Operation<Membership, OperationMetadata> CreateMembership(CreateMembershipRequest request, CallSettings callSettings = null)
Creates a new Membership.
This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
Parameters | |
---|---|
Name | Description |
request | CreateMembershipRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Membership, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
CreateMembershipRequest request = new CreateMembershipRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
MembershipId = "",
Resource = new Membership(),
RequestId = "",
};
// Make the request
Operation<Membership, OperationMetadata> response = gkeHubClient.CreateMembership(request);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembership(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
CreateMembership(String, Membership, String, CallSettings)
public virtual Operation<Membership, OperationMetadata> CreateMembership(string parent, Membership resource, string membershipId, CallSettings callSettings = null)
Creates a new Membership.
This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent (project and location) where the Memberships will be created.
Specified in the format |
resource | Membership Required. The membership to create. |
membershipId | String Required. Client chosen ID for the membership.
Which can be expressed as the regex: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Membership, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Membership resource = new Membership();
string membershipId = "";
// Make the request
Operation<Membership, OperationMetadata> response = gkeHubClient.CreateMembership(parent, resource, membershipId);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembership(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
CreateMembershipAsync(LocationName, Membership, String, CallSettings)
public virtual Task<Operation<Membership, OperationMetadata>> CreateMembershipAsync(LocationName parent, Membership resource, string membershipId, CallSettings callSettings = null)
Creates a new Membership.
This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent (project and location) where the Memberships will be created.
Specified in the format |
resource | Membership Required. The membership to create. |
membershipId | String Required. Client chosen ID for the membership.
Which can be expressed as the regex: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Membership resource = new Membership();
string membershipId = "";
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.CreateMembershipAsync(parent, resource, membershipId);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
CreateMembershipAsync(LocationName, Membership, String, CancellationToken)
public virtual Task<Operation<Membership, OperationMetadata>> CreateMembershipAsync(LocationName parent, Membership resource, string membershipId, CancellationToken cancellationToken)
Creates a new Membership.
This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent (project and location) where the Memberships will be created.
Specified in the format |
resource | Membership Required. The membership to create. |
membershipId | String Required. Client chosen ID for the membership.
Which can be expressed as the regex: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Membership resource = new Membership();
string membershipId = "";
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.CreateMembershipAsync(parent, resource, membershipId);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
CreateMembershipAsync(CreateMembershipRequest, CallSettings)
public virtual Task<Operation<Membership, OperationMetadata>> CreateMembershipAsync(CreateMembershipRequest request, CallSettings callSettings = null)
Creates a new Membership.
This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
Parameters | |
---|---|
Name | Description |
request | CreateMembershipRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateMembershipRequest request = new CreateMembershipRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
MembershipId = "",
Resource = new Membership(),
RequestId = "",
};
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.CreateMembershipAsync(request);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
CreateMembershipAsync(CreateMembershipRequest, CancellationToken)
public virtual Task<Operation<Membership, OperationMetadata>> CreateMembershipAsync(CreateMembershipRequest request, CancellationToken cancellationToken)
Creates a new Membership.
This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
Parameters | |
---|---|
Name | Description |
request | CreateMembershipRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateMembershipRequest request = new CreateMembershipRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
MembershipId = "",
Resource = new Membership(),
RequestId = "",
};
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.CreateMembershipAsync(request);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
CreateMembershipAsync(String, Membership, String, CallSettings)
public virtual Task<Operation<Membership, OperationMetadata>> CreateMembershipAsync(string parent, Membership resource, string membershipId, CallSettings callSettings = null)
Creates a new Membership.
This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent (project and location) where the Memberships will be created.
Specified in the format |
resource | Membership Required. The membership to create. |
membershipId | String Required. Client chosen ID for the membership.
Which can be expressed as the regex: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Membership resource = new Membership();
string membershipId = "";
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.CreateMembershipAsync(parent, resource, membershipId);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
CreateMembershipAsync(String, Membership, String, CancellationToken)
public virtual Task<Operation<Membership, OperationMetadata>> CreateMembershipAsync(string parent, Membership resource, string membershipId, CancellationToken cancellationToken)
Creates a new Membership.
This is currently only supported for GKE clusters on Google Cloud. To register other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/registering-a-cluster.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent (project and location) where the Memberships will be created.
Specified in the format |
resource | Membership Required. The membership to create. |
membershipId | String Required. Client chosen ID for the membership.
Which can be expressed as the regex: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Membership resource = new Membership();
string membershipId = "";
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.CreateMembershipAsync(parent, resource, membershipId);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
DeleteFeature(DeleteFeatureRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFeature(DeleteFeatureRequest request, CallSettings callSettings = null)
Removes a Feature.
Parameters | |
---|---|
Name | Description |
request | DeleteFeatureRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteFeatureRequest request = new DeleteFeatureRequest
{
Name = "",
Force = false,
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteFeature(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceDeleteFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeature(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFeature(string name, CallSettings callSettings = null)
Removes a Feature.
Parameters | |
---|---|
Name | Description |
name | String The Feature resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteFeature(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceDeleteFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(DeleteFeatureRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFeatureAsync(DeleteFeatureRequest request, CallSettings callSettings = null)
Removes a Feature.
Parameters | |
---|---|
Name | Description |
request | DeleteFeatureRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteFeatureRequest request = new DeleteFeatureRequest
{
Name = "",
Force = false,
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(DeleteFeatureRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFeatureAsync(DeleteFeatureRequest request, CancellationToken cancellationToken)
Removes a Feature.
Parameters | |
---|---|
Name | Description |
request | DeleteFeatureRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteFeatureRequest request = new DeleteFeatureRequest
{
Name = "",
Force = false,
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFeatureAsync(string name, CallSettings callSettings = null)
Removes a Feature.
Parameters | |
---|---|
Name | Description |
name | String The Feature resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFeatureAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteFeatureAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFeatureAsync(string name, CancellationToken cancellationToken)
Removes a Feature.
Parameters | |
---|---|
Name | Description |
name | String The Feature resource name in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFeatureAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMembership(DeleteMembershipRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMembership(DeleteMembershipRequest request, CallSettings callSettings = null)
Removes a Membership.
This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
Parameters | |
---|---|
Name | Description |
request | DeleteMembershipRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteMembershipRequest request = new DeleteMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteMembership(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceDeleteMembership(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMembership(MembershipName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMembership(MembershipName name, CallSettings callSettings = null)
Removes a Membership.
This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
Parameters | |
---|---|
Name | Description |
name | MembershipName Required. The Membership resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipName name = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteMembership(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceDeleteMembership(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMembership(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMembership(string name, CallSettings callSettings = null)
Removes a Membership.
This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
Parameters | |
---|---|
Name | Description |
name | String Required. The Membership resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteMembership(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceDeleteMembership(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMembershipAsync(DeleteMembershipRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipAsync(DeleteMembershipRequest request, CallSettings callSettings = null)
Removes a Membership.
This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
Parameters | |
---|---|
Name | Description |
request | DeleteMembershipRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteMembershipRequest request = new DeleteMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMembershipAsync(DeleteMembershipRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipAsync(DeleteMembershipRequest request, CancellationToken cancellationToken)
Removes a Membership.
This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
Parameters | |
---|---|
Name | Description |
request | DeleteMembershipRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteMembershipRequest request = new DeleteMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipAsync(request);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMembershipAsync(MembershipName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipAsync(MembershipName name, CallSettings callSettings = null)
Removes a Membership.
This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
Parameters | |
---|---|
Name | Description |
name | MembershipName Required. The Membership resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName name = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMembershipAsync(MembershipName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipAsync(MembershipName name, CancellationToken cancellationToken)
Removes a Membership.
This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
Parameters | |
---|---|
Name | Description |
name | MembershipName Required. The Membership resource name in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName name = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMembershipAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipAsync(string name, CallSettings callSettings = null)
Removes a Membership.
This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
Parameters | |
---|---|
Name | Description |
name | String Required. The Membership resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
DeleteMembershipAsync(String, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipAsync(string name, CancellationToken cancellationToken)
Removes a Membership.
This is currently only supported for GKE clusters on Google Cloud. To unregister other clusters, follow the instructions at https://cloud.google.com/anthos/multicluster-management/connect/unregistering-a-cluster.
Parameters | |
---|---|
Name | Description |
name | String Required. The Membership resource name in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipAsync(name);
// Poll until the returned long-running operation is complete
Operation<Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Empty result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Empty, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceDeleteMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Empty retrievedResult = retrievedResponse.Result;
}
GenerateConnectManifest(GenerateConnectManifestRequest, CallSettings)
public virtual GenerateConnectManifestResponse GenerateConnectManifest(GenerateConnectManifestRequest request, CallSettings callSettings = null)
Generates the manifest for deployment of the GKE connect agent.
This method is used internally by Google-provided libraries. Most clients should not need to call this method directly.
Parameters | |
---|---|
Name | Description |
request | GenerateConnectManifestRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
GenerateConnectManifestResponse | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GenerateConnectManifestRequest request = new GenerateConnectManifestRequest
{
Name = "",
Namespace = "",
Proxy = ByteString.Empty,
Version = "",
IsUpgrade = false,
Registry = "",
ImagePullSecretContent = ByteString.Empty,
};
// Make the request
GenerateConnectManifestResponse response = gkeHubClient.GenerateConnectManifest(request);
GenerateConnectManifestAsync(GenerateConnectManifestRequest, CallSettings)
public virtual Task<GenerateConnectManifestResponse> GenerateConnectManifestAsync(GenerateConnectManifestRequest request, CallSettings callSettings = null)
Generates the manifest for deployment of the GKE connect agent.
This method is used internally by Google-provided libraries. Most clients should not need to call this method directly.
Parameters | |
---|---|
Name | Description |
request | GenerateConnectManifestRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<GenerateConnectManifestResponse> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GenerateConnectManifestRequest request = new GenerateConnectManifestRequest
{
Name = "",
Namespace = "",
Proxy = ByteString.Empty,
Version = "",
IsUpgrade = false,
Registry = "",
ImagePullSecretContent = ByteString.Empty,
};
// Make the request
GenerateConnectManifestResponse response = await gkeHubClient.GenerateConnectManifestAsync(request);
GenerateConnectManifestAsync(GenerateConnectManifestRequest, CancellationToken)
public virtual Task<GenerateConnectManifestResponse> GenerateConnectManifestAsync(GenerateConnectManifestRequest request, CancellationToken cancellationToken)
Generates the manifest for deployment of the GKE connect agent.
This method is used internally by Google-provided libraries. Most clients should not need to call this method directly.
Parameters | |
---|---|
Name | Description |
request | GenerateConnectManifestRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<GenerateConnectManifestResponse> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GenerateConnectManifestRequest request = new GenerateConnectManifestRequest
{
Name = "",
Namespace = "",
Proxy = ByteString.Empty,
Version = "",
IsUpgrade = false,
Registry = "",
ImagePullSecretContent = ByteString.Empty,
};
// Make the request
GenerateConnectManifestResponse response = await gkeHubClient.GenerateConnectManifestAsync(request);
GetFeature(GetFeatureRequest, CallSettings)
public virtual Feature GetFeature(GetFeatureRequest request, CallSettings callSettings = null)
Gets details of a single Feature.
Parameters | |
---|---|
Name | Description |
request | GetFeatureRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Feature | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GetFeatureRequest request = new GetFeatureRequest { Name = "", };
// Make the request
Feature response = gkeHubClient.GetFeature(request);
GetFeature(String, CallSettings)
public virtual Feature GetFeature(string name, CallSettings callSettings = null)
Gets details of a single Feature.
Parameters | |
---|---|
Name | Description |
name | String The Feature resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Feature | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "";
// Make the request
Feature response = gkeHubClient.GetFeature(name);
GetFeatureAsync(GetFeatureRequest, CallSettings)
public virtual Task<Feature> GetFeatureAsync(GetFeatureRequest request, CallSettings callSettings = null)
Gets details of a single Feature.
Parameters | |
---|---|
Name | Description |
request | GetFeatureRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Feature> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetFeatureRequest request = new GetFeatureRequest { Name = "", };
// Make the request
Feature response = await gkeHubClient.GetFeatureAsync(request);
GetFeatureAsync(GetFeatureRequest, CancellationToken)
public virtual Task<Feature> GetFeatureAsync(GetFeatureRequest request, CancellationToken cancellationToken)
Gets details of a single Feature.
Parameters | |
---|---|
Name | Description |
request | GetFeatureRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Feature> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetFeatureRequest request = new GetFeatureRequest { Name = "", };
// Make the request
Feature response = await gkeHubClient.GetFeatureAsync(request);
GetFeatureAsync(String, CallSettings)
public virtual Task<Feature> GetFeatureAsync(string name, CallSettings callSettings = null)
Gets details of a single Feature.
Parameters | |
---|---|
Name | Description |
name | String The Feature resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Feature> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Feature response = await gkeHubClient.GetFeatureAsync(name);
GetFeatureAsync(String, CancellationToken)
public virtual Task<Feature> GetFeatureAsync(string name, CancellationToken cancellationToken)
Gets details of a single Feature.
Parameters | |
---|---|
Name | Description |
name | String The Feature resource name in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Feature> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "";
// Make the request
Feature response = await gkeHubClient.GetFeatureAsync(name);
GetMembership(GetMembershipRequest, CallSettings)
public virtual Membership GetMembership(GetMembershipRequest request, CallSettings callSettings = null)
Gets the details of a Membership.
Parameters | |
---|---|
Name | Description |
request | GetMembershipRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Membership | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GetMembershipRequest request = new GetMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
};
// Make the request
Membership response = gkeHubClient.GetMembership(request);
GetMembership(MembershipName, CallSettings)
public virtual Membership GetMembership(MembershipName name, CallSettings callSettings = null)
Gets the details of a Membership.
Parameters | |
---|---|
Name | Description |
name | MembershipName Required. The Membership resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Membership | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipName name = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
Membership response = gkeHubClient.GetMembership(name);
GetMembership(String, CallSettings)
public virtual Membership GetMembership(string name, CallSettings callSettings = null)
Gets the details of a Membership.
Parameters | |
---|---|
Name | Description |
name | String Required. The Membership resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Membership | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
// Make the request
Membership response = gkeHubClient.GetMembership(name);
GetMembershipAsync(GetMembershipRequest, CallSettings)
public virtual Task<Membership> GetMembershipAsync(GetMembershipRequest request, CallSettings callSettings = null)
Gets the details of a Membership.
Parameters | |
---|---|
Name | Description |
request | GetMembershipRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Membership> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetMembershipRequest request = new GetMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
};
// Make the request
Membership response = await gkeHubClient.GetMembershipAsync(request);
GetMembershipAsync(GetMembershipRequest, CancellationToken)
public virtual Task<Membership> GetMembershipAsync(GetMembershipRequest request, CancellationToken cancellationToken)
Gets the details of a Membership.
Parameters | |
---|---|
Name | Description |
request | GetMembershipRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Membership> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetMembershipRequest request = new GetMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
};
// Make the request
Membership response = await gkeHubClient.GetMembershipAsync(request);
GetMembershipAsync(MembershipName, CallSettings)
public virtual Task<Membership> GetMembershipAsync(MembershipName name, CallSettings callSettings = null)
Gets the details of a Membership.
Parameters | |
---|---|
Name | Description |
name | MembershipName Required. The Membership resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Membership> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName name = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
Membership response = await gkeHubClient.GetMembershipAsync(name);
GetMembershipAsync(MembershipName, CancellationToken)
public virtual Task<Membership> GetMembershipAsync(MembershipName name, CancellationToken cancellationToken)
Gets the details of a Membership.
Parameters | |
---|---|
Name | Description |
name | MembershipName Required. The Membership resource name in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Membership> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName name = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
Membership response = await gkeHubClient.GetMembershipAsync(name);
GetMembershipAsync(String, CallSettings)
public virtual Task<Membership> GetMembershipAsync(string name, CallSettings callSettings = null)
Gets the details of a Membership.
Parameters | |
---|---|
Name | Description |
name | String Required. The Membership resource name in the format
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Membership> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
// Make the request
Membership response = await gkeHubClient.GetMembershipAsync(name);
GetMembershipAsync(String, CancellationToken)
public virtual Task<Membership> GetMembershipAsync(string name, CancellationToken cancellationToken)
Gets the details of a Membership.
Parameters | |
---|---|
Name | Description |
name | String Required. The Membership resource name in the format
|
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Membership> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
// Make the request
Membership response = await gkeHubClient.GetMembershipAsync(name);
ListFeatures(ListFeaturesRequest, CallSettings)
public virtual PagedEnumerable<ListFeaturesResponse, Feature> ListFeatures(ListFeaturesRequest request, CallSettings callSettings = null)
Lists Features in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListFeaturesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListFeaturesResponse, Feature> | A pageable sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListFeaturesRequest request = new ListFeaturesRequest
{
Parent = "",
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListFeaturesResponse, Feature> response = gkeHubClient.ListFeatures(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Feature item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeaturesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeatures(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListFeaturesResponse, Feature> ListFeatures(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Features in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String The parent (project and location) where the Features will be listed.
Specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListFeaturesResponse, Feature> | A pageable sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedEnumerable<ListFeaturesResponse, Feature> response = gkeHubClient.ListFeatures(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Feature item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListFeaturesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeaturesAsync(ListFeaturesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFeaturesResponse, Feature> ListFeaturesAsync(ListFeaturesRequest request, CallSettings callSettings = null)
Lists Features in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListFeaturesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListFeaturesResponse, Feature> | A pageable asynchronous sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListFeaturesRequest request = new ListFeaturesRequest
{
Parent = "",
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListFeaturesResponse, Feature> response = gkeHubClient.ListFeaturesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Feature item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFeaturesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListFeaturesAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListFeaturesResponse, Feature> ListFeaturesAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Features in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String The parent (project and location) where the Features will be listed.
Specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListFeaturesResponse, Feature> | A pageable asynchronous sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "";
// Make the request
PagedAsyncEnumerable<ListFeaturesResponse, Feature> response = gkeHubClient.ListFeaturesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Feature item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListFeaturesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Feature item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Feature> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Feature item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMemberships(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListMembershipsResponse, Membership> ListMemberships(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Memberships in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent (project and location) where the Memberships will be listed.
Specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListMembershipsResponse, Membership> | A pageable sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListMembershipsResponse, Membership> response = gkeHubClient.ListMemberships(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Membership item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListMembershipsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Membership item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Membership> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Membership item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMemberships(ListMembershipsRequest, CallSettings)
public virtual PagedEnumerable<ListMembershipsResponse, Membership> ListMemberships(ListMembershipsRequest request, CallSettings callSettings = null)
Lists Memberships in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListMembershipsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListMembershipsResponse, Membership> | A pageable sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListMembershipsRequest request = new ListMembershipsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListMembershipsResponse, Membership> response = gkeHubClient.ListMemberships(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Membership item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListMembershipsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Membership item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Membership> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Membership item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMemberships(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListMembershipsResponse, Membership> ListMemberships(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Memberships in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent (project and location) where the Memberships will be listed.
Specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListMembershipsResponse, Membership> | A pageable sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListMembershipsResponse, Membership> response = gkeHubClient.ListMemberships(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Membership item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListMembershipsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Membership item in page)
{
// Do something with each item
Console.WriteLine(item);
}
}
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Membership> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Membership item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMembershipsAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipsResponse, Membership> ListMembershipsAsync(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Memberships in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The parent (project and location) where the Memberships will be listed.
Specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListMembershipsResponse, Membership> | A pageable asynchronous sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListMembershipsResponse, Membership> response = gkeHubClient.ListMembershipsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Membership item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListMembershipsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Membership item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Membership> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Membership item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMembershipsAsync(ListMembershipsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipsResponse, Membership> ListMembershipsAsync(ListMembershipsRequest request, CallSettings callSettings = null)
Lists Memberships in a given project and location.
Parameters | |
---|---|
Name | Description |
request | ListMembershipsRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListMembershipsResponse, Membership> | A pageable asynchronous sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListMembershipsRequest request = new ListMembershipsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListMembershipsResponse, Membership> response = gkeHubClient.ListMembershipsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Membership item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListMembershipsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Membership item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Membership> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Membership item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
ListMembershipsAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipsResponse, Membership> ListMembershipsAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Lists Memberships in a given project and location.
Parameters | |
---|---|
Name | Description |
parent | String Required. The parent (project and location) where the Memberships will be listed.
Specified in the format |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListMembershipsResponse, Membership> | A pageable asynchronous sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListMembershipsResponse, Membership> response = gkeHubClient.ListMembershipsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Membership item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListMembershipsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Membership item in page)
{
// Do something with each item
Console.WriteLine(item);
}
});
// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Membership> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Membership item in singlePage)
{
// Do something with each item
Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;
PollOnceCreateFeature(String, CallSettings)
public virtual Operation<Feature, OperationMetadata> PollOnceCreateFeature(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateFeature
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Feature, OperationMetadata> | The result of polling the operation. |
PollOnceCreateFeatureAsync(String, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> PollOnceCreateFeatureAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateFeature
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceCreateMembership(String, CallSettings)
public virtual Operation<Membership, OperationMetadata> PollOnceCreateMembership(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateMembership
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Membership, OperationMetadata> | The result of polling the operation. |
PollOnceCreateMembershipAsync(String, CallSettings)
public virtual Task<Operation<Membership, OperationMetadata>> PollOnceCreateMembershipAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateMembership
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteFeature(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteFeature(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteFeature
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteFeatureAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteFeatureAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteFeature
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceDeleteMembership(String, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteMembership(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteMembership
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Empty, OperationMetadata> | The result of polling the operation. |
PollOnceDeleteMembershipAsync(String, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteMembershipAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteMembership
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Empty, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateFeature(String, CallSettings)
public virtual Operation<Feature, OperationMetadata> PollOnceUpdateFeature(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateFeature
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Feature, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateFeatureAsync(String, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> PollOnceUpdateFeatureAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateFeature
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A task representing the result of polling the operation. |
PollOnceUpdateMembership(String, CallSettings)
public virtual Operation<Membership, OperationMetadata> PollOnceUpdateMembership(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateMembership
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Membership, OperationMetadata> | The result of polling the operation. |
PollOnceUpdateMembershipAsync(String, CallSettings)
public virtual Task<Operation<Membership, OperationMetadata>> PollOnceUpdateMembershipAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateMembership
.
Parameters | |
---|---|
Name | Description |
operationName | String The name of a previously invoked operation. Must not be |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A task representing the result of polling the operation. |
ShutdownDefaultChannelsAsync()
public static Task ShutdownDefaultChannelsAsync()
Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.
Returns | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.
UpdateFeature(UpdateFeatureRequest, CallSettings)
public virtual Operation<Feature, OperationMetadata> UpdateFeature(UpdateFeatureRequest request, CallSettings callSettings = null)
Updates an existing Feature.
Parameters | |
---|---|
Name | Description |
request | UpdateFeatureRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Feature, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateFeatureRequest request = new UpdateFeatureRequest
{
Name = "",
UpdateMask = new FieldMask(),
Resource = new Feature(),
RequestId = "",
};
// Make the request
Operation<Feature, OperationMetadata> response = gkeHubClient.UpdateFeature(request);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeature(String, Feature, FieldMask, CallSettings)
public virtual Operation<Feature, OperationMetadata> UpdateFeature(string name, Feature resource, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing Feature.
Parameters | |
---|---|
Name | Description |
name | String The Feature resource name in the format
|
resource | Feature Only fields specified in update_mask are updated.
If you specify a field in the update_mask but don't specify its value here
that field will be deleted.
If you are updating a map field, set the value of a key to null or empty
string to delete the key from the map. It's not possible to update a key's
value to the empty string.
If you specify the update_mask to be a special path "*", fully replaces all
user-modifiable fields to match |
updateMask | FieldMask Mask of fields to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Feature, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "";
Feature resource = new Feature();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Feature, OperationMetadata> response = gkeHubClient.UpdateFeature(name, resource, updateMask);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateFeature(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeatureAsync(UpdateFeatureRequest, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> UpdateFeatureAsync(UpdateFeatureRequest request, CallSettings callSettings = null)
Updates an existing Feature.
Parameters | |
---|---|
Name | Description |
request | UpdateFeatureRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateFeatureRequest request = new UpdateFeatureRequest
{
Name = "",
UpdateMask = new FieldMask(),
Resource = new Feature(),
RequestId = "",
};
// Make the request
Operation<Feature, OperationMetadata> response = await gkeHubClient.UpdateFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeatureAsync(UpdateFeatureRequest, CancellationToken)
public virtual Task<Operation<Feature, OperationMetadata>> UpdateFeatureAsync(UpdateFeatureRequest request, CancellationToken cancellationToken)
Updates an existing Feature.
Parameters | |
---|---|
Name | Description |
request | UpdateFeatureRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateFeatureRequest request = new UpdateFeatureRequest
{
Name = "",
UpdateMask = new FieldMask(),
Resource = new Feature(),
RequestId = "",
};
// Make the request
Operation<Feature, OperationMetadata> response = await gkeHubClient.UpdateFeatureAsync(request);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeatureAsync(String, Feature, FieldMask, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> UpdateFeatureAsync(string name, Feature resource, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing Feature.
Parameters | |
---|---|
Name | Description |
name | String The Feature resource name in the format
|
resource | Feature Only fields specified in update_mask are updated.
If you specify a field in the update_mask but don't specify its value here
that field will be deleted.
If you are updating a map field, set the value of a key to null or empty
string to delete the key from the map. It's not possible to update a key's
value to the empty string.
If you specify the update_mask to be a special path "*", fully replaces all
user-modifiable fields to match |
updateMask | FieldMask Mask of fields to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "";
Feature resource = new Feature();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Feature, OperationMetadata> response = await gkeHubClient.UpdateFeatureAsync(name, resource, updateMask);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateFeatureAsync(String, Feature, FieldMask, CancellationToken)
public virtual Task<Operation<Feature, OperationMetadata>> UpdateFeatureAsync(string name, Feature resource, FieldMask updateMask, CancellationToken cancellationToken)
Updates an existing Feature.
Parameters | |
---|---|
Name | Description |
name | String The Feature resource name in the format
|
resource | Feature Only fields specified in update_mask are updated.
If you specify a field in the update_mask but don't specify its value here
that field will be deleted.
If you are updating a map field, set the value of a key to null or empty
string to delete the key from the map. It's not possible to update a key's
value to the empty string.
If you specify the update_mask to be a special path "*", fully replaces all
user-modifiable fields to match |
updateMask | FieldMask Mask of fields to update. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Feature, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "";
Feature resource = new Feature();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Feature, OperationMetadata> response = await gkeHubClient.UpdateFeatureAsync(name, resource, updateMask);
// Poll until the returned long-running operation is complete
Operation<Feature, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Feature result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Feature, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateFeatureAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Feature retrievedResult = retrievedResponse.Result;
}
UpdateMembership(UpdateMembershipRequest, CallSettings)
public virtual Operation<Membership, OperationMetadata> UpdateMembership(UpdateMembershipRequest request, CallSettings callSettings = null)
Updates an existing Membership.
Parameters | |
---|---|
Name | Description |
request | UpdateMembershipRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Membership, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateMembershipRequest request = new UpdateMembershipRequest
{
Name = "",
UpdateMask = new FieldMask(),
Resource = new Membership(),
RequestId = "",
};
// Make the request
Operation<Membership, OperationMetadata> response = gkeHubClient.UpdateMembership(request);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateMembership(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
UpdateMembership(String, Membership, FieldMask, CallSettings)
public virtual Operation<Membership, OperationMetadata> UpdateMembership(string name, Membership resource, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing Membership.
Parameters | |
---|---|
Name | Description |
name | String Required. The Membership resource name in the format
|
resource | Membership Required. Only fields specified in update_mask are updated.
If you specify a field in the update_mask but don't specify its value here
that field will be deleted.
If you are updating a map field, set the value of a key to null or empty
string to delete the key from the map. It's not possible to update a key's
value to the empty string.
If you specify the update_mask to be a special path "*", fully replaces all
user-modifiable fields to match |
updateMask | FieldMask Required. Mask of fields to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Membership, OperationMetadata> | The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "";
Membership resource = new Membership();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Membership, OperationMetadata> response = gkeHubClient.UpdateMembership(name, resource, updateMask);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateMembership(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
UpdateMembershipAsync(UpdateMembershipRequest, CallSettings)
public virtual Task<Operation<Membership, OperationMetadata>> UpdateMembershipAsync(UpdateMembershipRequest request, CallSettings callSettings = null)
Updates an existing Membership.
Parameters | |
---|---|
Name | Description |
request | UpdateMembershipRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateMembershipRequest request = new UpdateMembershipRequest
{
Name = "",
UpdateMask = new FieldMask(),
Resource = new Membership(),
RequestId = "",
};
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.UpdateMembershipAsync(request);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
UpdateMembershipAsync(UpdateMembershipRequest, CancellationToken)
public virtual Task<Operation<Membership, OperationMetadata>> UpdateMembershipAsync(UpdateMembershipRequest request, CancellationToken cancellationToken)
Updates an existing Membership.
Parameters | |
---|---|
Name | Description |
request | UpdateMembershipRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateMembershipRequest request = new UpdateMembershipRequest
{
Name = "",
UpdateMask = new FieldMask(),
Resource = new Membership(),
RequestId = "",
};
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.UpdateMembershipAsync(request);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
UpdateMembershipAsync(String, Membership, FieldMask, CallSettings)
public virtual Task<Operation<Membership, OperationMetadata>> UpdateMembershipAsync(string name, Membership resource, FieldMask updateMask, CallSettings callSettings = null)
Updates an existing Membership.
Parameters | |
---|---|
Name | Description |
name | String Required. The Membership resource name in the format
|
resource | Membership Required. Only fields specified in update_mask are updated.
If you specify a field in the update_mask but don't specify its value here
that field will be deleted.
If you are updating a map field, set the value of a key to null or empty
string to delete the key from the map. It's not possible to update a key's
value to the empty string.
If you specify the update_mask to be a special path "*", fully replaces all
user-modifiable fields to match |
updateMask | FieldMask Required. Mask of fields to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "";
Membership resource = new Membership();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.UpdateMembershipAsync(name, resource, updateMask);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}
UpdateMembershipAsync(String, Membership, FieldMask, CancellationToken)
public virtual Task<Operation<Membership, OperationMetadata>> UpdateMembershipAsync(string name, Membership resource, FieldMask updateMask, CancellationToken cancellationToken)
Updates an existing Membership.
Parameters | |
---|---|
Name | Description |
name | String Required. The Membership resource name in the format
|
resource | Membership Required. Only fields specified in update_mask are updated.
If you specify a field in the update_mask but don't specify its value here
that field will be deleted.
If you are updating a map field, set the value of a key to null or empty
string to delete the key from the map. It's not possible to update a key's
value to the empty string.
If you specify the update_mask to be a special path "*", fully replaces all
user-modifiable fields to match |
updateMask | FieldMask Required. Mask of fields to update. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<Operation<Membership, OperationMetadata>> | A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "";
Membership resource = new Membership();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Membership, OperationMetadata> response = await gkeHubClient.UpdateMembershipAsync(name, resource, updateMask);
// Poll until the returned long-running operation is complete
Operation<Membership, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Membership result = completedResponse.Result;
// Or get the name of the operation
string operationName = response.Name;
// This name can be stored, then the long-running operation retrieved later by name
Operation<Membership, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Membership retrievedResult = retrievedResponse.Result;
}