Google Cloud Vmware Engine V1 Client - Class VmwareEngineClient (0.2.1)

Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class VmwareEngineClient.

Service Description: VMwareEngine manages VMware's private clusters in the Cloud.

This class is currently experimental and may be subject to changes.

Namespace

Google \ Cloud \ VmwareEngine \ V1 \ Client

Methods

__construct

Constructor.

Parameters
NameDescription
options array

Optional. Options for configuring the service API wrapper.

↳ apiEndpoint string

The address of the API remote host. May optionally include the port, formatted as "

↳ credentials string|array|FetchAuthTokenInterface|CredentialsWrapper

The credentials to be used by the client to authorize API calls. This option accepts either a path to a credentials file, or a decoded credentials file as a PHP array. Advanced usage: In addition, this option can also accept a pre-constructed Google\Auth\FetchAuthTokenInterface object or Google\ApiCore\CredentialsWrapper object. Note that when one of these objects are provided, any settings in $credentialsConfig will be ignored.

↳ credentialsConfig array

Options used to configure credentials, including auth token caching, for the client. For a full list of supporting configuration options, see Google\ApiCore\CredentialsWrapper::build() .

↳ disableRetries bool

Determines whether or not retries defined by the client configuration should be disabled. Defaults to false.

↳ clientConfig string|array

Client method configuration, including retry settings. This option can be either a path to a JSON file, or a PHP array containing the decoded JSON data. By default this settings points to the default client config file, which is provided in the resources folder.

↳ transport string|TransportInterface

The transport used for executing network requests. May be either the string rest or grpc. Defaults to grpc if gRPC support is detected on the system. Advanced usage: Additionally, it is possible to pass in an already instantiated Google\ApiCore\Transport\TransportInterface object. Note that when this object is provided, any settings in $transportConfig, and any $apiEndpoint setting, will be ignored.

↳ transportConfig array

Configuration options that will be used to construct the transport. Options for each supported transport type should be passed in a key for that transport. For example: $transportConfig = [ 'grpc' => [...], 'rest' => [...], ]; See the Google\ApiCore\Transport\GrpcTransport::build() and Google\ApiCore\Transport\RestTransport::build() methods for the supported options.

↳ clientCertSource callable

A callable which returns the client cert as a string. This can be used to provide a certificate and private key to the transport layer for mTLS.

createCluster

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::createClusterAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreateClusterRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

createHcxActivationKey

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

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::createHcxActivationKeyAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreateHcxActivationKeyRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

createNetworkPolicy

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::createNetworkPolicyAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreateNetworkPolicyRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

createPrivateCloud

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::createPrivateCloudAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreatePrivateCloudRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

createVmwareEngineNetwork

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

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::createVmwareEngineNetworkAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreateVmwareEngineNetworkRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

deleteCluster

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::deleteClusterAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\DeleteClusterRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

deleteNetworkPolicy

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::deleteNetworkPolicyAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\DeleteNetworkPolicyRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

deletePrivateCloud

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::deletePrivateCloudAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\DeletePrivateCloudRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

deleteVmwareEngineNetwork

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::deleteVmwareEngineNetworkAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\DeleteVmwareEngineNetworkRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

getCluster

Retrieves a Cluster resource by its resource name.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::getClusterAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetClusterRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\VmwareEngine\V1\Cluster

getHcxActivationKey

Retrieves a HcxActivationKey resource by its resource name.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::getHcxActivationKeyAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetHcxActivationKeyRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\VmwareEngine\V1\HcxActivationKey

getNetworkPolicy

Retrieves a NetworkPolicy resource by its resource name.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::getNetworkPolicyAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetNetworkPolicyRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\VmwareEngine\V1\NetworkPolicy

getNodeType

Gets details of a single NodeType.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::getNodeTypeAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetNodeTypeRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\VmwareEngine\V1\NodeType

getPrivateCloud

Retrieves a PrivateCloud resource by its resource name.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::getPrivateCloudAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetPrivateCloudRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\VmwareEngine\V1\PrivateCloud

getVmwareEngineNetwork

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).

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::getVmwareEngineNetworkAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetVmwareEngineNetworkRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\VmwareEngine\V1\VmwareEngineNetwork

listClusters

Lists Cluster resources in a given private cloud.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::listClustersAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListClustersRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\PagedListResponse

listHcxActivationKeys

Lists HcxActivationKey resources in a given private cloud.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::listHcxActivationKeysAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListHcxActivationKeysRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\PagedListResponse

listNetworkPolicies

Lists NetworkPolicy resources in a specified project and location.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::listNetworkPoliciesAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListNetworkPoliciesRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\PagedListResponse

