public abstract class GkeHubClientReference documentation and code samples for the GKE Hub v1 API 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 available in the global region and all regions in https://cloud.google.com/compute/docs/regions-zones. Feature is only available in global region while membership is global region and all the regions.
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 |
|
CreateFleetOperationsClient
public virtual OperationsClient CreateFleetOperationsClient { get; }The long-running operations client for CreateFleet.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateMembershipBindingOperationsClient
public virtual OperationsClient CreateMembershipBindingOperationsClient { get; }The long-running operations client for CreateMembershipBinding.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateMembershipOperationsClient
public virtual OperationsClient CreateMembershipOperationsClient { get; }The long-running operations client for CreateMembership.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateMembershipRBACRoleBindingOperationsClient
public virtual OperationsClient CreateMembershipRBACRoleBindingOperationsClient { get; }The long-running operations client for CreateMembershipRBACRoleBinding.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateScopeNamespaceOperationsClient
public virtual OperationsClient CreateScopeNamespaceOperationsClient { get; }The long-running operations client for CreateScopeNamespace.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateScopeOperationsClient
public virtual OperationsClient CreateScopeOperationsClient { get; }The long-running operations client for CreateScope.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
CreateScopeRBACRoleBindingOperationsClient
public virtual OperationsClient CreateScopeRBACRoleBindingOperationsClient { get; }The long-running operations client for CreateScopeRBACRoleBinding.
| 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 |
IReadOnlyListstring |
|
The default GkeHub scopes are:
DeleteFeatureOperationsClient
public virtual OperationsClient DeleteFeatureOperationsClient { get; }The long-running operations client for DeleteFeature.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteFleetOperationsClient
public virtual OperationsClient DeleteFleetOperationsClient { get; }The long-running operations client for DeleteFleet.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteMembershipBindingOperationsClient
public virtual OperationsClient DeleteMembershipBindingOperationsClient { get; }The long-running operations client for DeleteMembershipBinding.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteMembershipOperationsClient
public virtual OperationsClient DeleteMembershipOperationsClient { get; }The long-running operations client for DeleteMembership.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteMembershipRBACRoleBindingOperationsClient
public virtual OperationsClient DeleteMembershipRBACRoleBindingOperationsClient { get; }The long-running operations client for DeleteMembershipRBACRoleBinding.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteScopeNamespaceOperationsClient
public virtual OperationsClient DeleteScopeNamespaceOperationsClient { get; }The long-running operations client for DeleteScopeNamespace.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteScopeOperationsClient
public virtual OperationsClient DeleteScopeOperationsClient { get; }The long-running operations client for DeleteScope.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
DeleteScopeRBACRoleBindingOperationsClient
public virtual OperationsClient DeleteScopeRBACRoleBindingOperationsClient { get; }The long-running operations client for DeleteScopeRBACRoleBinding.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public virtual GkeHub.GkeHubClient GrpcClient { get; }The underlying gRPC GkeHub client
| Property Value | |
|---|---|
| Type | Description |
GkeHubGkeHubClient |
|
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }The service metadata associated with this client type.
| Property Value | |
|---|---|
| Type | Description |
ServiceMetadata |
|
UpdateFeatureOperationsClient
public virtual OperationsClient UpdateFeatureOperationsClient { get; }The long-running operations client for UpdateFeature.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateFleetOperationsClient
public virtual OperationsClient UpdateFleetOperationsClient { get; }The long-running operations client for UpdateFleet.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateMembershipBindingOperationsClient
public virtual OperationsClient UpdateMembershipBindingOperationsClient { get; }The long-running operations client for UpdateMembershipBinding.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateMembershipOperationsClient
public virtual OperationsClient UpdateMembershipOperationsClient { get; }The long-running operations client for UpdateMembership.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateMembershipRBACRoleBindingOperationsClient
public virtual OperationsClient UpdateMembershipRBACRoleBindingOperationsClient { get; }The long-running operations client for UpdateMembershipRBACRoleBinding.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateScopeNamespaceOperationsClient
public virtual OperationsClient UpdateScopeNamespaceOperationsClient { get; }The long-running operations client for UpdateScopeNamespace.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateScopeOperationsClient
public virtual OperationsClient UpdateScopeOperationsClient { get; }The long-running operations client for UpdateScope.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
UpdateScopeRBACRoleBindingOperationsClient
public virtual OperationsClient UpdateScopeRBACRoleBindingOperationsClient { get; }The long-running operations client for UpdateScopeRBACRoleBinding.
| 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)Asynchronously creates a GkeHubClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use GkeHubClientBuilder.
| Parameter | |
|---|---|
| Name | Description |
cancellationToken |
CancellationTokenThe CancellationToken to use while creating the client. |
| Returns | |
|---|---|
| Type | Description |
TaskGkeHubClient |
The task representing the created GkeHubClient. |
CreateFeature(LocationName, Feature, string, CallSettings)
public virtual Operation<Feature, OperationMetadata> CreateFeature(LocationName parent, Feature resource, string featureId, CallSettings callSettings = null)Adds a new Feature.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Feature will be
created. Specified in the format |
resource |
FeatureThe Feature resource to create. |
featureId |
stringThe ID of the feature to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
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;
}
CreateFeature(CreateFeatureRequest, CallSettings)
public virtual Operation<Feature, OperationMetadata> CreateFeature(CreateFeatureRequest request, CallSettings callSettings = null)Adds a new Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
CreateFeatureRequest request = new CreateFeatureRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
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 |
stringRequired. The parent (project and location) where the Feature will be
created. Specified in the format |
resource |
FeatureThe Feature resource to create. |
featureId |
stringThe ID of the feature to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
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(LocationName, Feature, string, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> CreateFeatureAsync(LocationName parent, Feature resource, string featureId, CallSettings callSettings = null)Adds a new Feature.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Feature will be
created. Specified in the format |
resource |
FeatureThe Feature resource to create. |
featureId |
stringThe ID of the feature to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
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(LocationName, Feature, string, CancellationToken)
public virtual Task<Operation<Feature, OperationMetadata>> CreateFeatureAsync(LocationName parent, Feature resource, string featureId, CancellationToken cancellationToken)Adds a new Feature.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Feature will be
created. Specified in the format |
resource |
FeatureThe Feature resource to create. |
featureId |
stringThe ID of the feature to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
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(CreateFeatureRequest, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> CreateFeatureAsync(CreateFeatureRequest request, CallSettings callSettings = null)Adds a new Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateFeatureRequest request = new CreateFeatureRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
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 |
CreateFeatureRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateFeatureRequest request = new CreateFeatureRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
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 |
stringRequired. The parent (project and location) where the Feature will be
created. Specified in the format |
resource |
FeatureThe Feature resource to create. |
featureId |
stringThe ID of the feature to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
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 |
stringRequired. The parent (project and location) where the Feature will be
created. Specified in the format |
resource |
FeatureThe Feature resource to create. |
featureId |
stringThe ID of the feature to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
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;
}
CreateFleet(LocationName, Fleet, CallSettings)
public virtual Operation<Fleet, OperationMetadata> CreateFleet(LocationName parent, Fleet fleet, CallSettings callSettings = null)Creates a fleet.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Fleet will be
created. Specified in the format |
fleet |
FleetRequired. The fleet to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFleetOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Fleet fleet = new Fleet();
// Make the request
Operation<Fleet, OperationMetadata> response = gkeHubClient.CreateFleet(parent, fleet);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateFleet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
CreateFleet(CreateFleetRequest, CallSettings)
public virtual Operation<Fleet, OperationMetadata> CreateFleet(CreateFleetRequest request, CallSettings callSettings = null)Creates a fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFleetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFleetOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
CreateFleetRequest request = new CreateFleetRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Fleet = new Fleet(),
};
// Make the request
Operation<Fleet, OperationMetadata> response = gkeHubClient.CreateFleet(request);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateFleet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
CreateFleet(string, Fleet, CallSettings)
public virtual Operation<Fleet, OperationMetadata> CreateFleet(string parent, Fleet fleet, CallSettings callSettings = null)Creates a fleet.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Fleet will be
created. Specified in the format |
fleet |
FleetRequired. The fleet to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFleetOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Fleet fleet = new Fleet();
// Make the request
Operation<Fleet, OperationMetadata> response = gkeHubClient.CreateFleet(parent, fleet);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateFleet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
CreateFleetAsync(LocationName, Fleet, CallSettings)
public virtual Task<Operation<Fleet, OperationMetadata>> CreateFleetAsync(LocationName parent, Fleet fleet, CallSettings callSettings = null)Creates a fleet.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Fleet will be
created. Specified in the format |
fleet |
FleetRequired. The fleet to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Fleet fleet = new Fleet();
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.CreateFleetAsync(parent, fleet);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
CreateFleetAsync(LocationName, Fleet, CancellationToken)
public virtual Task<Operation<Fleet, OperationMetadata>> CreateFleetAsync(LocationName parent, Fleet fleet, CancellationToken cancellationToken)Creates a fleet.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Fleet will be
created. Specified in the format |
fleet |
FleetRequired. The fleet to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Fleet fleet = new Fleet();
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.CreateFleetAsync(parent, fleet);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
CreateFleetAsync(CreateFleetRequest, CallSettings)
public virtual Task<Operation<Fleet, OperationMetadata>> CreateFleetAsync(CreateFleetRequest request, CallSettings callSettings = null)Creates a fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFleetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateFleetRequest request = new CreateFleetRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Fleet = new Fleet(),
};
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.CreateFleetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
CreateFleetAsync(CreateFleetRequest, CancellationToken)
public virtual Task<Operation<Fleet, OperationMetadata>> CreateFleetAsync(CreateFleetRequest request, CancellationToken cancellationToken)Creates a fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateFleetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateFleetRequest request = new CreateFleetRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Fleet = new Fleet(),
};
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.CreateFleetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
CreateFleetAsync(string, Fleet, CallSettings)
public virtual Task<Operation<Fleet, OperationMetadata>> CreateFleetAsync(string parent, Fleet fleet, CallSettings callSettings = null)Creates a fleet.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Fleet will be
created. Specified in the format |
fleet |
FleetRequired. The fleet to create. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Fleet fleet = new Fleet();
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.CreateFleetAsync(parent, fleet);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
CreateFleetAsync(string, Fleet, CancellationToken)
public virtual Task<Operation<Fleet, OperationMetadata>> CreateFleetAsync(string parent, Fleet fleet, CancellationToken cancellationToken)Creates a fleet.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Fleet will be
created. Specified in the format |
fleet |
FleetRequired. The fleet to create. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Fleet fleet = new Fleet();
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.CreateFleetAsync(parent, fleet);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet 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 |
LocationNameRequired. The parent (project and location) where the Memberships will be
created. Specified in the format |
resource |
MembershipRequired. The membership to create. |
membershipId |
stringRequired. Client chosen ID for the membership.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipOperationMetadata |
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 |
CreateMembershipRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipOperationMetadata |
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 |
stringRequired. The parent (project and location) where the Memberships will be
created. Specified in the format |
resource |
MembershipRequired. The membership to create. |
membershipId |
stringRequired. Client chosen ID for the membership.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipOperationMetadata |
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 |
LocationNameRequired. The parent (project and location) where the Memberships will be
created. Specified in the format |
resource |
MembershipRequired. The membership to create. |
membershipId |
stringRequired. Client chosen ID for the membership.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
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 |
LocationNameRequired. The parent (project and location) where the Memberships will be
created. Specified in the format |
resource |
MembershipRequired. The membership to create. |
membershipId |
stringRequired. Client chosen ID for the membership.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
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 |
CreateMembershipRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
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 |
CreateMembershipRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
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 |
stringRequired. The parent (project and location) where the Memberships will be
created. Specified in the format |
resource |
MembershipRequired. The membership to create. |
membershipId |
stringRequired. Client chosen ID for the membership.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
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 |
stringRequired. The parent (project and location) where the Memberships will be
created. Specified in the format |
resource |
MembershipRequired. The membership to create. |
membershipId |
stringRequired. Client chosen ID for the membership.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
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;
}
CreateMembershipBinding(CreateMembershipBindingRequest, CallSettings)
public virtual Operation<MembershipBinding, OperationMetadata> CreateMembershipBinding(CreateMembershipBindingRequest request, CallSettings callSettings = null)Creates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateMembershipBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
CreateMembershipBindingRequest request = new CreateMembershipBindingRequest
{
ParentAsMembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
MembershipBinding = new MembershipBinding(),
MembershipBindingId = "",
};
// Make the request
Operation<MembershipBinding, OperationMetadata> response = gkeHubClient.CreateMembershipBinding(request);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembershipBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipBinding(MembershipName, MembershipBinding, string, CallSettings)
public virtual Operation<MembershipBinding, OperationMetadata> CreateMembershipBinding(MembershipName parent, MembershipBinding membershipBinding, string membershipBindingId, CallSettings callSettings = null)Creates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the MembershipBinding
will be created. Specified in the format
|
membershipBinding |
MembershipBindingRequired. The MembershipBinding to create. |
membershipBindingId |
stringRequired. The ID to use for the MembershipBinding. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
MembershipBinding membershipBinding = new MembershipBinding();
string membershipBindingId = "";
// Make the request
Operation<MembershipBinding, OperationMetadata> response = gkeHubClient.CreateMembershipBinding(parent, membershipBinding, membershipBindingId);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembershipBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipBinding(string, MembershipBinding, string, CallSettings)
public virtual Operation<MembershipBinding, OperationMetadata> CreateMembershipBinding(string parent, MembershipBinding membershipBinding, string membershipBindingId, CallSettings callSettings = null)Creates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the MembershipBinding
will be created. Specified in the format
|
membershipBinding |
MembershipBindingRequired. The MembershipBinding to create. |
membershipBindingId |
stringRequired. The ID to use for the MembershipBinding. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
MembershipBinding membershipBinding = new MembershipBinding();
string membershipBindingId = "";
// Make the request
Operation<MembershipBinding, OperationMetadata> response = gkeHubClient.CreateMembershipBinding(parent, membershipBinding, membershipBindingId);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembershipBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipBindingAsync(CreateMembershipBindingRequest, CallSettings)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> CreateMembershipBindingAsync(CreateMembershipBindingRequest request, CallSettings callSettings = null)Creates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateMembershipBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateMembershipBindingRequest request = new CreateMembershipBindingRequest
{
ParentAsMembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
MembershipBinding = new MembershipBinding(),
MembershipBindingId = "",
};
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipBindingAsync(CreateMembershipBindingRequest, CancellationToken)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> CreateMembershipBindingAsync(CreateMembershipBindingRequest request, CancellationToken cancellationToken)Creates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateMembershipBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateMembershipBindingRequest request = new CreateMembershipBindingRequest
{
ParentAsMembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
MembershipBinding = new MembershipBinding(),
MembershipBindingId = "",
};
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipBindingAsync(MembershipName, MembershipBinding, string, CallSettings)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> CreateMembershipBindingAsync(MembershipName parent, MembershipBinding membershipBinding, string membershipBindingId, CallSettings callSettings = null)Creates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the MembershipBinding
will be created. Specified in the format
|
membershipBinding |
MembershipBindingRequired. The MembershipBinding to create. |
membershipBindingId |
stringRequired. The ID to use for the MembershipBinding. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
MembershipBinding membershipBinding = new MembershipBinding();
string membershipBindingId = "";
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipBindingAsync(parent, membershipBinding, membershipBindingId);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipBindingAsync(MembershipName, MembershipBinding, string, CancellationToken)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> CreateMembershipBindingAsync(MembershipName parent, MembershipBinding membershipBinding, string membershipBindingId, CancellationToken cancellationToken)Creates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the MembershipBinding
will be created. Specified in the format
|
membershipBinding |
MembershipBindingRequired. The MembershipBinding to create. |
membershipBindingId |
stringRequired. The ID to use for the MembershipBinding. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
MembershipBinding membershipBinding = new MembershipBinding();
string membershipBindingId = "";
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipBindingAsync(parent, membershipBinding, membershipBindingId);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipBindingAsync(string, MembershipBinding, string, CallSettings)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> CreateMembershipBindingAsync(string parent, MembershipBinding membershipBinding, string membershipBindingId, CallSettings callSettings = null)Creates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the MembershipBinding
will be created. Specified in the format
|
membershipBinding |
MembershipBindingRequired. The MembershipBinding to create. |
membershipBindingId |
stringRequired. The ID to use for the MembershipBinding. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
MembershipBinding membershipBinding = new MembershipBinding();
string membershipBindingId = "";
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipBindingAsync(parent, membershipBinding, membershipBindingId);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipBindingAsync(string, MembershipBinding, string, CancellationToken)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> CreateMembershipBindingAsync(string parent, MembershipBinding membershipBinding, string membershipBindingId, CancellationToken cancellationToken)Creates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the MembershipBinding
will be created. Specified in the format
|
membershipBinding |
MembershipBindingRequired. The MembershipBinding to create. |
membershipBindingId |
stringRequired. The ID to use for the MembershipBinding. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
MembershipBinding membershipBinding = new MembershipBinding();
string membershipBindingId = "";
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipBindingAsync(parent, membershipBinding, membershipBindingId);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBinding(CreateMembershipRBACRoleBindingRequest, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> CreateMembershipRBACRoleBinding(CreateMembershipRBACRoleBindingRequest request, CallSettings callSettings = null)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
CreateMembershipRBACRoleBindingRequest request = new CreateMembershipRBACRoleBindingRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
RbacrolebindingId = "",
Rbacrolebinding = new RBACRoleBinding(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.CreateMembershipRBACRoleBinding(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembershipRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBinding(MembershipName, RBACRoleBinding, string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> CreateMembershipRBACRoleBinding(MembershipName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.CreateMembershipRBACRoleBinding(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembershipRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBinding(ScopeName, RBACRoleBinding, string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> CreateMembershipRBACRoleBinding(ScopeName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.CreateMembershipRBACRoleBinding(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembershipRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBinding(string, RBACRoleBinding, string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> CreateMembershipRBACRoleBinding(string parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.CreateMembershipRBACRoleBinding(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateMembershipRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest request, CallSettings callSettings = null)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateMembershipRBACRoleBindingRequest request = new CreateMembershipRBACRoleBindingRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
RbacrolebindingId = "",
Rbacrolebinding = new RBACRoleBinding(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipRBACRoleBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateMembershipRBACRoleBindingAsync(CreateMembershipRBACRoleBindingRequest request, CancellationToken cancellationToken)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateMembershipRBACRoleBindingRequest request = new CreateMembershipRBACRoleBindingRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
RbacrolebindingId = "",
Rbacrolebinding = new RBACRoleBinding(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipRBACRoleBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBindingAsync(MembershipName, RBACRoleBinding, string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateMembershipRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBindingAsync(MembershipName, RBACRoleBinding, string, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateMembershipRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CancellationToken cancellationToken)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBindingAsync(ScopeName, RBACRoleBinding, string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateMembershipRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBindingAsync(ScopeName, RBACRoleBinding, string, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateMembershipRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CancellationToken cancellationToken)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBindingAsync(string, RBACRoleBinding, string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateMembershipRBACRoleBindingAsync(string parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateMembershipRBACRoleBindingAsync(string, RBACRoleBinding, string, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateMembershipRBACRoleBindingAsync(string parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CancellationToken cancellationToken)Creates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateMembershipRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScope(LocationName, Scope, string, CallSettings)
public virtual Operation<Scope, OperationMetadata> CreateScope(LocationName parent, Scope scope, string scopeId, CallSettings callSettings = null)Creates a Scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Scope will be
created. Specified in the format |
scope |
ScopeRequired. The Scope to create. |
scopeId |
stringRequired. Client chosen ID for the Scope. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationScopeOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Scope scope = new Scope();
string scopeId = "";
// Make the request
Operation<Scope, OperationMetadata> response = gkeHubClient.CreateScope(parent, scope, scopeId);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScope(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
CreateScope(CreateScopeRequest, CallSettings)
public virtual Operation<Scope, OperationMetadata> CreateScope(CreateScopeRequest request, CallSettings callSettings = null)Creates a Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationScopeOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
CreateScopeRequest request = new CreateScopeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ScopeId = "",
Scope = new Scope(),
};
// Make the request
Operation<Scope, OperationMetadata> response = gkeHubClient.CreateScope(request);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScope(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
CreateScope(string, Scope, string, CallSettings)
public virtual Operation<Scope, OperationMetadata> CreateScope(string parent, Scope scope, string scopeId, CallSettings callSettings = null)Creates a Scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Scope will be
created. Specified in the format |
scope |
ScopeRequired. The Scope to create. |
scopeId |
stringRequired. Client chosen ID for the Scope. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationScopeOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Scope scope = new Scope();
string scopeId = "";
// Make the request
Operation<Scope, OperationMetadata> response = gkeHubClient.CreateScope(parent, scope, scopeId);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScope(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
CreateScopeAsync(LocationName, Scope, string, CallSettings)
public virtual Task<Operation<Scope, OperationMetadata>> CreateScopeAsync(LocationName parent, Scope scope, string scopeId, CallSettings callSettings = null)Creates a Scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Scope will be
created. Specified in the format |
scope |
ScopeRequired. The Scope to create. |
scopeId |
stringRequired. Client chosen ID for the Scope. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Scope scope = new Scope();
string scopeId = "";
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.CreateScopeAsync(parent, scope, scopeId);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
CreateScopeAsync(LocationName, Scope, string, CancellationToken)
public virtual Task<Operation<Scope, OperationMetadata>> CreateScopeAsync(LocationName parent, Scope scope, string scopeId, CancellationToken cancellationToken)Creates a Scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Scope will be
created. Specified in the format |
scope |
ScopeRequired. The Scope to create. |
scopeId |
stringRequired. Client chosen ID for the Scope. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
Scope scope = new Scope();
string scopeId = "";
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.CreateScopeAsync(parent, scope, scopeId);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
CreateScopeAsync(CreateScopeRequest, CallSettings)
public virtual Task<Operation<Scope, OperationMetadata>> CreateScopeAsync(CreateScopeRequest request, CallSettings callSettings = null)Creates a Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateScopeRequest request = new CreateScopeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ScopeId = "",
Scope = new Scope(),
};
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.CreateScopeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
CreateScopeAsync(CreateScopeRequest, CancellationToken)
public virtual Task<Operation<Scope, OperationMetadata>> CreateScopeAsync(CreateScopeRequest request, CancellationToken cancellationToken)Creates a Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateScopeRequest request = new CreateScopeRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
ScopeId = "",
Scope = new Scope(),
};
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.CreateScopeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
CreateScopeAsync(string, Scope, string, CallSettings)
public virtual Task<Operation<Scope, OperationMetadata>> CreateScopeAsync(string parent, Scope scope, string scopeId, CallSettings callSettings = null)Creates a Scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Scope will be
created. Specified in the format |
scope |
ScopeRequired. The Scope to create. |
scopeId |
stringRequired. Client chosen ID for the Scope. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Scope scope = new Scope();
string scopeId = "";
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.CreateScopeAsync(parent, scope, scopeId);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
CreateScopeAsync(string, Scope, string, CancellationToken)
public virtual Task<Operation<Scope, OperationMetadata>> CreateScopeAsync(string parent, Scope scope, string scopeId, CancellationToken cancellationToken)Creates a Scope.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Scope will be
created. Specified in the format |
scope |
ScopeRequired. The Scope to create. |
scopeId |
stringRequired. Client chosen ID for the Scope. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
Scope scope = new Scope();
string scopeId = "";
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.CreateScopeAsync(parent, scope, scopeId);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
CreateScopeNamespace(CreateScopeNamespaceRequest, CallSettings)
public virtual Operation<Namespace, OperationMetadata> CreateScopeNamespace(CreateScopeNamespaceRequest request, CallSettings callSettings = null)Creates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationNamespaceOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
CreateScopeNamespaceRequest request = new CreateScopeNamespaceRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
ScopeNamespaceId = "",
ScopeNamespace = new Namespace(),
};
// Make the request
Operation<Namespace, OperationMetadata> response = gkeHubClient.CreateScopeNamespace(request);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScopeNamespace(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
CreateScopeNamespace(ScopeName, Namespace, string, CallSettings)
public virtual Operation<Namespace, OperationMetadata> CreateScopeNamespace(ScopeName parent, Namespace scopeNamespace, string scopeNamespaceId, CallSettings callSettings = null)Creates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the Namespace will be
created. Specified in the format |
scopeNamespace |
NamespaceRequired. The fleet namespace to create. |
scopeNamespaceId |
stringRequired. Client chosen ID for the Namespace.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationNamespaceOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
Namespace scopeNamespace = new Namespace();
string scopeNamespaceId = "";
// Make the request
Operation<Namespace, OperationMetadata> response = gkeHubClient.CreateScopeNamespace(parent, scopeNamespace, scopeNamespaceId);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScopeNamespace(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
CreateScopeNamespace(string, Namespace, string, CallSettings)
public virtual Operation<Namespace, OperationMetadata> CreateScopeNamespace(string parent, Namespace scopeNamespace, string scopeNamespaceId, CallSettings callSettings = null)Creates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Namespace will be
created. Specified in the format |
scopeNamespace |
NamespaceRequired. The fleet namespace to create. |
scopeNamespaceId |
stringRequired. Client chosen ID for the Namespace.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationNamespaceOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
Namespace scopeNamespace = new Namespace();
string scopeNamespaceId = "";
// Make the request
Operation<Namespace, OperationMetadata> response = gkeHubClient.CreateScopeNamespace(parent, scopeNamespace, scopeNamespaceId);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScopeNamespace(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
CreateScopeNamespaceAsync(CreateScopeNamespaceRequest, CallSettings)
public virtual Task<Operation<Namespace, OperationMetadata>> CreateScopeNamespaceAsync(CreateScopeNamespaceRequest request, CallSettings callSettings = null)Creates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateScopeNamespaceRequest request = new CreateScopeNamespaceRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
ScopeNamespaceId = "",
ScopeNamespace = new Namespace(),
};
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.CreateScopeNamespaceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
CreateScopeNamespaceAsync(CreateScopeNamespaceRequest, CancellationToken)
public virtual Task<Operation<Namespace, OperationMetadata>> CreateScopeNamespaceAsync(CreateScopeNamespaceRequest request, CancellationToken cancellationToken)Creates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateScopeNamespaceRequest request = new CreateScopeNamespaceRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
ScopeNamespaceId = "",
ScopeNamespace = new Namespace(),
};
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.CreateScopeNamespaceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
CreateScopeNamespaceAsync(ScopeName, Namespace, string, CallSettings)
public virtual Task<Operation<Namespace, OperationMetadata>> CreateScopeNamespaceAsync(ScopeName parent, Namespace scopeNamespace, string scopeNamespaceId, CallSettings callSettings = null)Creates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the Namespace will be
created. Specified in the format |
scopeNamespace |
NamespaceRequired. The fleet namespace to create. |
scopeNamespaceId |
stringRequired. Client chosen ID for the Namespace.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
Namespace scopeNamespace = new Namespace();
string scopeNamespaceId = "";
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.CreateScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
CreateScopeNamespaceAsync(ScopeName, Namespace, string, CancellationToken)
public virtual Task<Operation<Namespace, OperationMetadata>> CreateScopeNamespaceAsync(ScopeName parent, Namespace scopeNamespace, string scopeNamespaceId, CancellationToken cancellationToken)Creates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the Namespace will be
created. Specified in the format |
scopeNamespace |
NamespaceRequired. The fleet namespace to create. |
scopeNamespaceId |
stringRequired. Client chosen ID for the Namespace.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
Namespace scopeNamespace = new Namespace();
string scopeNamespaceId = "";
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.CreateScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
CreateScopeNamespaceAsync(string, Namespace, string, CallSettings)
public virtual Task<Operation<Namespace, OperationMetadata>> CreateScopeNamespaceAsync(string parent, Namespace scopeNamespace, string scopeNamespaceId, CallSettings callSettings = null)Creates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Namespace will be
created. Specified in the format |
scopeNamespace |
NamespaceRequired. The fleet namespace to create. |
scopeNamespaceId |
stringRequired. Client chosen ID for the Namespace.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
Namespace scopeNamespace = new Namespace();
string scopeNamespaceId = "";
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.CreateScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
CreateScopeNamespaceAsync(string, Namespace, string, CancellationToken)
public virtual Task<Operation<Namespace, OperationMetadata>> CreateScopeNamespaceAsync(string parent, Namespace scopeNamespace, string scopeNamespaceId, CancellationToken cancellationToken)Creates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Namespace will be
created. Specified in the format |
scopeNamespace |
NamespaceRequired. The fleet namespace to create. |
scopeNamespaceId |
stringRequired. Client chosen ID for the Namespace.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
Namespace scopeNamespace = new Namespace();
string scopeNamespaceId = "";
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.CreateScopeNamespaceAsync(parent, scopeNamespace, scopeNamespaceId);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBinding(CreateScopeRBACRoleBindingRequest, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> CreateScopeRBACRoleBinding(CreateScopeRBACRoleBindingRequest request, CallSettings callSettings = null)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
CreateScopeRBACRoleBindingRequest request = new CreateScopeRBACRoleBindingRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
RbacrolebindingId = "",
Rbacrolebinding = new RBACRoleBinding(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.CreateScopeRBACRoleBinding(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScopeRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBinding(MembershipName, RBACRoleBinding, string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> CreateScopeRBACRoleBinding(MembershipName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.CreateScopeRBACRoleBinding(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScopeRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBinding(ScopeName, RBACRoleBinding, string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> CreateScopeRBACRoleBinding(ScopeName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.CreateScopeRBACRoleBinding(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScopeRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBinding(string, RBACRoleBinding, string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> CreateScopeRBACRoleBinding(string parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.CreateScopeRBACRoleBinding(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceCreateScopeRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBindingAsync(CreateScopeRBACRoleBindingRequest, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateScopeRBACRoleBindingAsync(CreateScopeRBACRoleBindingRequest request, CallSettings callSettings = null)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateScopeRBACRoleBindingRequest request = new CreateScopeRBACRoleBindingRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
RbacrolebindingId = "",
Rbacrolebinding = new RBACRoleBinding(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateScopeRBACRoleBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBindingAsync(CreateScopeRBACRoleBindingRequest, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateScopeRBACRoleBindingAsync(CreateScopeRBACRoleBindingRequest request, CancellationToken cancellationToken)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
CreateScopeRBACRoleBindingRequest request = new CreateScopeRBACRoleBindingRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
RbacrolebindingId = "",
Rbacrolebinding = new RBACRoleBinding(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateScopeRBACRoleBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBindingAsync(MembershipName, RBACRoleBinding, string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateScopeRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBindingAsync(MembershipName, RBACRoleBinding, string, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateScopeRBACRoleBindingAsync(MembershipName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CancellationToken cancellationToken)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBindingAsync(ScopeName, RBACRoleBinding, string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateScopeRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBindingAsync(ScopeName, RBACRoleBinding, string, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateScopeRBACRoleBindingAsync(ScopeName parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CancellationToken cancellationToken)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBindingAsync(string, RBACRoleBinding, string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateScopeRBACRoleBindingAsync(string parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CallSettings callSettings = null)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
CreateScopeRBACRoleBindingAsync(string, RBACRoleBinding, string, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> CreateScopeRBACRoleBindingAsync(string parent, RBACRoleBinding rbacrolebinding, string rbacrolebindingId, CancellationToken cancellationToken)Creates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the RBACRoleBinding will
be created. Specified in the format |
rbacrolebinding |
RBACRoleBindingRequired. The rbacrolebindings to create. |
rbacrolebindingId |
stringRequired. Client chosen ID for the RBACRoleBinding.
Which can be expressed as the regex: |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
string rbacrolebindingId = "";
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.CreateScopeRBACRoleBindingAsync(parent, rbacrolebinding, rbacrolebindingId);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceCreateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
DeleteFeature(DeleteFeatureRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFeature(DeleteFeatureRequest request, CallSettings callSettings = null)Removes a Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteFeatureRequest request = new DeleteFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]"),
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(FeatureName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFeature(FeatureName name, CallSettings callSettings = null)Removes a Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The Feature resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]");
// 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;
}
DeleteFeature(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFeature(string name, CallSettings callSettings = null)Removes a Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Feature resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/features/[FEATURE]";
// 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 |
DeleteFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteFeatureRequest request = new DeleteFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]"),
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 |
DeleteFeatureRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteFeatureRequest request = new DeleteFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]"),
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(FeatureName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFeatureAsync(FeatureName name, CallSettings callSettings = null)Removes a Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The Feature resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]");
// 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(FeatureName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFeatureAsync(FeatureName name, CancellationToken cancellationToken)Removes a Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The Feature resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]");
// 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, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFeatureAsync(string name, CallSettings callSettings = null)Removes a Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Feature resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/features/[FEATURE]";
// 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 |
stringRequired. The Feature resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/features/[FEATURE]";
// 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;
}
DeleteFleet(DeleteFleetRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFleet(DeleteFleetRequest request, CallSettings callSettings = null)Removes a Fleet. There must be no memberships remaining in the Fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFleetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteFleetRequest request = new DeleteFleetRequest
{
FleetName = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteFleet(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.PollOnceDeleteFleet(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;
}
DeleteFleet(FleetName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFleet(FleetName name, CallSettings callSettings = null)Removes a Fleet. There must be no memberships remaining in the Fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
FleetNameRequired. The Fleet resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
FleetName name = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]");
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteFleet(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.PollOnceDeleteFleet(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;
}
DeleteFleet(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteFleet(string name, CallSettings callSettings = null)Removes a Fleet. There must be no memberships remaining in the Fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Fleet resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleets/[FLEET]";
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteFleet(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.PollOnceDeleteFleet(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;
}
DeleteFleetAsync(DeleteFleetRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFleetAsync(DeleteFleetRequest request, CallSettings callSettings = null)Removes a Fleet. There must be no memberships remaining in the Fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFleetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteFleetRequest request = new DeleteFleetRequest
{
FleetName = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFleetAsync(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.PollOnceDeleteFleetAsync(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;
}
DeleteFleetAsync(DeleteFleetRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFleetAsync(DeleteFleetRequest request, CancellationToken cancellationToken)Removes a Fleet. There must be no memberships remaining in the Fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteFleetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteFleetRequest request = new DeleteFleetRequest
{
FleetName = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFleetAsync(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.PollOnceDeleteFleetAsync(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;
}
DeleteFleetAsync(FleetName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFleetAsync(FleetName name, CallSettings callSettings = null)Removes a Fleet. There must be no memberships remaining in the Fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
FleetNameRequired. The Fleet resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FleetName name = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFleetAsync(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.PollOnceDeleteFleetAsync(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;
}
DeleteFleetAsync(FleetName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFleetAsync(FleetName name, CancellationToken cancellationToken)Removes a Fleet. There must be no memberships remaining in the Fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
FleetNameRequired. The Fleet resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FleetName name = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFleetAsync(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.PollOnceDeleteFleetAsync(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;
}
DeleteFleetAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFleetAsync(string name, CallSettings callSettings = null)Removes a Fleet. There must be no memberships remaining in the Fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Fleet resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleets/[FLEET]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFleetAsync(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.PollOnceDeleteFleetAsync(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;
}
DeleteFleetAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteFleetAsync(string name, CancellationToken cancellationToken)Removes a Fleet. There must be no memberships remaining in the Fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Fleet resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleets/[FLEET]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteFleetAsync(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.PollOnceDeleteFleetAsync(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 |
DeleteMembershipRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteMembershipRequest request = new DeleteMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
RequestId = "",
Force = false,
};
// 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 |
MembershipNameRequired. The Membership resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
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 |
stringRequired. The Membership resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
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 |
DeleteMembershipRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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 = "",
Force = false,
};
// 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 |
DeleteMembershipRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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 = "",
Force = false,
};
// 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 |
MembershipNameRequired. The Membership resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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 |
MembershipNameRequired. The Membership resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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 |
stringRequired. The Membership resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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 |
stringRequired. The Membership resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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;
}
DeleteMembershipBinding(DeleteMembershipBindingRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMembershipBinding(DeleteMembershipBindingRequest request, CallSettings callSettings = null)Deletes a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteMembershipBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteMembershipBindingRequest request = new DeleteMembershipBindingRequest
{
MembershipBindingName = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteMembershipBinding(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.PollOnceDeleteMembershipBinding(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;
}
DeleteMembershipBinding(MembershipBindingName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMembershipBinding(MembershipBindingName name, CallSettings callSettings = null)Deletes a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
MembershipBindingNameRequired. The MembershipBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipBindingName name = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteMembershipBinding(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.PollOnceDeleteMembershipBinding(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;
}
DeleteMembershipBinding(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMembershipBinding(string name, CallSettings callSettings = null)Deletes a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The MembershipBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]/bindings/[MEMBERSHIPBINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteMembershipBinding(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.PollOnceDeleteMembershipBinding(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;
}
DeleteMembershipBindingAsync(DeleteMembershipBindingRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipBindingAsync(DeleteMembershipBindingRequest request, CallSettings callSettings = null)Deletes a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteMembershipBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteMembershipBindingRequest request = new DeleteMembershipBindingRequest
{
MembershipBindingName = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipBindingAsync(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.PollOnceDeleteMembershipBindingAsync(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;
}
DeleteMembershipBindingAsync(DeleteMembershipBindingRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipBindingAsync(DeleteMembershipBindingRequest request, CancellationToken cancellationToken)Deletes a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteMembershipBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteMembershipBindingRequest request = new DeleteMembershipBindingRequest
{
MembershipBindingName = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipBindingAsync(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.PollOnceDeleteMembershipBindingAsync(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;
}
DeleteMembershipBindingAsync(MembershipBindingName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipBindingAsync(MembershipBindingName name, CallSettings callSettings = null)Deletes a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
MembershipBindingNameRequired. The MembershipBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipBindingName name = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipBindingAsync(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.PollOnceDeleteMembershipBindingAsync(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;
}
DeleteMembershipBindingAsync(MembershipBindingName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipBindingAsync(MembershipBindingName name, CancellationToken cancellationToken)Deletes a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
MembershipBindingNameRequired. The MembershipBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipBindingName name = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipBindingAsync(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.PollOnceDeleteMembershipBindingAsync(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;
}
DeleteMembershipBindingAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipBindingAsync(string name, CallSettings callSettings = null)Deletes a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The MembershipBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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]/bindings/[MEMBERSHIPBINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipBindingAsync(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.PollOnceDeleteMembershipBindingAsync(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;
}
DeleteMembershipBindingAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipBindingAsync(string name, CancellationToken cancellationToken)Deletes a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The MembershipBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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]/bindings/[MEMBERSHIPBINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipBindingAsync(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.PollOnceDeleteMembershipBindingAsync(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;
}
DeleteMembershipRBACRoleBinding(DeleteMembershipRBACRoleBindingRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMembershipRBACRoleBinding(DeleteMembershipRBACRoleBindingRequest request, CallSettings callSettings = null)Deletes a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteMembershipRBACRoleBindingRequest request = new DeleteMembershipRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteMembershipRBACRoleBinding(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.PollOnceDeleteMembershipRBACRoleBinding(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;
}
DeleteMembershipRBACRoleBinding(RBACRoleBindingName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMembershipRBACRoleBinding(RBACRoleBindingName name, CallSettings callSettings = null)Deletes a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteMembershipRBACRoleBinding(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.PollOnceDeleteMembershipRBACRoleBinding(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;
}
DeleteMembershipRBACRoleBinding(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteMembershipRBACRoleBinding(string name, CallSettings callSettings = null)Deletes a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteMembershipRBACRoleBinding(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.PollOnceDeleteMembershipRBACRoleBinding(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;
}
DeleteMembershipRBACRoleBindingAsync(DeleteMembershipRBACRoleBindingRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipRBACRoleBindingAsync(DeleteMembershipRBACRoleBindingRequest request, CallSettings callSettings = null)Deletes a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteMembershipRBACRoleBindingRequest request = new DeleteMembershipRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipRBACRoleBindingAsync(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.PollOnceDeleteMembershipRBACRoleBindingAsync(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;
}
DeleteMembershipRBACRoleBindingAsync(DeleteMembershipRBACRoleBindingRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipRBACRoleBindingAsync(DeleteMembershipRBACRoleBindingRequest request, CancellationToken cancellationToken)Deletes a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteMembershipRBACRoleBindingRequest request = new DeleteMembershipRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipRBACRoleBindingAsync(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.PollOnceDeleteMembershipRBACRoleBindingAsync(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;
}
DeleteMembershipRBACRoleBindingAsync(RBACRoleBindingName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipRBACRoleBindingAsync(RBACRoleBindingName name, CallSettings callSettings = null)Deletes a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipRBACRoleBindingAsync(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.PollOnceDeleteMembershipRBACRoleBindingAsync(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;
}
DeleteMembershipRBACRoleBindingAsync(RBACRoleBindingName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipRBACRoleBindingAsync(RBACRoleBindingName name, CancellationToken cancellationToken)Deletes a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipRBACRoleBindingAsync(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.PollOnceDeleteMembershipRBACRoleBindingAsync(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;
}
DeleteMembershipRBACRoleBindingAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipRBACRoleBindingAsync(string name, CallSettings callSettings = null)Deletes a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipRBACRoleBindingAsync(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.PollOnceDeleteMembershipRBACRoleBindingAsync(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;
}
DeleteMembershipRBACRoleBindingAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteMembershipRBACRoleBindingAsync(string name, CancellationToken cancellationToken)Deletes a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteMembershipRBACRoleBindingAsync(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.PollOnceDeleteMembershipRBACRoleBindingAsync(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;
}
DeleteScope(DeleteScopeRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteScope(DeleteScopeRequest request, CallSettings callSettings = null)Deletes a Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteScopeRequest request = new DeleteScopeRequest
{
ScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteScope(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.PollOnceDeleteScope(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;
}
DeleteScope(ScopeName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteScope(ScopeName name, CallSettings callSettings = null)Deletes a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
ScopeNameRequired. The Scope resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ScopeName name = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteScope(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.PollOnceDeleteScope(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;
}
DeleteScope(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteScope(string name, CallSettings callSettings = null)Deletes a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Scope resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteScope(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.PollOnceDeleteScope(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;
}
DeleteScopeAsync(DeleteScopeRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeAsync(DeleteScopeRequest request, CallSettings callSettings = null)Deletes a Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteScopeRequest request = new DeleteScopeRequest
{
ScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeAsync(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.PollOnceDeleteScopeAsync(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;
}
DeleteScopeAsync(DeleteScopeRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeAsync(DeleteScopeRequest request, CancellationToken cancellationToken)Deletes a Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteScopeRequest request = new DeleteScopeRequest
{
ScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeAsync(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.PollOnceDeleteScopeAsync(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;
}
DeleteScopeAsync(ScopeName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeAsync(ScopeName name, CallSettings callSettings = null)Deletes a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
ScopeNameRequired. The Scope resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName name = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeAsync(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.PollOnceDeleteScopeAsync(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;
}
DeleteScopeAsync(ScopeName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeAsync(ScopeName name, CancellationToken cancellationToken)Deletes a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
ScopeNameRequired. The Scope resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName name = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeAsync(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.PollOnceDeleteScopeAsync(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;
}
DeleteScopeAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeAsync(string name, CallSettings callSettings = null)Deletes a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Scope resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeAsync(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.PollOnceDeleteScopeAsync(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;
}
DeleteScopeAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeAsync(string name, CancellationToken cancellationToken)Deletes a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Scope resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeAsync(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.PollOnceDeleteScopeAsync(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;
}
DeleteScopeNamespace(DeleteScopeNamespaceRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteScopeNamespace(DeleteScopeNamespaceRequest request, CallSettings callSettings = null)Deletes a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteScopeNamespaceRequest request = new DeleteScopeNamespaceRequest
{
NamespaceName = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteScopeNamespace(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.PollOnceDeleteScopeNamespace(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;
}
DeleteScopeNamespace(NamespaceName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteScopeNamespace(NamespaceName name, CallSettings callSettings = null)Deletes a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
NamespaceNameRequired. The Namespace resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteScopeNamespace(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.PollOnceDeleteScopeNamespace(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;
}
DeleteScopeNamespace(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteScopeNamespace(string name, CallSettings callSettings = null)Deletes a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Namespace resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/namespaces/[NAMESPACE]";
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteScopeNamespace(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.PollOnceDeleteScopeNamespace(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;
}
DeleteScopeNamespaceAsync(DeleteScopeNamespaceRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeNamespaceAsync(DeleteScopeNamespaceRequest request, CallSettings callSettings = null)Deletes a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteScopeNamespaceRequest request = new DeleteScopeNamespaceRequest
{
NamespaceName = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeNamespaceAsync(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.PollOnceDeleteScopeNamespaceAsync(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;
}
DeleteScopeNamespaceAsync(DeleteScopeNamespaceRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeNamespaceAsync(DeleteScopeNamespaceRequest request, CancellationToken cancellationToken)Deletes a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteScopeNamespaceRequest request = new DeleteScopeNamespaceRequest
{
NamespaceName = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeNamespaceAsync(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.PollOnceDeleteScopeNamespaceAsync(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;
}
DeleteScopeNamespaceAsync(NamespaceName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeNamespaceAsync(NamespaceName name, CallSettings callSettings = null)Deletes a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
NamespaceNameRequired. The Namespace resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeNamespaceAsync(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.PollOnceDeleteScopeNamespaceAsync(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;
}
DeleteScopeNamespaceAsync(NamespaceName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeNamespaceAsync(NamespaceName name, CancellationToken cancellationToken)Deletes a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
NamespaceNameRequired. The Namespace resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeNamespaceAsync(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.PollOnceDeleteScopeNamespaceAsync(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;
}
DeleteScopeNamespaceAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeNamespaceAsync(string name, CallSettings callSettings = null)Deletes a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Namespace resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/namespaces/[NAMESPACE]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeNamespaceAsync(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.PollOnceDeleteScopeNamespaceAsync(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;
}
DeleteScopeNamespaceAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeNamespaceAsync(string name, CancellationToken cancellationToken)Deletes a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Namespace resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/namespaces/[NAMESPACE]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeNamespaceAsync(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.PollOnceDeleteScopeNamespaceAsync(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;
}
DeleteScopeRBACRoleBinding(DeleteScopeRBACRoleBindingRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteScopeRBACRoleBinding(DeleteScopeRBACRoleBindingRequest request, CallSettings callSettings = null)Deletes a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
DeleteScopeRBACRoleBindingRequest request = new DeleteScopeRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteScopeRBACRoleBinding(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.PollOnceDeleteScopeRBACRoleBinding(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;
}
DeleteScopeRBACRoleBinding(RBACRoleBindingName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteScopeRBACRoleBinding(RBACRoleBindingName name, CallSettings callSettings = null)Deletes a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteScopeRBACRoleBinding(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.PollOnceDeleteScopeRBACRoleBinding(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;
}
DeleteScopeRBACRoleBinding(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteScopeRBACRoleBinding(string name, CallSettings callSettings = null)Deletes a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = gkeHubClient.DeleteScopeRBACRoleBinding(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.PollOnceDeleteScopeRBACRoleBinding(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;
}
DeleteScopeRBACRoleBindingAsync(DeleteScopeRBACRoleBindingRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeRBACRoleBindingAsync(DeleteScopeRBACRoleBindingRequest request, CallSettings callSettings = null)Deletes a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteScopeRBACRoleBindingRequest request = new DeleteScopeRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeRBACRoleBindingAsync(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.PollOnceDeleteScopeRBACRoleBindingAsync(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;
}
DeleteScopeRBACRoleBindingAsync(DeleteScopeRBACRoleBindingRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeRBACRoleBindingAsync(DeleteScopeRBACRoleBindingRequest request, CancellationToken cancellationToken)Deletes a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
DeleteScopeRBACRoleBindingRequest request = new DeleteScopeRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeRBACRoleBindingAsync(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.PollOnceDeleteScopeRBACRoleBindingAsync(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;
}
DeleteScopeRBACRoleBindingAsync(RBACRoleBindingName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeRBACRoleBindingAsync(RBACRoleBindingName name, CallSettings callSettings = null)Deletes a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeRBACRoleBindingAsync(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.PollOnceDeleteScopeRBACRoleBindingAsync(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;
}
DeleteScopeRBACRoleBindingAsync(RBACRoleBindingName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeRBACRoleBindingAsync(RBACRoleBindingName name, CancellationToken cancellationToken)Deletes a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeRBACRoleBindingAsync(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.PollOnceDeleteScopeRBACRoleBindingAsync(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;
}
DeleteScopeRBACRoleBindingAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeRBACRoleBindingAsync(string name, CallSettings callSettings = null)Deletes a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeRBACRoleBindingAsync(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.PollOnceDeleteScopeRBACRoleBindingAsync(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;
}
DeleteScopeRBACRoleBindingAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteScopeRBACRoleBindingAsync(string name, CancellationToken cancellationToken)Deletes a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
Operation<Empty, OperationMetadata> response = await gkeHubClient.DeleteScopeRBACRoleBindingAsync(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.PollOnceDeleteScopeRBACRoleBindingAsync(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 |
GenerateConnectManifestRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf 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
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
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 |
GenerateConnectManifestRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateConnectManifestResponse |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GenerateConnectManifestRequest request = new GenerateConnectManifestRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
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 |
GenerateConnectManifestRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateConnectManifestResponse |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GenerateConnectManifestRequest request = new GenerateConnectManifestRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
Namespace = "",
Proxy = ByteString.Empty,
Version = "",
IsUpgrade = false,
Registry = "",
ImagePullSecretContent = ByteString.Empty,
};
// Make the request
GenerateConnectManifestResponse response = await gkeHubClient.GenerateConnectManifestAsync(request);
GenerateMembershipRBACRoleBindingYAML(GenerateMembershipRBACRoleBindingYAMLRequest, CallSettings)
public virtual GenerateMembershipRBACRoleBindingYAMLResponse GenerateMembershipRBACRoleBindingYAML(GenerateMembershipRBACRoleBindingYAMLRequest request, CallSettings callSettings = null)Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateMembershipRBACRoleBindingYAMLRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
GenerateMembershipRBACRoleBindingYAMLResponse |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GenerateMembershipRBACRoleBindingYAMLRequest request = new GenerateMembershipRBACRoleBindingYAMLRequest
{
ParentAsMembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
RbacrolebindingId = "",
Rbacrolebinding = new RBACRoleBinding(),
};
// Make the request
GenerateMembershipRBACRoleBindingYAMLResponse response = gkeHubClient.GenerateMembershipRBACRoleBindingYAML(request);
GenerateMembershipRBACRoleBindingYAMLAsync(GenerateMembershipRBACRoleBindingYAMLRequest, CallSettings)
public virtual Task<GenerateMembershipRBACRoleBindingYAMLResponse> GenerateMembershipRBACRoleBindingYAMLAsync(GenerateMembershipRBACRoleBindingYAMLRequest request, CallSettings callSettings = null)Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateMembershipRBACRoleBindingYAMLRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateMembershipRBACRoleBindingYAMLResponse |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GenerateMembershipRBACRoleBindingYAMLRequest request = new GenerateMembershipRBACRoleBindingYAMLRequest
{
ParentAsMembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
RbacrolebindingId = "",
Rbacrolebinding = new RBACRoleBinding(),
};
// Make the request
GenerateMembershipRBACRoleBindingYAMLResponse response = await gkeHubClient.GenerateMembershipRBACRoleBindingYAMLAsync(request);
GenerateMembershipRBACRoleBindingYAMLAsync(GenerateMembershipRBACRoleBindingYAMLRequest, CancellationToken)
public virtual Task<GenerateMembershipRBACRoleBindingYAMLResponse> GenerateMembershipRBACRoleBindingYAMLAsync(GenerateMembershipRBACRoleBindingYAMLRequest request, CancellationToken cancellationToken)Generates a YAML of the RBAC policies for the specified RoleBinding and its associated impersonation resources.
| Parameters | |
|---|---|
| Name | Description |
request |
GenerateMembershipRBACRoleBindingYAMLRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskGenerateMembershipRBACRoleBindingYAMLResponse |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GenerateMembershipRBACRoleBindingYAMLRequest request = new GenerateMembershipRBACRoleBindingYAMLRequest
{
ParentAsMembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
RbacrolebindingId = "",
Rbacrolebinding = new RBACRoleBinding(),
};
// Make the request
GenerateMembershipRBACRoleBindingYAMLResponse response = await gkeHubClient.GenerateMembershipRBACRoleBindingYAMLAsync(request);
GetFeature(FeatureName, CallSettings)
public virtual Feature GetFeature(FeatureName name, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The Feature resource name in the format
|
callSettings |
CallSettingsIf 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)
FeatureName name = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]");
// Make the request
Feature response = gkeHubClient.GetFeature(name);
GetFeature(GetFeatureRequest, CallSettings)
public virtual Feature GetFeature(GetFeatureRequest request, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf 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
{
FeatureName = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]"),
ReturnPartialSuccess = false,
};
// 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 |
stringRequired. The Feature resource name in the format
|
callSettings |
CallSettingsIf 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 = "projects/[PROJECT]/locations/[LOCATION]/features/[FEATURE]";
// Make the request
Feature response = gkeHubClient.GetFeature(name);
GetFeatureAsync(FeatureName, CallSettings)
public virtual Task<Feature> GetFeatureAsync(FeatureName name, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The Feature resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]");
// Make the request
Feature response = await gkeHubClient.GetFeatureAsync(name);
GetFeatureAsync(FeatureName, CancellationToken)
public virtual Task<Feature> GetFeatureAsync(FeatureName name, CancellationToken cancellationToken)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The Feature resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]");
// Make the request
Feature response = await gkeHubClient.GetFeatureAsync(name);
GetFeatureAsync(GetFeatureRequest, CallSettings)
public virtual Task<Feature> GetFeatureAsync(GetFeatureRequest request, CallSettings callSettings = null)Gets details of a single Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetFeatureRequest request = new GetFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]"),
ReturnPartialSuccess = false,
};
// 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 |
GetFeatureRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetFeatureRequest request = new GetFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]"),
ReturnPartialSuccess = false,
};
// 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 |
stringRequired. The Feature resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/features/[FEATURE]";
// 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 |
stringRequired. The Feature resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFeature |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/features/[FEATURE]";
// Make the request
Feature response = await gkeHubClient.GetFeatureAsync(name);
GetFleet(FleetName, CallSettings)
public virtual Fleet GetFleet(FleetName name, CallSettings callSettings = null)Returns the details of a fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
FleetNameRequired. The Fleet resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Fleet |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
FleetName name = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]");
// Make the request
Fleet response = gkeHubClient.GetFleet(name);
GetFleet(GetFleetRequest, CallSettings)
public virtual Fleet GetFleet(GetFleetRequest request, CallSettings callSettings = null)Returns the details of a fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFleetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Fleet |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GetFleetRequest request = new GetFleetRequest
{
FleetName = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]"),
};
// Make the request
Fleet response = gkeHubClient.GetFleet(request);
GetFleet(string, CallSettings)
public virtual Fleet GetFleet(string name, CallSettings callSettings = null)Returns the details of a fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Fleet resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Fleet |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleets/[FLEET]";
// Make the request
Fleet response = gkeHubClient.GetFleet(name);
GetFleetAsync(FleetName, CallSettings)
public virtual Task<Fleet> GetFleetAsync(FleetName name, CallSettings callSettings = null)Returns the details of a fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
FleetNameRequired. The Fleet resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFleet |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FleetName name = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]");
// Make the request
Fleet response = await gkeHubClient.GetFleetAsync(name);
GetFleetAsync(FleetName, CancellationToken)
public virtual Task<Fleet> GetFleetAsync(FleetName name, CancellationToken cancellationToken)Returns the details of a fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
FleetNameRequired. The Fleet resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFleet |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FleetName name = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]");
// Make the request
Fleet response = await gkeHubClient.GetFleetAsync(name);
GetFleetAsync(GetFleetRequest, CallSettings)
public virtual Task<Fleet> GetFleetAsync(GetFleetRequest request, CallSettings callSettings = null)Returns the details of a fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFleetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFleet |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetFleetRequest request = new GetFleetRequest
{
FleetName = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]"),
};
// Make the request
Fleet response = await gkeHubClient.GetFleetAsync(request);
GetFleetAsync(GetFleetRequest, CancellationToken)
public virtual Task<Fleet> GetFleetAsync(GetFleetRequest request, CancellationToken cancellationToken)Returns the details of a fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
GetFleetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFleet |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetFleetRequest request = new GetFleetRequest
{
FleetName = FleetName.FromProjectLocationFleet("[PROJECT]", "[LOCATION]", "[FLEET]"),
};
// Make the request
Fleet response = await gkeHubClient.GetFleetAsync(request);
GetFleetAsync(string, CallSettings)
public virtual Task<Fleet> GetFleetAsync(string name, CallSettings callSettings = null)Returns the details of a fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Fleet resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskFleet |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleets/[FLEET]";
// Make the request
Fleet response = await gkeHubClient.GetFleetAsync(name);
GetFleetAsync(string, CancellationToken)
public virtual Task<Fleet> GetFleetAsync(string name, CancellationToken cancellationToken)Returns the details of a fleet.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Fleet resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskFleet |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/fleets/[FLEET]";
// Make the request
Fleet response = await gkeHubClient.GetFleetAsync(name);
GetMembership(GetMembershipRequest, CallSettings)
public virtual Membership GetMembership(GetMembershipRequest request, CallSettings callSettings = null)Gets the details of a Membership.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMembershipRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf 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 |
MembershipNameRequired. The Membership resource name in the format
|
callSettings |
CallSettingsIf 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 |
stringRequired. The Membership resource name in the format
|
callSettings |
CallSettingsIf 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 |
GetMembershipRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMembership |
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 |
GetMembershipRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskMembership |
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 |
MembershipNameRequired. The Membership resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMembership |
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 |
MembershipNameRequired. The Membership resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskMembership |
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 |
stringRequired. The Membership resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMembership |
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 |
stringRequired. The Membership resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskMembership |
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);
GetMembershipBinding(GetMembershipBindingRequest, CallSettings)
public virtual MembershipBinding GetMembershipBinding(GetMembershipBindingRequest request, CallSettings callSettings = null)Returns the details of a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMembershipBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
MembershipBinding |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GetMembershipBindingRequest request = new GetMembershipBindingRequest
{
MembershipBindingName = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"),
};
// Make the request
MembershipBinding response = gkeHubClient.GetMembershipBinding(request);
GetMembershipBinding(MembershipBindingName, CallSettings)
public virtual MembershipBinding GetMembershipBinding(MembershipBindingName name, CallSettings callSettings = null)Returns the details of a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
MembershipBindingNameRequired. The MembershipBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
MembershipBinding |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipBindingName name = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
// Make the request
MembershipBinding response = gkeHubClient.GetMembershipBinding(name);
GetMembershipBinding(string, CallSettings)
public virtual MembershipBinding GetMembershipBinding(string name, CallSettings callSettings = null)Returns the details of a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The MembershipBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
MembershipBinding |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]/bindings/[MEMBERSHIPBINDING]";
// Make the request
MembershipBinding response = gkeHubClient.GetMembershipBinding(name);
GetMembershipBindingAsync(GetMembershipBindingRequest, CallSettings)
public virtual Task<MembershipBinding> GetMembershipBindingAsync(GetMembershipBindingRequest request, CallSettings callSettings = null)Returns the details of a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMembershipBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMembershipBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetMembershipBindingRequest request = new GetMembershipBindingRequest
{
MembershipBindingName = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"),
};
// Make the request
MembershipBinding response = await gkeHubClient.GetMembershipBindingAsync(request);
GetMembershipBindingAsync(GetMembershipBindingRequest, CancellationToken)
public virtual Task<MembershipBinding> GetMembershipBindingAsync(GetMembershipBindingRequest request, CancellationToken cancellationToken)Returns the details of a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMembershipBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskMembershipBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetMembershipBindingRequest request = new GetMembershipBindingRequest
{
MembershipBindingName = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]"),
};
// Make the request
MembershipBinding response = await gkeHubClient.GetMembershipBindingAsync(request);
GetMembershipBindingAsync(MembershipBindingName, CallSettings)
public virtual Task<MembershipBinding> GetMembershipBindingAsync(MembershipBindingName name, CallSettings callSettings = null)Returns the details of a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
MembershipBindingNameRequired. The MembershipBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMembershipBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipBindingName name = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
// Make the request
MembershipBinding response = await gkeHubClient.GetMembershipBindingAsync(name);
GetMembershipBindingAsync(MembershipBindingName, CancellationToken)
public virtual Task<MembershipBinding> GetMembershipBindingAsync(MembershipBindingName name, CancellationToken cancellationToken)Returns the details of a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
MembershipBindingNameRequired. The MembershipBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskMembershipBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipBindingName name = MembershipBindingName.FromProjectLocationMembershipMembershipbinding("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]", "[MEMBERSHIPBINDING]");
// Make the request
MembershipBinding response = await gkeHubClient.GetMembershipBindingAsync(name);
GetMembershipBindingAsync(string, CallSettings)
public virtual Task<MembershipBinding> GetMembershipBindingAsync(string name, CallSettings callSettings = null)Returns the details of a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The MembershipBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskMembershipBinding |
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]/bindings/[MEMBERSHIPBINDING]";
// Make the request
MembershipBinding response = await gkeHubClient.GetMembershipBindingAsync(name);
GetMembershipBindingAsync(string, CancellationToken)
public virtual Task<MembershipBinding> GetMembershipBindingAsync(string name, CancellationToken cancellationToken)Returns the details of a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The MembershipBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskMembershipBinding |
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]/bindings/[MEMBERSHIPBINDING]";
// Make the request
MembershipBinding response = await gkeHubClient.GetMembershipBindingAsync(name);
GetMembershipRBACRoleBinding(GetMembershipRBACRoleBindingRequest, CallSettings)
public virtual RBACRoleBinding GetMembershipRBACRoleBinding(GetMembershipRBACRoleBindingRequest request, CallSettings callSettings = null)Returns the details of a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RBACRoleBinding |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GetMembershipRBACRoleBindingRequest request = new GetMembershipRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
RBACRoleBinding response = gkeHubClient.GetMembershipRBACRoleBinding(request);
GetMembershipRBACRoleBinding(RBACRoleBindingName, CallSettings)
public virtual RBACRoleBinding GetMembershipRBACRoleBinding(RBACRoleBindingName name, CallSettings callSettings = null)Returns the details of a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RBACRoleBinding |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
RBACRoleBinding response = gkeHubClient.GetMembershipRBACRoleBinding(name);
GetMembershipRBACRoleBinding(string, CallSettings)
public virtual RBACRoleBinding GetMembershipRBACRoleBinding(string name, CallSettings callSettings = null)Returns the details of a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RBACRoleBinding |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
RBACRoleBinding response = gkeHubClient.GetMembershipRBACRoleBinding(name);
GetMembershipRBACRoleBindingAsync(GetMembershipRBACRoleBindingRequest, CallSettings)
public virtual Task<RBACRoleBinding> GetMembershipRBACRoleBindingAsync(GetMembershipRBACRoleBindingRequest request, CallSettings callSettings = null)Returns the details of a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetMembershipRBACRoleBindingRequest request = new GetMembershipRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
RBACRoleBinding response = await gkeHubClient.GetMembershipRBACRoleBindingAsync(request);
GetMembershipRBACRoleBindingAsync(GetMembershipRBACRoleBindingRequest, CancellationToken)
public virtual Task<RBACRoleBinding> GetMembershipRBACRoleBindingAsync(GetMembershipRBACRoleBindingRequest request, CancellationToken cancellationToken)Returns the details of a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetMembershipRBACRoleBindingRequest request = new GetMembershipRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
RBACRoleBinding response = await gkeHubClient.GetMembershipRBACRoleBindingAsync(request);
GetMembershipRBACRoleBindingAsync(RBACRoleBindingName, CallSettings)
public virtual Task<RBACRoleBinding> GetMembershipRBACRoleBindingAsync(RBACRoleBindingName name, CallSettings callSettings = null)Returns the details of a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
RBACRoleBinding response = await gkeHubClient.GetMembershipRBACRoleBindingAsync(name);
GetMembershipRBACRoleBindingAsync(RBACRoleBindingName, CancellationToken)
public virtual Task<RBACRoleBinding> GetMembershipRBACRoleBindingAsync(RBACRoleBindingName name, CancellationToken cancellationToken)Returns the details of a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
RBACRoleBinding response = await gkeHubClient.GetMembershipRBACRoleBindingAsync(name);
GetMembershipRBACRoleBindingAsync(string, CallSettings)
public virtual Task<RBACRoleBinding> GetMembershipRBACRoleBindingAsync(string name, CallSettings callSettings = null)Returns the details of a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
RBACRoleBinding response = await gkeHubClient.GetMembershipRBACRoleBindingAsync(name);
GetMembershipRBACRoleBindingAsync(string, CancellationToken)
public virtual Task<RBACRoleBinding> GetMembershipRBACRoleBindingAsync(string name, CancellationToken cancellationToken)Returns the details of a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
RBACRoleBinding response = await gkeHubClient.GetMembershipRBACRoleBindingAsync(name);
GetScope(GetScopeRequest, CallSettings)
public virtual Scope GetScope(GetScopeRequest request, CallSettings callSettings = null)Returns the details of a Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Scope |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GetScopeRequest request = new GetScopeRequest
{
ScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
Scope response = gkeHubClient.GetScope(request);
GetScope(ScopeName, CallSettings)
public virtual Scope GetScope(ScopeName name, CallSettings callSettings = null)Returns the details of a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
ScopeNameRequired. The Scope resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Scope |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ScopeName name = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
Scope response = gkeHubClient.GetScope(name);
GetScope(string, CallSettings)
public virtual Scope GetScope(string name, CallSettings callSettings = null)Returns the details of a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Scope resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Scope |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
Scope response = gkeHubClient.GetScope(name);
GetScopeAsync(GetScopeRequest, CallSettings)
public virtual Task<Scope> GetScopeAsync(GetScopeRequest request, CallSettings callSettings = null)Returns the details of a Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetScopeRequest request = new GetScopeRequest
{
ScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
Scope response = await gkeHubClient.GetScopeAsync(request);
GetScopeAsync(GetScopeRequest, CancellationToken)
public virtual Task<Scope> GetScopeAsync(GetScopeRequest request, CancellationToken cancellationToken)Returns the details of a Scope.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetScopeRequest request = new GetScopeRequest
{
ScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
Scope response = await gkeHubClient.GetScopeAsync(request);
GetScopeAsync(ScopeName, CallSettings)
public virtual Task<Scope> GetScopeAsync(ScopeName name, CallSettings callSettings = null)Returns the details of a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
ScopeNameRequired. The Scope resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName name = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
Scope response = await gkeHubClient.GetScopeAsync(name);
GetScopeAsync(ScopeName, CancellationToken)
public virtual Task<Scope> GetScopeAsync(ScopeName name, CancellationToken cancellationToken)Returns the details of a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
ScopeNameRequired. The Scope resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName name = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
Scope response = await gkeHubClient.GetScopeAsync(name);
GetScopeAsync(string, CallSettings)
public virtual Task<Scope> GetScopeAsync(string name, CallSettings callSettings = null)Returns the details of a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Scope resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
Scope response = await gkeHubClient.GetScopeAsync(name);
GetScopeAsync(string, CancellationToken)
public virtual Task<Scope> GetScopeAsync(string name, CancellationToken cancellationToken)Returns the details of a Scope.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Scope resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskScope |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
Scope response = await gkeHubClient.GetScopeAsync(name);
GetScopeNamespace(GetScopeNamespaceRequest, CallSettings)
public virtual Namespace GetScopeNamespace(GetScopeNamespaceRequest request, CallSettings callSettings = null)Returns the details of a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Namespace |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GetScopeNamespaceRequest request = new GetScopeNamespaceRequest
{
NamespaceName = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"),
};
// Make the request
Namespace response = gkeHubClient.GetScopeNamespace(request);
GetScopeNamespace(NamespaceName, CallSettings)
public virtual Namespace GetScopeNamespace(NamespaceName name, CallSettings callSettings = null)Returns the details of a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
NamespaceNameRequired. The Namespace resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Namespace |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
// Make the request
Namespace response = gkeHubClient.GetScopeNamespace(name);
GetScopeNamespace(string, CallSettings)
public virtual Namespace GetScopeNamespace(string name, CallSettings callSettings = null)Returns the details of a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Namespace resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Namespace |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/namespaces/[NAMESPACE]";
// Make the request
Namespace response = gkeHubClient.GetScopeNamespace(name);
GetScopeNamespaceAsync(GetScopeNamespaceRequest, CallSettings)
public virtual Task<Namespace> GetScopeNamespaceAsync(GetScopeNamespaceRequest request, CallSettings callSettings = null)Returns the details of a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskNamespace |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetScopeNamespaceRequest request = new GetScopeNamespaceRequest
{
NamespaceName = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"),
};
// Make the request
Namespace response = await gkeHubClient.GetScopeNamespaceAsync(request);
GetScopeNamespaceAsync(GetScopeNamespaceRequest, CancellationToken)
public virtual Task<Namespace> GetScopeNamespaceAsync(GetScopeNamespaceRequest request, CancellationToken cancellationToken)Returns the details of a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskNamespace |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetScopeNamespaceRequest request = new GetScopeNamespaceRequest
{
NamespaceName = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]"),
};
// Make the request
Namespace response = await gkeHubClient.GetScopeNamespaceAsync(request);
GetScopeNamespaceAsync(NamespaceName, CallSettings)
public virtual Task<Namespace> GetScopeNamespaceAsync(NamespaceName name, CallSettings callSettings = null)Returns the details of a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
NamespaceNameRequired. The Namespace resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskNamespace |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
// Make the request
Namespace response = await gkeHubClient.GetScopeNamespaceAsync(name);
GetScopeNamespaceAsync(NamespaceName, CancellationToken)
public virtual Task<Namespace> GetScopeNamespaceAsync(NamespaceName name, CancellationToken cancellationToken)Returns the details of a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
NamespaceNameRequired. The Namespace resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskNamespace |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
NamespaceName name = NamespaceName.FromProjectLocationScopeNamespace("[PROJECT]", "[LOCATION]", "[SCOPE]", "[NAMESPACE]");
// Make the request
Namespace response = await gkeHubClient.GetScopeNamespaceAsync(name);
GetScopeNamespaceAsync(string, CallSettings)
public virtual Task<Namespace> GetScopeNamespaceAsync(string name, CallSettings callSettings = null)Returns the details of a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Namespace resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskNamespace |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/namespaces/[NAMESPACE]";
// Make the request
Namespace response = await gkeHubClient.GetScopeNamespaceAsync(name);
GetScopeNamespaceAsync(string, CancellationToken)
public virtual Task<Namespace> GetScopeNamespaceAsync(string name, CancellationToken cancellationToken)Returns the details of a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The Namespace resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskNamespace |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/namespaces/[NAMESPACE]";
// Make the request
Namespace response = await gkeHubClient.GetScopeNamespaceAsync(name);
GetScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest, CallSettings)
public virtual RBACRoleBinding GetScopeRBACRoleBinding(GetScopeRBACRoleBindingRequest request, CallSettings callSettings = null)Returns the details of a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RBACRoleBinding |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
GetScopeRBACRoleBindingRequest request = new GetScopeRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
RBACRoleBinding response = gkeHubClient.GetScopeRBACRoleBinding(request);
GetScopeRBACRoleBinding(RBACRoleBindingName, CallSettings)
public virtual RBACRoleBinding GetScopeRBACRoleBinding(RBACRoleBindingName name, CallSettings callSettings = null)Returns the details of a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RBACRoleBinding |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
RBACRoleBinding response = gkeHubClient.GetScopeRBACRoleBinding(name);
GetScopeRBACRoleBinding(string, CallSettings)
public virtual RBACRoleBinding GetScopeRBACRoleBinding(string name, CallSettings callSettings = null)Returns the details of a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
RBACRoleBinding |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
RBACRoleBinding response = gkeHubClient.GetScopeRBACRoleBinding(name);
GetScopeRBACRoleBindingAsync(GetScopeRBACRoleBindingRequest, CallSettings)
public virtual Task<RBACRoleBinding> GetScopeRBACRoleBindingAsync(GetScopeRBACRoleBindingRequest request, CallSettings callSettings = null)Returns the details of a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetScopeRBACRoleBindingRequest request = new GetScopeRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
RBACRoleBinding response = await gkeHubClient.GetScopeRBACRoleBindingAsync(request);
GetScopeRBACRoleBindingAsync(GetScopeRBACRoleBindingRequest, CancellationToken)
public virtual Task<RBACRoleBinding> GetScopeRBACRoleBindingAsync(GetScopeRBACRoleBindingRequest request, CancellationToken cancellationToken)Returns the details of a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
GetScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
GetScopeRBACRoleBindingRequest request = new GetScopeRBACRoleBindingRequest
{
RBACRoleBindingName = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]"),
};
// Make the request
RBACRoleBinding response = await gkeHubClient.GetScopeRBACRoleBindingAsync(request);
GetScopeRBACRoleBindingAsync(RBACRoleBindingName, CallSettings)
public virtual Task<RBACRoleBinding> GetScopeRBACRoleBindingAsync(RBACRoleBindingName name, CallSettings callSettings = null)Returns the details of a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
RBACRoleBinding response = await gkeHubClient.GetScopeRBACRoleBindingAsync(name);
GetScopeRBACRoleBindingAsync(RBACRoleBindingName, CancellationToken)
public virtual Task<RBACRoleBinding> GetScopeRBACRoleBindingAsync(RBACRoleBindingName name, CancellationToken cancellationToken)Returns the details of a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
RBACRoleBindingNameRequired. The RBACRoleBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBindingName name = RBACRoleBindingName.FromProjectLocationScopeRbacrolebinding("[PROJECT]", "[LOCATION]", "[SCOPE]", "[RBACROLEBINDING]");
// Make the request
RBACRoleBinding response = await gkeHubClient.GetScopeRBACRoleBindingAsync(name);
GetScopeRBACRoleBindingAsync(string, CallSettings)
public virtual Task<RBACRoleBinding> GetScopeRBACRoleBindingAsync(string name, CallSettings callSettings = null)Returns the details of a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
RBACRoleBinding response = await gkeHubClient.GetScopeRBACRoleBindingAsync(name);
GetScopeRBACRoleBindingAsync(string, CancellationToken)
public virtual Task<RBACRoleBinding> GetScopeRBACRoleBindingAsync(string name, CancellationToken cancellationToken)Returns the details of a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
name |
stringRequired. The RBACRoleBinding resource name in the format
|
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskRBACRoleBinding |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]/rbacrolebindings/[RBACROLEBINDING]";
// Make the request
RBACRoleBinding response = await gkeHubClient.GetScopeRBACRoleBindingAsync(name);
ListBoundMemberships(ListBoundMembershipsRequest, CallSettings)
public virtual PagedEnumerable<ListBoundMembershipsResponse, Membership> ListBoundMemberships(ListBoundMembershipsRequest request, CallSettings callSettings = null)Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBoundMembershipsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBoundMembershipsResponseMembership |
A pageable sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListBoundMembershipsRequest request = new ListBoundMembershipsRequest
{
ScopeNameAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListBoundMembershipsResponse, Membership> response = gkeHubClient.ListBoundMemberships(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 (ListBoundMembershipsResponse 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;
ListBoundMemberships(ScopeName, string, int?, CallSettings)
public virtual PagedEnumerable<ListBoundMembershipsResponse, Membership> ListBoundMemberships(ScopeName scopeName, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
| Parameters | |
|---|---|
| Name | Description |
scopeName |
ScopeNameRequired. Name of the Scope, in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBoundMembershipsResponseMembership |
A pageable sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ScopeName scopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
PagedEnumerable<ListBoundMembershipsResponse, Membership> response = gkeHubClient.ListBoundMemberships(scopeName);
// 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 (ListBoundMembershipsResponse 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;
ListBoundMemberships(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListBoundMembershipsResponse, Membership> ListBoundMemberships(string scopeName, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
| Parameters | |
|---|---|
| Name | Description |
scopeName |
stringRequired. Name of the Scope, in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListBoundMembershipsResponseMembership |
A pageable sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string scopeName = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
PagedEnumerable<ListBoundMembershipsResponse, Membership> response = gkeHubClient.ListBoundMemberships(scopeName);
// 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 (ListBoundMembershipsResponse 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;
ListBoundMembershipsAsync(ListBoundMembershipsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListBoundMembershipsResponse, Membership> ListBoundMembershipsAsync(ListBoundMembershipsRequest request, CallSettings callSettings = null)Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
| Parameters | |
|---|---|
| Name | Description |
request |
ListBoundMembershipsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBoundMembershipsResponseMembership |
A pageable asynchronous sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListBoundMembershipsRequest request = new ListBoundMembershipsRequest
{
ScopeNameAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListBoundMembershipsResponse, Membership> response = gkeHubClient.ListBoundMembershipsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await 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
await foreach (ListBoundMembershipsResponse 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 = 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;
ListBoundMembershipsAsync(ScopeName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBoundMembershipsResponse, Membership> ListBoundMembershipsAsync(ScopeName scopeName, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
| Parameters | |
|---|---|
| Name | Description |
scopeName |
ScopeNameRequired. Name of the Scope, in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBoundMembershipsResponseMembership |
A pageable asynchronous sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName scopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
PagedAsyncEnumerable<ListBoundMembershipsResponse, Membership> response = gkeHubClient.ListBoundMembershipsAsync(scopeName);
// Iterate over all response items, lazily performing RPCs as required
await 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
await foreach (ListBoundMembershipsResponse 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 = 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;
ListBoundMembershipsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListBoundMembershipsResponse, Membership> ListBoundMembershipsAsync(string scopeName, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Memberships bound to a Scope. The response includes relevant Memberships from all regions.
| Parameters | |
|---|---|
| Name | Description |
scopeName |
stringRequired. Name of the Scope, in the format
|
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListBoundMembershipsResponseMembership |
A pageable asynchronous sequence of Membership resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string scopeName = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
PagedAsyncEnumerable<ListBoundMembershipsResponse, Membership> response = gkeHubClient.ListBoundMembershipsAsync(scopeName);
// Iterate over all response items, lazily performing RPCs as required
await 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
await foreach (ListBoundMembershipsResponse 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 = 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;
ListFeatures(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFeaturesResponse, Feature> ListFeatures(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeaturesResponseFeature |
A pageable sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// 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;
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 |
ListFeaturesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeaturesResponseFeature |
A pageable sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListFeaturesRequest request = new ListFeaturesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
ReturnPartialSuccess = false,
};
// 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, int?, CallSettings)
public virtual PagedEnumerable<ListFeaturesResponse, Feature> ListFeatures(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFeaturesResponseFeature |
A pageable sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// 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(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeaturesResponse, Feature> ListFeaturesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeaturesResponseFeature |
A pageable asynchronous sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFeaturesResponse, Feature> response = gkeHubClient.ListFeaturesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await 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
await 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 = 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(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 |
ListFeaturesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeaturesResponseFeature |
A pageable asynchronous sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListFeaturesRequest request = new ListFeaturesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
ReturnPartialSuccess = false,
};
// Make the request
PagedAsyncEnumerable<ListFeaturesResponse, Feature> response = gkeHubClient.ListFeaturesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await 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
await 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 = 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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFeaturesResponse, Feature> ListFeaturesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Features in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFeaturesResponseFeature |
A pageable asynchronous sequence of Feature resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListFeaturesResponse, Feature> response = gkeHubClient.ListFeaturesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await 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
await 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 = 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;
ListFleets(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListFleetsResponse, Fleet> ListFleets(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Returns all fleets within an organization or a project that the caller has access to.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The organization or project to list for Fleets under, in the
format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFleetsResponseFleet |
A pageable sequence of Fleet resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListFleetsResponse, Fleet> response = gkeHubClient.ListFleets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Fleet 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 (ListFleetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Fleet 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<Fleet> 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 (Fleet 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;
ListFleets(ListFleetsRequest, CallSettings)
public virtual PagedEnumerable<ListFleetsResponse, Fleet> ListFleets(ListFleetsRequest request, CallSettings callSettings = null)Returns all fleets within an organization or a project that the caller has access to.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFleetsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFleetsResponseFleet |
A pageable sequence of Fleet resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListFleetsRequest request = new ListFleetsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListFleetsResponse, Fleet> response = gkeHubClient.ListFleets(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Fleet 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 (ListFleetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Fleet 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<Fleet> 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 (Fleet 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;
ListFleets(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListFleetsResponse, Fleet> ListFleets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Returns all fleets within an organization or a project that the caller has access to.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The organization or project to list for Fleets under, in the
format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListFleetsResponseFleet |
A pageable sequence of Fleet resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListFleetsResponse, Fleet> response = gkeHubClient.ListFleets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Fleet 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 (ListFleetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Fleet 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<Fleet> 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 (Fleet 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;
ListFleetsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFleetsResponse, Fleet> ListFleetsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Returns all fleets within an organization or a project that the caller has access to.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The organization or project to list for Fleets under, in the
format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFleetsResponseFleet |
A pageable asynchronous sequence of Fleet resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListFleetsResponse, Fleet> response = gkeHubClient.ListFleetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Fleet item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFleetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Fleet 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<Fleet> 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 (Fleet 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;
ListFleetsAsync(ListFleetsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListFleetsResponse, Fleet> ListFleetsAsync(ListFleetsRequest request, CallSettings callSettings = null)Returns all fleets within an organization or a project that the caller has access to.
| Parameters | |
|---|---|
| Name | Description |
request |
ListFleetsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFleetsResponseFleet |
A pageable asynchronous sequence of Fleet resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListFleetsRequest request = new ListFleetsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListFleetsResponse, Fleet> response = gkeHubClient.ListFleetsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Fleet item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFleetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Fleet 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<Fleet> 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 (Fleet 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;
ListFleetsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListFleetsResponse, Fleet> ListFleetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Returns all fleets within an organization or a project that the caller has access to.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The organization or project to list for Fleets under, in the
format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListFleetsResponseFleet |
A pageable asynchronous sequence of Fleet resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListFleetsResponse, Fleet> response = gkeHubClient.ListFleetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Fleet item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListFleetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Fleet 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<Fleet> 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 (Fleet 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;
ListMembershipBindings(ListMembershipBindingsRequest, CallSettings)
public virtual PagedEnumerable<ListMembershipBindingsResponse, MembershipBinding> ListMembershipBindings(ListMembershipBindingsRequest request, CallSettings callSettings = null)Lists MembershipBindings.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMembershipBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipBindingsResponseMembershipBinding |
A pageable sequence of MembershipBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListMembershipBindingsRequest request = new ListMembershipBindingsRequest
{
ParentAsMembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListMembershipBindingsResponse, MembershipBinding> response = gkeHubClient.ListMembershipBindings(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (MembershipBinding 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 (ListMembershipBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MembershipBinding 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<MembershipBinding> 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 (MembershipBinding 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;
ListMembershipBindings(MembershipName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMembershipBindingsResponse, MembershipBinding> ListMembershipBindings(MembershipName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists MembershipBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent Membership for which the MembershipBindings will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipBindingsResponseMembershipBinding |
A pageable sequence of MembershipBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
PagedEnumerable<ListMembershipBindingsResponse, MembershipBinding> response = gkeHubClient.ListMembershipBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MembershipBinding 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 (ListMembershipBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MembershipBinding 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<MembershipBinding> 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 (MembershipBinding 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;
ListMembershipBindings(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListMembershipBindingsResponse, MembershipBinding> ListMembershipBindings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists MembershipBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent Membership for which the MembershipBindings will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipBindingsResponseMembershipBinding |
A pageable sequence of MembershipBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
// Make the request
PagedEnumerable<ListMembershipBindingsResponse, MembershipBinding> response = gkeHubClient.ListMembershipBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (MembershipBinding 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 (ListMembershipBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MembershipBinding 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<MembershipBinding> 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 (MembershipBinding 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;
ListMembershipBindingsAsync(ListMembershipBindingsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipBindingsResponse, MembershipBinding> ListMembershipBindingsAsync(ListMembershipBindingsRequest request, CallSettings callSettings = null)Lists MembershipBindings.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMembershipBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipBindingsResponseMembershipBinding |
A pageable asynchronous sequence of MembershipBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListMembershipBindingsRequest request = new ListMembershipBindingsRequest
{
ParentAsMembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListMembershipBindingsResponse, MembershipBinding> response = gkeHubClient.ListMembershipBindingsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (MembershipBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListMembershipBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MembershipBinding 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<MembershipBinding> 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 (MembershipBinding 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;
ListMembershipBindingsAsync(MembershipName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipBindingsResponse, MembershipBinding> ListMembershipBindingsAsync(MembershipName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists MembershipBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent Membership for which the MembershipBindings will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipBindingsResponseMembershipBinding |
A pageable asynchronous sequence of MembershipBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
PagedAsyncEnumerable<ListMembershipBindingsResponse, MembershipBinding> response = gkeHubClient.ListMembershipBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (MembershipBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListMembershipBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MembershipBinding 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<MembershipBinding> 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 (MembershipBinding 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;
ListMembershipBindingsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipBindingsResponse, MembershipBinding> ListMembershipBindingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists MembershipBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent Membership for which the MembershipBindings will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipBindingsResponseMembershipBinding |
A pageable asynchronous sequence of MembershipBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
// Make the request
PagedAsyncEnumerable<ListMembershipBindingsResponse, MembershipBinding> response = gkeHubClient.ListMembershipBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (MembershipBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListMembershipBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (MembershipBinding 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<MembershipBinding> 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 (MembershipBinding 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;
ListMembershipRBACRoleBindings(ListMembershipRBACRoleBindingsRequest, CallSettings)
public virtual PagedEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> ListMembershipRBACRoleBindings(ListMembershipRBACRoleBindingsRequest request, CallSettings callSettings = null)Lists all Membership RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMembershipRBACRoleBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipRBACRoleBindingsResponseRBACRoleBinding |
A pageable sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListMembershipRBACRoleBindingsRequest request = new ListMembershipRBACRoleBindingsRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
PagedEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListMembershipRBACRoleBindings(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (RBACRoleBinding 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 (ListMembershipRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListMembershipRBACRoleBindings(MembershipName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> ListMembershipRBACRoleBindings(MembershipName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Membership RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipRBACRoleBindingsResponseRBACRoleBinding |
A pageable sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
PagedEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListMembershipRBACRoleBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RBACRoleBinding 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 (ListMembershipRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListMembershipRBACRoleBindings(ScopeName, string, int?, CallSettings)
public virtual PagedEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> ListMembershipRBACRoleBindings(ScopeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Membership RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipRBACRoleBindingsResponseRBACRoleBinding |
A pageable sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
PagedEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListMembershipRBACRoleBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RBACRoleBinding 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 (ListMembershipRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListMembershipRBACRoleBindings(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> ListMembershipRBACRoleBindings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Membership RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipRBACRoleBindingsResponseRBACRoleBinding |
A pageable sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
PagedEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListMembershipRBACRoleBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RBACRoleBinding 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 (ListMembershipRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListMembershipRBACRoleBindingsAsync(ListMembershipRBACRoleBindingsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> ListMembershipRBACRoleBindingsAsync(ListMembershipRBACRoleBindingsRequest request, CallSettings callSettings = null)Lists all Membership RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
request |
ListMembershipRBACRoleBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipRBACRoleBindingsResponseRBACRoleBinding |
A pageable asynchronous sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListMembershipRBACRoleBindingsRequest request = new ListMembershipRBACRoleBindingsRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
PagedAsyncEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListMembershipRBACRoleBindingsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (RBACRoleBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListMembershipRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListMembershipRBACRoleBindingsAsync(MembershipName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> ListMembershipRBACRoleBindingsAsync(MembershipName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Membership RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipRBACRoleBindingsResponseRBACRoleBinding |
A pageable asynchronous sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
PagedAsyncEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListMembershipRBACRoleBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (RBACRoleBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListMembershipRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListMembershipRBACRoleBindingsAsync(ScopeName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> ListMembershipRBACRoleBindingsAsync(ScopeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Membership RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipRBACRoleBindingsResponseRBACRoleBinding |
A pageable asynchronous sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
PagedAsyncEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListMembershipRBACRoleBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (RBACRoleBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListMembershipRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListMembershipRBACRoleBindingsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> ListMembershipRBACRoleBindingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Membership RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipRBACRoleBindingsResponseRBACRoleBinding |
A pageable asynchronous sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
PagedAsyncEnumerable<ListMembershipRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListMembershipRBACRoleBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (RBACRoleBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListMembershipRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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, int?, CallSettings)
public virtual PagedEnumerable<ListMembershipsResponse, Membership> ListMemberships(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Memberships in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Memberships will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipsResponseMembership |
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 |
ListMembershipsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipsResponseMembership |
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, int?, CallSettings)
public virtual PagedEnumerable<ListMembershipsResponse, Membership> ListMemberships(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Memberships in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Memberships will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListMembershipsResponseMembership |
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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipsResponse, Membership> ListMembershipsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Memberships in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Memberships will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipsResponseMembership |
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 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
await 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 = 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 |
ListMembershipsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipsResponseMembership |
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 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
await 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 = 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, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListMembershipsResponse, Membership> ListMembershipsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Memberships in a given project and location.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Memberships will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListMembershipsResponseMembership |
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 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
await 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 = 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;
ListPermittedScopes(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPermittedScopesResponse, Scope> ListPermittedScopes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists permitted Scopes.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Scope will be listed.
Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListPermittedScopesResponseScope |
A pageable sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPermittedScopesResponse, Scope> response = gkeHubClient.ListPermittedScopes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Scope 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 (ListPermittedScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListPermittedScopes(ListPermittedScopesRequest, CallSettings)
public virtual PagedEnumerable<ListPermittedScopesResponse, Scope> ListPermittedScopes(ListPermittedScopesRequest request, CallSettings callSettings = null)Lists permitted Scopes.
| Parameters | |
|---|---|
| Name | Description |
request |
ListPermittedScopesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListPermittedScopesResponseScope |
A pageable sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListPermittedScopesRequest request = new ListPermittedScopesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListPermittedScopesResponse, Scope> response = gkeHubClient.ListPermittedScopes(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Scope 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 (ListPermittedScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListPermittedScopes(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPermittedScopesResponse, Scope> ListPermittedScopes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists permitted Scopes.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Scope will be listed.
Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListPermittedScopesResponseScope |
A pageable sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListPermittedScopesResponse, Scope> response = gkeHubClient.ListPermittedScopes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Scope 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 (ListPermittedScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListPermittedScopesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPermittedScopesResponse, Scope> ListPermittedScopesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists permitted Scopes.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Scope will be listed.
Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListPermittedScopesResponseScope |
A pageable asynchronous sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPermittedScopesResponse, Scope> response = gkeHubClient.ListPermittedScopesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Scope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListPermittedScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListPermittedScopesAsync(ListPermittedScopesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPermittedScopesResponse, Scope> ListPermittedScopesAsync(ListPermittedScopesRequest request, CallSettings callSettings = null)Lists permitted Scopes.
| Parameters | |
|---|---|
| Name | Description |
request |
ListPermittedScopesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListPermittedScopesResponseScope |
A pageable asynchronous sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListPermittedScopesRequest request = new ListPermittedScopesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListPermittedScopesResponse, Scope> response = gkeHubClient.ListPermittedScopesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Scope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListPermittedScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListPermittedScopesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPermittedScopesResponse, Scope> ListPermittedScopesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists permitted Scopes.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Scope will be listed.
Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListPermittedScopesResponseScope |
A pageable asynchronous sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListPermittedScopesResponse, Scope> response = gkeHubClient.ListPermittedScopesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Scope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListPermittedScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListScopeNamespaces(ListScopeNamespacesRequest, CallSettings)
public virtual PagedEnumerable<ListScopeNamespacesResponse, Namespace> ListScopeNamespaces(ListScopeNamespacesRequest request, CallSettings callSettings = null)Lists fleet namespaces.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScopeNamespacesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopeNamespacesResponseNamespace |
A pageable sequence of Namespace resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListScopeNamespacesRequest request = new ListScopeNamespacesRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
PagedEnumerable<ListScopeNamespacesResponse, Namespace> response = gkeHubClient.ListScopeNamespaces(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Namespace 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 (ListScopeNamespacesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Namespace 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<Namespace> 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 (Namespace 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;
ListScopeNamespaces(ScopeName, string, int?, CallSettings)
public virtual PagedEnumerable<ListScopeNamespacesResponse, Namespace> ListScopeNamespaces(ScopeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists fleet namespaces.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopeNamespacesResponseNamespace |
A pageable sequence of Namespace resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
PagedEnumerable<ListScopeNamespacesResponse, Namespace> response = gkeHubClient.ListScopeNamespaces(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Namespace 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 (ListScopeNamespacesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Namespace 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<Namespace> 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 (Namespace 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;
ListScopeNamespaces(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListScopeNamespacesResponse, Namespace> ListScopeNamespaces(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists fleet namespaces.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopeNamespacesResponseNamespace |
A pageable sequence of Namespace resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
PagedEnumerable<ListScopeNamespacesResponse, Namespace> response = gkeHubClient.ListScopeNamespaces(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Namespace 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 (ListScopeNamespacesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Namespace 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<Namespace> 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 (Namespace 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;
ListScopeNamespacesAsync(ListScopeNamespacesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListScopeNamespacesResponse, Namespace> ListScopeNamespacesAsync(ListScopeNamespacesRequest request, CallSettings callSettings = null)Lists fleet namespaces.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScopeNamespacesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopeNamespacesResponseNamespace |
A pageable asynchronous sequence of Namespace resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListScopeNamespacesRequest request = new ListScopeNamespacesRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
PagedAsyncEnumerable<ListScopeNamespacesResponse, Namespace> response = gkeHubClient.ListScopeNamespacesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Namespace item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopeNamespacesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Namespace 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<Namespace> 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 (Namespace 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;
ListScopeNamespacesAsync(ScopeName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListScopeNamespacesResponse, Namespace> ListScopeNamespacesAsync(ScopeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists fleet namespaces.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopeNamespacesResponseNamespace |
A pageable asynchronous sequence of Namespace resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
PagedAsyncEnumerable<ListScopeNamespacesResponse, Namespace> response = gkeHubClient.ListScopeNamespacesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Namespace item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopeNamespacesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Namespace 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<Namespace> 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 (Namespace 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;
ListScopeNamespacesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListScopeNamespacesResponse, Namespace> ListScopeNamespacesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists fleet namespaces.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopeNamespacesResponseNamespace |
A pageable asynchronous sequence of Namespace resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
PagedAsyncEnumerable<ListScopeNamespacesResponse, Namespace> response = gkeHubClient.ListScopeNamespacesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Namespace item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopeNamespacesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Namespace 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<Namespace> 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 (Namespace 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;
ListScopeRBACRoleBindings(ListScopeRBACRoleBindingsRequest, CallSettings)
public virtual PagedEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> ListScopeRBACRoleBindings(ListScopeRBACRoleBindingsRequest request, CallSettings callSettings = null)Lists all Scope RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScopeRBACRoleBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopeRBACRoleBindingsResponseRBACRoleBinding |
A pageable sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListScopeRBACRoleBindingsRequest request = new ListScopeRBACRoleBindingsRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
PagedEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListScopeRBACRoleBindings(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (RBACRoleBinding 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 (ListScopeRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListScopeRBACRoleBindings(MembershipName, string, int?, CallSettings)
public virtual PagedEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> ListScopeRBACRoleBindings(MembershipName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Scope RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopeRBACRoleBindingsResponseRBACRoleBinding |
A pageable sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
PagedEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListScopeRBACRoleBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RBACRoleBinding 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 (ListScopeRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListScopeRBACRoleBindings(ScopeName, string, int?, CallSettings)
public virtual PagedEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> ListScopeRBACRoleBindings(ScopeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Scope RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopeRBACRoleBindingsResponseRBACRoleBinding |
A pageable sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
PagedEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListScopeRBACRoleBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RBACRoleBinding 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 (ListScopeRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListScopeRBACRoleBindings(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> ListScopeRBACRoleBindings(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Scope RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopeRBACRoleBindingsResponseRBACRoleBinding |
A pageable sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
PagedEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListScopeRBACRoleBindings(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (RBACRoleBinding 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 (ListScopeRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListScopeRBACRoleBindingsAsync(ListScopeRBACRoleBindingsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> ListScopeRBACRoleBindingsAsync(ListScopeRBACRoleBindingsRequest request, CallSettings callSettings = null)Lists all Scope RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScopeRBACRoleBindingsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopeRBACRoleBindingsResponseRBACRoleBinding |
A pageable asynchronous sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListScopeRBACRoleBindingsRequest request = new ListScopeRBACRoleBindingsRequest
{
ParentAsScopeName = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]"),
};
// Make the request
PagedAsyncEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListScopeRBACRoleBindingsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (RBACRoleBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopeRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListScopeRBACRoleBindingsAsync(MembershipName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> ListScopeRBACRoleBindingsAsync(MembershipName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Scope RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
MembershipNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopeRBACRoleBindingsResponseRBACRoleBinding |
A pageable asynchronous sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName parent = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
// Make the request
PagedAsyncEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListScopeRBACRoleBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (RBACRoleBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopeRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListScopeRBACRoleBindingsAsync(ScopeName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> ListScopeRBACRoleBindingsAsync(ScopeName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Scope RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
ScopeNameRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopeRBACRoleBindingsResponseRBACRoleBinding |
A pageable asynchronous sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ScopeName parent = ScopeName.FromProjectLocationScope("[PROJECT]", "[LOCATION]", "[SCOPE]");
// Make the request
PagedAsyncEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListScopeRBACRoleBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (RBACRoleBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopeRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListScopeRBACRoleBindingsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> ListScopeRBACRoleBindingsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists all Scope RBACRoleBindings.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Features will be
listed. Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopeRBACRoleBindingsResponseRBACRoleBinding |
A pageable asynchronous sequence of RBACRoleBinding resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/scopes/[SCOPE]";
// Make the request
PagedAsyncEnumerable<ListScopeRBACRoleBindingsResponse, RBACRoleBinding> response = gkeHubClient.ListScopeRBACRoleBindingsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (RBACRoleBinding item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopeRBACRoleBindingsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (RBACRoleBinding 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<RBACRoleBinding> 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 (RBACRoleBinding 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;
ListScopes(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListScopesResponse, Scope> ListScopes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Scopes.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Scope will be listed.
Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopesResponseScope |
A pageable sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListScopesResponse, Scope> response = gkeHubClient.ListScopes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Scope 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 (ListScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListScopes(ListScopesRequest, CallSettings)
public virtual PagedEnumerable<ListScopesResponse, Scope> ListScopes(ListScopesRequest request, CallSettings callSettings = null)Lists Scopes.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScopesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopesResponseScope |
A pageable sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
ListScopesRequest request = new ListScopesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedEnumerable<ListScopesResponse, Scope> response = gkeHubClient.ListScopes(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Scope 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 (ListScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListScopes(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListScopesResponse, Scope> ListScopes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Scopes.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Scope will be listed.
Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListScopesResponseScope |
A pageable sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListScopesResponse, Scope> response = gkeHubClient.ListScopes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Scope 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 (ListScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListScopesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListScopesResponse, Scope> ListScopesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Scopes.
| Parameters | |
|---|---|
| Name | Description |
parent |
LocationNameRequired. The parent (project and location) where the Scope will be listed.
Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopesResponseScope |
A pageable asynchronous sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListScopesResponse, Scope> response = gkeHubClient.ListScopesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Scope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListScopesAsync(ListScopesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListScopesResponse, Scope> ListScopesAsync(ListScopesRequest request, CallSettings callSettings = null)Lists Scopes.
| Parameters | |
|---|---|
| Name | Description |
request |
ListScopesRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopesResponseScope |
A pageable asynchronous sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
ListScopesRequest request = new ListScopesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
};
// Make the request
PagedAsyncEnumerable<ListScopesResponse, Scope> response = gkeHubClient.ListScopesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Scope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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;
ListScopesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListScopesResponse, Scope> ListScopesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)Lists Scopes.
| Parameters | |
|---|---|
| Name | Description |
parent |
stringRequired. The parent (project and location) where the Scope will be listed.
Specified in the format |
pageToken |
stringThe token returned from the previous request. A value of |
pageSize |
intThe size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListScopesResponseScope |
A pageable asynchronous sequence of Scope resources. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListScopesResponse, Scope> response = gkeHubClient.ListScopesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await foreach (Scope item in response)
{
// Do something with each item
Console.WriteLine(item);
}
// Or iterate over pages (of server-defined size), performing one RPC per page
await foreach (ListScopesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Scope 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<Scope> 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 (Scope 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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateFleet(string, CallSettings)
public virtual Operation<Fleet, OperationMetadata> PollOnceCreateFleet(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateFleet.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFleetOperationMetadata |
The result of polling the operation. |
PollOnceCreateFleetAsync(string, CallSettings)
public virtual Task<Operation<Fleet, OperationMetadata>> PollOnceCreateFleetAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateFleet.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateMembershipBinding(string, CallSettings)
public virtual Operation<MembershipBinding, OperationMetadata> PollOnceCreateMembershipBinding(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
CreateMembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipBindingOperationMetadata |
The result of polling the operation. |
PollOnceCreateMembershipBindingAsync(string, CallSettings)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> PollOnceCreateMembershipBindingAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateMembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateMembershipRBACRoleBinding(string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> PollOnceCreateMembershipRBACRoleBinding(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
CreateMembershipRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The result of polling the operation. |
PollOnceCreateMembershipRBACRoleBindingAsync(string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> PollOnceCreateMembershipRBACRoleBindingAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateMembershipRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateScope(string, CallSettings)
public virtual Operation<Scope, OperationMetadata> PollOnceCreateScope(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateScope.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationScopeOperationMetadata |
The result of polling the operation. |
PollOnceCreateScopeAsync(string, CallSettings)
public virtual Task<Operation<Scope, OperationMetadata>> PollOnceCreateScopeAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateScope.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateScopeNamespace(string, CallSettings)
public virtual Operation<Namespace, OperationMetadata> PollOnceCreateScopeNamespace(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of CreateScopeNamespace
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationNamespaceOperationMetadata |
The result of polling the operation. |
PollOnceCreateScopeNamespaceAsync(string, CallSettings)
public virtual Task<Operation<Namespace, OperationMetadata>> PollOnceCreateScopeNamespaceAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateScopeNamespace.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateScopeRBACRoleBinding(string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> PollOnceCreateScopeRBACRoleBinding(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
CreateScopeRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The result of polling the operation. |
PollOnceCreateScopeRBACRoleBindingAsync(string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> PollOnceCreateScopeRBACRoleBindingAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
CreateScopeRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteFleet(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteFleet(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteFleet.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteFleetAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteFleetAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteFleet.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteMembershipBinding(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteMembershipBinding(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
DeleteMembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteMembershipBindingAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteMembershipBindingAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteMembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteMembershipRBACRoleBinding(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteMembershipRBACRoleBinding(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
DeleteMembershipRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteMembershipRBACRoleBindingAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteMembershipRBACRoleBindingAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteMembershipRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteScope(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteScope(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteScope.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteScopeAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteScopeAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteScope.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteScopeNamespace(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteScopeNamespace(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of DeleteScopeNamespace
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteScopeNamespaceAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteScopeNamespaceAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteScopeNamespace.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteScopeRBACRoleBinding(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteScopeRBACRoleBinding(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
DeleteScopeRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteScopeRBACRoleBindingAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteScopeRBACRoleBindingAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
DeleteScopeRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationEmptyOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateFleet(string, CallSettings)
public virtual Operation<Fleet, OperationMetadata> PollOnceUpdateFleet(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateFleet.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFleetOperationMetadata |
The result of polling the operation. |
PollOnceUpdateFleetAsync(string, CallSettings)
public virtual Task<Operation<Fleet, OperationMetadata>> PollOnceUpdateFleetAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateFleet.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipOperationMetadata |
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 |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateMembershipBinding(string, CallSettings)
public virtual Operation<MembershipBinding, OperationMetadata> PollOnceUpdateMembershipBinding(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
UpdateMembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipBindingOperationMetadata |
The result of polling the operation. |
PollOnceUpdateMembershipBindingAsync(string, CallSettings)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> PollOnceUpdateMembershipBindingAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateMembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateMembershipRBACRoleBinding(string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> PollOnceUpdateMembershipRBACRoleBinding(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
UpdateMembershipRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The result of polling the operation. |
PollOnceUpdateMembershipRBACRoleBindingAsync(string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> PollOnceUpdateMembershipRBACRoleBindingAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateMembershipRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateScope(string, CallSettings)
public virtual Operation<Scope, OperationMetadata> PollOnceUpdateScope(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateScope.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationScopeOperationMetadata |
The result of polling the operation. |
PollOnceUpdateScopeAsync(string, CallSettings)
public virtual Task<Operation<Scope, OperationMetadata>> PollOnceUpdateScopeAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateScope.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateScopeNamespace(string, CallSettings)
public virtual Operation<Namespace, OperationMetadata> PollOnceUpdateScopeNamespace(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of UpdateScopeNamespace
.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationNamespaceOperationMetadata |
The result of polling the operation. |
PollOnceUpdateScopeNamespaceAsync(string, CallSettings)
public virtual Task<Operation<Namespace, OperationMetadata>> PollOnceUpdateScopeNamespaceAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateScopeNamespace.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateScopeRBACRoleBinding(string, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> PollOnceUpdateScopeRBACRoleBinding(string operationName, CallSettings callSettings = null)Poll an operation once, using an operationName from a previous invocation of
UpdateScopeRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The result of polling the operation. |
PollOnceUpdateScopeRBACRoleBindingAsync(string, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> PollOnceUpdateScopeRBACRoleBindingAsync(string operationName, CallSettings callSettings = null)Asynchronously poll an operation once, using an operationName from a previous invocation of
UpdateScopeRBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
operationName |
stringThe name of a previously invoked operation. Must not be |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
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(FeatureName, Feature, FieldMask, CallSettings)
public virtual Operation<Feature, OperationMetadata> UpdateFeature(FeatureName name, Feature resource, FieldMask updateMask, CallSettings callSettings = null)Updates an existing Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The Feature resource name in the format
|
resource |
FeatureOnly 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 |
FieldMaskMask of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]");
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;
}
UpdateFeature(UpdateFeatureRequest, CallSettings)
public virtual Operation<Feature, OperationMetadata> UpdateFeature(UpdateFeatureRequest request, CallSettings callSettings = null)Updates an existing Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateFeatureRequest request = new UpdateFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]"),
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 |
stringRequired. The Feature resource name in the format
|
resource |
FeatureOnly 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 |
FieldMaskMask of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFeatureOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/features/[FEATURE]";
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(FeatureName, Feature, FieldMask, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> UpdateFeatureAsync(FeatureName name, Feature resource, FieldMask updateMask, CallSettings callSettings = null)Updates an existing Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The Feature resource name in the format
|
resource |
FeatureOnly 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 |
FieldMaskMask of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]");
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(FeatureName, Feature, FieldMask, CancellationToken)
public virtual Task<Operation<Feature, OperationMetadata>> UpdateFeatureAsync(FeatureName name, Feature resource, FieldMask updateMask, CancellationToken cancellationToken)Updates an existing Feature.
| Parameters | |
|---|---|
| Name | Description |
name |
FeatureNameRequired. The Feature resource name in the format
|
resource |
FeatureOnly 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 |
FieldMaskMask of fields to update. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
FeatureName name = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]");
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(UpdateFeatureRequest, CallSettings)
public virtual Task<Operation<Feature, OperationMetadata>> UpdateFeatureAsync(UpdateFeatureRequest request, CallSettings callSettings = null)Updates an existing Feature.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFeatureRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateFeatureRequest request = new UpdateFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]"),
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 |
UpdateFeatureRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateFeatureRequest request = new UpdateFeatureRequest
{
FeatureName = FeatureName.FromProjectLocationFeature("[PROJECT]", "[LOCATION]", "[FEATURE]"),
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 |
stringRequired. The Feature resource name in the format
|
resource |
FeatureOnly 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 |
FieldMaskMask of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/features/[FEATURE]";
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 |
stringRequired. The Feature resource name in the format
|
resource |
FeatureOnly 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 |
FieldMaskMask of fields to update. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFeatureOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/features/[FEATURE]";
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;
}
UpdateFleet(Fleet, FieldMask, CallSettings)
public virtual Operation<Fleet, OperationMetadata> UpdateFleet(Fleet fleet, FieldMask updateMask, CallSettings callSettings = null)Updates a fleet.
| Parameters | |
|---|---|
| Name | Description |
fleet |
FleetRequired. The Fleet to update. The |
updateMask |
FieldMaskRequired. The fields to be updated; |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFleetOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
Fleet fleet = new Fleet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Fleet, OperationMetadata> response = gkeHubClient.UpdateFleet(fleet, updateMask);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateFleet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
UpdateFleet(UpdateFleetRequest, CallSettings)
public virtual Operation<Fleet, OperationMetadata> UpdateFleet(UpdateFleetRequest request, CallSettings callSettings = null)Updates a fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFleetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationFleetOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateFleetRequest request = new UpdateFleetRequest
{
Fleet = new Fleet(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Fleet, OperationMetadata> response = gkeHubClient.UpdateFleet(request);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateFleet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
UpdateFleetAsync(Fleet, FieldMask, CallSettings)
public virtual Task<Operation<Fleet, OperationMetadata>> UpdateFleetAsync(Fleet fleet, FieldMask updateMask, CallSettings callSettings = null)Updates a fleet.
| Parameters | |
|---|---|
| Name | Description |
fleet |
FleetRequired. The Fleet to update. The |
updateMask |
FieldMaskRequired. The fields to be updated; |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
Fleet fleet = new Fleet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.UpdateFleetAsync(fleet, updateMask);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
UpdateFleetAsync(Fleet, FieldMask, CancellationToken)
public virtual Task<Operation<Fleet, OperationMetadata>> UpdateFleetAsync(Fleet fleet, FieldMask updateMask, CancellationToken cancellationToken)Updates a fleet.
| Parameters | |
|---|---|
| Name | Description |
fleet |
FleetRequired. The Fleet to update. The |
updateMask |
FieldMaskRequired. The fields to be updated; |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
Fleet fleet = new Fleet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.UpdateFleetAsync(fleet, updateMask);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
UpdateFleetAsync(UpdateFleetRequest, CallSettings)
public virtual Task<Operation<Fleet, OperationMetadata>> UpdateFleetAsync(UpdateFleetRequest request, CallSettings callSettings = null)Updates a fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFleetRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateFleetRequest request = new UpdateFleetRequest
{
Fleet = new Fleet(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.UpdateFleetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
UpdateFleetAsync(UpdateFleetRequest, CancellationToken)
public virtual Task<Operation<Fleet, OperationMetadata>> UpdateFleetAsync(UpdateFleetRequest request, CancellationToken cancellationToken)Updates a fleet.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateFleetRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationFleetOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateFleetRequest request = new UpdateFleetRequest
{
Fleet = new Fleet(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Fleet, OperationMetadata> response = await gkeHubClient.UpdateFleetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Fleet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Fleet 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<Fleet, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateFleetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Fleet retrievedResult = retrievedResponse.Result;
}
UpdateMembership(MembershipName, Membership, FieldMask, CallSettings)
public virtual Operation<Membership, OperationMetadata> UpdateMembership(MembershipName name, Membership resource, FieldMask updateMask, CallSettings callSettings = null)Updates an existing Membership.
| Parameters | |
|---|---|
| Name | Description |
name |
MembershipNameRequired. The Membership resource name in the format
|
resource |
MembershipRequired. 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 |
FieldMaskRequired. Mask of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipName name = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
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;
}
UpdateMembership(UpdateMembershipRequest, CallSettings)
public virtual Operation<Membership, OperationMetadata> UpdateMembership(UpdateMembershipRequest request, CallSettings callSettings = null)Updates an existing Membership.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateMembershipRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateMembershipRequest request = new UpdateMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
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 |
stringRequired. The Membership resource name in the format
|
resource |
MembershipRequired. 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 |
FieldMaskRequired. Mask of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/memberships/[MEMBERSHIP]";
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(MembershipName, Membership, FieldMask, CallSettings)
public virtual Task<Operation<Membership, OperationMetadata>> UpdateMembershipAsync(MembershipName name, Membership resource, FieldMask updateMask, CallSettings callSettings = null)Updates an existing Membership.
| Parameters | |
|---|---|
| Name | Description |
name |
MembershipNameRequired. The Membership resource name in the format
|
resource |
MembershipRequired. 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 |
FieldMaskRequired. Mask of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName name = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
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(MembershipName, Membership, FieldMask, CancellationToken)
public virtual Task<Operation<Membership, OperationMetadata>> UpdateMembershipAsync(MembershipName name, Membership resource, FieldMask updateMask, CancellationToken cancellationToken)Updates an existing Membership.
| Parameters | |
|---|---|
| Name | Description |
name |
MembershipNameRequired. The Membership resource name in the format
|
resource |
MembershipRequired. 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 |
FieldMaskRequired. Mask of fields to update. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipName name = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]");
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(UpdateMembershipRequest, CallSettings)
public virtual Task<Operation<Membership, OperationMetadata>> UpdateMembershipAsync(UpdateMembershipRequest request, CallSettings callSettings = null)Updates an existing Membership.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateMembershipRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateMembershipRequest request = new UpdateMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
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 |
UpdateMembershipRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateMembershipRequest request = new UpdateMembershipRequest
{
MembershipName = MembershipName.FromProjectLocationMembership("[PROJECT]", "[LOCATION]", "[MEMBERSHIP]"),
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 |
stringRequired. The Membership resource name in the format
|
resource |
MembershipRequired. 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 |
FieldMaskRequired. Mask of fields to update. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
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]";
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 |
stringRequired. The Membership resource name in the format
|
resource |
MembershipRequired. 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 |
FieldMaskRequired. Mask of fields to update. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipOperationMetadata |
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]";
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;
}
UpdateMembershipBinding(MembershipBinding, FieldMask, CallSettings)
public virtual Operation<MembershipBinding, OperationMetadata> UpdateMembershipBinding(MembershipBinding membershipBinding, FieldMask updateMask, CallSettings callSettings = null)Updates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
membershipBinding |
MembershipBindingRequired. The MembershipBinding object with fields updated. |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
MembershipBinding membershipBinding = new MembershipBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MembershipBinding, OperationMetadata> response = gkeHubClient.UpdateMembershipBinding(membershipBinding, updateMask);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateMembershipBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipBinding(UpdateMembershipBindingRequest, CallSettings)
public virtual Operation<MembershipBinding, OperationMetadata> UpdateMembershipBinding(UpdateMembershipBindingRequest request, CallSettings callSettings = null)Updates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateMembershipBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationMembershipBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateMembershipBindingRequest request = new UpdateMembershipBindingRequest
{
MembershipBinding = new MembershipBinding(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<MembershipBinding, OperationMetadata> response = gkeHubClient.UpdateMembershipBinding(request);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateMembershipBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipBindingAsync(MembershipBinding, FieldMask, CallSettings)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> UpdateMembershipBindingAsync(MembershipBinding membershipBinding, FieldMask updateMask, CallSettings callSettings = null)Updates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
membershipBinding |
MembershipBindingRequired. The MembershipBinding object with fields updated. |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipBinding membershipBinding = new MembershipBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.UpdateMembershipBindingAsync(membershipBinding, updateMask);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipBindingAsync(MembershipBinding, FieldMask, CancellationToken)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> UpdateMembershipBindingAsync(MembershipBinding membershipBinding, FieldMask updateMask, CancellationToken cancellationToken)Updates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
membershipBinding |
MembershipBindingRequired. The MembershipBinding object with fields updated. |
updateMask |
FieldMaskRequired. The fields to be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
MembershipBinding membershipBinding = new MembershipBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.UpdateMembershipBindingAsync(membershipBinding, updateMask);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipBindingAsync(UpdateMembershipBindingRequest, CallSettings)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> UpdateMembershipBindingAsync(UpdateMembershipBindingRequest request, CallSettings callSettings = null)Updates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateMembershipBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateMembershipBindingRequest request = new UpdateMembershipBindingRequest
{
MembershipBinding = new MembershipBinding(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.UpdateMembershipBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipBindingAsync(UpdateMembershipBindingRequest, CancellationToken)
public virtual Task<Operation<MembershipBinding, OperationMetadata>> UpdateMembershipBindingAsync(UpdateMembershipBindingRequest request, CancellationToken cancellationToken)Updates a MembershipBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateMembershipBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationMembershipBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateMembershipBindingRequest request = new UpdateMembershipBindingRequest
{
MembershipBinding = new MembershipBinding(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<MembershipBinding, OperationMetadata> response = await gkeHubClient.UpdateMembershipBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<MembershipBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
MembershipBinding 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<MembershipBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
MembershipBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipRBACRoleBinding(RBACRoleBinding, FieldMask, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> UpdateMembershipRBACRoleBinding(RBACRoleBinding rbacrolebinding, FieldMask updateMask, CallSettings callSettings = null)Updates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
rbacrolebinding |
RBACRoleBindingRequired. A rbacrolebinding with fields updated. The 'name' field in this rbacrolebinding is used to identify the resource to update. |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.UpdateMembershipRBACRoleBinding(rbacrolebinding, updateMask);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateMembershipRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipRBACRoleBinding(UpdateMembershipRBACRoleBindingRequest, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> UpdateMembershipRBACRoleBinding(UpdateMembershipRBACRoleBindingRequest request, CallSettings callSettings = null)Updates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateMembershipRBACRoleBindingRequest request = new UpdateMembershipRBACRoleBindingRequest
{
Rbacrolebinding = new RBACRoleBinding(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.UpdateMembershipRBACRoleBinding(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateMembershipRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipRBACRoleBindingAsync(RBACRoleBinding, FieldMask, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> UpdateMembershipRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask, CallSettings callSettings = null)Updates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
rbacrolebinding |
RBACRoleBindingRequired. A rbacrolebinding with fields updated. The 'name' field in this rbacrolebinding is used to identify the resource to update. |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.UpdateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipRBACRoleBindingAsync(RBACRoleBinding, FieldMask, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> UpdateMembershipRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask, CancellationToken cancellationToken)Updates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
rbacrolebinding |
RBACRoleBindingRequired. A rbacrolebinding with fields updated. The 'name' field in this rbacrolebinding is used to identify the resource to update. |
updateMask |
FieldMaskRequired. The fields to be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.UpdateMembershipRBACRoleBindingAsync(rbacrolebinding, updateMask);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> UpdateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest request, CallSettings callSettings = null)Updates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateMembershipRBACRoleBindingRequest request = new UpdateMembershipRBACRoleBindingRequest
{
Rbacrolebinding = new RBACRoleBinding(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.UpdateMembershipRBACRoleBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> UpdateMembershipRBACRoleBindingAsync(UpdateMembershipRBACRoleBindingRequest request, CancellationToken cancellationToken)Updates a Membership RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateMembershipRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateMembershipRBACRoleBindingRequest request = new UpdateMembershipRBACRoleBindingRequest
{
Rbacrolebinding = new RBACRoleBinding(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.UpdateMembershipRBACRoleBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateMembershipRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateScope(Scope, FieldMask, CallSettings)
public virtual Operation<Scope, OperationMetadata> UpdateScope(Scope scope, FieldMask updateMask, CallSettings callSettings = null)Updates a scopes.
| Parameters | |
|---|---|
| Name | Description |
scope |
ScopeRequired. A Scope with fields updated. The 'name' field in this namespace is used to identify the resource to update. |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationScopeOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
Scope scope = new Scope();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Scope, OperationMetadata> response = gkeHubClient.UpdateScope(scope, updateMask);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateScope(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
UpdateScope(UpdateScopeRequest, CallSettings)
public virtual Operation<Scope, OperationMetadata> UpdateScope(UpdateScopeRequest request, CallSettings callSettings = null)Updates a scopes.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationScopeOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateScopeRequest request = new UpdateScopeRequest
{
Scope = new Scope(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Scope, OperationMetadata> response = gkeHubClient.UpdateScope(request);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateScope(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
UpdateScopeAsync(Scope, FieldMask, CallSettings)
public virtual Task<Operation<Scope, OperationMetadata>> UpdateScopeAsync(Scope scope, FieldMask updateMask, CallSettings callSettings = null)Updates a scopes.
| Parameters | |
|---|---|
| Name | Description |
scope |
ScopeRequired. A Scope with fields updated. The 'name' field in this namespace is used to identify the resource to update. |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
Scope scope = new Scope();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.UpdateScopeAsync(scope, updateMask);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
UpdateScopeAsync(Scope, FieldMask, CancellationToken)
public virtual Task<Operation<Scope, OperationMetadata>> UpdateScopeAsync(Scope scope, FieldMask updateMask, CancellationToken cancellationToken)Updates a scopes.
| Parameters | |
|---|---|
| Name | Description |
scope |
ScopeRequired. A Scope with fields updated. The 'name' field in this namespace is used to identify the resource to update. |
updateMask |
FieldMaskRequired. The fields to be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
Scope scope = new Scope();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.UpdateScopeAsync(scope, updateMask);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
UpdateScopeAsync(UpdateScopeRequest, CallSettings)
public virtual Task<Operation<Scope, OperationMetadata>> UpdateScopeAsync(UpdateScopeRequest request, CallSettings callSettings = null)Updates a scopes.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateScopeRequest request = new UpdateScopeRequest
{
Scope = new Scope(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.UpdateScopeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
UpdateScopeAsync(UpdateScopeRequest, CancellationToken)
public virtual Task<Operation<Scope, OperationMetadata>> UpdateScopeAsync(UpdateScopeRequest request, CancellationToken cancellationToken)Updates a scopes.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationScopeOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateScopeRequest request = new UpdateScopeRequest
{
Scope = new Scope(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Scope, OperationMetadata> response = await gkeHubClient.UpdateScopeAsync(request);
// Poll until the returned long-running operation is complete
Operation<Scope, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Scope 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<Scope, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Scope retrievedResult = retrievedResponse.Result;
}
UpdateScopeNamespace(Namespace, FieldMask, CallSettings)
public virtual Operation<Namespace, OperationMetadata> UpdateScopeNamespace(Namespace scopeNamespace, FieldMask updateMask, CallSettings callSettings = null)Updates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
scopeNamespace |
NamespaceRequired. A namespace with fields updated. The 'name' field in this namespace is used to identify the resource to update. Given 'updated' prefix to follow go/proto-best-practices-checkers#keyword_conflict |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationNamespaceOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
Namespace scopeNamespace = new Namespace();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Namespace, OperationMetadata> response = gkeHubClient.UpdateScopeNamespace(scopeNamespace, updateMask);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateScopeNamespace(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
UpdateScopeNamespace(UpdateScopeNamespaceRequest, CallSettings)
public virtual Operation<Namespace, OperationMetadata> UpdateScopeNamespace(UpdateScopeNamespaceRequest request, CallSettings callSettings = null)Updates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationNamespaceOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateScopeNamespaceRequest request = new UpdateScopeNamespaceRequest
{
ScopeNamespace = new Namespace(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Namespace, OperationMetadata> response = gkeHubClient.UpdateScopeNamespace(request);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateScopeNamespace(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
UpdateScopeNamespaceAsync(Namespace, FieldMask, CallSettings)
public virtual Task<Operation<Namespace, OperationMetadata>> UpdateScopeNamespaceAsync(Namespace scopeNamespace, FieldMask updateMask, CallSettings callSettings = null)Updates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
scopeNamespace |
NamespaceRequired. A namespace with fields updated. The 'name' field in this namespace is used to identify the resource to update. Given 'updated' prefix to follow go/proto-best-practices-checkers#keyword_conflict |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
Namespace scopeNamespace = new Namespace();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.UpdateScopeNamespaceAsync(scopeNamespace, updateMask);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
UpdateScopeNamespaceAsync(Namespace, FieldMask, CancellationToken)
public virtual Task<Operation<Namespace, OperationMetadata>> UpdateScopeNamespaceAsync(Namespace scopeNamespace, FieldMask updateMask, CancellationToken cancellationToken)Updates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
scopeNamespace |
NamespaceRequired. A namespace with fields updated. The 'name' field in this namespace is used to identify the resource to update. Given 'updated' prefix to follow go/proto-best-practices-checkers#keyword_conflict |
updateMask |
FieldMaskRequired. The fields to be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
Namespace scopeNamespace = new Namespace();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.UpdateScopeNamespaceAsync(scopeNamespace, updateMask);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
UpdateScopeNamespaceAsync(UpdateScopeNamespaceRequest, CallSettings)
public virtual Task<Operation<Namespace, OperationMetadata>> UpdateScopeNamespaceAsync(UpdateScopeNamespaceRequest request, CallSettings callSettings = null)Updates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateScopeNamespaceRequest request = new UpdateScopeNamespaceRequest
{
ScopeNamespace = new Namespace(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.UpdateScopeNamespaceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
UpdateScopeNamespaceAsync(UpdateScopeNamespaceRequest, CancellationToken)
public virtual Task<Operation<Namespace, OperationMetadata>> UpdateScopeNamespaceAsync(UpdateScopeNamespaceRequest request, CancellationToken cancellationToken)Updates a fleet namespace.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeNamespaceRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationNamespaceOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateScopeNamespaceRequest request = new UpdateScopeNamespaceRequest
{
ScopeNamespace = new Namespace(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<Namespace, OperationMetadata> response = await gkeHubClient.UpdateScopeNamespaceAsync(request);
// Poll until the returned long-running operation is complete
Operation<Namespace, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Namespace 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<Namespace, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeNamespaceAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Namespace retrievedResult = retrievedResponse.Result;
}
UpdateScopeRBACRoleBinding(RBACRoleBinding, FieldMask, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> UpdateScopeRBACRoleBinding(RBACRoleBinding rbacrolebinding, FieldMask updateMask, CallSettings callSettings = null)Updates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
rbacrolebinding |
RBACRoleBindingRequired. A rbacrolebinding with fields updated. The 'name' field in this rbacrolebinding is used to identify the resource to update. |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.UpdateScopeRBACRoleBinding(rbacrolebinding, updateMask);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateScopeRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateScopeRBACRoleBinding(UpdateScopeRBACRoleBindingRequest, CallSettings)
public virtual Operation<RBACRoleBinding, OperationMetadata> UpdateScopeRBACRoleBinding(UpdateScopeRBACRoleBindingRequest request, CallSettings callSettings = null)Updates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationRBACRoleBindingOperationMetadata |
The RPC response. |
// Create client
GkeHubClient gkeHubClient = GkeHubClient.Create();
// Initialize request argument(s)
UpdateScopeRBACRoleBindingRequest request = new UpdateScopeRBACRoleBindingRequest
{
Rbacrolebinding = new RBACRoleBinding(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = gkeHubClient.UpdateScopeRBACRoleBinding(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = gkeHubClient.PollOnceUpdateScopeRBACRoleBinding(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateScopeRBACRoleBindingAsync(RBACRoleBinding, FieldMask, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> UpdateScopeRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask, CallSettings callSettings = null)Updates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
rbacrolebinding |
RBACRoleBindingRequired. A rbacrolebinding with fields updated. The 'name' field in this rbacrolebinding is used to identify the resource to update. |
updateMask |
FieldMaskRequired. The fields to be updated. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.UpdateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateScopeRBACRoleBindingAsync(RBACRoleBinding, FieldMask, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> UpdateScopeRBACRoleBindingAsync(RBACRoleBinding rbacrolebinding, FieldMask updateMask, CancellationToken cancellationToken)Updates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
rbacrolebinding |
RBACRoleBindingRequired. A rbacrolebinding with fields updated. The 'name' field in this rbacrolebinding is used to identify the resource to update. |
updateMask |
FieldMaskRequired. The fields to be updated. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
RBACRoleBinding rbacrolebinding = new RBACRoleBinding();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.UpdateScopeRBACRoleBindingAsync(rbacrolebinding, updateMask);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateScopeRBACRoleBindingAsync(UpdateScopeRBACRoleBindingRequest, CallSettings)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> UpdateScopeRBACRoleBindingAsync(UpdateScopeRBACRoleBindingRequest request, CallSettings callSettings = null)Updates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateScopeRBACRoleBindingRequest request = new UpdateScopeRBACRoleBindingRequest
{
Rbacrolebinding = new RBACRoleBinding(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.UpdateScopeRBACRoleBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}
UpdateScopeRBACRoleBindingAsync(UpdateScopeRBACRoleBindingRequest, CancellationToken)
public virtual Task<Operation<RBACRoleBinding, OperationMetadata>> UpdateScopeRBACRoleBindingAsync(UpdateScopeRBACRoleBindingRequest request, CancellationToken cancellationToken)Updates a Scope RBACRoleBinding.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateScopeRBACRoleBindingRequestThe request object containing all of the parameters for the API call. |
cancellationToken |
CancellationTokenA CancellationToken to use for this RPC. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationRBACRoleBindingOperationMetadata |
A Task containing the RPC response. |
// Create client
GkeHubClient gkeHubClient = await GkeHubClient.CreateAsync();
// Initialize request argument(s)
UpdateScopeRBACRoleBindingRequest request = new UpdateScopeRBACRoleBindingRequest
{
Rbacrolebinding = new RBACRoleBinding(),
UpdateMask = new FieldMask(),
};
// Make the request
Operation<RBACRoleBinding, OperationMetadata> response = await gkeHubClient.UpdateScopeRBACRoleBindingAsync(request);
// Poll until the returned long-running operation is complete
Operation<RBACRoleBinding, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
RBACRoleBinding 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<RBACRoleBinding, OperationMetadata> retrievedResponse = await gkeHubClient.PollOnceUpdateScopeRBACRoleBindingAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
RBACRoleBinding retrievedResult = retrievedResponse.Result;
}