public abstract class VmwareEngineClient
Reference documentation and code samples for the VMware Engine v1 API class VmwareEngineClient.
VmwareEngine client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.VmwareEngine.V1Assembly
Google.Cloud.VmwareEngine.V1.dll
Remarks
VMwareEngine manages VMware's private clusters in the Cloud.
Properties
CreateClusterOperationsClient
public virtual OperationsClient CreateClusterOperationsClient { get; }
The long-running operations client for CreateCluster
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateHcxActivationKeyOperationsClient
public virtual OperationsClient CreateHcxActivationKeyOperationsClient { get; }
The long-running operations client for CreateHcxActivationKey
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateNetworkPolicyOperationsClient
public virtual OperationsClient CreateNetworkPolicyOperationsClient { get; }
The long-running operations client for CreateNetworkPolicy
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreatePrivateCloudOperationsClient
public virtual OperationsClient CreatePrivateCloudOperationsClient { get; }
The long-running operations client for CreatePrivateCloud
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreatePrivateConnectionOperationsClient
public virtual OperationsClient CreatePrivateConnectionOperationsClient { get; }
The long-running operations client for CreatePrivateConnection
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
CreateVmwareEngineNetworkOperationsClient
public virtual OperationsClient CreateVmwareEngineNetworkOperationsClient { get; }
The long-running operations client for CreateVmwareEngineNetwork
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the VmwareEngine service, which is a host of "vmwareengine.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
string |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default VmwareEngine scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyListstring |
The default VmwareEngine scopes are:
DeleteClusterOperationsClient
public virtual OperationsClient DeleteClusterOperationsClient { get; }
The long-running operations client for DeleteCluster
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteNetworkPolicyOperationsClient
public virtual OperationsClient DeleteNetworkPolicyOperationsClient { get; }
The long-running operations client for DeleteNetworkPolicy
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeletePrivateCloudOperationsClient
public virtual OperationsClient DeletePrivateCloudOperationsClient { get; }
The long-running operations client for DeletePrivateCloud
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeletePrivateConnectionOperationsClient
public virtual OperationsClient DeletePrivateConnectionOperationsClient { get; }
The long-running operations client for DeletePrivateConnection
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
DeleteVmwareEngineNetworkOperationsClient
public virtual OperationsClient DeleteVmwareEngineNetworkOperationsClient { get; }
The long-running operations client for DeleteVmwareEngineNetwork
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public virtual VmwareEngine.VmwareEngineClient GrpcClient { get; }
The underlying gRPC VmwareEngine client
Property Value | |
---|---|
Type | Description |
VmwareEngineVmwareEngineClient |
IAMPolicyClient
public virtual IAMPolicyClient IAMPolicyClient { get; }
The IAMPolicyClient associated with this client.
Property Value | |
---|---|
Type | Description |
IAMPolicyClient |
LocationsClient
public virtual LocationsClient LocationsClient { get; }
The LocationsClient associated with this client.
Property Value | |
---|---|
Type | Description |
LocationsClient |
ResetNsxCredentialsOperationsClient
public virtual OperationsClient ResetNsxCredentialsOperationsClient { get; }
The long-running operations client for ResetNsxCredentials
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ResetVcenterCredentialsOperationsClient
public virtual OperationsClient ResetVcenterCredentialsOperationsClient { get; }
The long-running operations client for ResetVcenterCredentials
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
ServiceMetadata
public static ServiceMetadata ServiceMetadata { get; }
The service metadata associated with this client type.
Property Value | |
---|---|
Type | Description |
ServiceMetadata |
UndeletePrivateCloudOperationsClient
public virtual OperationsClient UndeletePrivateCloudOperationsClient { get; }
The long-running operations client for UndeletePrivateCloud
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateClusterOperationsClient
public virtual OperationsClient UpdateClusterOperationsClient { get; }
The long-running operations client for UpdateCluster
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateNetworkPolicyOperationsClient
public virtual OperationsClient UpdateNetworkPolicyOperationsClient { get; }
The long-running operations client for UpdateNetworkPolicy
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdatePrivateCloudOperationsClient
public virtual OperationsClient UpdatePrivateCloudOperationsClient { get; }
The long-running operations client for UpdatePrivateCloud
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdatePrivateConnectionOperationsClient
public virtual OperationsClient UpdatePrivateConnectionOperationsClient { get; }
The long-running operations client for UpdatePrivateConnection
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateSubnetOperationsClient
public virtual OperationsClient UpdateSubnetOperationsClient { get; }
The long-running operations client for UpdateSubnet
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
UpdateVmwareEngineNetworkOperationsClient
public virtual OperationsClient UpdateVmwareEngineNetworkOperationsClient { get; }
The long-running operations client for UpdateVmwareEngineNetwork
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
Create()
public static VmwareEngineClient Create()
Synchronously creates a VmwareEngineClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use VmwareEngineClientBuilder.
Returns | |
---|---|
Type | Description |
VmwareEngineClient |
The created VmwareEngineClient. |
CreateAsync(CancellationToken)
public static Task<VmwareEngineClient> CreateAsync(CancellationToken cancellationToken = default)
Asynchronously creates a VmwareEngineClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use VmwareEngineClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken |
CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
TaskVmwareEngineClient |
The task representing the created VmwareEngineClient. |
CreateCluster(CreateClusterRequest, CallSettings)
public virtual Operation<Cluster, OperationMetadata> CreateCluster(CreateClusterRequest request, CallSettings callSettings = null)
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
Parameters | |
---|---|
Name | Description |
request |
CreateClusterRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
CreateClusterRequest request = new CreateClusterRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
ClusterId = "",
Cluster = new Cluster(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<Cluster, OperationMetadata> response = vmwareEngineClient.CreateCluster(request);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateCluster(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
CreateCluster(PrivateCloudName, Cluster, string, CallSettings)
public virtual Operation<Cluster, OperationMetadata> CreateCluster(PrivateCloudName parent, Cluster cluster, string clusterId, CallSettings callSettings = null)
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to create a new cluster
in. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cluster |
Cluster Required. The initial description of the new cluster. |
clusterId |
string Required. The user-provided identifier of the new
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
Cluster cluster = new Cluster();
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = vmwareEngineClient.CreateCluster(parent, cluster, clusterId);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateCluster(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
CreateCluster(string, Cluster, string, CallSettings)
public virtual Operation<Cluster, OperationMetadata> CreateCluster(string parent, Cluster cluster, string clusterId, CallSettings callSettings = null)
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to create a new cluster
in. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cluster |
Cluster Required. The initial description of the new cluster. |
clusterId |
string Required. The user-provided identifier of the new
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
Cluster cluster = new Cluster();
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = vmwareEngineClient.CreateCluster(parent, cluster, clusterId);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateCluster(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
CreateClusterAsync(CreateClusterRequest, CallSettings)
public virtual Task<Operation<Cluster, OperationMetadata>> CreateClusterAsync(CreateClusterRequest request, CallSettings callSettings = null)
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
Parameters | |
---|---|
Name | Description |
request |
CreateClusterRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreateClusterRequest request = new CreateClusterRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
ClusterId = "",
Cluster = new Cluster(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.CreateClusterAsync(request);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
CreateClusterAsync(CreateClusterRequest, CancellationToken)
public virtual Task<Operation<Cluster, OperationMetadata>> CreateClusterAsync(CreateClusterRequest request, CancellationToken cancellationToken)
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
Parameters | |
---|---|
Name | Description |
request |
CreateClusterRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreateClusterRequest request = new CreateClusterRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
ClusterId = "",
Cluster = new Cluster(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.CreateClusterAsync(request);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
CreateClusterAsync(PrivateCloudName, Cluster, string, CallSettings)
public virtual Task<Operation<Cluster, OperationMetadata>> CreateClusterAsync(PrivateCloudName parent, Cluster cluster, string clusterId, CallSettings callSettings = null)
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to create a new cluster
in. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cluster |
Cluster Required. The initial description of the new cluster. |
clusterId |
string Required. The user-provided identifier of the new
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
Cluster cluster = new Cluster();
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.CreateClusterAsync(parent, cluster, clusterId);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
CreateClusterAsync(PrivateCloudName, Cluster, string, CancellationToken)
public virtual Task<Operation<Cluster, OperationMetadata>> CreateClusterAsync(PrivateCloudName parent, Cluster cluster, string clusterId, CancellationToken cancellationToken)
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to create a new cluster
in. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cluster |
Cluster Required. The initial description of the new cluster. |
clusterId |
string Required. The user-provided identifier of the new
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
Cluster cluster = new Cluster();
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.CreateClusterAsync(parent, cluster, clusterId);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
CreateClusterAsync(string, Cluster, string, CallSettings)
public virtual Task<Operation<Cluster, OperationMetadata>> CreateClusterAsync(string parent, Cluster cluster, string clusterId, CallSettings callSettings = null)
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to create a new cluster
in. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cluster |
Cluster Required. The initial description of the new cluster. |
clusterId |
string Required. The user-provided identifier of the new
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
Cluster cluster = new Cluster();
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.CreateClusterAsync(parent, cluster, clusterId);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
CreateClusterAsync(string, Cluster, string, CancellationToken)
public virtual Task<Operation<Cluster, OperationMetadata>> CreateClusterAsync(string parent, Cluster cluster, string clusterId, CancellationToken cancellationToken)
Creates a new cluster in a given private cloud. Creating a new cluster provides additional nodes for use in the parent private cloud and requires sufficient node quota.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to create a new cluster
in. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cluster |
Cluster Required. The initial description of the new cluster. |
clusterId |
string Required. The user-provided identifier of the new
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
Cluster cluster = new Cluster();
string clusterId = "";
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.CreateClusterAsync(parent, cluster, clusterId);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
CreateHcxActivationKey(CreateHcxActivationKeyRequest, CallSettings)
public virtual Operation<HcxActivationKey, OperationMetadata> CreateHcxActivationKey(CreateHcxActivationKeyRequest request, CallSettings callSettings = null)
Creates a new HCX activation key in a given private cloud.
Parameters | |
---|---|
Name | Description |
request |
CreateHcxActivationKeyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHcxActivationKeyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
CreateHcxActivationKeyRequest request = new CreateHcxActivationKeyRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
HcxActivationKey = new HcxActivationKey(),
HcxActivationKeyId = "",
RequestId = "",
};
// Make the request
Operation<HcxActivationKey, OperationMetadata> response = vmwareEngineClient.CreateHcxActivationKey(request);
// Poll until the returned long-running operation is complete
Operation<HcxActivationKey, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
HcxActivationKey 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<HcxActivationKey, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateHcxActivationKey(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
HcxActivationKey retrievedResult = retrievedResponse.Result;
}
CreateHcxActivationKey(PrivateCloudName, HcxActivationKey, string, CallSettings)
public virtual Operation<HcxActivationKey, OperationMetadata> CreateHcxActivationKey(PrivateCloudName parent, HcxActivationKey hcxActivationKey, string hcxActivationKeyId, CallSettings callSettings = null)
Creates a new HCX activation key in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to create the key for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
hcxActivationKey |
HcxActivationKey Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object. |
hcxActivationKeyId |
string Required. The user-provided identifier of the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHcxActivationKeyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
HcxActivationKey hcxActivationKey = new HcxActivationKey();
string hcxActivationKeyId = "";
// Make the request
Operation<HcxActivationKey, OperationMetadata> response = vmwareEngineClient.CreateHcxActivationKey(parent, hcxActivationKey, hcxActivationKeyId);
// Poll until the returned long-running operation is complete
Operation<HcxActivationKey, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
HcxActivationKey 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<HcxActivationKey, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateHcxActivationKey(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
HcxActivationKey retrievedResult = retrievedResponse.Result;
}
CreateHcxActivationKey(string, HcxActivationKey, string, CallSettings)
public virtual Operation<HcxActivationKey, OperationMetadata> CreateHcxActivationKey(string parent, HcxActivationKey hcxActivationKey, string hcxActivationKeyId, CallSettings callSettings = null)
Creates a new HCX activation key in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to create the key for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
hcxActivationKey |
HcxActivationKey Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object. |
hcxActivationKeyId |
string Required. The user-provided identifier of the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHcxActivationKeyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
HcxActivationKey hcxActivationKey = new HcxActivationKey();
string hcxActivationKeyId = "";
// Make the request
Operation<HcxActivationKey, OperationMetadata> response = vmwareEngineClient.CreateHcxActivationKey(parent, hcxActivationKey, hcxActivationKeyId);
// Poll until the returned long-running operation is complete
Operation<HcxActivationKey, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
HcxActivationKey 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<HcxActivationKey, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateHcxActivationKey(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
HcxActivationKey retrievedResult = retrievedResponse.Result;
}
CreateHcxActivationKeyAsync(CreateHcxActivationKeyRequest, CallSettings)
public virtual Task<Operation<HcxActivationKey, OperationMetadata>> CreateHcxActivationKeyAsync(CreateHcxActivationKeyRequest request, CallSettings callSettings = null)
Creates a new HCX activation key in a given private cloud.
Parameters | |
---|---|
Name | Description |
request |
CreateHcxActivationKeyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHcxActivationKeyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreateHcxActivationKeyRequest request = new CreateHcxActivationKeyRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
HcxActivationKey = new HcxActivationKey(),
HcxActivationKeyId = "",
RequestId = "",
};
// Make the request
Operation<HcxActivationKey, OperationMetadata> response = await vmwareEngineClient.CreateHcxActivationKeyAsync(request);
// Poll until the returned long-running operation is complete
Operation<HcxActivationKey, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HcxActivationKey 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<HcxActivationKey, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateHcxActivationKeyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
HcxActivationKey retrievedResult = retrievedResponse.Result;
}
CreateHcxActivationKeyAsync(CreateHcxActivationKeyRequest, CancellationToken)
public virtual Task<Operation<HcxActivationKey, OperationMetadata>> CreateHcxActivationKeyAsync(CreateHcxActivationKeyRequest request, CancellationToken cancellationToken)
Creates a new HCX activation key in a given private cloud.
Parameters | |
---|---|
Name | Description |
request |
CreateHcxActivationKeyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationHcxActivationKeyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreateHcxActivationKeyRequest request = new CreateHcxActivationKeyRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
HcxActivationKey = new HcxActivationKey(),
HcxActivationKeyId = "",
RequestId = "",
};
// Make the request
Operation<HcxActivationKey, OperationMetadata> response = await vmwareEngineClient.CreateHcxActivationKeyAsync(request);
// Poll until the returned long-running operation is complete
Operation<HcxActivationKey, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HcxActivationKey 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<HcxActivationKey, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateHcxActivationKeyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
HcxActivationKey retrievedResult = retrievedResponse.Result;
}
CreateHcxActivationKeyAsync(PrivateCloudName, HcxActivationKey, string, CallSettings)
public virtual Task<Operation<HcxActivationKey, OperationMetadata>> CreateHcxActivationKeyAsync(PrivateCloudName parent, HcxActivationKey hcxActivationKey, string hcxActivationKeyId, CallSettings callSettings = null)
Creates a new HCX activation key in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to create the key for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
hcxActivationKey |
HcxActivationKey Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object. |
hcxActivationKeyId |
string Required. The user-provided identifier of the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHcxActivationKeyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
HcxActivationKey hcxActivationKey = new HcxActivationKey();
string hcxActivationKeyId = "";
// Make the request
Operation<HcxActivationKey, OperationMetadata> response = await vmwareEngineClient.CreateHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId);
// Poll until the returned long-running operation is complete
Operation<HcxActivationKey, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HcxActivationKey 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<HcxActivationKey, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateHcxActivationKeyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
HcxActivationKey retrievedResult = retrievedResponse.Result;
}
CreateHcxActivationKeyAsync(PrivateCloudName, HcxActivationKey, string, CancellationToken)
public virtual Task<Operation<HcxActivationKey, OperationMetadata>> CreateHcxActivationKeyAsync(PrivateCloudName parent, HcxActivationKey hcxActivationKey, string hcxActivationKeyId, CancellationToken cancellationToken)
Creates a new HCX activation key in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to create the key for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
hcxActivationKey |
HcxActivationKey Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object. |
hcxActivationKeyId |
string Required. The user-provided identifier of the
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationHcxActivationKeyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
HcxActivationKey hcxActivationKey = new HcxActivationKey();
string hcxActivationKeyId = "";
// Make the request
Operation<HcxActivationKey, OperationMetadata> response = await vmwareEngineClient.CreateHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId);
// Poll until the returned long-running operation is complete
Operation<HcxActivationKey, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HcxActivationKey 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<HcxActivationKey, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateHcxActivationKeyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
HcxActivationKey retrievedResult = retrievedResponse.Result;
}
CreateHcxActivationKeyAsync(string, HcxActivationKey, string, CallSettings)
public virtual Task<Operation<HcxActivationKey, OperationMetadata>> CreateHcxActivationKeyAsync(string parent, HcxActivationKey hcxActivationKey, string hcxActivationKeyId, CallSettings callSettings = null)
Creates a new HCX activation key in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to create the key for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
hcxActivationKey |
HcxActivationKey Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object. |
hcxActivationKeyId |
string Required. The user-provided identifier of the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHcxActivationKeyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
HcxActivationKey hcxActivationKey = new HcxActivationKey();
string hcxActivationKeyId = "";
// Make the request
Operation<HcxActivationKey, OperationMetadata> response = await vmwareEngineClient.CreateHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId);
// Poll until the returned long-running operation is complete
Operation<HcxActivationKey, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HcxActivationKey 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<HcxActivationKey, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateHcxActivationKeyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
HcxActivationKey retrievedResult = retrievedResponse.Result;
}
CreateHcxActivationKeyAsync(string, HcxActivationKey, string, CancellationToken)
public virtual Task<Operation<HcxActivationKey, OperationMetadata>> CreateHcxActivationKeyAsync(string parent, HcxActivationKey hcxActivationKey, string hcxActivationKeyId, CancellationToken cancellationToken)
Creates a new HCX activation key in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to create the key for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
hcxActivationKey |
HcxActivationKey Required. The initial description of a new HCX activation key. When creating a new key, this field must be an empty object. |
hcxActivationKeyId |
string Required. The user-provided identifier of the
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationHcxActivationKeyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
HcxActivationKey hcxActivationKey = new HcxActivationKey();
string hcxActivationKeyId = "";
// Make the request
Operation<HcxActivationKey, OperationMetadata> response = await vmwareEngineClient.CreateHcxActivationKeyAsync(parent, hcxActivationKey, hcxActivationKeyId);
// Poll until the returned long-running operation is complete
Operation<HcxActivationKey, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
HcxActivationKey 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<HcxActivationKey, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateHcxActivationKeyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
HcxActivationKey retrievedResult = retrievedResponse.Result;
}
CreateNetworkPolicy(LocationName, NetworkPolicy, string, CallSettings)
public virtual Operation<NetworkPolicy, OperationMetadata> CreateNetworkPolicy(LocationName parent, NetworkPolicy networkPolicy, string networkPolicyId, CallSettings callSettings = null)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location (region)
to create the new network policy in.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
networkPolicy |
NetworkPolicy Required. The network policy configuration to use in the request. |
networkPolicyId |
string Required. The user-provided identifier of the network policy to be created.
This identifier must be unique within parent
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationNetworkPolicyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NetworkPolicy networkPolicy = new NetworkPolicy();
string networkPolicyId = "";
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = vmwareEngineClient.CreateNetworkPolicy(parent, networkPolicy, networkPolicyId);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateNetworkPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
CreateNetworkPolicy(CreateNetworkPolicyRequest, CallSettings)
public virtual Operation<NetworkPolicy, OperationMetadata> CreateNetworkPolicy(CreateNetworkPolicyRequest request, CallSettings callSettings = null)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Parameters | |
---|---|
Name | Description |
request |
CreateNetworkPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationNetworkPolicyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
CreateNetworkPolicyRequest request = new CreateNetworkPolicyRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
NetworkPolicyId = "",
NetworkPolicy = new NetworkPolicy(),
RequestId = "",
};
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = vmwareEngineClient.CreateNetworkPolicy(request);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateNetworkPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
CreateNetworkPolicy(string, NetworkPolicy, string, CallSettings)
public virtual Operation<NetworkPolicy, OperationMetadata> CreateNetworkPolicy(string parent, NetworkPolicy networkPolicy, string networkPolicyId, CallSettings callSettings = null)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location (region)
to create the new network policy in.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
networkPolicy |
NetworkPolicy Required. The network policy configuration to use in the request. |
networkPolicyId |
string Required. The user-provided identifier of the network policy to be created.
This identifier must be unique within parent
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationNetworkPolicyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
NetworkPolicy networkPolicy = new NetworkPolicy();
string networkPolicyId = "";
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = vmwareEngineClient.CreateNetworkPolicy(parent, networkPolicy, networkPolicyId);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateNetworkPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
CreateNetworkPolicyAsync(LocationName, NetworkPolicy, string, CallSettings)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> CreateNetworkPolicyAsync(LocationName parent, NetworkPolicy networkPolicy, string networkPolicyId, CallSettings callSettings = null)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location (region)
to create the new network policy in.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
networkPolicy |
NetworkPolicy Required. The network policy configuration to use in the request. |
networkPolicyId |
string Required. The user-provided identifier of the network policy to be created.
This identifier must be unique within parent
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NetworkPolicy networkPolicy = new NetworkPolicy();
string networkPolicyId = "";
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.CreateNetworkPolicyAsync(parent, networkPolicy, networkPolicyId);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
CreateNetworkPolicyAsync(LocationName, NetworkPolicy, string, CancellationToken)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> CreateNetworkPolicyAsync(LocationName parent, NetworkPolicy networkPolicy, string networkPolicyId, CancellationToken cancellationToken)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location (region)
to create the new network policy in.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
networkPolicy |
NetworkPolicy Required. The network policy configuration to use in the request. |
networkPolicyId |
string Required. The user-provided identifier of the network policy to be created.
This identifier must be unique within parent
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
NetworkPolicy networkPolicy = new NetworkPolicy();
string networkPolicyId = "";
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.CreateNetworkPolicyAsync(parent, networkPolicy, networkPolicyId);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
CreateNetworkPolicyAsync(CreateNetworkPolicyRequest, CallSettings)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> CreateNetworkPolicyAsync(CreateNetworkPolicyRequest request, CallSettings callSettings = null)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Parameters | |
---|---|
Name | Description |
request |
CreateNetworkPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreateNetworkPolicyRequest request = new CreateNetworkPolicyRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
NetworkPolicyId = "",
NetworkPolicy = new NetworkPolicy(),
RequestId = "",
};
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.CreateNetworkPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
CreateNetworkPolicyAsync(CreateNetworkPolicyRequest, CancellationToken)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> CreateNetworkPolicyAsync(CreateNetworkPolicyRequest request, CancellationToken cancellationToken)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Parameters | |
---|---|
Name | Description |
request |
CreateNetworkPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreateNetworkPolicyRequest request = new CreateNetworkPolicyRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
NetworkPolicyId = "",
NetworkPolicy = new NetworkPolicy(),
RequestId = "",
};
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.CreateNetworkPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
CreateNetworkPolicyAsync(string, NetworkPolicy, string, CallSettings)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> CreateNetworkPolicyAsync(string parent, NetworkPolicy networkPolicy, string networkPolicyId, CallSettings callSettings = null)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location (region)
to create the new network policy in.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
networkPolicy |
NetworkPolicy Required. The network policy configuration to use in the request. |
networkPolicyId |
string Required. The user-provided identifier of the network policy to be created.
This identifier must be unique within parent
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
NetworkPolicy networkPolicy = new NetworkPolicy();
string networkPolicyId = "";
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.CreateNetworkPolicyAsync(parent, networkPolicy, networkPolicyId);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
CreateNetworkPolicyAsync(string, NetworkPolicy, string, CancellationToken)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> CreateNetworkPolicyAsync(string parent, NetworkPolicy networkPolicy, string networkPolicyId, CancellationToken cancellationToken)
Creates a new network policy in a given VMware Engine network of a project and location (region). A new network policy cannot be created if another network policy already exists in the same scope.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location (region)
to create the new network policy in.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
networkPolicy |
NetworkPolicy Required. The network policy configuration to use in the request. |
networkPolicyId |
string Required. The user-provided identifier of the network policy to be created.
This identifier must be unique within parent
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
NetworkPolicy networkPolicy = new NetworkPolicy();
string networkPolicyId = "";
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.CreateNetworkPolicyAsync(parent, networkPolicy, networkPolicyId);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
CreatePrivateCloud(LocationName, PrivateCloud, string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> CreatePrivateCloud(LocationName parent, PrivateCloud privateCloud, string privateCloudId, CallSettings callSettings = null)
Creates a new PrivateCloud
resource in a given project and location.
Private clouds can only be created in zones, regional private clouds are
not supported.
Creating a private cloud also creates a management cluster for that private cloud.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to create the new
private cloud in. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names.
For example:
|
privateCloud |
PrivateCloud Required. The initial description of the new private cloud. |
privateCloudId |
string Required. The user-provided identifier of the private cloud to be created.
This identifier must be unique among each
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PrivateCloud privateCloud = new PrivateCloud();
string privateCloudId = "";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.CreatePrivateCloud(parent, privateCloud, privateCloudId);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreatePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
CreatePrivateCloud(CreatePrivateCloudRequest, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> CreatePrivateCloud(CreatePrivateCloudRequest request, CallSettings callSettings = null)
Creates a new PrivateCloud
resource in a given project and location.
Private clouds can only be created in zones, regional private clouds are
not supported.
Creating a private cloud also creates a management cluster for that private cloud.
Parameters | |
---|---|
Name | Description |
request |
CreatePrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
CreatePrivateCloudRequest request = new CreatePrivateCloudRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PrivateCloudId = "",
PrivateCloud = new PrivateCloud(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.CreatePrivateCloud(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreatePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
CreatePrivateCloud(string, PrivateCloud, string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> CreatePrivateCloud(string parent, PrivateCloud privateCloud, string privateCloudId, CallSettings callSettings = null)
Creates a new PrivateCloud
resource in a given project and location.
Private clouds can only be created in zones, regional private clouds are
not supported.
Creating a private cloud also creates a management cluster for that private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to create the new
private cloud in. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names.
For example:
|
privateCloud |
PrivateCloud Required. The initial description of the new private cloud. |
privateCloudId |
string Required. The user-provided identifier of the private cloud to be created.
This identifier must be unique among each
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PrivateCloud privateCloud = new PrivateCloud();
string privateCloudId = "";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.CreatePrivateCloud(parent, privateCloud, privateCloudId);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreatePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
CreatePrivateCloudAsync(LocationName, PrivateCloud, string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> CreatePrivateCloudAsync(LocationName parent, PrivateCloud privateCloud, string privateCloudId, CallSettings callSettings = null)
Creates a new PrivateCloud
resource in a given project and location.
Private clouds can only be created in zones, regional private clouds are
not supported.
Creating a private cloud also creates a management cluster for that private cloud.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to create the new
private cloud in. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names.
For example:
|
privateCloud |
PrivateCloud Required. The initial description of the new private cloud. |
privateCloudId |
string Required. The user-provided identifier of the private cloud to be created.
This identifier must be unique among each
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PrivateCloud privateCloud = new PrivateCloud();
string privateCloudId = "";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.CreatePrivateCloudAsync(parent, privateCloud, privateCloudId);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
CreatePrivateCloudAsync(LocationName, PrivateCloud, string, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> CreatePrivateCloudAsync(LocationName parent, PrivateCloud privateCloud, string privateCloudId, CancellationToken cancellationToken)
Creates a new PrivateCloud
resource in a given project and location.
Private clouds can only be created in zones, regional private clouds are
not supported.
Creating a private cloud also creates a management cluster for that private cloud.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to create the new
private cloud in. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names.
For example:
|
privateCloud |
PrivateCloud Required. The initial description of the new private cloud. |
privateCloudId |
string Required. The user-provided identifier of the private cloud to be created.
This identifier must be unique among each
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PrivateCloud privateCloud = new PrivateCloud();
string privateCloudId = "";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.CreatePrivateCloudAsync(parent, privateCloud, privateCloudId);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
CreatePrivateCloudAsync(CreatePrivateCloudRequest, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> CreatePrivateCloudAsync(CreatePrivateCloudRequest request, CallSettings callSettings = null)
Creates a new PrivateCloud
resource in a given project and location.
Private clouds can only be created in zones, regional private clouds are
not supported.
Creating a private cloud also creates a management cluster for that private cloud.
Parameters | |
---|---|
Name | Description |
request |
CreatePrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateCloudRequest request = new CreatePrivateCloudRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PrivateCloudId = "",
PrivateCloud = new PrivateCloud(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.CreatePrivateCloudAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
CreatePrivateCloudAsync(CreatePrivateCloudRequest, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> CreatePrivateCloudAsync(CreatePrivateCloudRequest request, CancellationToken cancellationToken)
Creates a new PrivateCloud
resource in a given project and location.
Private clouds can only be created in zones, regional private clouds are
not supported.
Creating a private cloud also creates a management cluster for that private cloud.
Parameters | |
---|---|
Name | Description |
request |
CreatePrivateCloudRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateCloudRequest request = new CreatePrivateCloudRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PrivateCloudId = "",
PrivateCloud = new PrivateCloud(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.CreatePrivateCloudAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
CreatePrivateCloudAsync(string, PrivateCloud, string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> CreatePrivateCloudAsync(string parent, PrivateCloud privateCloud, string privateCloudId, CallSettings callSettings = null)
Creates a new PrivateCloud
resource in a given project and location.
Private clouds can only be created in zones, regional private clouds are
not supported.
Creating a private cloud also creates a management cluster for that private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to create the new
private cloud in. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names.
For example:
|
privateCloud |
PrivateCloud Required. The initial description of the new private cloud. |
privateCloudId |
string Required. The user-provided identifier of the private cloud to be created.
This identifier must be unique among each
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PrivateCloud privateCloud = new PrivateCloud();
string privateCloudId = "";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.CreatePrivateCloudAsync(parent, privateCloud, privateCloudId);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
CreatePrivateCloudAsync(string, PrivateCloud, string, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> CreatePrivateCloudAsync(string parent, PrivateCloud privateCloud, string privateCloudId, CancellationToken cancellationToken)
Creates a new PrivateCloud
resource in a given project and location.
Private clouds can only be created in zones, regional private clouds are
not supported.
Creating a private cloud also creates a management cluster for that private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to create the new
private cloud in. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names.
For example:
|
privateCloud |
PrivateCloud Required. The initial description of the new private cloud. |
privateCloudId |
string Required. The user-provided identifier of the private cloud to be created.
This identifier must be unique among each
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PrivateCloud privateCloud = new PrivateCloud();
string privateCloudId = "";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.CreatePrivateCloudAsync(parent, privateCloud, privateCloudId);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
CreatePrivateConnection(LocationName, PrivateConnection, string, CallSettings)
public virtual Operation<PrivateConnection, OperationMetadata> CreatePrivateConnection(LocationName parent, PrivateConnection privateConnection, string privateConnectionId, CallSettings callSettings = null)
Creates a new private connection that can be used for accessing private Clouds.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to create the new private
connection in. Private connection is a regional resource.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
|
privateConnection |
PrivateConnection Required. The initial description of the new private connection. |
privateConnectionId |
string Required. The user-provided identifier of the new private connection. This identifier must be unique among private connection resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateConnectionOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = vmwareEngineClient.CreatePrivateConnection(parent, privateConnection, privateConnectionId);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreatePrivateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
CreatePrivateConnection(CreatePrivateConnectionRequest, CallSettings)
public virtual Operation<PrivateConnection, OperationMetadata> CreatePrivateConnection(CreatePrivateConnectionRequest request, CallSettings callSettings = null)
Creates a new private connection that can be used for accessing private Clouds.
Parameters | |
---|---|
Name | Description |
request |
CreatePrivateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateConnectionOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
CreatePrivateConnectionRequest request = new CreatePrivateConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PrivateConnectionId = "",
PrivateConnection = new PrivateConnection(),
RequestId = "",
};
// Make the request
Operation<PrivateConnection, OperationMetadata> response = vmwareEngineClient.CreatePrivateConnection(request);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreatePrivateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
CreatePrivateConnection(string, PrivateConnection, string, CallSettings)
public virtual Operation<PrivateConnection, OperationMetadata> CreatePrivateConnection(string parent, PrivateConnection privateConnection, string privateConnectionId, CallSettings callSettings = null)
Creates a new private connection that can be used for accessing private Clouds.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to create the new private
connection in. Private connection is a regional resource.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
|
privateConnection |
PrivateConnection Required. The initial description of the new private connection. |
privateConnectionId |
string Required. The user-provided identifier of the new private connection. This identifier must be unique among private connection resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateConnectionOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = vmwareEngineClient.CreatePrivateConnection(parent, privateConnection, privateConnectionId);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreatePrivateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
CreatePrivateConnectionAsync(LocationName, PrivateConnection, string, CallSettings)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(LocationName parent, PrivateConnection privateConnection, string privateConnectionId, CallSettings callSettings = null)
Creates a new private connection that can be used for accessing private Clouds.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to create the new private
connection in. Private connection is a regional resource.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
|
privateConnection |
PrivateConnection Required. The initial description of the new private connection. |
privateConnectionId |
string Required. The user-provided identifier of the new private connection. This identifier must be unique among private connection resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.CreatePrivateConnectionAsync(parent, privateConnection, privateConnectionId);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
CreatePrivateConnectionAsync(LocationName, PrivateConnection, string, CancellationToken)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(LocationName parent, PrivateConnection privateConnection, string privateConnectionId, CancellationToken cancellationToken)
Creates a new private connection that can be used for accessing private Clouds.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to create the new private
connection in. Private connection is a regional resource.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
|
privateConnection |
PrivateConnection Required. The initial description of the new private connection. |
privateConnectionId |
string Required. The user-provided identifier of the new private connection. This identifier must be unique among private connection resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.CreatePrivateConnectionAsync(parent, privateConnection, privateConnectionId);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
CreatePrivateConnectionAsync(CreatePrivateConnectionRequest, CallSettings)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(CreatePrivateConnectionRequest request, CallSettings callSettings = null)
Creates a new private connection that can be used for accessing private Clouds.
Parameters | |
---|---|
Name | Description |
request |
CreatePrivateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateConnectionRequest request = new CreatePrivateConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PrivateConnectionId = "",
PrivateConnection = new PrivateConnection(),
RequestId = "",
};
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.CreatePrivateConnectionAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
CreatePrivateConnectionAsync(CreatePrivateConnectionRequest, CancellationToken)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(CreatePrivateConnectionRequest request, CancellationToken cancellationToken)
Creates a new private connection that can be used for accessing private Clouds.
Parameters | |
---|---|
Name | Description |
request |
CreatePrivateConnectionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreatePrivateConnectionRequest request = new CreatePrivateConnectionRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
PrivateConnectionId = "",
PrivateConnection = new PrivateConnection(),
RequestId = "",
};
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.CreatePrivateConnectionAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
CreatePrivateConnectionAsync(string, PrivateConnection, string, CallSettings)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(string parent, PrivateConnection privateConnection, string privateConnectionId, CallSettings callSettings = null)
Creates a new private connection that can be used for accessing private Clouds.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to create the new private
connection in. Private connection is a regional resource.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
|
privateConnection |
PrivateConnection Required. The initial description of the new private connection. |
privateConnectionId |
string Required. The user-provided identifier of the new private connection. This identifier must be unique among private connection resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.CreatePrivateConnectionAsync(parent, privateConnection, privateConnectionId);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
CreatePrivateConnectionAsync(string, PrivateConnection, string, CancellationToken)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> CreatePrivateConnectionAsync(string parent, PrivateConnection privateConnection, string privateConnectionId, CancellationToken cancellationToken)
Creates a new private connection that can be used for accessing private Clouds.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to create the new private
connection in. Private connection is a regional resource.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names. For example:
|
privateConnection |
PrivateConnection Required. The initial description of the new private connection. |
privateConnectionId |
string Required. The user-provided identifier of the new private connection. This identifier must be unique among private connection resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
PrivateConnection privateConnection = new PrivateConnection();
string privateConnectionId = "";
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.CreatePrivateConnectionAsync(parent, privateConnection, privateConnectionId);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
CreateVmwareEngineNetwork(LocationName, VmwareEngineNetwork, string, CallSettings)
public virtual Operation<VmwareEngineNetwork, OperationMetadata> CreateVmwareEngineNetwork(LocationName parent, VmwareEngineNetwork vmwareEngineNetwork, string vmwareEngineNetworkId, CallSettings callSettings = null)
Creates a new VMware Engine network that can be used by a private cloud.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to create the new VMware Engine
network in. A VMware Engine network of type
|
vmwareEngineNetwork |
VmwareEngineNetwork Required. The initial description of the new VMware Engine network. |
vmwareEngineNetworkId |
string Required. The user-provided identifier of the new VMware Engine network. This identifier must be unique among VMware Engine network resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationVmwareEngineNetworkOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
VmwareEngineNetwork vmwareEngineNetwork = new VmwareEngineNetwork();
string vmwareEngineNetworkId = "";
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = vmwareEngineClient.CreateVmwareEngineNetwork(parent, vmwareEngineNetwork, vmwareEngineNetworkId);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateVmwareEngineNetwork(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
CreateVmwareEngineNetwork(CreateVmwareEngineNetworkRequest, CallSettings)
public virtual Operation<VmwareEngineNetwork, OperationMetadata> CreateVmwareEngineNetwork(CreateVmwareEngineNetworkRequest request, CallSettings callSettings = null)
Creates a new VMware Engine network that can be used by a private cloud.
Parameters | |
---|---|
Name | Description |
request |
CreateVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationVmwareEngineNetworkOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
CreateVmwareEngineNetworkRequest request = new CreateVmwareEngineNetworkRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
VmwareEngineNetworkId = "",
VmwareEngineNetwork = new VmwareEngineNetwork(),
RequestId = "",
};
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = vmwareEngineClient.CreateVmwareEngineNetwork(request);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateVmwareEngineNetwork(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
CreateVmwareEngineNetwork(string, VmwareEngineNetwork, string, CallSettings)
public virtual Operation<VmwareEngineNetwork, OperationMetadata> CreateVmwareEngineNetwork(string parent, VmwareEngineNetwork vmwareEngineNetwork, string vmwareEngineNetworkId, CallSettings callSettings = null)
Creates a new VMware Engine network that can be used by a private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to create the new VMware Engine
network in. A VMware Engine network of type
|
vmwareEngineNetwork |
VmwareEngineNetwork Required. The initial description of the new VMware Engine network. |
vmwareEngineNetworkId |
string Required. The user-provided identifier of the new VMware Engine network. This identifier must be unique among VMware Engine network resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationVmwareEngineNetworkOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
VmwareEngineNetwork vmwareEngineNetwork = new VmwareEngineNetwork();
string vmwareEngineNetworkId = "";
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = vmwareEngineClient.CreateVmwareEngineNetwork(parent, vmwareEngineNetwork, vmwareEngineNetworkId);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceCreateVmwareEngineNetwork(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
CreateVmwareEngineNetworkAsync(LocationName, VmwareEngineNetwork, string, CallSettings)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> CreateVmwareEngineNetworkAsync(LocationName parent, VmwareEngineNetwork vmwareEngineNetwork, string vmwareEngineNetworkId, CallSettings callSettings = null)
Creates a new VMware Engine network that can be used by a private cloud.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to create the new VMware Engine
network in. A VMware Engine network of type
|
vmwareEngineNetwork |
VmwareEngineNetwork Required. The initial description of the new VMware Engine network. |
vmwareEngineNetworkId |
string Required. The user-provided identifier of the new VMware Engine network. This identifier must be unique among VMware Engine network resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
VmwareEngineNetwork vmwareEngineNetwork = new VmwareEngineNetwork();
string vmwareEngineNetworkId = "";
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.CreateVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
CreateVmwareEngineNetworkAsync(LocationName, VmwareEngineNetwork, string, CancellationToken)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> CreateVmwareEngineNetworkAsync(LocationName parent, VmwareEngineNetwork vmwareEngineNetwork, string vmwareEngineNetworkId, CancellationToken cancellationToken)
Creates a new VMware Engine network that can be used by a private cloud.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to create the new VMware Engine
network in. A VMware Engine network of type
|
vmwareEngineNetwork |
VmwareEngineNetwork Required. The initial description of the new VMware Engine network. |
vmwareEngineNetworkId |
string Required. The user-provided identifier of the new VMware Engine network. This identifier must be unique among VMware Engine network resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
VmwareEngineNetwork vmwareEngineNetwork = new VmwareEngineNetwork();
string vmwareEngineNetworkId = "";
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.CreateVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
CreateVmwareEngineNetworkAsync(CreateVmwareEngineNetworkRequest, CallSettings)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> CreateVmwareEngineNetworkAsync(CreateVmwareEngineNetworkRequest request, CallSettings callSettings = null)
Creates a new VMware Engine network that can be used by a private cloud.
Parameters | |
---|---|
Name | Description |
request |
CreateVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreateVmwareEngineNetworkRequest request = new CreateVmwareEngineNetworkRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
VmwareEngineNetworkId = "",
VmwareEngineNetwork = new VmwareEngineNetwork(),
RequestId = "",
};
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.CreateVmwareEngineNetworkAsync(request);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
CreateVmwareEngineNetworkAsync(CreateVmwareEngineNetworkRequest, CancellationToken)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> CreateVmwareEngineNetworkAsync(CreateVmwareEngineNetworkRequest request, CancellationToken cancellationToken)
Creates a new VMware Engine network that can be used by a private cloud.
Parameters | |
---|---|
Name | Description |
request |
CreateVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
CreateVmwareEngineNetworkRequest request = new CreateVmwareEngineNetworkRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
VmwareEngineNetworkId = "",
VmwareEngineNetwork = new VmwareEngineNetwork(),
RequestId = "",
};
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.CreateVmwareEngineNetworkAsync(request);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
CreateVmwareEngineNetworkAsync(string, VmwareEngineNetwork, string, CallSettings)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> CreateVmwareEngineNetworkAsync(string parent, VmwareEngineNetwork vmwareEngineNetwork, string vmwareEngineNetworkId, CallSettings callSettings = null)
Creates a new VMware Engine network that can be used by a private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to create the new VMware Engine
network in. A VMware Engine network of type
|
vmwareEngineNetwork |
VmwareEngineNetwork Required. The initial description of the new VMware Engine network. |
vmwareEngineNetworkId |
string Required. The user-provided identifier of the new VMware Engine network. This identifier must be unique among VMware Engine network resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
VmwareEngineNetwork vmwareEngineNetwork = new VmwareEngineNetwork();
string vmwareEngineNetworkId = "";
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.CreateVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
CreateVmwareEngineNetworkAsync(string, VmwareEngineNetwork, string, CancellationToken)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> CreateVmwareEngineNetworkAsync(string parent, VmwareEngineNetwork vmwareEngineNetwork, string vmwareEngineNetworkId, CancellationToken cancellationToken)
Creates a new VMware Engine network that can be used by a private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to create the new VMware Engine
network in. A VMware Engine network of type
|
vmwareEngineNetwork |
VmwareEngineNetwork Required. The initial description of the new VMware Engine network. |
vmwareEngineNetworkId |
string Required. The user-provided identifier of the new VMware Engine network. This identifier must be unique among VMware Engine network resources within the parent and becomes the final token in the name URI. The identifier must meet the following requirements:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
VmwareEngineNetwork vmwareEngineNetwork = new VmwareEngineNetwork();
string vmwareEngineNetworkId = "";
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.CreateVmwareEngineNetworkAsync(parent, vmwareEngineNetwork, vmwareEngineNetworkId);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceCreateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
DeleteCluster(ClusterName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCluster(ClusterName name, CallSettings callSettings = null)
Deletes a Cluster
resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion.
You cannot delete the management cluster of a private cloud using this
method.
Parameters | |
---|---|
Name | Description |
name |
ClusterName Required. The resource name of the cluster to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ClusterName name = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeleteCluster(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 = vmwareEngineClient.PollOnceDeleteCluster(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;
}
DeleteCluster(DeleteClusterRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCluster(DeleteClusterRequest request, CallSettings callSettings = null)
Deletes a Cluster
resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion.
You cannot delete the management cluster of a private cloud using this
method.
Parameters | |
---|---|
Name | Description |
request |
DeleteClusterRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
DeleteClusterRequest request = new DeleteClusterRequest
{
ClusterName = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeleteCluster(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 = vmwareEngineClient.PollOnceDeleteCluster(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;
}
DeleteCluster(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteCluster(string name, CallSettings callSettings = null)
Deletes a Cluster
resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion.
You cannot delete the management cluster of a private cloud using this
method.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the cluster to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/clusters/[CLUSTER]";
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeleteCluster(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 = vmwareEngineClient.PollOnceDeleteCluster(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;
}
DeleteClusterAsync(ClusterName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteClusterAsync(ClusterName name, CallSettings callSettings = null)
Deletes a Cluster
resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion.
You cannot delete the management cluster of a private cloud using this
method.
Parameters | |
---|---|
Name | Description |
name |
ClusterName Required. The resource name of the cluster to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ClusterName name = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteClusterAsync(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 vmwareEngineClient.PollOnceDeleteClusterAsync(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;
}
DeleteClusterAsync(ClusterName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteClusterAsync(ClusterName name, CancellationToken cancellationToken)
Deletes a Cluster
resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion.
You cannot delete the management cluster of a private cloud using this
method.
Parameters | |
---|---|
Name | Description |
name |
ClusterName Required. The resource name of the cluster to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ClusterName name = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteClusterAsync(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 vmwareEngineClient.PollOnceDeleteClusterAsync(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;
}
DeleteClusterAsync(DeleteClusterRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteClusterAsync(DeleteClusterRequest request, CallSettings callSettings = null)
Deletes a Cluster
resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion.
You cannot delete the management cluster of a private cloud using this
method.
Parameters | |
---|---|
Name | Description |
request |
DeleteClusterRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeleteClusterRequest request = new DeleteClusterRequest
{
ClusterName = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteClusterAsync(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 vmwareEngineClient.PollOnceDeleteClusterAsync(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;
}
DeleteClusterAsync(DeleteClusterRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteClusterAsync(DeleteClusterRequest request, CancellationToken cancellationToken)
Deletes a Cluster
resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion.
You cannot delete the management cluster of a private cloud using this
method.
Parameters | |
---|---|
Name | Description |
request |
DeleteClusterRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeleteClusterRequest request = new DeleteClusterRequest
{
ClusterName = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteClusterAsync(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 vmwareEngineClient.PollOnceDeleteClusterAsync(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;
}
DeleteClusterAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteClusterAsync(string name, CallSettings callSettings = null)
Deletes a Cluster
resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion.
You cannot delete the management cluster of a private cloud using this
method.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the cluster to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/clusters/[CLUSTER]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteClusterAsync(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 vmwareEngineClient.PollOnceDeleteClusterAsync(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;
}
DeleteClusterAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteClusterAsync(string name, CancellationToken cancellationToken)
Deletes a Cluster
resource. To avoid unintended data loss, migrate or
gracefully shut down any workloads running on the cluster before deletion.
You cannot delete the management cluster of a private cloud using this
method.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the cluster to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/clusters/[CLUSTER]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteClusterAsync(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 vmwareEngineClient.PollOnceDeleteClusterAsync(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;
}
DeleteNetworkPolicy(DeleteNetworkPolicyRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteNetworkPolicy(DeleteNetworkPolicyRequest request, CallSettings callSettings = null)
Deletes a NetworkPolicy
resource. A network policy cannot be deleted
when NetworkService.state
is set to RECONCILING
for either its external
IP or internet access service.
Parameters | |
---|---|
Name | Description |
request |
DeleteNetworkPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
DeleteNetworkPolicyRequest request = new DeleteNetworkPolicyRequest
{
NetworkPolicyName = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeleteNetworkPolicy(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 = vmwareEngineClient.PollOnceDeleteNetworkPolicy(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;
}
DeleteNetworkPolicy(NetworkPolicyName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteNetworkPolicy(NetworkPolicyName name, CallSettings callSettings = null)
Deletes a NetworkPolicy
resource. A network policy cannot be deleted
when NetworkService.state
is set to RECONCILING
for either its external
IP or internet access service.
Parameters | |
---|---|
Name | Description |
name |
NetworkPolicyName Required. The resource name of the network policy to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
NetworkPolicyName name = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeleteNetworkPolicy(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 = vmwareEngineClient.PollOnceDeleteNetworkPolicy(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;
}
DeleteNetworkPolicy(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteNetworkPolicy(string name, CallSettings callSettings = null)
Deletes a NetworkPolicy
resource. A network policy cannot be deleted
when NetworkService.state
is set to RECONCILING
for either its external
IP or internet access service.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the network policy to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networkPolicies/[NETWORK_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeleteNetworkPolicy(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 = vmwareEngineClient.PollOnceDeleteNetworkPolicy(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;
}
DeleteNetworkPolicyAsync(DeleteNetworkPolicyRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteNetworkPolicyAsync(DeleteNetworkPolicyRequest request, CallSettings callSettings = null)
Deletes a NetworkPolicy
resource. A network policy cannot be deleted
when NetworkService.state
is set to RECONCILING
for either its external
IP or internet access service.
Parameters | |
---|---|
Name | Description |
request |
DeleteNetworkPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeleteNetworkPolicyRequest request = new DeleteNetworkPolicyRequest
{
NetworkPolicyName = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteNetworkPolicyAsync(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 vmwareEngineClient.PollOnceDeleteNetworkPolicyAsync(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;
}
DeleteNetworkPolicyAsync(DeleteNetworkPolicyRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteNetworkPolicyAsync(DeleteNetworkPolicyRequest request, CancellationToken cancellationToken)
Deletes a NetworkPolicy
resource. A network policy cannot be deleted
when NetworkService.state
is set to RECONCILING
for either its external
IP or internet access service.
Parameters | |
---|---|
Name | Description |
request |
DeleteNetworkPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeleteNetworkPolicyRequest request = new DeleteNetworkPolicyRequest
{
NetworkPolicyName = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteNetworkPolicyAsync(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 vmwareEngineClient.PollOnceDeleteNetworkPolicyAsync(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;
}
DeleteNetworkPolicyAsync(NetworkPolicyName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteNetworkPolicyAsync(NetworkPolicyName name, CallSettings callSettings = null)
Deletes a NetworkPolicy
resource. A network policy cannot be deleted
when NetworkService.state
is set to RECONCILING
for either its external
IP or internet access service.
Parameters | |
---|---|
Name | Description |
name |
NetworkPolicyName Required. The resource name of the network policy to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
NetworkPolicyName name = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteNetworkPolicyAsync(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 vmwareEngineClient.PollOnceDeleteNetworkPolicyAsync(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;
}
DeleteNetworkPolicyAsync(NetworkPolicyName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteNetworkPolicyAsync(NetworkPolicyName name, CancellationToken cancellationToken)
Deletes a NetworkPolicy
resource. A network policy cannot be deleted
when NetworkService.state
is set to RECONCILING
for either its external
IP or internet access service.
Parameters | |
---|---|
Name | Description |
name |
NetworkPolicyName Required. The resource name of the network policy to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
NetworkPolicyName name = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteNetworkPolicyAsync(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 vmwareEngineClient.PollOnceDeleteNetworkPolicyAsync(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;
}
DeleteNetworkPolicyAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteNetworkPolicyAsync(string name, CallSettings callSettings = null)
Deletes a NetworkPolicy
resource. A network policy cannot be deleted
when NetworkService.state
is set to RECONCILING
for either its external
IP or internet access service.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the network policy to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networkPolicies/[NETWORK_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteNetworkPolicyAsync(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 vmwareEngineClient.PollOnceDeleteNetworkPolicyAsync(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;
}
DeleteNetworkPolicyAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteNetworkPolicyAsync(string name, CancellationToken cancellationToken)
Deletes a NetworkPolicy
resource. A network policy cannot be deleted
when NetworkService.state
is set to RECONCILING
for either its external
IP or internet access service.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the network policy to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networkPolicies/[NETWORK_POLICY]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteNetworkPolicyAsync(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 vmwareEngineClient.PollOnceDeleteNetworkPolicyAsync(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;
}
DeletePrivateCloud(DeletePrivateCloudRequest, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> DeletePrivateCloud(DeletePrivateCloudRequest request, CallSettings callSettings = null)
Schedules a PrivateCloud
resource for deletion.
A PrivateCloud
resource scheduled for deletion has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done
as soon as the PrivateCloud
is successfully scheduled for deletion
(this also applies when delayHours
is set to zero), and the operation is
not kept in pending state until PrivateCloud
is purged.
PrivateCloud
can be restored using UndeletePrivateCloud
method before
the expireTime
elapses. When expireTime
is reached, deletion is final
and all private cloud resources are irreversibly removed and billing stops.
During the final removal process, PrivateCloud.state
is set to PURGING
.
PrivateCloud
can be polled using standard GET
method for the whole
period of deletion and purging. It will not be returned only
when it is completely purged.
Parameters | |
---|---|
Name | Description |
request |
DeletePrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
DeletePrivateCloudRequest request = new DeletePrivateCloudRequest
{
PrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
Force = false,
DelayHours = 0,
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.DeletePrivateCloud(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceDeletePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
DeletePrivateCloud(PrivateCloudName, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> DeletePrivateCloud(PrivateCloudName name, CallSettings callSettings = null)
Schedules a PrivateCloud
resource for deletion.
A PrivateCloud
resource scheduled for deletion has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done
as soon as the PrivateCloud
is successfully scheduled for deletion
(this also applies when delayHours
is set to zero), and the operation is
not kept in pending state until PrivateCloud
is purged.
PrivateCloud
can be restored using UndeletePrivateCloud
method before
the expireTime
elapses. When expireTime
is reached, deletion is final
and all private cloud resources are irreversibly removed and billing stops.
During the final removal process, PrivateCloud.state
is set to PURGING
.
PrivateCloud
can be polled using standard GET
method for the whole
period of deletion and purging. It will not be returned only
when it is completely purged.
Parameters | |
---|---|
Name | Description |
name |
PrivateCloudName Required. The resource name of the private cloud to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName name = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.DeletePrivateCloud(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceDeletePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
DeletePrivateCloud(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> DeletePrivateCloud(string name, CallSettings callSettings = null)
Schedules a PrivateCloud
resource for deletion.
A PrivateCloud
resource scheduled for deletion has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done
as soon as the PrivateCloud
is successfully scheduled for deletion
(this also applies when delayHours
is set to zero), and the operation is
not kept in pending state until PrivateCloud
is purged.
PrivateCloud
can be restored using UndeletePrivateCloud
method before
the expireTime
elapses. When expireTime
is reached, deletion is final
and all private cloud resources are irreversibly removed and billing stops.
During the final removal process, PrivateCloud.state
is set to PURGING
.
PrivateCloud
can be polled using standard GET
method for the whole
period of deletion and purging. It will not be returned only
when it is completely purged.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private cloud to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.DeletePrivateCloud(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceDeletePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
DeletePrivateCloudAsync(DeletePrivateCloudRequest, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> DeletePrivateCloudAsync(DeletePrivateCloudRequest request, CallSettings callSettings = null)
Schedules a PrivateCloud
resource for deletion.
A PrivateCloud
resource scheduled for deletion has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done
as soon as the PrivateCloud
is successfully scheduled for deletion
(this also applies when delayHours
is set to zero), and the operation is
not kept in pending state until PrivateCloud
is purged.
PrivateCloud
can be restored using UndeletePrivateCloud
method before
the expireTime
elapses. When expireTime
is reached, deletion is final
and all private cloud resources are irreversibly removed and billing stops.
During the final removal process, PrivateCloud.state
is set to PURGING
.
PrivateCloud
can be polled using standard GET
method for the whole
period of deletion and purging. It will not be returned only
when it is completely purged.
Parameters | |
---|---|
Name | Description |
request |
DeletePrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateCloudRequest request = new DeletePrivateCloudRequest
{
PrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
Force = false,
DelayHours = 0,
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.DeletePrivateCloudAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceDeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
DeletePrivateCloudAsync(DeletePrivateCloudRequest, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> DeletePrivateCloudAsync(DeletePrivateCloudRequest request, CancellationToken cancellationToken)
Schedules a PrivateCloud
resource for deletion.
A PrivateCloud
resource scheduled for deletion has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done
as soon as the PrivateCloud
is successfully scheduled for deletion
(this also applies when delayHours
is set to zero), and the operation is
not kept in pending state until PrivateCloud
is purged.
PrivateCloud
can be restored using UndeletePrivateCloud
method before
the expireTime
elapses. When expireTime
is reached, deletion is final
and all private cloud resources are irreversibly removed and billing stops.
During the final removal process, PrivateCloud.state
is set to PURGING
.
PrivateCloud
can be polled using standard GET
method for the whole
period of deletion and purging. It will not be returned only
when it is completely purged.
Parameters | |
---|---|
Name | Description |
request |
DeletePrivateCloudRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateCloudRequest request = new DeletePrivateCloudRequest
{
PrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
Force = false,
DelayHours = 0,
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.DeletePrivateCloudAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceDeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
DeletePrivateCloudAsync(PrivateCloudName, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> DeletePrivateCloudAsync(PrivateCloudName name, CallSettings callSettings = null)
Schedules a PrivateCloud
resource for deletion.
A PrivateCloud
resource scheduled for deletion has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done
as soon as the PrivateCloud
is successfully scheduled for deletion
(this also applies when delayHours
is set to zero), and the operation is
not kept in pending state until PrivateCloud
is purged.
PrivateCloud
can be restored using UndeletePrivateCloud
method before
the expireTime
elapses. When expireTime
is reached, deletion is final
and all private cloud resources are irreversibly removed and billing stops.
During the final removal process, PrivateCloud.state
is set to PURGING
.
PrivateCloud
can be polled using standard GET
method for the whole
period of deletion and purging. It will not be returned only
when it is completely purged.
Parameters | |
---|---|
Name | Description |
name |
PrivateCloudName Required. The resource name of the private cloud to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName name = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.DeletePrivateCloudAsync(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceDeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
DeletePrivateCloudAsync(PrivateCloudName, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> DeletePrivateCloudAsync(PrivateCloudName name, CancellationToken cancellationToken)
Schedules a PrivateCloud
resource for deletion.
A PrivateCloud
resource scheduled for deletion has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done
as soon as the PrivateCloud
is successfully scheduled for deletion
(this also applies when delayHours
is set to zero), and the operation is
not kept in pending state until PrivateCloud
is purged.
PrivateCloud
can be restored using UndeletePrivateCloud
method before
the expireTime
elapses. When expireTime
is reached, deletion is final
and all private cloud resources are irreversibly removed and billing stops.
During the final removal process, PrivateCloud.state
is set to PURGING
.
PrivateCloud
can be polled using standard GET
method for the whole
period of deletion and purging. It will not be returned only
when it is completely purged.
Parameters | |
---|---|
Name | Description |
name |
PrivateCloudName Required. The resource name of the private cloud to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName name = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.DeletePrivateCloudAsync(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceDeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
DeletePrivateCloudAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> DeletePrivateCloudAsync(string name, CallSettings callSettings = null)
Schedules a PrivateCloud
resource for deletion.
A PrivateCloud
resource scheduled for deletion has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done
as soon as the PrivateCloud
is successfully scheduled for deletion
(this also applies when delayHours
is set to zero), and the operation is
not kept in pending state until PrivateCloud
is purged.
PrivateCloud
can be restored using UndeletePrivateCloud
method before
the expireTime
elapses. When expireTime
is reached, deletion is final
and all private cloud resources are irreversibly removed and billing stops.
During the final removal process, PrivateCloud.state
is set to PURGING
.
PrivateCloud
can be polled using standard GET
method for the whole
period of deletion and purging. It will not be returned only
when it is completely purged.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private cloud to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.DeletePrivateCloudAsync(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceDeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
DeletePrivateCloudAsync(string, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> DeletePrivateCloudAsync(string name, CancellationToken cancellationToken)
Schedules a PrivateCloud
resource for deletion.
A PrivateCloud
resource scheduled for deletion has PrivateCloud.state
set to DELETED
and expireTime
set to the time when deletion is final
and can no longer be reversed. The delete operation is marked as done
as soon as the PrivateCloud
is successfully scheduled for deletion
(this also applies when delayHours
is set to zero), and the operation is
not kept in pending state until PrivateCloud
is purged.
PrivateCloud
can be restored using UndeletePrivateCloud
method before
the expireTime
elapses. When expireTime
is reached, deletion is final
and all private cloud resources are irreversibly removed and billing stops.
During the final removal process, PrivateCloud.state
is set to PURGING
.
PrivateCloud
can be polled using standard GET
method for the whole
period of deletion and purging. It will not be returned only
when it is completely purged.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private cloud to delete.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.DeletePrivateCloudAsync(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceDeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
DeletePrivateConnection(DeletePrivateConnectionRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePrivateConnection(DeletePrivateConnectionRequest request, CallSettings callSettings = null)
Deletes a PrivateConnection
resource. When a private connection is
deleted for a VMware Engine network, the connected network becomes
inaccessible to that VMware Engine network.
Parameters | |
---|---|
Name | Description |
request |
DeletePrivateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
DeletePrivateConnectionRequest request = new DeletePrivateConnectionRequest
{
PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeletePrivateConnection(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 = vmwareEngineClient.PollOnceDeletePrivateConnection(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;
}
DeletePrivateConnection(PrivateConnectionName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePrivateConnection(PrivateConnectionName name, CallSettings callSettings = null)
Deletes a PrivateConnection
resource. When a private connection is
deleted for a VMware Engine network, the connected network becomes
inaccessible to that VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
PrivateConnectionName Required. The resource name of the private connection to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeletePrivateConnection(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 = vmwareEngineClient.PollOnceDeletePrivateConnection(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;
}
DeletePrivateConnection(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeletePrivateConnection(string name, CallSettings callSettings = null)
Deletes a PrivateConnection
resource. When a private connection is
deleted for a VMware Engine network, the connected network becomes
inaccessible to that VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private connection to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeletePrivateConnection(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 = vmwareEngineClient.PollOnceDeletePrivateConnection(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;
}
DeletePrivateConnectionAsync(DeletePrivateConnectionRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePrivateConnectionAsync(DeletePrivateConnectionRequest request, CallSettings callSettings = null)
Deletes a PrivateConnection
resource. When a private connection is
deleted for a VMware Engine network, the connected network becomes
inaccessible to that VMware Engine network.
Parameters | |
---|---|
Name | Description |
request |
DeletePrivateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateConnectionRequest request = new DeletePrivateConnectionRequest
{
PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeletePrivateConnectionAsync(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 vmwareEngineClient.PollOnceDeletePrivateConnectionAsync(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;
}
DeletePrivateConnectionAsync(DeletePrivateConnectionRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePrivateConnectionAsync(DeletePrivateConnectionRequest request, CancellationToken cancellationToken)
Deletes a PrivateConnection
resource. When a private connection is
deleted for a VMware Engine network, the connected network becomes
inaccessible to that VMware Engine network.
Parameters | |
---|---|
Name | Description |
request |
DeletePrivateConnectionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeletePrivateConnectionRequest request = new DeletePrivateConnectionRequest
{
PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
RequestId = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeletePrivateConnectionAsync(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 vmwareEngineClient.PollOnceDeletePrivateConnectionAsync(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;
}
DeletePrivateConnectionAsync(PrivateConnectionName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePrivateConnectionAsync(PrivateConnectionName name, CallSettings callSettings = null)
Deletes a PrivateConnection
resource. When a private connection is
deleted for a VMware Engine network, the connected network becomes
inaccessible to that VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
PrivateConnectionName Required. The resource name of the private connection to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeletePrivateConnectionAsync(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 vmwareEngineClient.PollOnceDeletePrivateConnectionAsync(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;
}
DeletePrivateConnectionAsync(PrivateConnectionName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePrivateConnectionAsync(PrivateConnectionName name, CancellationToken cancellationToken)
Deletes a PrivateConnection
resource. When a private connection is
deleted for a VMware Engine network, the connected network becomes
inaccessible to that VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
PrivateConnectionName Required. The resource name of the private connection to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeletePrivateConnectionAsync(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 vmwareEngineClient.PollOnceDeletePrivateConnectionAsync(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;
}
DeletePrivateConnectionAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePrivateConnectionAsync(string name, CallSettings callSettings = null)
Deletes a PrivateConnection
resource. When a private connection is
deleted for a VMware Engine network, the connected network becomes
inaccessible to that VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private connection to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeletePrivateConnectionAsync(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 vmwareEngineClient.PollOnceDeletePrivateConnectionAsync(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;
}
DeletePrivateConnectionAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeletePrivateConnectionAsync(string name, CancellationToken cancellationToken)
Deletes a PrivateConnection
resource. When a private connection is
deleted for a VMware Engine network, the connected network becomes
inaccessible to that VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private connection to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeletePrivateConnectionAsync(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 vmwareEngineClient.PollOnceDeletePrivateConnectionAsync(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;
}
DeleteVmwareEngineNetwork(DeleteVmwareEngineNetworkRequest, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteVmwareEngineNetwork(DeleteVmwareEngineNetworkRequest request, CallSettings callSettings = null)
Deletes a VmwareEngineNetwork
resource. You can only delete a VMware
Engine network after all resources that refer to it are deleted. For
example, a private cloud, a network peering, and a network policy can all
refer to the same VMware Engine network.
Parameters | |
---|---|
Name | Description |
request |
DeleteVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
DeleteVmwareEngineNetworkRequest request = new DeleteVmwareEngineNetworkRequest
{
VmwareEngineNetworkName = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeleteVmwareEngineNetwork(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 = vmwareEngineClient.PollOnceDeleteVmwareEngineNetwork(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;
}
DeleteVmwareEngineNetwork(VmwareEngineNetworkName, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteVmwareEngineNetwork(VmwareEngineNetworkName name, CallSettings callSettings = null)
Deletes a VmwareEngineNetwork
resource. You can only delete a VMware
Engine network after all resources that refer to it are deleted. For
example, a private cloud, a network peering, and a network policy can all
refer to the same VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
VmwareEngineNetworkName Required. The resource name of the VMware Engine network to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
VmwareEngineNetworkName name = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]");
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeleteVmwareEngineNetwork(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 = vmwareEngineClient.PollOnceDeleteVmwareEngineNetwork(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;
}
DeleteVmwareEngineNetwork(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> DeleteVmwareEngineNetwork(string name, CallSettings callSettings = null)
Deletes a VmwareEngineNetwork
resource. You can only delete a VMware
Engine network after all resources that refer to it are deleted. For
example, a private cloud, a network peering, and a network policy can all
refer to the same VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the VMware Engine network to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/vmwareEngineNetworks/[VMWARE_ENGINE_NETWORK]";
// Make the request
Operation<Empty, OperationMetadata> response = vmwareEngineClient.DeleteVmwareEngineNetwork(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 = vmwareEngineClient.PollOnceDeleteVmwareEngineNetwork(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;
}
DeleteVmwareEngineNetworkAsync(DeleteVmwareEngineNetworkRequest, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVmwareEngineNetworkAsync(DeleteVmwareEngineNetworkRequest request, CallSettings callSettings = null)
Deletes a VmwareEngineNetwork
resource. You can only delete a VMware
Engine network after all resources that refer to it are deleted. For
example, a private cloud, a network peering, and a network policy can all
refer to the same VMware Engine network.
Parameters | |
---|---|
Name | Description |
request |
DeleteVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeleteVmwareEngineNetworkRequest request = new DeleteVmwareEngineNetworkRequest
{
VmwareEngineNetworkName = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteVmwareEngineNetworkAsync(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 vmwareEngineClient.PollOnceDeleteVmwareEngineNetworkAsync(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;
}
DeleteVmwareEngineNetworkAsync(DeleteVmwareEngineNetworkRequest, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVmwareEngineNetworkAsync(DeleteVmwareEngineNetworkRequest request, CancellationToken cancellationToken)
Deletes a VmwareEngineNetwork
resource. You can only delete a VMware
Engine network after all resources that refer to it are deleted. For
example, a private cloud, a network peering, and a network policy can all
refer to the same VMware Engine network.
Parameters | |
---|---|
Name | Description |
request |
DeleteVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
DeleteVmwareEngineNetworkRequest request = new DeleteVmwareEngineNetworkRequest
{
VmwareEngineNetworkName = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"),
RequestId = "",
Etag = "",
};
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteVmwareEngineNetworkAsync(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 vmwareEngineClient.PollOnceDeleteVmwareEngineNetworkAsync(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;
}
DeleteVmwareEngineNetworkAsync(VmwareEngineNetworkName, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVmwareEngineNetworkAsync(VmwareEngineNetworkName name, CallSettings callSettings = null)
Deletes a VmwareEngineNetwork
resource. You can only delete a VMware
Engine network after all resources that refer to it are deleted. For
example, a private cloud, a network peering, and a network policy can all
refer to the same VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
VmwareEngineNetworkName Required. The resource name of the VMware Engine network to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
VmwareEngineNetworkName name = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteVmwareEngineNetworkAsync(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 vmwareEngineClient.PollOnceDeleteVmwareEngineNetworkAsync(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;
}
DeleteVmwareEngineNetworkAsync(VmwareEngineNetworkName, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVmwareEngineNetworkAsync(VmwareEngineNetworkName name, CancellationToken cancellationToken)
Deletes a VmwareEngineNetwork
resource. You can only delete a VMware
Engine network after all resources that refer to it are deleted. For
example, a private cloud, a network peering, and a network policy can all
refer to the same VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
VmwareEngineNetworkName Required. The resource name of the VMware Engine network to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
VmwareEngineNetworkName name = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]");
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteVmwareEngineNetworkAsync(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 vmwareEngineClient.PollOnceDeleteVmwareEngineNetworkAsync(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;
}
DeleteVmwareEngineNetworkAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVmwareEngineNetworkAsync(string name, CallSettings callSettings = null)
Deletes a VmwareEngineNetwork
resource. You can only delete a VMware
Engine network after all resources that refer to it are deleted. For
example, a private cloud, a network peering, and a network policy can all
refer to the same VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the VMware Engine network to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/vmwareEngineNetworks/[VMWARE_ENGINE_NETWORK]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteVmwareEngineNetworkAsync(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 vmwareEngineClient.PollOnceDeleteVmwareEngineNetworkAsync(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;
}
DeleteVmwareEngineNetworkAsync(string, CancellationToken)
public virtual Task<Operation<Empty, OperationMetadata>> DeleteVmwareEngineNetworkAsync(string name, CancellationToken cancellationToken)
Deletes a VmwareEngineNetwork
resource. You can only delete a VMware
Engine network after all resources that refer to it are deleted. For
example, a private cloud, a network peering, and a network policy can all
refer to the same VMware Engine network.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the VMware Engine network to be deleted.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/vmwareEngineNetworks/[VMWARE_ENGINE_NETWORK]";
// Make the request
Operation<Empty, OperationMetadata> response = await vmwareEngineClient.DeleteVmwareEngineNetworkAsync(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 vmwareEngineClient.PollOnceDeleteVmwareEngineNetworkAsync(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;
}
GetCluster(ClusterName, CallSettings)
public virtual Cluster GetCluster(ClusterName name, CallSettings callSettings = null)
Retrieves a Cluster
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
ClusterName Required. The cluster resource name to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Cluster |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ClusterName name = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
// Make the request
Cluster response = vmwareEngineClient.GetCluster(name);
GetCluster(GetClusterRequest, CallSettings)
public virtual Cluster GetCluster(GetClusterRequest request, CallSettings callSettings = null)
Retrieves a Cluster
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetClusterRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Cluster |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
GetClusterRequest request = new GetClusterRequest
{
ClusterName = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"),
};
// Make the request
Cluster response = vmwareEngineClient.GetCluster(request);
GetCluster(string, CallSettings)
public virtual Cluster GetCluster(string name, CallSettings callSettings = null)
Retrieves a Cluster
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The cluster resource name to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Cluster |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/clusters/[CLUSTER]";
// Make the request
Cluster response = vmwareEngineClient.GetCluster(name);
GetClusterAsync(ClusterName, CallSettings)
public virtual Task<Cluster> GetClusterAsync(ClusterName name, CallSettings callSettings = null)
Retrieves a Cluster
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
ClusterName Required. The cluster resource name to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCluster |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ClusterName name = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
// Make the request
Cluster response = await vmwareEngineClient.GetClusterAsync(name);
GetClusterAsync(ClusterName, CancellationToken)
public virtual Task<Cluster> GetClusterAsync(ClusterName name, CancellationToken cancellationToken)
Retrieves a Cluster
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
ClusterName Required. The cluster resource name to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCluster |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ClusterName name = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]");
// Make the request
Cluster response = await vmwareEngineClient.GetClusterAsync(name);
GetClusterAsync(GetClusterRequest, CallSettings)
public virtual Task<Cluster> GetClusterAsync(GetClusterRequest request, CallSettings callSettings = null)
Retrieves a Cluster
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetClusterRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCluster |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetClusterRequest request = new GetClusterRequest
{
ClusterName = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"),
};
// Make the request
Cluster response = await vmwareEngineClient.GetClusterAsync(request);
GetClusterAsync(GetClusterRequest, CancellationToken)
public virtual Task<Cluster> GetClusterAsync(GetClusterRequest request, CancellationToken cancellationToken)
Retrieves a Cluster
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetClusterRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCluster |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetClusterRequest request = new GetClusterRequest
{
ClusterName = ClusterName.FromProjectLocationPrivateCloudCluster("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[CLUSTER]"),
};
// Make the request
Cluster response = await vmwareEngineClient.GetClusterAsync(request);
GetClusterAsync(string, CallSettings)
public virtual Task<Cluster> GetClusterAsync(string name, CallSettings callSettings = null)
Retrieves a Cluster
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The cluster resource name to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCluster |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/clusters/[CLUSTER]";
// Make the request
Cluster response = await vmwareEngineClient.GetClusterAsync(name);
GetClusterAsync(string, CancellationToken)
public virtual Task<Cluster> GetClusterAsync(string name, CancellationToken cancellationToken)
Retrieves a Cluster
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The cluster resource name to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCluster |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/clusters/[CLUSTER]";
// Make the request
Cluster response = await vmwareEngineClient.GetClusterAsync(name);
GetHcxActivationKey(GetHcxActivationKeyRequest, CallSettings)
public virtual HcxActivationKey GetHcxActivationKey(GetHcxActivationKeyRequest request, CallSettings callSettings = null)
Retrieves a HcxActivationKey
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetHcxActivationKeyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HcxActivationKey |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
GetHcxActivationKeyRequest request = new GetHcxActivationKeyRequest
{
HcxActivationKeyName = HcxActivationKeyName.FromProjectLocationPrivateCloudHcxActivationKey("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"),
};
// Make the request
HcxActivationKey response = vmwareEngineClient.GetHcxActivationKey(request);
GetHcxActivationKey(HcxActivationKeyName, CallSettings)
public virtual HcxActivationKey GetHcxActivationKey(HcxActivationKeyName name, CallSettings callSettings = null)
Retrieves a HcxActivationKey
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
HcxActivationKeyName Required. The resource name of the HCX activation key to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HcxActivationKey |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
HcxActivationKeyName name = HcxActivationKeyName.FromProjectLocationPrivateCloudHcxActivationKey("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]");
// Make the request
HcxActivationKey response = vmwareEngineClient.GetHcxActivationKey(name);
GetHcxActivationKey(string, CallSettings)
public virtual HcxActivationKey GetHcxActivationKey(string name, CallSettings callSettings = null)
Retrieves a HcxActivationKey
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the HCX activation key to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
HcxActivationKey |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/hcxActivationKeys/[HCX_ACTIVATION_KEY]";
// Make the request
HcxActivationKey response = vmwareEngineClient.GetHcxActivationKey(name);
GetHcxActivationKeyAsync(GetHcxActivationKeyRequest, CallSettings)
public virtual Task<HcxActivationKey> GetHcxActivationKeyAsync(GetHcxActivationKeyRequest request, CallSettings callSettings = null)
Retrieves a HcxActivationKey
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetHcxActivationKeyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHcxActivationKey |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetHcxActivationKeyRequest request = new GetHcxActivationKeyRequest
{
HcxActivationKeyName = HcxActivationKeyName.FromProjectLocationPrivateCloudHcxActivationKey("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"),
};
// Make the request
HcxActivationKey response = await vmwareEngineClient.GetHcxActivationKeyAsync(request);
GetHcxActivationKeyAsync(GetHcxActivationKeyRequest, CancellationToken)
public virtual Task<HcxActivationKey> GetHcxActivationKeyAsync(GetHcxActivationKeyRequest request, CancellationToken cancellationToken)
Retrieves a HcxActivationKey
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetHcxActivationKeyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHcxActivationKey |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetHcxActivationKeyRequest request = new GetHcxActivationKeyRequest
{
HcxActivationKeyName = HcxActivationKeyName.FromProjectLocationPrivateCloudHcxActivationKey("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]"),
};
// Make the request
HcxActivationKey response = await vmwareEngineClient.GetHcxActivationKeyAsync(request);
GetHcxActivationKeyAsync(HcxActivationKeyName, CallSettings)
public virtual Task<HcxActivationKey> GetHcxActivationKeyAsync(HcxActivationKeyName name, CallSettings callSettings = null)
Retrieves a HcxActivationKey
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
HcxActivationKeyName Required. The resource name of the HCX activation key to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHcxActivationKey |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
HcxActivationKeyName name = HcxActivationKeyName.FromProjectLocationPrivateCloudHcxActivationKey("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]");
// Make the request
HcxActivationKey response = await vmwareEngineClient.GetHcxActivationKeyAsync(name);
GetHcxActivationKeyAsync(HcxActivationKeyName, CancellationToken)
public virtual Task<HcxActivationKey> GetHcxActivationKeyAsync(HcxActivationKeyName name, CancellationToken cancellationToken)
Retrieves a HcxActivationKey
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
HcxActivationKeyName Required. The resource name of the HCX activation key to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHcxActivationKey |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
HcxActivationKeyName name = HcxActivationKeyName.FromProjectLocationPrivateCloudHcxActivationKey("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[HCX_ACTIVATION_KEY]");
// Make the request
HcxActivationKey response = await vmwareEngineClient.GetHcxActivationKeyAsync(name);
GetHcxActivationKeyAsync(string, CallSettings)
public virtual Task<HcxActivationKey> GetHcxActivationKeyAsync(string name, CallSettings callSettings = null)
Retrieves a HcxActivationKey
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the HCX activation key to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskHcxActivationKey |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/hcxActivationKeys/[HCX_ACTIVATION_KEY]";
// Make the request
HcxActivationKey response = await vmwareEngineClient.GetHcxActivationKeyAsync(name);
GetHcxActivationKeyAsync(string, CancellationToken)
public virtual Task<HcxActivationKey> GetHcxActivationKeyAsync(string name, CancellationToken cancellationToken)
Retrieves a HcxActivationKey
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the HCX activation key to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskHcxActivationKey |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/hcxActivationKeys/[HCX_ACTIVATION_KEY]";
// Make the request
HcxActivationKey response = await vmwareEngineClient.GetHcxActivationKeyAsync(name);
GetNetworkPolicy(GetNetworkPolicyRequest, CallSettings)
public virtual NetworkPolicy GetNetworkPolicy(GetNetworkPolicyRequest request, CallSettings callSettings = null)
Retrieves a NetworkPolicy
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetNetworkPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NetworkPolicy |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
GetNetworkPolicyRequest request = new GetNetworkPolicyRequest
{
NetworkPolicyName = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"),
};
// Make the request
NetworkPolicy response = vmwareEngineClient.GetNetworkPolicy(request);
GetNetworkPolicy(NetworkPolicyName, CallSettings)
public virtual NetworkPolicy GetNetworkPolicy(NetworkPolicyName name, CallSettings callSettings = null)
Retrieves a NetworkPolicy
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
NetworkPolicyName Required. The resource name of the network policy to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NetworkPolicy |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
NetworkPolicyName name = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
// Make the request
NetworkPolicy response = vmwareEngineClient.GetNetworkPolicy(name);
GetNetworkPolicy(string, CallSettings)
public virtual NetworkPolicy GetNetworkPolicy(string name, CallSettings callSettings = null)
Retrieves a NetworkPolicy
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the network policy to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NetworkPolicy |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networkPolicies/[NETWORK_POLICY]";
// Make the request
NetworkPolicy response = vmwareEngineClient.GetNetworkPolicy(name);
GetNetworkPolicyAsync(GetNetworkPolicyRequest, CallSettings)
public virtual Task<NetworkPolicy> GetNetworkPolicyAsync(GetNetworkPolicyRequest request, CallSettings callSettings = null)
Retrieves a NetworkPolicy
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetNetworkPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNetworkPolicy |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetNetworkPolicyRequest request = new GetNetworkPolicyRequest
{
NetworkPolicyName = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"),
};
// Make the request
NetworkPolicy response = await vmwareEngineClient.GetNetworkPolicyAsync(request);
GetNetworkPolicyAsync(GetNetworkPolicyRequest, CancellationToken)
public virtual Task<NetworkPolicy> GetNetworkPolicyAsync(GetNetworkPolicyRequest request, CancellationToken cancellationToken)
Retrieves a NetworkPolicy
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetNetworkPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNetworkPolicy |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetNetworkPolicyRequest request = new GetNetworkPolicyRequest
{
NetworkPolicyName = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]"),
};
// Make the request
NetworkPolicy response = await vmwareEngineClient.GetNetworkPolicyAsync(request);
GetNetworkPolicyAsync(NetworkPolicyName, CallSettings)
public virtual Task<NetworkPolicy> GetNetworkPolicyAsync(NetworkPolicyName name, CallSettings callSettings = null)
Retrieves a NetworkPolicy
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
NetworkPolicyName Required. The resource name of the network policy to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNetworkPolicy |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
NetworkPolicyName name = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
// Make the request
NetworkPolicy response = await vmwareEngineClient.GetNetworkPolicyAsync(name);
GetNetworkPolicyAsync(NetworkPolicyName, CancellationToken)
public virtual Task<NetworkPolicy> GetNetworkPolicyAsync(NetworkPolicyName name, CancellationToken cancellationToken)
Retrieves a NetworkPolicy
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
NetworkPolicyName Required. The resource name of the network policy to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNetworkPolicy |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
NetworkPolicyName name = NetworkPolicyName.FromProjectLocationNetworkPolicy("[PROJECT]", "[LOCATION]", "[NETWORK_POLICY]");
// Make the request
NetworkPolicy response = await vmwareEngineClient.GetNetworkPolicyAsync(name);
GetNetworkPolicyAsync(string, CallSettings)
public virtual Task<NetworkPolicy> GetNetworkPolicyAsync(string name, CallSettings callSettings = null)
Retrieves a NetworkPolicy
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the network policy to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNetworkPolicy |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networkPolicies/[NETWORK_POLICY]";
// Make the request
NetworkPolicy response = await vmwareEngineClient.GetNetworkPolicyAsync(name);
GetNetworkPolicyAsync(string, CancellationToken)
public virtual Task<NetworkPolicy> GetNetworkPolicyAsync(string name, CancellationToken cancellationToken)
Retrieves a NetworkPolicy
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the network policy to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNetworkPolicy |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/networkPolicies/[NETWORK_POLICY]";
// Make the request
NetworkPolicy response = await vmwareEngineClient.GetNetworkPolicyAsync(name);
GetNodeType(GetNodeTypeRequest, CallSettings)
public virtual NodeType GetNodeType(GetNodeTypeRequest request, CallSettings callSettings = null)
Gets details of a single NodeType
.
Parameters | |
---|---|
Name | Description |
request |
GetNodeTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NodeType |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
GetNodeTypeRequest request = new GetNodeTypeRequest
{
NodeTypeName = NodeTypeName.FromProjectLocationNodeType("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"),
};
// Make the request
NodeType response = vmwareEngineClient.GetNodeType(request);
GetNodeType(NodeTypeName, CallSettings)
public virtual NodeType GetNodeType(NodeTypeName name, CallSettings callSettings = null)
Gets details of a single NodeType
.
Parameters | |
---|---|
Name | Description |
name |
NodeTypeName Required. The resource name of the node type to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NodeType |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
NodeTypeName name = NodeTypeName.FromProjectLocationNodeType("[PROJECT]", "[LOCATION]", "[NODE_TYPE]");
// Make the request
NodeType response = vmwareEngineClient.GetNodeType(name);
GetNodeType(string, CallSettings)
public virtual NodeType GetNodeType(string name, CallSettings callSettings = null)
Gets details of a single NodeType
.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the node type to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
NodeType |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nodeTypes/[NODE_TYPE]";
// Make the request
NodeType response = vmwareEngineClient.GetNodeType(name);
GetNodeTypeAsync(GetNodeTypeRequest, CallSettings)
public virtual Task<NodeType> GetNodeTypeAsync(GetNodeTypeRequest request, CallSettings callSettings = null)
Gets details of a single NodeType
.
Parameters | |
---|---|
Name | Description |
request |
GetNodeTypeRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNodeType |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetNodeTypeRequest request = new GetNodeTypeRequest
{
NodeTypeName = NodeTypeName.FromProjectLocationNodeType("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"),
};
// Make the request
NodeType response = await vmwareEngineClient.GetNodeTypeAsync(request);
GetNodeTypeAsync(GetNodeTypeRequest, CancellationToken)
public virtual Task<NodeType> GetNodeTypeAsync(GetNodeTypeRequest request, CancellationToken cancellationToken)
Gets details of a single NodeType
.
Parameters | |
---|---|
Name | Description |
request |
GetNodeTypeRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNodeType |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetNodeTypeRequest request = new GetNodeTypeRequest
{
NodeTypeName = NodeTypeName.FromProjectLocationNodeType("[PROJECT]", "[LOCATION]", "[NODE_TYPE]"),
};
// Make the request
NodeType response = await vmwareEngineClient.GetNodeTypeAsync(request);
GetNodeTypeAsync(NodeTypeName, CallSettings)
public virtual Task<NodeType> GetNodeTypeAsync(NodeTypeName name, CallSettings callSettings = null)
Gets details of a single NodeType
.
Parameters | |
---|---|
Name | Description |
name |
NodeTypeName Required. The resource name of the node type to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNodeType |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
NodeTypeName name = NodeTypeName.FromProjectLocationNodeType("[PROJECT]", "[LOCATION]", "[NODE_TYPE]");
// Make the request
NodeType response = await vmwareEngineClient.GetNodeTypeAsync(name);
GetNodeTypeAsync(NodeTypeName, CancellationToken)
public virtual Task<NodeType> GetNodeTypeAsync(NodeTypeName name, CancellationToken cancellationToken)
Gets details of a single NodeType
.
Parameters | |
---|---|
Name | Description |
name |
NodeTypeName Required. The resource name of the node type to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNodeType |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
NodeTypeName name = NodeTypeName.FromProjectLocationNodeType("[PROJECT]", "[LOCATION]", "[NODE_TYPE]");
// Make the request
NodeType response = await vmwareEngineClient.GetNodeTypeAsync(name);
GetNodeTypeAsync(string, CallSettings)
public virtual Task<NodeType> GetNodeTypeAsync(string name, CallSettings callSettings = null)
Gets details of a single NodeType
.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the node type to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskNodeType |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nodeTypes/[NODE_TYPE]";
// Make the request
NodeType response = await vmwareEngineClient.GetNodeTypeAsync(name);
GetNodeTypeAsync(string, CancellationToken)
public virtual Task<NodeType> GetNodeTypeAsync(string name, CancellationToken cancellationToken)
Gets details of a single NodeType
.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the node type to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskNodeType |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/nodeTypes/[NODE_TYPE]";
// Make the request
NodeType response = await vmwareEngineClient.GetNodeTypeAsync(name);
GetPrivateCloud(GetPrivateCloudRequest, CallSettings)
public virtual PrivateCloud GetPrivateCloud(GetPrivateCloudRequest request, CallSettings callSettings = null)
Retrieves a PrivateCloud
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetPrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PrivateCloud |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
GetPrivateCloudRequest request = new GetPrivateCloudRequest
{
PrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
PrivateCloud response = vmwareEngineClient.GetPrivateCloud(request);
GetPrivateCloud(PrivateCloudName, CallSettings)
public virtual PrivateCloud GetPrivateCloud(PrivateCloudName name, CallSettings callSettings = null)
Retrieves a PrivateCloud
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
PrivateCloudName Required. The resource name of the private cloud to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PrivateCloud |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName name = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
PrivateCloud response = vmwareEngineClient.GetPrivateCloud(name);
GetPrivateCloud(string, CallSettings)
public virtual PrivateCloud GetPrivateCloud(string name, CallSettings callSettings = null)
Retrieves a PrivateCloud
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private cloud to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PrivateCloud |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
PrivateCloud response = vmwareEngineClient.GetPrivateCloud(name);
GetPrivateCloudAsync(GetPrivateCloudRequest, CallSettings)
public virtual Task<PrivateCloud> GetPrivateCloudAsync(GetPrivateCloudRequest request, CallSettings callSettings = null)
Retrieves a PrivateCloud
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetPrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPrivateCloud |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetPrivateCloudRequest request = new GetPrivateCloudRequest
{
PrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
PrivateCloud response = await vmwareEngineClient.GetPrivateCloudAsync(request);
GetPrivateCloudAsync(GetPrivateCloudRequest, CancellationToken)
public virtual Task<PrivateCloud> GetPrivateCloudAsync(GetPrivateCloudRequest request, CancellationToken cancellationToken)
Retrieves a PrivateCloud
resource by its resource name.
Parameters | |
---|---|
Name | Description |
request |
GetPrivateCloudRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPrivateCloud |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetPrivateCloudRequest request = new GetPrivateCloudRequest
{
PrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
PrivateCloud response = await vmwareEngineClient.GetPrivateCloudAsync(request);
GetPrivateCloudAsync(PrivateCloudName, CallSettings)
public virtual Task<PrivateCloud> GetPrivateCloudAsync(PrivateCloudName name, CallSettings callSettings = null)
Retrieves a PrivateCloud
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
PrivateCloudName Required. The resource name of the private cloud to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPrivateCloud |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName name = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
PrivateCloud response = await vmwareEngineClient.GetPrivateCloudAsync(name);
GetPrivateCloudAsync(PrivateCloudName, CancellationToken)
public virtual Task<PrivateCloud> GetPrivateCloudAsync(PrivateCloudName name, CancellationToken cancellationToken)
Retrieves a PrivateCloud
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
PrivateCloudName Required. The resource name of the private cloud to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPrivateCloud |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName name = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
PrivateCloud response = await vmwareEngineClient.GetPrivateCloudAsync(name);
GetPrivateCloudAsync(string, CallSettings)
public virtual Task<PrivateCloud> GetPrivateCloudAsync(string name, CallSettings callSettings = null)
Retrieves a PrivateCloud
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private cloud to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPrivateCloud |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
PrivateCloud response = await vmwareEngineClient.GetPrivateCloudAsync(name);
GetPrivateCloudAsync(string, CancellationToken)
public virtual Task<PrivateCloud> GetPrivateCloudAsync(string name, CancellationToken cancellationToken)
Retrieves a PrivateCloud
resource by its resource name.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private cloud to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPrivateCloud |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
PrivateCloud response = await vmwareEngineClient.GetPrivateCloudAsync(name);
GetPrivateConnection(GetPrivateConnectionRequest, CallSettings)
public virtual PrivateConnection GetPrivateConnection(GetPrivateConnectionRequest request, CallSettings callSettings = null)
Retrieves a PrivateConnection
resource by its resource name. The resource
contains details of the private connection, such as connected
network, routing mode and state.
Parameters | |
---|---|
Name | Description |
request |
GetPrivateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PrivateConnection |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
GetPrivateConnectionRequest request = new GetPrivateConnectionRequest
{
PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
};
// Make the request
PrivateConnection response = vmwareEngineClient.GetPrivateConnection(request);
GetPrivateConnection(PrivateConnectionName, CallSettings)
public virtual PrivateConnection GetPrivateConnection(PrivateConnectionName name, CallSettings callSettings = null)
Retrieves a PrivateConnection
resource by its resource name. The resource
contains details of the private connection, such as connected
network, routing mode and state.
Parameters | |
---|---|
Name | Description |
name |
PrivateConnectionName Required. The resource name of the private connection to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PrivateConnection |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
PrivateConnection response = vmwareEngineClient.GetPrivateConnection(name);
GetPrivateConnection(string, CallSettings)
public virtual PrivateConnection GetPrivateConnection(string name, CallSettings callSettings = null)
Retrieves a PrivateConnection
resource by its resource name. The resource
contains details of the private connection, such as connected
network, routing mode and state.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private connection to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PrivateConnection |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
PrivateConnection response = vmwareEngineClient.GetPrivateConnection(name);
GetPrivateConnectionAsync(GetPrivateConnectionRequest, CallSettings)
public virtual Task<PrivateConnection> GetPrivateConnectionAsync(GetPrivateConnectionRequest request, CallSettings callSettings = null)
Retrieves a PrivateConnection
resource by its resource name. The resource
contains details of the private connection, such as connected
network, routing mode and state.
Parameters | |
---|---|
Name | Description |
request |
GetPrivateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPrivateConnection |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetPrivateConnectionRequest request = new GetPrivateConnectionRequest
{
PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
};
// Make the request
PrivateConnection response = await vmwareEngineClient.GetPrivateConnectionAsync(request);
GetPrivateConnectionAsync(GetPrivateConnectionRequest, CancellationToken)
public virtual Task<PrivateConnection> GetPrivateConnectionAsync(GetPrivateConnectionRequest request, CancellationToken cancellationToken)
Retrieves a PrivateConnection
resource by its resource name. The resource
contains details of the private connection, such as connected
network, routing mode and state.
Parameters | |
---|---|
Name | Description |
request |
GetPrivateConnectionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPrivateConnection |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetPrivateConnectionRequest request = new GetPrivateConnectionRequest
{
PrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
};
// Make the request
PrivateConnection response = await vmwareEngineClient.GetPrivateConnectionAsync(request);
GetPrivateConnectionAsync(PrivateConnectionName, CallSettings)
public virtual Task<PrivateConnection> GetPrivateConnectionAsync(PrivateConnectionName name, CallSettings callSettings = null)
Retrieves a PrivateConnection
resource by its resource name. The resource
contains details of the private connection, such as connected
network, routing mode and state.
Parameters | |
---|---|
Name | Description |
name |
PrivateConnectionName Required. The resource name of the private connection to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPrivateConnection |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
PrivateConnection response = await vmwareEngineClient.GetPrivateConnectionAsync(name);
GetPrivateConnectionAsync(PrivateConnectionName, CancellationToken)
public virtual Task<PrivateConnection> GetPrivateConnectionAsync(PrivateConnectionName name, CancellationToken cancellationToken)
Retrieves a PrivateConnection
resource by its resource name. The resource
contains details of the private connection, such as connected
network, routing mode and state.
Parameters | |
---|---|
Name | Description |
name |
PrivateConnectionName Required. The resource name of the private connection to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPrivateConnection |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateConnectionName name = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
PrivateConnection response = await vmwareEngineClient.GetPrivateConnectionAsync(name);
GetPrivateConnectionAsync(string, CallSettings)
public virtual Task<PrivateConnection> GetPrivateConnectionAsync(string name, CallSettings callSettings = null)
Retrieves a PrivateConnection
resource by its resource name. The resource
contains details of the private connection, such as connected
network, routing mode and state.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private connection to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskPrivateConnection |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
PrivateConnection response = await vmwareEngineClient.GetPrivateConnectionAsync(name);
GetPrivateConnectionAsync(string, CancellationToken)
public virtual Task<PrivateConnection> GetPrivateConnectionAsync(string name, CancellationToken cancellationToken)
Retrieves a PrivateConnection
resource by its resource name. The resource
contains details of the private connection, such as connected
network, routing mode and state.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private connection to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskPrivateConnection |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
PrivateConnection response = await vmwareEngineClient.GetPrivateConnectionAsync(name);
GetSubnet(GetSubnetRequest, CallSettings)
public virtual Subnet GetSubnet(GetSubnetRequest request, CallSettings callSettings = null)
Gets details of a single subnet.
Parameters | |
---|---|
Name | Description |
request |
GetSubnetRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Subnet |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
GetSubnetRequest request = new GetSubnetRequest
{
SubnetName = SubnetName.FromProjectLocationPrivateCloudSubnet("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]"),
};
// Make the request
Subnet response = vmwareEngineClient.GetSubnet(request);
GetSubnet(SubnetName, CallSettings)
public virtual Subnet GetSubnet(SubnetName name, CallSettings callSettings = null)
Gets details of a single subnet.
Parameters | |
---|---|
Name | Description |
name |
SubnetName Required. The resource name of the subnet to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Subnet |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
SubnetName name = SubnetName.FromProjectLocationPrivateCloudSubnet("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]");
// Make the request
Subnet response = vmwareEngineClient.GetSubnet(name);
GetSubnet(string, CallSettings)
public virtual Subnet GetSubnet(string name, CallSettings callSettings = null)
Gets details of a single subnet.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the subnet to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Subnet |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/subnets/[SUBNET]";
// Make the request
Subnet response = vmwareEngineClient.GetSubnet(name);
GetSubnetAsync(GetSubnetRequest, CallSettings)
public virtual Task<Subnet> GetSubnetAsync(GetSubnetRequest request, CallSettings callSettings = null)
Gets details of a single subnet.
Parameters | |
---|---|
Name | Description |
request |
GetSubnetRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSubnet |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetSubnetRequest request = new GetSubnetRequest
{
SubnetName = SubnetName.FromProjectLocationPrivateCloudSubnet("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]"),
};
// Make the request
Subnet response = await vmwareEngineClient.GetSubnetAsync(request);
GetSubnetAsync(GetSubnetRequest, CancellationToken)
public virtual Task<Subnet> GetSubnetAsync(GetSubnetRequest request, CancellationToken cancellationToken)
Gets details of a single subnet.
Parameters | |
---|---|
Name | Description |
request |
GetSubnetRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSubnet |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetSubnetRequest request = new GetSubnetRequest
{
SubnetName = SubnetName.FromProjectLocationPrivateCloudSubnet("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]"),
};
// Make the request
Subnet response = await vmwareEngineClient.GetSubnetAsync(request);
GetSubnetAsync(SubnetName, CallSettings)
public virtual Task<Subnet> GetSubnetAsync(SubnetName name, CallSettings callSettings = null)
Gets details of a single subnet.
Parameters | |
---|---|
Name | Description |
name |
SubnetName Required. The resource name of the subnet to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSubnet |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
SubnetName name = SubnetName.FromProjectLocationPrivateCloudSubnet("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]");
// Make the request
Subnet response = await vmwareEngineClient.GetSubnetAsync(name);
GetSubnetAsync(SubnetName, CancellationToken)
public virtual Task<Subnet> GetSubnetAsync(SubnetName name, CancellationToken cancellationToken)
Gets details of a single subnet.
Parameters | |
---|---|
Name | Description |
name |
SubnetName Required. The resource name of the subnet to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSubnet |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
SubnetName name = SubnetName.FromProjectLocationPrivateCloudSubnet("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]", "[SUBNET]");
// Make the request
Subnet response = await vmwareEngineClient.GetSubnetAsync(name);
GetSubnetAsync(string, CallSettings)
public virtual Task<Subnet> GetSubnetAsync(string name, CallSettings callSettings = null)
Gets details of a single subnet.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the subnet to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskSubnet |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/subnets/[SUBNET]";
// Make the request
Subnet response = await vmwareEngineClient.GetSubnetAsync(name);
GetSubnetAsync(string, CancellationToken)
public virtual Task<Subnet> GetSubnetAsync(string name, CancellationToken cancellationToken)
Gets details of a single subnet.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the subnet to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskSubnet |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]/subnets/[SUBNET]";
// Make the request
Subnet response = await vmwareEngineClient.GetSubnetAsync(name);
GetVmwareEngineNetwork(GetVmwareEngineNetworkRequest, CallSettings)
public virtual VmwareEngineNetwork GetVmwareEngineNetwork(GetVmwareEngineNetworkRequest request, CallSettings callSettings = null)
Retrieves a VmwareEngineNetwork
resource by its resource name. The
resource contains details of the VMware Engine network, such as its VMware
Engine network type, peered networks in a service project, and state
(for example, CREATING
, ACTIVE
, DELETING
).
Parameters | |
---|---|
Name | Description |
request |
GetVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
VmwareEngineNetwork |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
GetVmwareEngineNetworkRequest request = new GetVmwareEngineNetworkRequest
{
VmwareEngineNetworkName = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"),
};
// Make the request
VmwareEngineNetwork response = vmwareEngineClient.GetVmwareEngineNetwork(request);
GetVmwareEngineNetwork(VmwareEngineNetworkName, CallSettings)
public virtual VmwareEngineNetwork GetVmwareEngineNetwork(VmwareEngineNetworkName name, CallSettings callSettings = null)
Retrieves a VmwareEngineNetwork
resource by its resource name. The
resource contains details of the VMware Engine network, such as its VMware
Engine network type, peered networks in a service project, and state
(for example, CREATING
, ACTIVE
, DELETING
).
Parameters | |
---|---|
Name | Description |
name |
VmwareEngineNetworkName Required. The resource name of the VMware Engine network to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
VmwareEngineNetwork |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
VmwareEngineNetworkName name = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]");
// Make the request
VmwareEngineNetwork response = vmwareEngineClient.GetVmwareEngineNetwork(name);
GetVmwareEngineNetwork(string, CallSettings)
public virtual VmwareEngineNetwork GetVmwareEngineNetwork(string name, CallSettings callSettings = null)
Retrieves a VmwareEngineNetwork
resource by its resource name. The
resource contains details of the VMware Engine network, such as its VMware
Engine network type, peered networks in a service project, and state
(for example, CREATING
, ACTIVE
, DELETING
).
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the VMware Engine network to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
VmwareEngineNetwork |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/vmwareEngineNetworks/[VMWARE_ENGINE_NETWORK]";
// Make the request
VmwareEngineNetwork response = vmwareEngineClient.GetVmwareEngineNetwork(name);
GetVmwareEngineNetworkAsync(GetVmwareEngineNetworkRequest, CallSettings)
public virtual Task<VmwareEngineNetwork> GetVmwareEngineNetworkAsync(GetVmwareEngineNetworkRequest request, CallSettings callSettings = null)
Retrieves a VmwareEngineNetwork
resource by its resource name. The
resource contains details of the VMware Engine network, such as its VMware
Engine network type, peered networks in a service project, and state
(for example, CREATING
, ACTIVE
, DELETING
).
Parameters | |
---|---|
Name | Description |
request |
GetVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskVmwareEngineNetwork |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetVmwareEngineNetworkRequest request = new GetVmwareEngineNetworkRequest
{
VmwareEngineNetworkName = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"),
};
// Make the request
VmwareEngineNetwork response = await vmwareEngineClient.GetVmwareEngineNetworkAsync(request);
GetVmwareEngineNetworkAsync(GetVmwareEngineNetworkRequest, CancellationToken)
public virtual Task<VmwareEngineNetwork> GetVmwareEngineNetworkAsync(GetVmwareEngineNetworkRequest request, CancellationToken cancellationToken)
Retrieves a VmwareEngineNetwork
resource by its resource name. The
resource contains details of the VMware Engine network, such as its VMware
Engine network type, peered networks in a service project, and state
(for example, CREATING
, ACTIVE
, DELETING
).
Parameters | |
---|---|
Name | Description |
request |
GetVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVmwareEngineNetwork |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
GetVmwareEngineNetworkRequest request = new GetVmwareEngineNetworkRequest
{
VmwareEngineNetworkName = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]"),
};
// Make the request
VmwareEngineNetwork response = await vmwareEngineClient.GetVmwareEngineNetworkAsync(request);
GetVmwareEngineNetworkAsync(VmwareEngineNetworkName, CallSettings)
public virtual Task<VmwareEngineNetwork> GetVmwareEngineNetworkAsync(VmwareEngineNetworkName name, CallSettings callSettings = null)
Retrieves a VmwareEngineNetwork
resource by its resource name. The
resource contains details of the VMware Engine network, such as its VMware
Engine network type, peered networks in a service project, and state
(for example, CREATING
, ACTIVE
, DELETING
).
Parameters | |
---|---|
Name | Description |
name |
VmwareEngineNetworkName Required. The resource name of the VMware Engine network to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskVmwareEngineNetwork |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
VmwareEngineNetworkName name = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]");
// Make the request
VmwareEngineNetwork response = await vmwareEngineClient.GetVmwareEngineNetworkAsync(name);
GetVmwareEngineNetworkAsync(VmwareEngineNetworkName, CancellationToken)
public virtual Task<VmwareEngineNetwork> GetVmwareEngineNetworkAsync(VmwareEngineNetworkName name, CancellationToken cancellationToken)
Retrieves a VmwareEngineNetwork
resource by its resource name. The
resource contains details of the VMware Engine network, such as its VMware
Engine network type, peered networks in a service project, and state
(for example, CREATING
, ACTIVE
, DELETING
).
Parameters | |
---|---|
Name | Description |
name |
VmwareEngineNetworkName Required. The resource name of the VMware Engine network to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVmwareEngineNetwork |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
VmwareEngineNetworkName name = VmwareEngineNetworkName.FromProjectLocationVmwareEngineNetwork("[PROJECT]", "[LOCATION]", "[VMWARE_ENGINE_NETWORK]");
// Make the request
VmwareEngineNetwork response = await vmwareEngineClient.GetVmwareEngineNetworkAsync(name);
GetVmwareEngineNetworkAsync(string, CallSettings)
public virtual Task<VmwareEngineNetwork> GetVmwareEngineNetworkAsync(string name, CallSettings callSettings = null)
Retrieves a VmwareEngineNetwork
resource by its resource name. The
resource contains details of the VMware Engine network, such as its VMware
Engine network type, peered networks in a service project, and state
(for example, CREATING
, ACTIVE
, DELETING
).
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the VMware Engine network to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskVmwareEngineNetwork |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/vmwareEngineNetworks/[VMWARE_ENGINE_NETWORK]";
// Make the request
VmwareEngineNetwork response = await vmwareEngineClient.GetVmwareEngineNetworkAsync(name);
GetVmwareEngineNetworkAsync(string, CancellationToken)
public virtual Task<VmwareEngineNetwork> GetVmwareEngineNetworkAsync(string name, CancellationToken cancellationToken)
Retrieves a VmwareEngineNetwork
resource by its resource name. The
resource contains details of the VMware Engine network, such as its VMware
Engine network type, peered networks in a service project, and state
(for example, CREATING
, ACTIVE
, DELETING
).
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the VMware Engine network to retrieve.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskVmwareEngineNetwork |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/vmwareEngineNetworks/[VMWARE_ENGINE_NETWORK]";
// Make the request
VmwareEngineNetwork response = await vmwareEngineClient.GetVmwareEngineNetworkAsync(name);
ListClusters(ListClustersRequest, CallSettings)
public virtual PagedEnumerable<ListClustersResponse, Cluster> ListClusters(ListClustersRequest request, CallSettings callSettings = null)
Lists Cluster
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
request |
ListClustersRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListClustersResponseCluster |
A pageable sequence of Cluster resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ListClustersRequest request = new ListClustersRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListClustersResponse, Cluster> response = vmwareEngineClient.ListClusters(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Cluster 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 (ListClustersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Cluster 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<Cluster> 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 (Cluster 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;
ListClusters(PrivateCloudName, string, int?, CallSettings)
public virtual PagedEnumerable<ListClustersResponse, Cluster> ListClusters(PrivateCloudName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Cluster
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to query for clusters.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListClustersResponseCluster |
A pageable sequence of Cluster resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
PagedEnumerable<ListClustersResponse, Cluster> response = vmwareEngineClient.ListClusters(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Cluster 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 (ListClustersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Cluster 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<Cluster> 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 (Cluster 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;
ListClusters(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListClustersResponse, Cluster> ListClusters(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Cluster
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to query for clusters.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListClustersResponseCluster |
A pageable sequence of Cluster resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
PagedEnumerable<ListClustersResponse, Cluster> response = vmwareEngineClient.ListClusters(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Cluster 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 (ListClustersResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Cluster 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<Cluster> 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 (Cluster 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;
ListClustersAsync(ListClustersRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListClustersResponse, Cluster> ListClustersAsync(ListClustersRequest request, CallSettings callSettings = null)
Lists Cluster
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
request |
ListClustersRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListClustersResponseCluster |
A pageable asynchronous sequence of Cluster resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ListClustersRequest request = new ListClustersRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListClustersResponse, Cluster> response = vmwareEngineClient.ListClustersAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Cluster item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListClustersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Cluster 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<Cluster> 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 (Cluster 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;
ListClustersAsync(PrivateCloudName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListClustersResponse, Cluster> ListClustersAsync(PrivateCloudName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Cluster
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to query for clusters.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListClustersResponseCluster |
A pageable asynchronous sequence of Cluster resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
PagedAsyncEnumerable<ListClustersResponse, Cluster> response = vmwareEngineClient.ListClustersAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Cluster item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListClustersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Cluster 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<Cluster> 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 (Cluster 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;
ListClustersAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListClustersResponse, Cluster> ListClustersAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists Cluster
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to query for clusters.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListClustersResponseCluster |
A pageable asynchronous sequence of Cluster resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
PagedAsyncEnumerable<ListClustersResponse, Cluster> response = vmwareEngineClient.ListClustersAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Cluster item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListClustersResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Cluster 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<Cluster> 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 (Cluster 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;
ListHcxActivationKeys(ListHcxActivationKeysRequest, CallSettings)
public virtual PagedEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> ListHcxActivationKeys(ListHcxActivationKeysRequest request, CallSettings callSettings = null)
Lists HcxActivationKey
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
request |
ListHcxActivationKeysRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListHcxActivationKeysResponseHcxActivationKey |
A pageable sequence of HcxActivationKey resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ListHcxActivationKeysRequest request = new ListHcxActivationKeysRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
PagedEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> response = vmwareEngineClient.ListHcxActivationKeys(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (HcxActivationKey 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 (ListHcxActivationKeysResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HcxActivationKey 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<HcxActivationKey> 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 (HcxActivationKey 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;
ListHcxActivationKeys(PrivateCloudName, string, int?, CallSettings)
public virtual PagedEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> ListHcxActivationKeys(PrivateCloudName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists HcxActivationKey
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud
to be queried for HCX activation keys.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListHcxActivationKeysResponseHcxActivationKey |
A pageable sequence of HcxActivationKey resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
PagedEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> response = vmwareEngineClient.ListHcxActivationKeys(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (HcxActivationKey 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 (ListHcxActivationKeysResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HcxActivationKey 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<HcxActivationKey> 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 (HcxActivationKey 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;
ListHcxActivationKeys(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> ListHcxActivationKeys(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists HcxActivationKey
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud
to be queried for HCX activation keys.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListHcxActivationKeysResponseHcxActivationKey |
A pageable sequence of HcxActivationKey resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
PagedEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> response = vmwareEngineClient.ListHcxActivationKeys(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (HcxActivationKey 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 (ListHcxActivationKeysResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HcxActivationKey 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<HcxActivationKey> 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 (HcxActivationKey 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;
ListHcxActivationKeysAsync(ListHcxActivationKeysRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> ListHcxActivationKeysAsync(ListHcxActivationKeysRequest request, CallSettings callSettings = null)
Lists HcxActivationKey
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
request |
ListHcxActivationKeysRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListHcxActivationKeysResponseHcxActivationKey |
A pageable asynchronous sequence of HcxActivationKey resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ListHcxActivationKeysRequest request = new ListHcxActivationKeysRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
PagedAsyncEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> response = vmwareEngineClient.ListHcxActivationKeysAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((HcxActivationKey item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListHcxActivationKeysResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HcxActivationKey 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<HcxActivationKey> 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 (HcxActivationKey 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;
ListHcxActivationKeysAsync(PrivateCloudName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> ListHcxActivationKeysAsync(PrivateCloudName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists HcxActivationKey
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud
to be queried for HCX activation keys.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListHcxActivationKeysResponseHcxActivationKey |
A pageable asynchronous sequence of HcxActivationKey resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
PagedAsyncEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> response = vmwareEngineClient.ListHcxActivationKeysAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((HcxActivationKey item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListHcxActivationKeysResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HcxActivationKey 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<HcxActivationKey> 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 (HcxActivationKey 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;
ListHcxActivationKeysAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> ListHcxActivationKeysAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists HcxActivationKey
resources in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud
to be queried for HCX activation keys.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListHcxActivationKeysResponseHcxActivationKey |
A pageable asynchronous sequence of HcxActivationKey resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
PagedAsyncEnumerable<ListHcxActivationKeysResponse, HcxActivationKey> response = vmwareEngineClient.ListHcxActivationKeysAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((HcxActivationKey item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListHcxActivationKeysResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (HcxActivationKey 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<HcxActivationKey> 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 (HcxActivationKey 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;
ListNetworkPolicies(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> ListNetworkPolicies(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists NetworkPolicy
resources in a specified project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location (region) to query for
network policies. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListNetworkPoliciesResponseNetworkPolicy |
A pageable sequence of NetworkPolicy resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> response = vmwareEngineClient.ListNetworkPolicies(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (NetworkPolicy 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 (ListNetworkPoliciesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NetworkPolicy 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<NetworkPolicy> 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 (NetworkPolicy 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;
ListNetworkPolicies(ListNetworkPoliciesRequest, CallSettings)
public virtual PagedEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> ListNetworkPolicies(ListNetworkPoliciesRequest request, CallSettings callSettings = null)
Lists NetworkPolicy
resources in a specified project and location.
Parameters | |
---|---|
Name | Description |
request |
ListNetworkPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListNetworkPoliciesResponseNetworkPolicy |
A pageable sequence of NetworkPolicy resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ListNetworkPoliciesRequest request = new ListNetworkPoliciesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> response = vmwareEngineClient.ListNetworkPolicies(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (NetworkPolicy 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 (ListNetworkPoliciesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NetworkPolicy 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<NetworkPolicy> 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 (NetworkPolicy 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;
ListNetworkPolicies(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> ListNetworkPolicies(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists NetworkPolicy
resources in a specified project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location (region) to query for
network policies. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListNetworkPoliciesResponseNetworkPolicy |
A pageable sequence of NetworkPolicy resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> response = vmwareEngineClient.ListNetworkPolicies(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (NetworkPolicy 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 (ListNetworkPoliciesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NetworkPolicy 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<NetworkPolicy> 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 (NetworkPolicy 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;
ListNetworkPoliciesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> ListNetworkPoliciesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists NetworkPolicy
resources in a specified project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location (region) to query for
network policies. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListNetworkPoliciesResponseNetworkPolicy |
A pageable asynchronous sequence of NetworkPolicy resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> response = vmwareEngineClient.ListNetworkPoliciesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NetworkPolicy item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNetworkPoliciesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NetworkPolicy 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<NetworkPolicy> 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 (NetworkPolicy 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;
ListNetworkPoliciesAsync(ListNetworkPoliciesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> ListNetworkPoliciesAsync(ListNetworkPoliciesRequest request, CallSettings callSettings = null)
Lists NetworkPolicy
resources in a specified project and location.
Parameters | |
---|---|
Name | Description |
request |
ListNetworkPoliciesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListNetworkPoliciesResponseNetworkPolicy |
A pageable asynchronous sequence of NetworkPolicy resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ListNetworkPoliciesRequest request = new ListNetworkPoliciesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> response = vmwareEngineClient.ListNetworkPoliciesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NetworkPolicy item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNetworkPoliciesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NetworkPolicy 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<NetworkPolicy> 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 (NetworkPolicy 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;
ListNetworkPoliciesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> ListNetworkPoliciesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists NetworkPolicy
resources in a specified project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location (region) to query for
network policies. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListNetworkPoliciesResponseNetworkPolicy |
A pageable asynchronous sequence of NetworkPolicy resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListNetworkPoliciesResponse, NetworkPolicy> response = vmwareEngineClient.ListNetworkPoliciesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NetworkPolicy item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNetworkPoliciesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NetworkPolicy 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<NetworkPolicy> 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 (NetworkPolicy 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;
ListNodeTypes(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListNodeTypesResponse, NodeType> ListNodeTypes(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists node types
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to be queried for node types.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListNodeTypesResponseNodeType |
A pageable sequence of NodeType resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListNodeTypesResponse, NodeType> response = vmwareEngineClient.ListNodeTypes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (NodeType 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 (ListNodeTypesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NodeType 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<NodeType> 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 (NodeType 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;
ListNodeTypes(ListNodeTypesRequest, CallSettings)
public virtual PagedEnumerable<ListNodeTypesResponse, NodeType> ListNodeTypes(ListNodeTypesRequest request, CallSettings callSettings = null)
Lists node types
Parameters | |
---|---|
Name | Description |
request |
ListNodeTypesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListNodeTypesResponseNodeType |
A pageable sequence of NodeType resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ListNodeTypesRequest request = new ListNodeTypesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedEnumerable<ListNodeTypesResponse, NodeType> response = vmwareEngineClient.ListNodeTypes(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (NodeType 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 (ListNodeTypesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NodeType 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<NodeType> 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 (NodeType 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;
ListNodeTypes(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListNodeTypesResponse, NodeType> ListNodeTypes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists node types
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to be queried for node types.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListNodeTypesResponseNodeType |
A pageable sequence of NodeType resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListNodeTypesResponse, NodeType> response = vmwareEngineClient.ListNodeTypes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (NodeType 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 (ListNodeTypesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NodeType 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<NodeType> 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 (NodeType 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;
ListNodeTypesAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNodeTypesResponse, NodeType> ListNodeTypesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists node types
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to be queried for node types.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListNodeTypesResponseNodeType |
A pageable asynchronous sequence of NodeType resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListNodeTypesResponse, NodeType> response = vmwareEngineClient.ListNodeTypesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NodeType item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNodeTypesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NodeType 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<NodeType> 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 (NodeType 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;
ListNodeTypesAsync(ListNodeTypesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListNodeTypesResponse, NodeType> ListNodeTypesAsync(ListNodeTypesRequest request, CallSettings callSettings = null)
Lists node types
Parameters | |
---|---|
Name | Description |
request |
ListNodeTypesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListNodeTypesResponseNodeType |
A pageable asynchronous sequence of NodeType resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ListNodeTypesRequest request = new ListNodeTypesRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListNodeTypesResponse, NodeType> response = vmwareEngineClient.ListNodeTypesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NodeType item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNodeTypesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NodeType 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<NodeType> 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 (NodeType 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;
ListNodeTypesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListNodeTypesResponse, NodeType> ListNodeTypesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists node types
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to be queried for node types.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListNodeTypesResponseNodeType |
A pageable asynchronous sequence of NodeType resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListNodeTypesResponse, NodeType> response = vmwareEngineClient.ListNodeTypesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((NodeType item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListNodeTypesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (NodeType 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<NodeType> 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 (NodeType 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;
ListPrivateClouds(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPrivateCloudsResponse, PrivateCloud> ListPrivateClouds(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists PrivateCloud
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the private cloud to be queried for
clusters. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPrivateCloudsResponsePrivateCloud |
A pageable sequence of PrivateCloud resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPrivateCloudsResponse, PrivateCloud> response = vmwareEngineClient.ListPrivateClouds(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateCloud 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 (ListPrivateCloudsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateCloud 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<PrivateCloud> 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 (PrivateCloud 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;
ListPrivateClouds(ListPrivateCloudsRequest, CallSettings)
public virtual PagedEnumerable<ListPrivateCloudsResponse, PrivateCloud> ListPrivateClouds(ListPrivateCloudsRequest request, CallSettings callSettings = null)
Lists PrivateCloud
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListPrivateCloudsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPrivateCloudsResponsePrivateCloud |
A pageable sequence of PrivateCloud resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ListPrivateCloudsRequest request = new ListPrivateCloudsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListPrivateCloudsResponse, PrivateCloud> response = vmwareEngineClient.ListPrivateClouds(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateCloud 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 (ListPrivateCloudsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateCloud 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<PrivateCloud> 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 (PrivateCloud 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;
ListPrivateClouds(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPrivateCloudsResponse, PrivateCloud> ListPrivateClouds(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists PrivateCloud
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to be queried for
clusters. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPrivateCloudsResponsePrivateCloud |
A pageable sequence of PrivateCloud resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListPrivateCloudsResponse, PrivateCloud> response = vmwareEngineClient.ListPrivateClouds(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateCloud 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 (ListPrivateCloudsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateCloud 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<PrivateCloud> 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 (PrivateCloud 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;
ListPrivateCloudsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPrivateCloudsResponse, PrivateCloud> ListPrivateCloudsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists PrivateCloud
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the private cloud to be queried for
clusters. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPrivateCloudsResponsePrivateCloud |
A pageable asynchronous sequence of PrivateCloud resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPrivateCloudsResponse, PrivateCloud> response = vmwareEngineClient.ListPrivateCloudsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PrivateCloud item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPrivateCloudsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateCloud 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<PrivateCloud> 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 (PrivateCloud 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;
ListPrivateCloudsAsync(ListPrivateCloudsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPrivateCloudsResponse, PrivateCloud> ListPrivateCloudsAsync(ListPrivateCloudsRequest request, CallSettings callSettings = null)
Lists PrivateCloud
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListPrivateCloudsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPrivateCloudsResponsePrivateCloud |
A pageable asynchronous sequence of PrivateCloud resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ListPrivateCloudsRequest request = new ListPrivateCloudsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListPrivateCloudsResponse, PrivateCloud> response = vmwareEngineClient.ListPrivateCloudsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PrivateCloud item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPrivateCloudsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateCloud 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<PrivateCloud> 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 (PrivateCloud 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;
ListPrivateCloudsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPrivateCloudsResponse, PrivateCloud> ListPrivateCloudsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists PrivateCloud
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to be queried for
clusters. Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPrivateCloudsResponsePrivateCloud |
A pageable asynchronous sequence of PrivateCloud resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListPrivateCloudsResponse, PrivateCloud> response = vmwareEngineClient.ListPrivateCloudsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PrivateCloud item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPrivateCloudsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateCloud 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<PrivateCloud> 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 (PrivateCloud 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;
ListPrivateConnectionPeeringRoutes(ListPrivateConnectionPeeringRoutesRequest, CallSettings)
public virtual PagedEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> ListPrivateConnectionPeeringRoutes(ListPrivateConnectionPeeringRoutesRequest request, CallSettings callSettings = null)
Lists the private connection routes exchanged over a peering connection.
Parameters | |
---|---|
Name | Description |
request |
ListPrivateConnectionPeeringRoutesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPrivateConnectionPeeringRoutesResponsePeeringRoute |
A pageable sequence of PeeringRoute resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ListPrivateConnectionPeeringRoutesRequest request = new ListPrivateConnectionPeeringRoutesRequest
{
ParentAsPrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
};
// Make the request
PagedEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> response = vmwareEngineClient.ListPrivateConnectionPeeringRoutes(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (PeeringRoute 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 (ListPrivateConnectionPeeringRoutesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PeeringRoute 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<PeeringRoute> 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 (PeeringRoute 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;
ListPrivateConnectionPeeringRoutes(PrivateConnectionName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> ListPrivateConnectionPeeringRoutes(PrivateConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the private connection routes exchanged over a peering connection.
Parameters | |
---|---|
Name | Description |
parent |
PrivateConnectionName Required. The resource name of the private connection to retrieve peering
routes from. Resource names are schemeless URIs that follow the conventions
in https://cloud.google.com/apis/design/resource_names. For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPrivateConnectionPeeringRoutesResponsePeeringRoute |
A pageable sequence of PeeringRoute resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateConnectionName parent = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
PagedEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> response = vmwareEngineClient.ListPrivateConnectionPeeringRoutes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (PeeringRoute 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 (ListPrivateConnectionPeeringRoutesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PeeringRoute 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<PeeringRoute> 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 (PeeringRoute 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;
ListPrivateConnectionPeeringRoutes(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> ListPrivateConnectionPeeringRoutes(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the private connection routes exchanged over a peering connection.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private connection to retrieve peering
routes from. Resource names are schemeless URIs that follow the conventions
in https://cloud.google.com/apis/design/resource_names. For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPrivateConnectionPeeringRoutesResponsePeeringRoute |
A pageable sequence of PeeringRoute resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
PagedEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> response = vmwareEngineClient.ListPrivateConnectionPeeringRoutes(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (PeeringRoute 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 (ListPrivateConnectionPeeringRoutesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PeeringRoute 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<PeeringRoute> 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 (PeeringRoute 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;
ListPrivateConnectionPeeringRoutesAsync(ListPrivateConnectionPeeringRoutesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> ListPrivateConnectionPeeringRoutesAsync(ListPrivateConnectionPeeringRoutesRequest request, CallSettings callSettings = null)
Lists the private connection routes exchanged over a peering connection.
Parameters | |
---|---|
Name | Description |
request |
ListPrivateConnectionPeeringRoutesRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPrivateConnectionPeeringRoutesResponsePeeringRoute |
A pageable asynchronous sequence of PeeringRoute resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ListPrivateConnectionPeeringRoutesRequest request = new ListPrivateConnectionPeeringRoutesRequest
{
ParentAsPrivateConnectionName = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"),
};
// Make the request
PagedAsyncEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> response = vmwareEngineClient.ListPrivateConnectionPeeringRoutesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PeeringRoute item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPrivateConnectionPeeringRoutesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PeeringRoute 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<PeeringRoute> 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 (PeeringRoute 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;
ListPrivateConnectionPeeringRoutesAsync(PrivateConnectionName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> ListPrivateConnectionPeeringRoutesAsync(PrivateConnectionName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the private connection routes exchanged over a peering connection.
Parameters | |
---|---|
Name | Description |
parent |
PrivateConnectionName Required. The resource name of the private connection to retrieve peering
routes from. Resource names are schemeless URIs that follow the conventions
in https://cloud.google.com/apis/design/resource_names. For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPrivateConnectionPeeringRoutesResponsePeeringRoute |
A pageable asynchronous sequence of PeeringRoute resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateConnectionName parent = PrivateConnectionName.FromProjectLocationPrivateConnection("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
// Make the request
PagedAsyncEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> response = vmwareEngineClient.ListPrivateConnectionPeeringRoutesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PeeringRoute item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPrivateConnectionPeeringRoutesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PeeringRoute 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<PeeringRoute> 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 (PeeringRoute 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;
ListPrivateConnectionPeeringRoutesAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> ListPrivateConnectionPeeringRoutesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists the private connection routes exchanged over a peering connection.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private connection to retrieve peering
routes from. Resource names are schemeless URIs that follow the conventions
in https://cloud.google.com/apis/design/resource_names. For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPrivateConnectionPeeringRoutesResponsePeeringRoute |
A pageable asynchronous sequence of PeeringRoute resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateConnections/[PRIVATE_CONNECTION]";
// Make the request
PagedAsyncEnumerable<ListPrivateConnectionPeeringRoutesResponse, PeeringRoute> response = vmwareEngineClient.ListPrivateConnectionPeeringRoutesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PeeringRoute item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPrivateConnectionPeeringRoutesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PeeringRoute 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<PeeringRoute> 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 (PeeringRoute 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;
ListPrivateConnections(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnections(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists PrivateConnection
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to query for
private connections. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPrivateConnectionsResponsePrivateConnection |
A pageable sequence of PrivateConnection resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> response = vmwareEngineClient.ListPrivateConnections(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateConnection 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 (ListPrivateConnectionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateConnection 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<PrivateConnection> 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 (PrivateConnection 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;
ListPrivateConnections(ListPrivateConnectionsRequest, CallSettings)
public virtual PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnections(ListPrivateConnectionsRequest request, CallSettings callSettings = null)
Lists PrivateConnection
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListPrivateConnectionsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPrivateConnectionsResponsePrivateConnection |
A pageable sequence of PrivateConnection resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ListPrivateConnectionsRequest request = new ListPrivateConnectionsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> response = vmwareEngineClient.ListPrivateConnections(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateConnection 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 (ListPrivateConnectionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateConnection 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<PrivateConnection> 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 (PrivateConnection 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;
ListPrivateConnections(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnections(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists PrivateConnection
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to query for
private connections. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListPrivateConnectionsResponsePrivateConnection |
A pageable sequence of PrivateConnection resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListPrivateConnectionsResponse, PrivateConnection> response = vmwareEngineClient.ListPrivateConnections(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (PrivateConnection 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 (ListPrivateConnectionsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateConnection 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<PrivateConnection> 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 (PrivateConnection 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;
ListPrivateConnectionsAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnectionsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists PrivateConnection
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to query for
private connections. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPrivateConnectionsResponsePrivateConnection |
A pageable asynchronous sequence of PrivateConnection resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListPrivateConnectionsResponse, PrivateConnection> response = vmwareEngineClient.ListPrivateConnectionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PrivateConnection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPrivateConnectionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateConnection 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<PrivateConnection> 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 (PrivateConnection 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;
ListPrivateConnectionsAsync(ListPrivateConnectionsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnectionsAsync(ListPrivateConnectionsRequest request, CallSettings callSettings = null)
Lists PrivateConnection
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListPrivateConnectionsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPrivateConnectionsResponsePrivateConnection |
A pageable asynchronous sequence of PrivateConnection resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ListPrivateConnectionsRequest request = new ListPrivateConnectionsRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListPrivateConnectionsResponse, PrivateConnection> response = vmwareEngineClient.ListPrivateConnectionsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PrivateConnection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPrivateConnectionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateConnection 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<PrivateConnection> 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 (PrivateConnection 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;
ListPrivateConnectionsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListPrivateConnectionsResponse, PrivateConnection> ListPrivateConnectionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists PrivateConnection
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to query for
private connections. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListPrivateConnectionsResponsePrivateConnection |
A pageable asynchronous sequence of PrivateConnection resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListPrivateConnectionsResponse, PrivateConnection> response = vmwareEngineClient.ListPrivateConnectionsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((PrivateConnection item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListPrivateConnectionsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (PrivateConnection 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<PrivateConnection> 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 (PrivateConnection 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;
ListSubnets(ListSubnetsRequest, CallSettings)
public virtual PagedEnumerable<ListSubnetsResponse, Subnet> ListSubnets(ListSubnetsRequest request, CallSettings callSettings = null)
Lists subnets in a given private cloud.
Parameters | |
---|---|
Name | Description |
request |
ListSubnetsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSubnetsResponseSubnet |
A pageable sequence of Subnet resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ListSubnetsRequest request = new ListSubnetsRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
PagedEnumerable<ListSubnetsResponse, Subnet> response = vmwareEngineClient.ListSubnets(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (Subnet 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 (ListSubnetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Subnet 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<Subnet> 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 (Subnet 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;
ListSubnets(PrivateCloudName, string, int?, CallSettings)
public virtual PagedEnumerable<ListSubnetsResponse, Subnet> ListSubnets(PrivateCloudName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists subnets in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to be queried for
subnets.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSubnetsResponseSubnet |
A pageable sequence of Subnet resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
PagedEnumerable<ListSubnetsResponse, Subnet> response = vmwareEngineClient.ListSubnets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Subnet 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 (ListSubnetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Subnet 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<Subnet> 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 (Subnet 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;
ListSubnets(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListSubnetsResponse, Subnet> ListSubnets(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists subnets in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to be queried for
subnets.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListSubnetsResponseSubnet |
A pageable sequence of Subnet resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
PagedEnumerable<ListSubnetsResponse, Subnet> response = vmwareEngineClient.ListSubnets(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (Subnet 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 (ListSubnetsResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Subnet 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<Subnet> 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 (Subnet 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;
ListSubnetsAsync(ListSubnetsRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListSubnetsResponse, Subnet> ListSubnetsAsync(ListSubnetsRequest request, CallSettings callSettings = null)
Lists subnets in a given private cloud.
Parameters | |
---|---|
Name | Description |
request |
ListSubnetsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSubnetsResponseSubnet |
A pageable asynchronous sequence of Subnet resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ListSubnetsRequest request = new ListSubnetsRequest
{
ParentAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
PagedAsyncEnumerable<ListSubnetsResponse, Subnet> response = vmwareEngineClient.ListSubnetsAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Subnet item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSubnetsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Subnet 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<Subnet> 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 (Subnet 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;
ListSubnetsAsync(PrivateCloudName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSubnetsResponse, Subnet> ListSubnetsAsync(PrivateCloudName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists subnets in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
PrivateCloudName Required. The resource name of the private cloud to be queried for
subnets.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSubnetsResponseSubnet |
A pageable asynchronous sequence of Subnet resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName parent = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
PagedAsyncEnumerable<ListSubnetsResponse, Subnet> response = vmwareEngineClient.ListSubnetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Subnet item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSubnetsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Subnet 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<Subnet> 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 (Subnet 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;
ListSubnetsAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListSubnetsResponse, Subnet> ListSubnetsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists subnets in a given private cloud.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the private cloud to be queried for
subnets.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListSubnetsResponseSubnet |
A pageable asynchronous sequence of Subnet resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
PagedAsyncEnumerable<ListSubnetsResponse, Subnet> response = vmwareEngineClient.ListSubnetsAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Subnet item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListSubnetsResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (Subnet 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<Subnet> 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 (Subnet 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;
ListVmwareEngineNetworks(LocationName, string, int?, CallSettings)
public virtual PagedEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> ListVmwareEngineNetworks(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists VmwareEngineNetwork
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to query for
VMware Engine networks. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListVmwareEngineNetworksResponseVmwareEngineNetwork |
A pageable sequence of VmwareEngineNetwork resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> response = vmwareEngineClient.ListVmwareEngineNetworks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (VmwareEngineNetwork 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 (ListVmwareEngineNetworksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VmwareEngineNetwork 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<VmwareEngineNetwork> 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 (VmwareEngineNetwork 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;
ListVmwareEngineNetworks(ListVmwareEngineNetworksRequest, CallSettings)
public virtual PagedEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> ListVmwareEngineNetworks(ListVmwareEngineNetworksRequest request, CallSettings callSettings = null)
Lists VmwareEngineNetwork
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListVmwareEngineNetworksRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListVmwareEngineNetworksResponseVmwareEngineNetwork |
A pageable sequence of VmwareEngineNetwork resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ListVmwareEngineNetworksRequest request = new ListVmwareEngineNetworksRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> response = vmwareEngineClient.ListVmwareEngineNetworks(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (VmwareEngineNetwork 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 (ListVmwareEngineNetworksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VmwareEngineNetwork 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<VmwareEngineNetwork> 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 (VmwareEngineNetwork 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;
ListVmwareEngineNetworks(string, string, int?, CallSettings)
public virtual PagedEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> ListVmwareEngineNetworks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists VmwareEngineNetwork
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to query for
VMware Engine networks. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListVmwareEngineNetworksResponseVmwareEngineNetwork |
A pageable sequence of VmwareEngineNetwork resources. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> response = vmwareEngineClient.ListVmwareEngineNetworks(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (VmwareEngineNetwork 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 (ListVmwareEngineNetworksResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VmwareEngineNetwork 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<VmwareEngineNetwork> 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 (VmwareEngineNetwork 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;
ListVmwareEngineNetworksAsync(LocationName, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> ListVmwareEngineNetworksAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists VmwareEngineNetwork
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The resource name of the location to query for
VMware Engine networks. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListVmwareEngineNetworksResponseVmwareEngineNetwork |
A pageable asynchronous sequence of VmwareEngineNetwork resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> response = vmwareEngineClient.ListVmwareEngineNetworksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VmwareEngineNetwork item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVmwareEngineNetworksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VmwareEngineNetwork 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<VmwareEngineNetwork> 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 (VmwareEngineNetwork 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;
ListVmwareEngineNetworksAsync(ListVmwareEngineNetworksRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> ListVmwareEngineNetworksAsync(ListVmwareEngineNetworksRequest request, CallSettings callSettings = null)
Lists VmwareEngineNetwork
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
request |
ListVmwareEngineNetworksRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListVmwareEngineNetworksResponseVmwareEngineNetwork |
A pageable asynchronous sequence of VmwareEngineNetwork resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ListVmwareEngineNetworksRequest request = new ListVmwareEngineNetworksRequest
{
ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
Filter = "",
OrderBy = "",
};
// Make the request
PagedAsyncEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> response = vmwareEngineClient.ListVmwareEngineNetworksAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VmwareEngineNetwork item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVmwareEngineNetworksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VmwareEngineNetwork 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<VmwareEngineNetwork> 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 (VmwareEngineNetwork 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;
ListVmwareEngineNetworksAsync(string, string, int?, CallSettings)
public virtual PagedAsyncEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> ListVmwareEngineNetworksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)
Lists VmwareEngineNetwork
resources in a given project and location.
Parameters | |
---|---|
Name | Description |
parent |
string Required. The resource name of the location to query for
VMware Engine networks. Resource names are schemeless URIs that follow the
conventions in https://cloud.google.com/apis/design/resource_names. For
example: |
pageToken |
string The token returned from the previous request. A value of |
pageSize |
int The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListVmwareEngineNetworksResponseVmwareEngineNetwork |
A pageable asynchronous sequence of VmwareEngineNetwork resources. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]";
// Make the request
PagedAsyncEnumerable<ListVmwareEngineNetworksResponse, VmwareEngineNetwork> response = vmwareEngineClient.ListVmwareEngineNetworksAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((VmwareEngineNetwork item) =>
{
// Do something with each item
Console.WriteLine(item);
});
// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVmwareEngineNetworksResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (VmwareEngineNetwork 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<VmwareEngineNetwork> 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 (VmwareEngineNetwork 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;
PollOnceCreateCluster(string, CallSettings)
public virtual Operation<Cluster, OperationMetadata> PollOnceCreateCluster(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateCluster
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterOperationMetadata |
The result of polling the operation. |
PollOnceCreateClusterAsync(string, CallSettings)
public virtual Task<Operation<Cluster, OperationMetadata>> PollOnceCreateClusterAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateCluster
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateHcxActivationKey(string, CallSettings)
public virtual Operation<HcxActivationKey, OperationMetadata> PollOnceCreateHcxActivationKey(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateHcxActivationKey
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationHcxActivationKeyOperationMetadata |
The result of polling the operation. |
PollOnceCreateHcxActivationKeyAsync(string, CallSettings)
public virtual Task<Operation<HcxActivationKey, OperationMetadata>> PollOnceCreateHcxActivationKeyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateHcxActivationKey
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationHcxActivationKeyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateNetworkPolicy(string, CallSettings)
public virtual Operation<NetworkPolicy, OperationMetadata> PollOnceCreateNetworkPolicy(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreateNetworkPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationNetworkPolicyOperationMetadata |
The result of polling the operation. |
PollOnceCreateNetworkPolicyAsync(string, CallSettings)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> PollOnceCreateNetworkPolicyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateNetworkPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreatePrivateCloud(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> PollOnceCreatePrivateCloud(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of CreatePrivateCloud
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The result of polling the operation. |
PollOnceCreatePrivateCloudAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> PollOnceCreatePrivateCloudAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreatePrivateCloud
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreatePrivateConnection(string, CallSettings)
public virtual Operation<PrivateConnection, OperationMetadata> PollOnceCreatePrivateConnection(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreatePrivateConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateConnectionOperationMetadata |
The result of polling the operation. |
PollOnceCreatePrivateConnectionAsync(string, CallSettings)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> PollOnceCreatePrivateConnectionAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreatePrivateConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A task representing the result of polling the operation. |
PollOnceCreateVmwareEngineNetwork(string, CallSettings)
public virtual Operation<VmwareEngineNetwork, OperationMetadata> PollOnceCreateVmwareEngineNetwork(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
CreateVmwareEngineNetwork
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationVmwareEngineNetworkOperationMetadata |
The result of polling the operation. |
PollOnceCreateVmwareEngineNetworkAsync(string, CallSettings)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> PollOnceCreateVmwareEngineNetworkAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
CreateVmwareEngineNetwork
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteCluster(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteCluster(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteCluster
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteClusterAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteClusterAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteCluster
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteNetworkPolicy(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteNetworkPolicy(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeleteNetworkPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteNetworkPolicyAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteNetworkPolicyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteNetworkPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeletePrivateCloud(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> PollOnceDeletePrivateCloud(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of DeletePrivateCloud
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The result of polling the operation. |
PollOnceDeletePrivateCloudAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> PollOnceDeletePrivateCloudAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeletePrivateCloud
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeletePrivateConnection(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeletePrivateConnection(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeletePrivateConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeletePrivateConnectionAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeletePrivateConnectionAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeletePrivateConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceDeleteVmwareEngineNetwork(string, CallSettings)
public virtual Operation<Empty, OperationMetadata> PollOnceDeleteVmwareEngineNetwork(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
DeleteVmwareEngineNetwork
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationEmptyOperationMetadata |
The result of polling the operation. |
PollOnceDeleteVmwareEngineNetworkAsync(string, CallSettings)
public virtual Task<Operation<Empty, OperationMetadata>> PollOnceDeleteVmwareEngineNetworkAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
DeleteVmwareEngineNetwork
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationEmptyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceResetNsxCredentials(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> PollOnceResetNsxCredentials(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of ResetNsxCredentials
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The result of polling the operation. |
PollOnceResetNsxCredentialsAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> PollOnceResetNsxCredentialsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ResetNsxCredentials
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A task representing the result of polling the operation. |
PollOnceResetVcenterCredentials(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> PollOnceResetVcenterCredentials(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
ResetVcenterCredentials
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The result of polling the operation. |
PollOnceResetVcenterCredentialsAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> PollOnceResetVcenterCredentialsAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
ResetVcenterCredentials
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUndeletePrivateCloud(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> PollOnceUndeletePrivateCloud(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UndeletePrivateCloud
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The result of polling the operation. |
PollOnceUndeletePrivateCloudAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> PollOnceUndeletePrivateCloudAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UndeletePrivateCloud
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateCluster(string, CallSettings)
public virtual Operation<Cluster, OperationMetadata> PollOnceUpdateCluster(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateCluster
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterOperationMetadata |
The result of polling the operation. |
PollOnceUpdateClusterAsync(string, CallSettings)
public virtual Task<Operation<Cluster, OperationMetadata>> PollOnceUpdateClusterAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateCluster
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateNetworkPolicy(string, CallSettings)
public virtual Operation<NetworkPolicy, OperationMetadata> PollOnceUpdateNetworkPolicy(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateNetworkPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationNetworkPolicyOperationMetadata |
The result of polling the operation. |
PollOnceUpdateNetworkPolicyAsync(string, CallSettings)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> PollOnceUpdateNetworkPolicyAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateNetworkPolicy
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdatePrivateCloud(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> PollOnceUpdatePrivateCloud(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdatePrivateCloud
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The result of polling the operation. |
PollOnceUpdatePrivateCloudAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> PollOnceUpdatePrivateCloudAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdatePrivateCloud
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdatePrivateConnection(string, CallSettings)
public virtual Operation<PrivateConnection, OperationMetadata> PollOnceUpdatePrivateConnection(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdatePrivateConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateConnectionOperationMetadata |
The result of polling the operation. |
PollOnceUpdatePrivateConnectionAsync(string, CallSettings)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> PollOnceUpdatePrivateConnectionAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdatePrivateConnection
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateSubnet(string, CallSettings)
public virtual Operation<Subnet, OperationMetadata> PollOnceUpdateSubnet(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of UpdateSubnet
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSubnetOperationMetadata |
The result of polling the operation. |
PollOnceUpdateSubnetAsync(string, CallSettings)
public virtual Task<Operation<Subnet, OperationMetadata>> PollOnceUpdateSubnetAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateSubnet
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSubnetOperationMetadata |
A task representing the result of polling the operation. |
PollOnceUpdateVmwareEngineNetwork(string, CallSettings)
public virtual Operation<VmwareEngineNetwork, OperationMetadata> PollOnceUpdateVmwareEngineNetwork(string operationName, CallSettings callSettings = null)
Poll an operation once, using an operationName
from a previous invocation of
UpdateVmwareEngineNetwork
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationVmwareEngineNetworkOperationMetadata |
The result of polling the operation. |
PollOnceUpdateVmwareEngineNetworkAsync(string, CallSettings)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> PollOnceUpdateVmwareEngineNetworkAsync(string operationName, CallSettings callSettings = null)
Asynchronously poll an operation once, using an operationName
from a previous invocation of
UpdateVmwareEngineNetwork
.
Parameters | |
---|---|
Name | Description |
operationName |
string The name of a previously invoked operation. Must not be |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A task representing the result of polling the operation. |
ResetNsxCredentials(PrivateCloudName, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> ResetNsxCredentials(PrivateCloudName privateCloud, CallSettings callSettings = null)
Resets credentials of the NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.ResetNsxCredentials(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceResetNsxCredentials(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetNsxCredentials(ResetNsxCredentialsRequest, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> ResetNsxCredentials(ResetNsxCredentialsRequest request, CallSettings callSettings = null)
Resets credentials of the NSX appliance.
Parameters | |
---|---|
Name | Description |
request |
ResetNsxCredentialsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ResetNsxCredentialsRequest request = new ResetNsxCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.ResetNsxCredentials(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceResetNsxCredentials(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetNsxCredentials(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> ResetNsxCredentials(string privateCloud, CallSettings callSettings = null)
Resets credentials of the NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.ResetNsxCredentials(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceResetNsxCredentials(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetNsxCredentialsAsync(PrivateCloudName, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetNsxCredentialsAsync(PrivateCloudName privateCloud, CallSettings callSettings = null)
Resets credentials of the NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetNsxCredentialsAsync(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetNsxCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetNsxCredentialsAsync(PrivateCloudName, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetNsxCredentialsAsync(PrivateCloudName privateCloud, CancellationToken cancellationToken)
Resets credentials of the NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetNsxCredentialsAsync(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetNsxCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetNsxCredentialsAsync(ResetNsxCredentialsRequest, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetNsxCredentialsAsync(ResetNsxCredentialsRequest request, CallSettings callSettings = null)
Resets credentials of the NSX appliance.
Parameters | |
---|---|
Name | Description |
request |
ResetNsxCredentialsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ResetNsxCredentialsRequest request = new ResetNsxCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetNsxCredentialsAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetNsxCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetNsxCredentialsAsync(ResetNsxCredentialsRequest, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetNsxCredentialsAsync(ResetNsxCredentialsRequest request, CancellationToken cancellationToken)
Resets credentials of the NSX appliance.
Parameters | |
---|---|
Name | Description |
request |
ResetNsxCredentialsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ResetNsxCredentialsRequest request = new ResetNsxCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetNsxCredentialsAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetNsxCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetNsxCredentialsAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetNsxCredentialsAsync(string privateCloud, CallSettings callSettings = null)
Resets credentials of the NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetNsxCredentialsAsync(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetNsxCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetNsxCredentialsAsync(string, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetNsxCredentialsAsync(string privateCloud, CancellationToken cancellationToken)
Resets credentials of the NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetNsxCredentialsAsync(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetNsxCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetVcenterCredentials(PrivateCloudName, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> ResetVcenterCredentials(PrivateCloudName privateCloud, CallSettings callSettings = null)
Resets credentials of the Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.ResetVcenterCredentials(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceResetVcenterCredentials(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetVcenterCredentials(ResetVcenterCredentialsRequest, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> ResetVcenterCredentials(ResetVcenterCredentialsRequest request, CallSettings callSettings = null)
Resets credentials of the Vcenter appliance.
Parameters | |
---|---|
Name | Description |
request |
ResetVcenterCredentialsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ResetVcenterCredentialsRequest request = new ResetVcenterCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.ResetVcenterCredentials(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceResetVcenterCredentials(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetVcenterCredentials(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> ResetVcenterCredentials(string privateCloud, CallSettings callSettings = null)
Resets credentials of the Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.ResetVcenterCredentials(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceResetVcenterCredentials(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetVcenterCredentialsAsync(PrivateCloudName, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetVcenterCredentialsAsync(PrivateCloudName privateCloud, CallSettings callSettings = null)
Resets credentials of the Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetVcenterCredentialsAsync(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetVcenterCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetVcenterCredentialsAsync(PrivateCloudName, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetVcenterCredentialsAsync(PrivateCloudName privateCloud, CancellationToken cancellationToken)
Resets credentials of the Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetVcenterCredentialsAsync(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetVcenterCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetVcenterCredentialsAsync(ResetVcenterCredentialsRequest, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetVcenterCredentialsAsync(ResetVcenterCredentialsRequest request, CallSettings callSettings = null)
Resets credentials of the Vcenter appliance.
Parameters | |
---|---|
Name | Description |
request |
ResetVcenterCredentialsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ResetVcenterCredentialsRequest request = new ResetVcenterCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetVcenterCredentialsAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetVcenterCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetVcenterCredentialsAsync(ResetVcenterCredentialsRequest, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetVcenterCredentialsAsync(ResetVcenterCredentialsRequest request, CancellationToken cancellationToken)
Resets credentials of the Vcenter appliance.
Parameters | |
---|---|
Name | Description |
request |
ResetVcenterCredentialsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ResetVcenterCredentialsRequest request = new ResetVcenterCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetVcenterCredentialsAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetVcenterCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetVcenterCredentialsAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetVcenterCredentialsAsync(string privateCloud, CallSettings callSettings = null)
Resets credentials of the Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetVcenterCredentialsAsync(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetVcenterCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ResetVcenterCredentialsAsync(string, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> ResetVcenterCredentialsAsync(string privateCloud, CancellationToken cancellationToken)
Resets credentials of the Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to reset credentials for.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.ResetVcenterCredentialsAsync(privateCloud);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceResetVcenterCredentialsAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
ShowNsxCredentials(PrivateCloudName, CallSettings)
public virtual Credentials ShowNsxCredentials(PrivateCloudName privateCloud, CallSettings callSettings = null)
Gets details of credentials for NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Credentials |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Credentials response = vmwareEngineClient.ShowNsxCredentials(privateCloud);
ShowNsxCredentials(ShowNsxCredentialsRequest, CallSettings)
public virtual Credentials ShowNsxCredentials(ShowNsxCredentialsRequest request, CallSettings callSettings = null)
Gets details of credentials for NSX appliance.
Parameters | |
---|---|
Name | Description |
request |
ShowNsxCredentialsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Credentials |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ShowNsxCredentialsRequest request = new ShowNsxCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
Credentials response = vmwareEngineClient.ShowNsxCredentials(request);
ShowNsxCredentials(string, CallSettings)
public virtual Credentials ShowNsxCredentials(string privateCloud, CallSettings callSettings = null)
Gets details of credentials for NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Credentials |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Credentials response = vmwareEngineClient.ShowNsxCredentials(privateCloud);
ShowNsxCredentialsAsync(PrivateCloudName, CallSettings)
public virtual Task<Credentials> ShowNsxCredentialsAsync(PrivateCloudName privateCloud, CallSettings callSettings = null)
Gets details of credentials for NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Credentials response = await vmwareEngineClient.ShowNsxCredentialsAsync(privateCloud);
ShowNsxCredentialsAsync(PrivateCloudName, CancellationToken)
public virtual Task<Credentials> ShowNsxCredentialsAsync(PrivateCloudName privateCloud, CancellationToken cancellationToken)
Gets details of credentials for NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Credentials response = await vmwareEngineClient.ShowNsxCredentialsAsync(privateCloud);
ShowNsxCredentialsAsync(ShowNsxCredentialsRequest, CallSettings)
public virtual Task<Credentials> ShowNsxCredentialsAsync(ShowNsxCredentialsRequest request, CallSettings callSettings = null)
Gets details of credentials for NSX appliance.
Parameters | |
---|---|
Name | Description |
request |
ShowNsxCredentialsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ShowNsxCredentialsRequest request = new ShowNsxCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
Credentials response = await vmwareEngineClient.ShowNsxCredentialsAsync(request);
ShowNsxCredentialsAsync(ShowNsxCredentialsRequest, CancellationToken)
public virtual Task<Credentials> ShowNsxCredentialsAsync(ShowNsxCredentialsRequest request, CancellationToken cancellationToken)
Gets details of credentials for NSX appliance.
Parameters | |
---|---|
Name | Description |
request |
ShowNsxCredentialsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ShowNsxCredentialsRequest request = new ShowNsxCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
Credentials response = await vmwareEngineClient.ShowNsxCredentialsAsync(request);
ShowNsxCredentialsAsync(string, CallSettings)
public virtual Task<Credentials> ShowNsxCredentialsAsync(string privateCloud, CallSettings callSettings = null)
Gets details of credentials for NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Credentials response = await vmwareEngineClient.ShowNsxCredentialsAsync(privateCloud);
ShowNsxCredentialsAsync(string, CancellationToken)
public virtual Task<Credentials> ShowNsxCredentialsAsync(string privateCloud, CancellationToken cancellationToken)
Gets details of credentials for NSX appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Credentials response = await vmwareEngineClient.ShowNsxCredentialsAsync(privateCloud);
ShowVcenterCredentials(PrivateCloudName, CallSettings)
public virtual Credentials ShowVcenterCredentials(PrivateCloudName privateCloud, CallSettings callSettings = null)
Gets details of credentials for Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Credentials |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Credentials response = vmwareEngineClient.ShowVcenterCredentials(privateCloud);
ShowVcenterCredentials(ShowVcenterCredentialsRequest, CallSettings)
public virtual Credentials ShowVcenterCredentials(ShowVcenterCredentialsRequest request, CallSettings callSettings = null)
Gets details of credentials for Vcenter appliance.
Parameters | |
---|---|
Name | Description |
request |
ShowVcenterCredentialsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Credentials |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
ShowVcenterCredentialsRequest request = new ShowVcenterCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
Credentials response = vmwareEngineClient.ShowVcenterCredentials(request);
ShowVcenterCredentials(string, CallSettings)
public virtual Credentials ShowVcenterCredentials(string privateCloud, CallSettings callSettings = null)
Gets details of credentials for Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Credentials |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Credentials response = vmwareEngineClient.ShowVcenterCredentials(privateCloud);
ShowVcenterCredentialsAsync(PrivateCloudName, CallSettings)
public virtual Task<Credentials> ShowVcenterCredentialsAsync(PrivateCloudName privateCloud, CallSettings callSettings = null)
Gets details of credentials for Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Credentials response = await vmwareEngineClient.ShowVcenterCredentialsAsync(privateCloud);
ShowVcenterCredentialsAsync(PrivateCloudName, CancellationToken)
public virtual Task<Credentials> ShowVcenterCredentialsAsync(PrivateCloudName privateCloud, CancellationToken cancellationToken)
Gets details of credentials for Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloudName Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName privateCloud = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Credentials response = await vmwareEngineClient.ShowVcenterCredentialsAsync(privateCloud);
ShowVcenterCredentialsAsync(ShowVcenterCredentialsRequest, CallSettings)
public virtual Task<Credentials> ShowVcenterCredentialsAsync(ShowVcenterCredentialsRequest request, CallSettings callSettings = null)
Gets details of credentials for Vcenter appliance.
Parameters | |
---|---|
Name | Description |
request |
ShowVcenterCredentialsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ShowVcenterCredentialsRequest request = new ShowVcenterCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
Credentials response = await vmwareEngineClient.ShowVcenterCredentialsAsync(request);
ShowVcenterCredentialsAsync(ShowVcenterCredentialsRequest, CancellationToken)
public virtual Task<Credentials> ShowVcenterCredentialsAsync(ShowVcenterCredentialsRequest request, CancellationToken cancellationToken)
Gets details of credentials for Vcenter appliance.
Parameters | |
---|---|
Name | Description |
request |
ShowVcenterCredentialsRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
ShowVcenterCredentialsRequest request = new ShowVcenterCredentialsRequest
{
PrivateCloudAsPrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
};
// Make the request
Credentials response = await vmwareEngineClient.ShowVcenterCredentialsAsync(request);
ShowVcenterCredentialsAsync(string, CallSettings)
public virtual Task<Credentials> ShowVcenterCredentialsAsync(string privateCloud, CallSettings callSettings = null)
Gets details of credentials for Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Credentials response = await vmwareEngineClient.ShowVcenterCredentialsAsync(privateCloud);
ShowVcenterCredentialsAsync(string, CancellationToken)
public virtual Task<Credentials> ShowVcenterCredentialsAsync(string privateCloud, CancellationToken cancellationToken)
Gets details of credentials for Vcenter appliance.
Parameters | |
---|---|
Name | Description |
privateCloud |
string Required. The resource name of the private cloud
to be queried for credentials.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskCredentials |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string privateCloud = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Credentials response = await vmwareEngineClient.ShowVcenterCredentialsAsync(privateCloud);
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.
UndeletePrivateCloud(PrivateCloudName, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> UndeletePrivateCloud(PrivateCloudName name, CallSettings callSettings = null)
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud
. A PrivateCloud
resource scheduled for deletion has
PrivateCloud.state
set to DELETED
and PrivateCloud.expireTime
set to
the time when deletion can no longer be reversed.
Parameters | |
---|---|
Name | Description |
name |
PrivateCloudName Required. The resource name of the private cloud scheduled for deletion.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloudName name = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.UndeletePrivateCloud(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUndeletePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UndeletePrivateCloud(UndeletePrivateCloudRequest, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> UndeletePrivateCloud(UndeletePrivateCloudRequest request, CallSettings callSettings = null)
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud
. A PrivateCloud
resource scheduled for deletion has
PrivateCloud.state
set to DELETED
and PrivateCloud.expireTime
set to
the time when deletion can no longer be reversed.
Parameters | |
---|---|
Name | Description |
request |
UndeletePrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
UndeletePrivateCloudRequest request = new UndeletePrivateCloudRequest
{
PrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.UndeletePrivateCloud(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUndeletePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UndeletePrivateCloud(string, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> UndeletePrivateCloud(string name, CallSettings callSettings = null)
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud
. A PrivateCloud
resource scheduled for deletion has
PrivateCloud.state
set to DELETED
and PrivateCloud.expireTime
set to
the time when deletion can no longer be reversed.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private cloud scheduled for deletion.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.UndeletePrivateCloud(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUndeletePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UndeletePrivateCloudAsync(PrivateCloudName, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UndeletePrivateCloudAsync(PrivateCloudName name, CallSettings callSettings = null)
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud
. A PrivateCloud
resource scheduled for deletion has
PrivateCloud.state
set to DELETED
and PrivateCloud.expireTime
set to
the time when deletion can no longer be reversed.
Parameters | |
---|---|
Name | Description |
name |
PrivateCloudName Required. The resource name of the private cloud scheduled for deletion.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName name = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UndeletePrivateCloudAsync(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUndeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UndeletePrivateCloudAsync(PrivateCloudName, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UndeletePrivateCloudAsync(PrivateCloudName name, CancellationToken cancellationToken)
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud
. A PrivateCloud
resource scheduled for deletion has
PrivateCloud.state
set to DELETED
and PrivateCloud.expireTime
set to
the time when deletion can no longer be reversed.
Parameters | |
---|---|
Name | Description |
name |
PrivateCloudName Required. The resource name of the private cloud scheduled for deletion.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloudName name = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]");
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UndeletePrivateCloudAsync(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUndeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UndeletePrivateCloudAsync(UndeletePrivateCloudRequest, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UndeletePrivateCloudAsync(UndeletePrivateCloudRequest request, CallSettings callSettings = null)
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud
. A PrivateCloud
resource scheduled for deletion has
PrivateCloud.state
set to DELETED
and PrivateCloud.expireTime
set to
the time when deletion can no longer be reversed.
Parameters | |
---|---|
Name | Description |
request |
UndeletePrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UndeletePrivateCloudRequest request = new UndeletePrivateCloudRequest
{
PrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UndeletePrivateCloudAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUndeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UndeletePrivateCloudAsync(UndeletePrivateCloudRequest, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UndeletePrivateCloudAsync(UndeletePrivateCloudRequest request, CancellationToken cancellationToken)
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud
. A PrivateCloud
resource scheduled for deletion has
PrivateCloud.state
set to DELETED
and PrivateCloud.expireTime
set to
the time when deletion can no longer be reversed.
Parameters | |
---|---|
Name | Description |
request |
UndeletePrivateCloudRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UndeletePrivateCloudRequest request = new UndeletePrivateCloudRequest
{
PrivateCloudName = PrivateCloudName.FromProjectLocationPrivateCloud("[PROJECT]", "[LOCATION]", "[PRIVATE_CLOUD]"),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UndeletePrivateCloudAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUndeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UndeletePrivateCloudAsync(string, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UndeletePrivateCloudAsync(string name, CallSettings callSettings = null)
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud
. A PrivateCloud
resource scheduled for deletion has
PrivateCloud.state
set to DELETED
and PrivateCloud.expireTime
set to
the time when deletion can no longer be reversed.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private cloud scheduled for deletion.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UndeletePrivateCloudAsync(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUndeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UndeletePrivateCloudAsync(string, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UndeletePrivateCloudAsync(string name, CancellationToken cancellationToken)
Restores a private cloud that was previously scheduled for deletion by
DeletePrivateCloud
. A PrivateCloud
resource scheduled for deletion has
PrivateCloud.state
set to DELETED
and PrivateCloud.expireTime
set to
the time when deletion can no longer be reversed.
Parameters | |
---|---|
Name | Description |
name |
string Required. The resource name of the private cloud scheduled for deletion.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/locations/[LOCATION]/privateClouds/[PRIVATE_CLOUD]";
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UndeletePrivateCloudAsync(name);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUndeletePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UpdateCluster(Cluster, FieldMask, CallSettings)
public virtual Operation<Cluster, OperationMetadata> UpdateCluster(Cluster cluster, FieldMask updateMask, CallSettings callSettings = null)
Modifies a Cluster
resource. Only the following fields can be updated:
node_type_configs.*.node_count
. Only fields specified in updateMask
are
applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
cluster |
Cluster Required. The description of the cluster. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
Cluster cluster = new Cluster();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Cluster, OperationMetadata> response = vmwareEngineClient.UpdateCluster(cluster, updateMask);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdateCluster(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
UpdateCluster(UpdateClusterRequest, CallSettings)
public virtual Operation<Cluster, OperationMetadata> UpdateCluster(UpdateClusterRequest request, CallSettings callSettings = null)
Modifies a Cluster
resource. Only the following fields can be updated:
node_type_configs.*.node_count
. Only fields specified in updateMask
are
applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
request |
UpdateClusterRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationClusterOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
UpdateClusterRequest request = new UpdateClusterRequest
{
UpdateMask = new FieldMask(),
Cluster = new Cluster(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<Cluster, OperationMetadata> response = vmwareEngineClient.UpdateCluster(request);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdateCluster(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
UpdateClusterAsync(Cluster, FieldMask, CallSettings)
public virtual Task<Operation<Cluster, OperationMetadata>> UpdateClusterAsync(Cluster cluster, FieldMask updateMask, CallSettings callSettings = null)
Modifies a Cluster
resource. Only the following fields can be updated:
node_type_configs.*.node_count
. Only fields specified in updateMask
are
applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
cluster |
Cluster Required. The description of the cluster. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
Cluster cluster = new Cluster();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.UpdateClusterAsync(cluster, updateMask);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
UpdateClusterAsync(Cluster, FieldMask, CancellationToken)
public virtual Task<Operation<Cluster, OperationMetadata>> UpdateClusterAsync(Cluster cluster, FieldMask updateMask, CancellationToken cancellationToken)
Modifies a Cluster
resource. Only the following fields can be updated:
node_type_configs.*.node_count
. Only fields specified in updateMask
are
applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
cluster |
Cluster Required. The description of the cluster. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
Cluster cluster = new Cluster();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.UpdateClusterAsync(cluster, updateMask);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
UpdateClusterAsync(UpdateClusterRequest, CallSettings)
public virtual Task<Operation<Cluster, OperationMetadata>> UpdateClusterAsync(UpdateClusterRequest request, CallSettings callSettings = null)
Modifies a Cluster
resource. Only the following fields can be updated:
node_type_configs.*.node_count
. Only fields specified in updateMask
are
applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
request |
UpdateClusterRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdateClusterRequest request = new UpdateClusterRequest
{
UpdateMask = new FieldMask(),
Cluster = new Cluster(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.UpdateClusterAsync(request);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
UpdateClusterAsync(UpdateClusterRequest, CancellationToken)
public virtual Task<Operation<Cluster, OperationMetadata>> UpdateClusterAsync(UpdateClusterRequest request, CancellationToken cancellationToken)
Modifies a Cluster
resource. Only the following fields can be updated:
node_type_configs.*.node_count
. Only fields specified in updateMask
are
applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
request |
UpdateClusterRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationClusterOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdateClusterRequest request = new UpdateClusterRequest
{
UpdateMask = new FieldMask(),
Cluster = new Cluster(),
RequestId = "",
ValidateOnly = false,
};
// Make the request
Operation<Cluster, OperationMetadata> response = await vmwareEngineClient.UpdateClusterAsync(request);
// Poll until the returned long-running operation is complete
Operation<Cluster, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Cluster 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<Cluster, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateClusterAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Cluster retrievedResult = retrievedResponse.Result;
}
UpdateNetworkPolicy(NetworkPolicy, FieldMask, CallSettings)
public virtual Operation<NetworkPolicy, OperationMetadata> UpdateNetworkPolicy(NetworkPolicy networkPolicy, FieldMask updateMask, CallSettings callSettings = null)
Modifies a NetworkPolicy
resource. Only the following fields can be
updated: internet_access
, external_ip
, edge_services_cidr
.
Only fields specified in updateMask
are applied. When updating a network
policy, the external IP network service can only be disabled if there are
no external IP addresses present in the scope of the policy. Also, a
NetworkService
cannot be updated when NetworkService.state
is set
to RECONCILING
.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
networkPolicy |
NetworkPolicy Required. Network policy description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationNetworkPolicyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
NetworkPolicy networkPolicy = new NetworkPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = vmwareEngineClient.UpdateNetworkPolicy(networkPolicy, updateMask);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdateNetworkPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
UpdateNetworkPolicy(UpdateNetworkPolicyRequest, CallSettings)
public virtual Operation<NetworkPolicy, OperationMetadata> UpdateNetworkPolicy(UpdateNetworkPolicyRequest request, CallSettings callSettings = null)
Modifies a NetworkPolicy
resource. Only the following fields can be
updated: internet_access
, external_ip
, edge_services_cidr
.
Only fields specified in updateMask
are applied. When updating a network
policy, the external IP network service can only be disabled if there are
no external IP addresses present in the scope of the policy. Also, a
NetworkService
cannot be updated when NetworkService.state
is set
to RECONCILING
.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
request |
UpdateNetworkPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationNetworkPolicyOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
UpdateNetworkPolicyRequest request = new UpdateNetworkPolicyRequest
{
NetworkPolicy = new NetworkPolicy(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = vmwareEngineClient.UpdateNetworkPolicy(request);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdateNetworkPolicy(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
UpdateNetworkPolicyAsync(NetworkPolicy, FieldMask, CallSettings)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> UpdateNetworkPolicyAsync(NetworkPolicy networkPolicy, FieldMask updateMask, CallSettings callSettings = null)
Modifies a NetworkPolicy
resource. Only the following fields can be
updated: internet_access
, external_ip
, edge_services_cidr
.
Only fields specified in updateMask
are applied. When updating a network
policy, the external IP network service can only be disabled if there are
no external IP addresses present in the scope of the policy. Also, a
NetworkService
cannot be updated when NetworkService.state
is set
to RECONCILING
.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
networkPolicy |
NetworkPolicy Required. Network policy description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
NetworkPolicy networkPolicy = new NetworkPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.UpdateNetworkPolicyAsync(networkPolicy, updateMask);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
UpdateNetworkPolicyAsync(NetworkPolicy, FieldMask, CancellationToken)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> UpdateNetworkPolicyAsync(NetworkPolicy networkPolicy, FieldMask updateMask, CancellationToken cancellationToken)
Modifies a NetworkPolicy
resource. Only the following fields can be
updated: internet_access
, external_ip
, edge_services_cidr
.
Only fields specified in updateMask
are applied. When updating a network
policy, the external IP network service can only be disabled if there are
no external IP addresses present in the scope of the policy. Also, a
NetworkService
cannot be updated when NetworkService.state
is set
to RECONCILING
.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
networkPolicy |
NetworkPolicy Required. Network policy description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
NetworkPolicy networkPolicy = new NetworkPolicy();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.UpdateNetworkPolicyAsync(networkPolicy, updateMask);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
UpdateNetworkPolicyAsync(UpdateNetworkPolicyRequest, CallSettings)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> UpdateNetworkPolicyAsync(UpdateNetworkPolicyRequest request, CallSettings callSettings = null)
Modifies a NetworkPolicy
resource. Only the following fields can be
updated: internet_access
, external_ip
, edge_services_cidr
.
Only fields specified in updateMask
are applied. When updating a network
policy, the external IP network service can only be disabled if there are
no external IP addresses present in the scope of the policy. Also, a
NetworkService
cannot be updated when NetworkService.state
is set
to RECONCILING
.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
request |
UpdateNetworkPolicyRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdateNetworkPolicyRequest request = new UpdateNetworkPolicyRequest
{
NetworkPolicy = new NetworkPolicy(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.UpdateNetworkPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
UpdateNetworkPolicyAsync(UpdateNetworkPolicyRequest, CancellationToken)
public virtual Task<Operation<NetworkPolicy, OperationMetadata>> UpdateNetworkPolicyAsync(UpdateNetworkPolicyRequest request, CancellationToken cancellationToken)
Modifies a NetworkPolicy
resource. Only the following fields can be
updated: internet_access
, external_ip
, edge_services_cidr
.
Only fields specified in updateMask
are applied. When updating a network
policy, the external IP network service can only be disabled if there are
no external IP addresses present in the scope of the policy. Also, a
NetworkService
cannot be updated when NetworkService.state
is set
to RECONCILING
.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
request |
UpdateNetworkPolicyRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationNetworkPolicyOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdateNetworkPolicyRequest request = new UpdateNetworkPolicyRequest
{
NetworkPolicy = new NetworkPolicy(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<NetworkPolicy, OperationMetadata> response = await vmwareEngineClient.UpdateNetworkPolicyAsync(request);
// Poll until the returned long-running operation is complete
Operation<NetworkPolicy, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
NetworkPolicy 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<NetworkPolicy, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateNetworkPolicyAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
NetworkPolicy retrievedResult = retrievedResponse.Result;
}
UpdatePrivateCloud(PrivateCloud, FieldMask, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> UpdatePrivateCloud(PrivateCloud privateCloud, FieldMask updateMask, CallSettings callSettings = null)
Modifies a PrivateCloud
resource. Only the following fields can be
updated: description
.
Only fields specified in updateMask
are applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloud Required. Private cloud description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateCloud privateCloud = new PrivateCloud();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.UpdatePrivateCloud(privateCloud, updateMask);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdatePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UpdatePrivateCloud(UpdatePrivateCloudRequest, CallSettings)
public virtual Operation<PrivateCloud, OperationMetadata> UpdatePrivateCloud(UpdatePrivateCloudRequest request, CallSettings callSettings = null)
Modifies a PrivateCloud
resource. Only the following fields can be
updated: description
.
Only fields specified in updateMask
are applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
request |
UpdatePrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateCloudOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
UpdatePrivateCloudRequest request = new UpdatePrivateCloudRequest
{
PrivateCloud = new PrivateCloud(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = vmwareEngineClient.UpdatePrivateCloud(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdatePrivateCloud(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UpdatePrivateCloudAsync(PrivateCloud, FieldMask, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UpdatePrivateCloudAsync(PrivateCloud privateCloud, FieldMask updateMask, CallSettings callSettings = null)
Modifies a PrivateCloud
resource. Only the following fields can be
updated: description
.
Only fields specified in updateMask
are applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloud Required. Private cloud description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloud privateCloud = new PrivateCloud();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UpdatePrivateCloudAsync(privateCloud, updateMask);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UpdatePrivateCloudAsync(PrivateCloud, FieldMask, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UpdatePrivateCloudAsync(PrivateCloud privateCloud, FieldMask updateMask, CancellationToken cancellationToken)
Modifies a PrivateCloud
resource. Only the following fields can be
updated: description
.
Only fields specified in updateMask
are applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
privateCloud |
PrivateCloud Required. Private cloud description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateCloud privateCloud = new PrivateCloud();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UpdatePrivateCloudAsync(privateCloud, updateMask);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UpdatePrivateCloudAsync(UpdatePrivateCloudRequest, CallSettings)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UpdatePrivateCloudAsync(UpdatePrivateCloudRequest request, CallSettings callSettings = null)
Modifies a PrivateCloud
resource. Only the following fields can be
updated: description
.
Only fields specified in updateMask
are applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
request |
UpdatePrivateCloudRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdatePrivateCloudRequest request = new UpdatePrivateCloudRequest
{
PrivateCloud = new PrivateCloud(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UpdatePrivateCloudAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UpdatePrivateCloudAsync(UpdatePrivateCloudRequest, CancellationToken)
public virtual Task<Operation<PrivateCloud, OperationMetadata>> UpdatePrivateCloudAsync(UpdatePrivateCloudRequest request, CancellationToken cancellationToken)
Modifies a PrivateCloud
resource. Only the following fields can be
updated: description
.
Only fields specified in updateMask
are applied.
During operation processing, the resource is temporarily in the ACTIVE
state before the operation fully completes. For that period of time, you
can't update the resource. Use the operation status to determine when the
processing fully completes.
Parameters | |
---|---|
Name | Description |
request |
UpdatePrivateCloudRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateCloudOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdatePrivateCloudRequest request = new UpdatePrivateCloudRequest
{
PrivateCloud = new PrivateCloud(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<PrivateCloud, OperationMetadata> response = await vmwareEngineClient.UpdatePrivateCloudAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateCloud, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateCloud 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<PrivateCloud, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdatePrivateCloudAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateCloud retrievedResult = retrievedResponse.Result;
}
UpdatePrivateConnection(PrivateConnection, FieldMask, CallSettings)
public virtual Operation<PrivateConnection, OperationMetadata> UpdatePrivateConnection(PrivateConnection privateConnection, FieldMask updateMask, CallSettings callSettings = null)
Modifies a PrivateConnection
resource. Only description
and
routing_mode
fields can be updated. Only fields specified in updateMask
are applied.
Parameters | |
---|---|
Name | Description |
privateConnection |
PrivateConnection Required. Private connection description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateConnectionOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
PrivateConnection privateConnection = new PrivateConnection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PrivateConnection, OperationMetadata> response = vmwareEngineClient.UpdatePrivateConnection(privateConnection, updateMask);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdatePrivateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
UpdatePrivateConnection(UpdatePrivateConnectionRequest, CallSettings)
public virtual Operation<PrivateConnection, OperationMetadata> UpdatePrivateConnection(UpdatePrivateConnectionRequest request, CallSettings callSettings = null)
Modifies a PrivateConnection
resource. Only description
and
routing_mode
fields can be updated. Only fields specified in updateMask
are applied.
Parameters | |
---|---|
Name | Description |
request |
UpdatePrivateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationPrivateConnectionOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
UpdatePrivateConnectionRequest request = new UpdatePrivateConnectionRequest
{
PrivateConnection = new PrivateConnection(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<PrivateConnection, OperationMetadata> response = vmwareEngineClient.UpdatePrivateConnection(request);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdatePrivateConnection(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
UpdatePrivateConnectionAsync(PrivateConnection, FieldMask, CallSettings)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> UpdatePrivateConnectionAsync(PrivateConnection privateConnection, FieldMask updateMask, CallSettings callSettings = null)
Modifies a PrivateConnection
resource. Only description
and
routing_mode
fields can be updated. Only fields specified in updateMask
are applied.
Parameters | |
---|---|
Name | Description |
privateConnection |
PrivateConnection Required. Private connection description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateConnection privateConnection = new PrivateConnection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.UpdatePrivateConnectionAsync(privateConnection, updateMask);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
UpdatePrivateConnectionAsync(PrivateConnection, FieldMask, CancellationToken)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> UpdatePrivateConnectionAsync(PrivateConnection privateConnection, FieldMask updateMask, CancellationToken cancellationToken)
Modifies a PrivateConnection
resource. Only description
and
routing_mode
fields can be updated. Only fields specified in updateMask
are applied.
Parameters | |
---|---|
Name | Description |
privateConnection |
PrivateConnection Required. Private connection description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
PrivateConnection privateConnection = new PrivateConnection();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.UpdatePrivateConnectionAsync(privateConnection, updateMask);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
UpdatePrivateConnectionAsync(UpdatePrivateConnectionRequest, CallSettings)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> UpdatePrivateConnectionAsync(UpdatePrivateConnectionRequest request, CallSettings callSettings = null)
Modifies a PrivateConnection
resource. Only description
and
routing_mode
fields can be updated. Only fields specified in updateMask
are applied.
Parameters | |
---|---|
Name | Description |
request |
UpdatePrivateConnectionRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdatePrivateConnectionRequest request = new UpdatePrivateConnectionRequest
{
PrivateConnection = new PrivateConnection(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.UpdatePrivateConnectionAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
UpdatePrivateConnectionAsync(UpdatePrivateConnectionRequest, CancellationToken)
public virtual Task<Operation<PrivateConnection, OperationMetadata>> UpdatePrivateConnectionAsync(UpdatePrivateConnectionRequest request, CancellationToken cancellationToken)
Modifies a PrivateConnection
resource. Only description
and
routing_mode
fields can be updated. Only fields specified in updateMask
are applied.
Parameters | |
---|---|
Name | Description |
request |
UpdatePrivateConnectionRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationPrivateConnectionOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdatePrivateConnectionRequest request = new UpdatePrivateConnectionRequest
{
PrivateConnection = new PrivateConnection(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<PrivateConnection, OperationMetadata> response = await vmwareEngineClient.UpdatePrivateConnectionAsync(request);
// Poll until the returned long-running operation is complete
Operation<PrivateConnection, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
PrivateConnection 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<PrivateConnection, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdatePrivateConnectionAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
PrivateConnection retrievedResult = retrievedResponse.Result;
}
UpdateSubnet(Subnet, FieldMask, CallSettings)
public virtual Operation<Subnet, OperationMetadata> UpdateSubnet(Subnet subnet, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single subnet. Only fields specified in
update_mask
are applied.
Note: This API is synchronous and always returns a successful
google.longrunning.Operation
(LRO). The returned LRO will only have
done
and response
fields.
Parameters | |
---|---|
Name | Description |
subnet |
Subnet Required. Subnet description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSubnetOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
Subnet subnet = new Subnet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Subnet, OperationMetadata> response = vmwareEngineClient.UpdateSubnet(subnet, updateMask);
// Poll until the returned long-running operation is complete
Operation<Subnet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Subnet 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<Subnet, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdateSubnet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Subnet retrievedResult = retrievedResponse.Result;
}
UpdateSubnet(UpdateSubnetRequest, CallSettings)
public virtual Operation<Subnet, OperationMetadata> UpdateSubnet(UpdateSubnetRequest request, CallSettings callSettings = null)
Updates the parameters of a single subnet. Only fields specified in
update_mask
are applied.
Note: This API is synchronous and always returns a successful
google.longrunning.Operation
(LRO). The returned LRO will only have
done
and response
fields.
Parameters | |
---|---|
Name | Description |
request |
UpdateSubnetRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationSubnetOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
UpdateSubnetRequest request = new UpdateSubnetRequest
{
UpdateMask = new FieldMask(),
Subnet = new Subnet(),
};
// Make the request
Operation<Subnet, OperationMetadata> response = vmwareEngineClient.UpdateSubnet(request);
// Poll until the returned long-running operation is complete
Operation<Subnet, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
Subnet 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<Subnet, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdateSubnet(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Subnet retrievedResult = retrievedResponse.Result;
}
UpdateSubnetAsync(Subnet, FieldMask, CallSettings)
public virtual Task<Operation<Subnet, OperationMetadata>> UpdateSubnetAsync(Subnet subnet, FieldMask updateMask, CallSettings callSettings = null)
Updates the parameters of a single subnet. Only fields specified in
update_mask
are applied.
Note: This API is synchronous and always returns a successful
google.longrunning.Operation
(LRO). The returned LRO will only have
done
and response
fields.
Parameters | |
---|---|
Name | Description |
subnet |
Subnet Required. Subnet description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSubnetOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
Subnet subnet = new Subnet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Subnet, OperationMetadata> response = await vmwareEngineClient.UpdateSubnetAsync(subnet, updateMask);
// Poll until the returned long-running operation is complete
Operation<Subnet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Subnet 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<Subnet, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateSubnetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Subnet retrievedResult = retrievedResponse.Result;
}
UpdateSubnetAsync(Subnet, FieldMask, CancellationToken)
public virtual Task<Operation<Subnet, OperationMetadata>> UpdateSubnetAsync(Subnet subnet, FieldMask updateMask, CancellationToken cancellationToken)
Updates the parameters of a single subnet. Only fields specified in
update_mask
are applied.
Note: This API is synchronous and always returns a successful
google.longrunning.Operation
(LRO). The returned LRO will only have
done
and response
fields.
Parameters | |
---|---|
Name | Description |
subnet |
Subnet Required. Subnet description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
|
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationSubnetOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
Subnet subnet = new Subnet();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<Subnet, OperationMetadata> response = await vmwareEngineClient.UpdateSubnetAsync(subnet, updateMask);
// Poll until the returned long-running operation is complete
Operation<Subnet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Subnet 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<Subnet, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateSubnetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Subnet retrievedResult = retrievedResponse.Result;
}
UpdateSubnetAsync(UpdateSubnetRequest, CallSettings)
public virtual Task<Operation<Subnet, OperationMetadata>> UpdateSubnetAsync(UpdateSubnetRequest request, CallSettings callSettings = null)
Updates the parameters of a single subnet. Only fields specified in
update_mask
are applied.
Note: This API is synchronous and always returns a successful
google.longrunning.Operation
(LRO). The returned LRO will only have
done
and response
fields.
Parameters | |
---|---|
Name | Description |
request |
UpdateSubnetRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationSubnetOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdateSubnetRequest request = new UpdateSubnetRequest
{
UpdateMask = new FieldMask(),
Subnet = new Subnet(),
};
// Make the request
Operation<Subnet, OperationMetadata> response = await vmwareEngineClient.UpdateSubnetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Subnet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Subnet 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<Subnet, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateSubnetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Subnet retrievedResult = retrievedResponse.Result;
}
UpdateSubnetAsync(UpdateSubnetRequest, CancellationToken)
public virtual Task<Operation<Subnet, OperationMetadata>> UpdateSubnetAsync(UpdateSubnetRequest request, CancellationToken cancellationToken)
Updates the parameters of a single subnet. Only fields specified in
update_mask
are applied.
Note: This API is synchronous and always returns a successful
google.longrunning.Operation
(LRO). The returned LRO will only have
done
and response
fields.
Parameters | |
---|---|
Name | Description |
request |
UpdateSubnetRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationSubnetOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdateSubnetRequest request = new UpdateSubnetRequest
{
UpdateMask = new FieldMask(),
Subnet = new Subnet(),
};
// Make the request
Operation<Subnet, OperationMetadata> response = await vmwareEngineClient.UpdateSubnetAsync(request);
// Poll until the returned long-running operation is complete
Operation<Subnet, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
Subnet 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<Subnet, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateSubnetAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
Subnet retrievedResult = retrievedResponse.Result;
}
UpdateVmwareEngineNetwork(UpdateVmwareEngineNetworkRequest, CallSettings)
public virtual Operation<VmwareEngineNetwork, OperationMetadata> UpdateVmwareEngineNetwork(UpdateVmwareEngineNetworkRequest request, CallSettings callSettings = null)
Modifies a VMware Engine network resource. Only the following fields can be
updated: description
. Only fields specified in updateMask
are
applied.
Parameters | |
---|---|
Name | Description |
request |
UpdateVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationVmwareEngineNetworkOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
UpdateVmwareEngineNetworkRequest request = new UpdateVmwareEngineNetworkRequest
{
VmwareEngineNetwork = new VmwareEngineNetwork(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = vmwareEngineClient.UpdateVmwareEngineNetwork(request);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdateVmwareEngineNetwork(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
UpdateVmwareEngineNetwork(VmwareEngineNetwork, FieldMask, CallSettings)
public virtual Operation<VmwareEngineNetwork, OperationMetadata> UpdateVmwareEngineNetwork(VmwareEngineNetwork vmwareEngineNetwork, FieldMask updateMask, CallSettings callSettings = null)
Modifies a VMware Engine network resource. Only the following fields can be
updated: description
. Only fields specified in updateMask
are
applied.
Parameters | |
---|---|
Name | Description |
vmwareEngineNetwork |
VmwareEngineNetwork Required. VMware Engine network description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
VMware Engine network resource by the update.
The fields specified in the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
OperationVmwareEngineNetworkOperationMetadata |
The RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = VmwareEngineClient.Create();
// Initialize request argument(s)
VmwareEngineNetwork vmwareEngineNetwork = new VmwareEngineNetwork();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = vmwareEngineClient.UpdateVmwareEngineNetwork(vmwareEngineNetwork, updateMask);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = response.PollUntilCompleted();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = vmwareEngineClient.PollOnceUpdateVmwareEngineNetwork(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
UpdateVmwareEngineNetworkAsync(UpdateVmwareEngineNetworkRequest, CallSettings)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> UpdateVmwareEngineNetworkAsync(UpdateVmwareEngineNetworkRequest request, CallSettings callSettings = null)
Modifies a VMware Engine network resource. Only the following fields can be
updated: description
. Only fields specified in updateMask
are
applied.
Parameters | |
---|---|
Name | Description |
request |
UpdateVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdateVmwareEngineNetworkRequest request = new UpdateVmwareEngineNetworkRequest
{
VmwareEngineNetwork = new VmwareEngineNetwork(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.UpdateVmwareEngineNetworkAsync(request);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
UpdateVmwareEngineNetworkAsync(UpdateVmwareEngineNetworkRequest, CancellationToken)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> UpdateVmwareEngineNetworkAsync(UpdateVmwareEngineNetworkRequest request, CancellationToken cancellationToken)
Modifies a VMware Engine network resource. Only the following fields can be
updated: description
. Only fields specified in updateMask
are
applied.
Parameters | |
---|---|
Name | Description |
request |
UpdateVmwareEngineNetworkRequest The request object containing all of the parameters for the API call. |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
UpdateVmwareEngineNetworkRequest request = new UpdateVmwareEngineNetworkRequest
{
VmwareEngineNetwork = new VmwareEngineNetwork(),
UpdateMask = new FieldMask(),
RequestId = "",
};
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.UpdateVmwareEngineNetworkAsync(request);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
UpdateVmwareEngineNetworkAsync(VmwareEngineNetwork, FieldMask, CallSettings)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> UpdateVmwareEngineNetworkAsync(VmwareEngineNetwork vmwareEngineNetwork, FieldMask updateMask, CallSettings callSettings = null)
Modifies a VMware Engine network resource. Only the following fields can be
updated: description
. Only fields specified in updateMask
are
applied.
Parameters | |
---|---|
Name | Description |
vmwareEngineNetwork |
VmwareEngineNetwork Required. VMware Engine network description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
VMware Engine network resource by the update.
The fields specified in the |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
VmwareEngineNetwork vmwareEngineNetwork = new VmwareEngineNetwork();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.UpdateVmwareEngineNetworkAsync(vmwareEngineNetwork, updateMask);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}
UpdateVmwareEngineNetworkAsync(VmwareEngineNetwork, FieldMask, CancellationToken)
public virtual Task<Operation<VmwareEngineNetwork, OperationMetadata>> UpdateVmwareEngineNetworkAsync(VmwareEngineNetwork vmwareEngineNetwork, FieldMask updateMask, CancellationToken cancellationToken)
Modifies a VMware Engine network resource. Only the following fields can be
updated: description
. Only fields specified in updateMask
are
applied.
Parameters | |
---|---|
Name | Description |
vmwareEngineNetwork |
VmwareEngineNetwork Required. VMware Engine network description. |
updateMask |
FieldMask Required. Field mask is used to specify the fields to be overwritten in the
VMware Engine network resource by the update.
The fields specified in the |
cancellationToken |
CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
TaskOperationVmwareEngineNetworkOperationMetadata |
A Task containing the RPC response. |
// Create client
VmwareEngineClient vmwareEngineClient = await VmwareEngineClient.CreateAsync();
// Initialize request argument(s)
VmwareEngineNetwork vmwareEngineNetwork = new VmwareEngineNetwork();
FieldMask updateMask = new FieldMask();
// Make the request
Operation<VmwareEngineNetwork, OperationMetadata> response = await vmwareEngineClient.UpdateVmwareEngineNetworkAsync(vmwareEngineNetwork, updateMask);
// Poll until the returned long-running operation is complete
Operation<VmwareEngineNetwork, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
// Retrieve the operation result
VmwareEngineNetwork 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<VmwareEngineNetwork, OperationMetadata> retrievedResponse = await vmwareEngineClient.PollOnceUpdateVmwareEngineNetworkAsync(operationName);
// Check if the retrieved long-running operation has completed
if (retrievedResponse.IsCompleted)
{
// If it has completed, then access the result
VmwareEngineNetwork retrievedResult = retrievedResponse.Result;
}