listNodeTypes

Lists node types

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::listNodeTypesAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListNodeTypesRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\PagedListResponse

listPrivateClouds

Lists PrivateCloud resources in a given project and location.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::listPrivateCloudsAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListPrivateCloudsRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\PagedListResponse

listSubnets

Lists subnets in a given private cloud.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::listSubnetsAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListSubnetsRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\PagedListResponse

listVmwareEngineNetworks

Lists VmwareEngineNetwork resources in a given project and location.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::listVmwareEngineNetworksAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListVmwareEngineNetworksRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\PagedListResponse

resetNsxCredentials

Resets credentials of the NSX appliance.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::resetNsxCredentialsAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ResetNsxCredentialsRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

resetVcenterCredentials

Resets credentials of the Vcenter appliance.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::resetVcenterCredentialsAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ResetVcenterCredentialsRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

showNsxCredentials

Gets details of credentials for NSX appliance.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::showNsxCredentialsAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ShowNsxCredentialsRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\VmwareEngine\V1\Credentials

showVcenterCredentials

Gets details of credentials for Vcenter appliance.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::showVcenterCredentialsAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ShowVcenterCredentialsRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\VmwareEngine\V1\Credentials

undeletePrivateCloud

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::undeletePrivateCloudAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UndeletePrivateCloudRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

updateCluster

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::updateClusterAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UpdateClusterRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

updateNetworkPolicy

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::updateNetworkPolicyAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UpdateNetworkPolicyRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

updatePrivateCloud

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.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::updatePrivateCloudAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UpdatePrivateCloudRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

updateVmwareEngineNetwork

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

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::updateVmwareEngineNetworkAsync() .

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UpdateVmwareEngineNetworkRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\OperationResponse

getLocation

Gets information about a location.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::getLocationAsync() .

Parameters
NameDescription
request Google\Cloud\Location\GetLocationRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\Location\Location

listLocations

Lists information about the supported locations for this service.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::listLocationsAsync() .

Parameters
NameDescription
request Google\Cloud\Location\ListLocationsRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\ApiCore\PagedListResponse

getIamPolicy

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::getIamPolicyAsync() .

Parameters
NameDescription
request Google\Cloud\Iam\V1\GetIamPolicyRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\Iam\V1\Policy

setIamPolicy

Sets the access control policy on the specified resource. Replaces any existing policy.

Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::setIamPolicyAsync() .

Parameters
NameDescription
request Google\Cloud\Iam\V1\SetIamPolicyRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\Iam\V1\Policy

testIamPermissions

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.

Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

The async variant is Google\Cloud\VmwareEngine\V1\Client\BaseClient\self::testIamPermissionsAsync() .

Parameters
NameDescription
request Google\Cloud\Iam\V1\TestIamPermissionsRequest

A request to house fields associated with the call.

callOptions array

Optional.

↳ retrySettings RetrySettings|array

Retry settings to use for this call. Can be a Google\ApiCore\RetrySettings object, or an associative array of retry settings parameters. See the documentation on Google\ApiCore\RetrySettings for example usage.

Returns
TypeDescription
Google\Cloud\Iam\V1\TestIamPermissionsResponse

createClusterAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreateClusterRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

createHcxActivationKeyAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreateHcxActivationKeyRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

createNetworkPolicyAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreateNetworkPolicyRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

createPrivateCloudAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreatePrivateCloudRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

createVmwareEngineNetworkAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\CreateVmwareEngineNetworkRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

deleteClusterAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\DeleteClusterRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

deleteNetworkPolicyAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\DeleteNetworkPolicyRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

deletePrivateCloudAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\DeletePrivateCloudRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

deleteVmwareEngineNetworkAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\DeleteVmwareEngineNetworkRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

getClusterAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetClusterRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

getHcxActivationKeyAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetHcxActivationKeyRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

getNetworkPolicyAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetNetworkPolicyRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

getNodeTypeAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetNodeTypeRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

getPrivateCloudAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetPrivateCloudRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

getVmwareEngineNetworkAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\GetVmwareEngineNetworkRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

listClustersAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListClustersRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

listHcxActivationKeysAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListHcxActivationKeysRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

listNetworkPoliciesAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListNetworkPoliciesRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

listNodeTypesAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListNodeTypesRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

listPrivateCloudsAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListPrivateCloudsRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

listSubnetsAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListSubnetsRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

listVmwareEngineNetworksAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ListVmwareEngineNetworksRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

resetNsxCredentialsAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ResetNsxCredentialsRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

resetVcenterCredentialsAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ResetVcenterCredentialsRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

showNsxCredentialsAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ShowNsxCredentialsRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

showVcenterCredentialsAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\ShowVcenterCredentialsRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

undeletePrivateCloudAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UndeletePrivateCloudRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

updateClusterAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UpdateClusterRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

updateNetworkPolicyAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UpdateNetworkPolicyRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

updatePrivateCloudAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UpdatePrivateCloudRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

updateVmwareEngineNetworkAsync

Parameters
NameDescription
request Google\Cloud\VmwareEngine\V1\UpdateVmwareEngineNetworkRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

getLocationAsync

Parameters
NameDescription
request Google\Cloud\Location\GetLocationRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

listLocationsAsync

Parameters
NameDescription
request Google\Cloud\Location\ListLocationsRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

getIamPolicyAsync

Parameters
NameDescription
request Google\Cloud\Iam\V1\GetIamPolicyRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

setIamPolicyAsync

Parameters
NameDescription
request Google\Cloud\Iam\V1\SetIamPolicyRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

testIamPermissionsAsync

Parameters
NameDescription
request Google\Cloud\Iam\V1\TestIamPermissionsRequest
optionalArgs = [] array
Returns
TypeDescription
GuzzleHttp\Promise\PromiseInterface

getOperationsClient

Return an OperationsClient object with the same endpoint as $this.

Returns
TypeDescription
Google\ApiCore\LongRunning\OperationsClient

resumeOperation

Resume an existing long running operation that was previously started by a long running API method. If $methodName is not provided, or does not match a long running API method, then the operation can still be resumed, but the OperationResponse object will not deserialize the final response.

Parameters
NameDescription
operationName string

The name of the long running operation

methodName string

The name of the method used to start the operation

Returns
TypeDescription
Google\ApiCore\OperationResponse

static::clusterName

Formats a string containing the fully-qualified path to represent a cluster resource.

Parameters
NameDescription
project string
location string
privateCloud string
cluster string
Returns
TypeDescription
stringThe formatted cluster resource.

static::hcxActivationKeyName

Formats a string containing the fully-qualified path to represent a hcx_activation_key resource.

Parameters
NameDescription
project string
location string
privateCloud string
hcxActivationKey string
Returns
TypeDescription
stringThe formatted hcx_activation_key resource.

static::locationName

Formats a string containing the fully-qualified path to represent a location resource.

Parameters
NameDescription
project string
location string
Returns
TypeDescription
stringThe formatted location resource.

static::networkName

Formats a string containing the fully-qualified path to represent a network resource.

Parameters
NameDescription
project string
network string
Returns
TypeDescription
stringThe formatted network resource.

static::networkPolicyName

Formats a string containing the fully-qualified path to represent a network_policy resource.

Parameters
NameDescription
project string
location string
networkPolicy string
Returns
TypeDescription
stringThe formatted network_policy resource.

static::nodeTypeName

Formats a string containing the fully-qualified path to represent a node_type resource.

Parameters
NameDescription
project string
location string
nodeType string
Returns
TypeDescription
stringThe formatted node_type resource.

static::privateCloudName

Formats a string containing the fully-qualified path to represent a private_cloud resource.

Parameters
NameDescription
project string
location string
privateCloud string
Returns
TypeDescription
stringThe formatted private_cloud resource.

static::vmwareEngineNetworkName

Formats a string containing the fully-qualified path to represent a vmware_engine_network resource.

Parameters
NameDescription
project string
location string
vmwareEngineNetwork string
Returns
TypeDescription
stringThe formatted vmware_engine_network resource.

static::parseName

Parses a formatted name string and returns an associative array of the components in the name.

The following name formats are supported: Template: Pattern

  • cluster: projects/{project}/locations/{location}/privateClouds/{private_cloud}/clusters/{cluster}
  • hcxActivationKey: projects/{project}/locations/{location}/privateClouds/{private_cloud}/hcxActivationKeys/{hcx_activation_key}
  • location: projects/{project}/locations/{location}
  • network: projects/{project}/global/networks/{network}
  • networkPolicy: projects/{project}/locations/{location}/networkPolicies/{network_policy}
  • nodeType: projects/{project}/locations/{location}/nodeTypes/{node_type}
  • privateCloud: projects/{project}/locations/{location}/privateClouds/{private_cloud}
  • vmwareEngineNetwork: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network}

The optional $template argument can be supplied to specify a particular pattern, and must match one of the templates listed above. If no $template argument is provided, or if the $template argument does not match one of the templates listed, then parseName will check each of the supported templates, and return the first match.

Parameters
NameDescription
formattedName string

The formatted name string

template string

Optional name of template to match

Returns
TypeDescription
arrayAn associative array from name component IDs to component values.