VMware Engine v1 API - Class VmwareEngine.VmwareEngineBase (1.0.0-beta02)

[BindServiceMethod(typeof(VmwareEngine), "BindService")]
public abstract class VmwareEngineBase

Reference documentation and code samples for the VMware Engine v1 API class VmwareEngine.VmwareEngineBase.

Base class for server-side implementations of VmwareEngine

Inheritance

Object > VmwareEngine.VmwareEngineBase

Namespace

Google.Cloud.VmwareEngine.V1

Assembly

Google.Cloud.VmwareEngine.V1.dll

Methods

CreateCluster(CreateClusterRequest, ServerCallContext)

public virtual Task<Operation> CreateCluster(CreateClusterRequest request, ServerCallContext context)

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
NameDescription
requestCreateClusterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateHcxActivationKey(CreateHcxActivationKeyRequest, ServerCallContext)

public virtual Task<Operation> CreateHcxActivationKey(CreateHcxActivationKeyRequest request, ServerCallContext context)

Creates a new HCX activation key in a given private cloud.

Parameters
NameDescription
requestCreateHcxActivationKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateNetworkPolicy(CreateNetworkPolicyRequest, ServerCallContext)

public virtual Task<Operation> CreateNetworkPolicy(CreateNetworkPolicyRequest request, ServerCallContext context)

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
NameDescription
requestCreateNetworkPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreatePrivateCloud(CreatePrivateCloudRequest, ServerCallContext)

public virtual Task<Operation> CreatePrivateCloud(CreatePrivateCloudRequest request, ServerCallContext context)

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
NameDescription
requestCreatePrivateCloudRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateVmwareEngineNetwork(CreateVmwareEngineNetworkRequest, ServerCallContext)

public virtual Task<Operation> CreateVmwareEngineNetwork(CreateVmwareEngineNetworkRequest request, ServerCallContext context)

Creates a new VMware Engine network that can be used by a private cloud.

Parameters
NameDescription
requestCreateVmwareEngineNetworkRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteCluster(DeleteClusterRequest, ServerCallContext)

public virtual Task<Operation> DeleteCluster(DeleteClusterRequest request, ServerCallContext context)

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
NameDescription
requestDeleteClusterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteNetworkPolicy(DeleteNetworkPolicyRequest, ServerCallContext)

public virtual Task<Operation> DeleteNetworkPolicy(DeleteNetworkPolicyRequest request, ServerCallContext context)

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
NameDescription
requestDeleteNetworkPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeletePrivateCloud(DeletePrivateCloudRequest, ServerCallContext)

public virtual Task<Operation> DeletePrivateCloud(DeletePrivateCloudRequest request, ServerCallContext context)

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
NameDescription
requestDeletePrivateCloudRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteVmwareEngineNetwork(DeleteVmwareEngineNetworkRequest, ServerCallContext)

public virtual Task<Operation> DeleteVmwareEngineNetwork(DeleteVmwareEngineNetworkRequest request, ServerCallContext context)

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
NameDescription
requestDeleteVmwareEngineNetworkRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

GetCluster(GetClusterRequest, ServerCallContext)

public virtual Task<Cluster> GetCluster(GetClusterRequest request, ServerCallContext context)

Retrieves a Cluster resource by its resource name.

Parameters
NameDescription
requestGetClusterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Cluster>

The response to send back to the client (wrapped by a task).

GetHcxActivationKey(GetHcxActivationKeyRequest, ServerCallContext)

public virtual Task<HcxActivationKey> GetHcxActivationKey(GetHcxActivationKeyRequest request, ServerCallContext context)

Retrieves a HcxActivationKey resource by its resource name.

Parameters
NameDescription
requestGetHcxActivationKeyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<HcxActivationKey>

The response to send back to the client (wrapped by a task).

GetNetworkPolicy(GetNetworkPolicyRequest, ServerCallContext)

public virtual Task<NetworkPolicy> GetNetworkPolicy(GetNetworkPolicyRequest request, ServerCallContext context)

Retrieves a NetworkPolicy resource by its resource name.

Parameters
NameDescription
requestGetNetworkPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<NetworkPolicy>

The response to send back to the client (wrapped by a task).

GetNodeType(GetNodeTypeRequest, ServerCallContext)

public virtual Task<NodeType> GetNodeType(GetNodeTypeRequest request, ServerCallContext context)

Gets details of a single NodeType.

Parameters
NameDescription
requestGetNodeTypeRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<NodeType>

The response to send back to the client (wrapped by a task).

GetPrivateCloud(GetPrivateCloudRequest, ServerCallContext)

public virtual Task<PrivateCloud> GetPrivateCloud(GetPrivateCloudRequest request, ServerCallContext context)

Retrieves a PrivateCloud resource by its resource name.

Parameters
NameDescription
requestGetPrivateCloudRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<PrivateCloud>

The response to send back to the client (wrapped by a task).

GetVmwareEngineNetwork(GetVmwareEngineNetworkRequest, ServerCallContext)

public virtual Task<VmwareEngineNetwork> GetVmwareEngineNetwork(GetVmwareEngineNetworkRequest request, ServerCallContext context)

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
NameDescription
requestGetVmwareEngineNetworkRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<VmwareEngineNetwork>

The response to send back to the client (wrapped by a task).

ListClusters(ListClustersRequest, ServerCallContext)

public virtual Task<ListClustersResponse> ListClusters(ListClustersRequest request, ServerCallContext context)

Lists Cluster resources in a given private cloud.

Parameters
NameDescription
requestListClustersRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListClustersResponse>

The response to send back to the client (wrapped by a task).

ListHcxActivationKeys(ListHcxActivationKeysRequest, ServerCallContext)

public virtual Task<ListHcxActivationKeysResponse> ListHcxActivationKeys(ListHcxActivationKeysRequest request, ServerCallContext context)

Lists HcxActivationKey resources in a given private cloud.

Parameters
NameDescription
requestListHcxActivationKeysRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListHcxActivationKeysResponse>

The response to send back to the client (wrapped by a task).

ListNetworkPolicies(ListNetworkPoliciesRequest, ServerCallContext)

public virtual Task<ListNetworkPoliciesResponse> ListNetworkPolicies(ListNetworkPoliciesRequest request, ServerCallContext context)

Lists NetworkPolicy resources in a specified project and location.

Parameters
NameDescription
requestListNetworkPoliciesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListNetworkPoliciesResponse>

The response to send back to the client (wrapped by a task).

ListNodeTypes(ListNodeTypesRequest, ServerCallContext)

public virtual Task<ListNodeTypesResponse> ListNodeTypes(ListNodeTypesRequest request, ServerCallContext context)

Lists node types

Parameters
NameDescription
requestListNodeTypesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListNodeTypesResponse>

The response to send back to the client (wrapped by a task).

ListPrivateClouds(ListPrivateCloudsRequest, ServerCallContext)

public virtual Task<ListPrivateCloudsResponse> ListPrivateClouds(ListPrivateCloudsRequest request, ServerCallContext context)

Lists PrivateCloud resources in a given project and location.

Parameters
NameDescription
requestListPrivateCloudsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListPrivateCloudsResponse>

The response to send back to the client (wrapped by a task).

ListSubnets(ListSubnetsRequest, ServerCallContext)

public virtual Task<ListSubnetsResponse> ListSubnets(ListSubnetsRequest request, ServerCallContext context)

Lists subnets in a given private cloud.

Parameters
NameDescription
requestListSubnetsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListSubnetsResponse>

The response to send back to the client (wrapped by a task).

ListVmwareEngineNetworks(ListVmwareEngineNetworksRequest, ServerCallContext)

public virtual Task<ListVmwareEngineNetworksResponse> ListVmwareEngineNetworks(ListVmwareEngineNetworksRequest request, ServerCallContext context)

Lists VmwareEngineNetwork resources in a given project and location.

Parameters
NameDescription
requestListVmwareEngineNetworksRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListVmwareEngineNetworksResponse>

The response to send back to the client (wrapped by a task).

ResetNsxCredentials(ResetNsxCredentialsRequest, ServerCallContext)

public virtual Task<Operation> ResetNsxCredentials(ResetNsxCredentialsRequest request, ServerCallContext context)

Resets credentials of the NSX appliance.

Parameters
NameDescription
requestResetNsxCredentialsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

ResetVcenterCredentials(ResetVcenterCredentialsRequest, ServerCallContext)

public virtual Task<Operation> ResetVcenterCredentials(ResetVcenterCredentialsRequest request, ServerCallContext context)

Resets credentials of the Vcenter appliance.

Parameters
NameDescription
requestResetVcenterCredentialsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

ShowNsxCredentials(ShowNsxCredentialsRequest, ServerCallContext)

public virtual Task<Credentials> ShowNsxCredentials(ShowNsxCredentialsRequest request, ServerCallContext context)

Gets details of credentials for NSX appliance.

Parameters
NameDescription
requestShowNsxCredentialsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Credentials>

The response to send back to the client (wrapped by a task).

ShowVcenterCredentials(ShowVcenterCredentialsRequest, ServerCallContext)

public virtual Task<Credentials> ShowVcenterCredentials(ShowVcenterCredentialsRequest request, ServerCallContext context)

Gets details of credentials for Vcenter appliance.

Parameters
NameDescription
requestShowVcenterCredentialsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Credentials>

The response to send back to the client (wrapped by a task).

UndeletePrivateCloud(UndeletePrivateCloudRequest, ServerCallContext)

public virtual Task<Operation> UndeletePrivateCloud(UndeletePrivateCloudRequest request, ServerCallContext context)

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
NameDescription
requestUndeletePrivateCloudRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

UpdateCluster(UpdateClusterRequest, ServerCallContext)

public virtual Task<Operation> UpdateCluster(UpdateClusterRequest request, ServerCallContext context)

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
NameDescription
requestUpdateClusterRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

UpdateNetworkPolicy(UpdateNetworkPolicyRequest, ServerCallContext)

public virtual Task<Operation> UpdateNetworkPolicy(UpdateNetworkPolicyRequest request, ServerCallContext context)

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
NameDescription
requestUpdateNetworkPolicyRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

UpdatePrivateCloud(UpdatePrivateCloudRequest, ServerCallContext)

public virtual Task<Operation> UpdatePrivateCloud(UpdatePrivateCloudRequest request, ServerCallContext context)

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
NameDescription
requestUpdatePrivateCloudRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

UpdateVmwareEngineNetwork(UpdateVmwareEngineNetworkRequest, ServerCallContext)

public virtual Task<Operation> UpdateVmwareEngineNetwork(UpdateVmwareEngineNetworkRequest request, ServerCallContext context)

Modifies a VMware Engine network resource. Only the following fields can be updated: description. Only fields specified in updateMask are applied.

Parameters
NameDescription
requestUpdateVmwareEngineNetworkRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).