Google Cloud Vmware Engine V1 Client - Class PrivateConnection (0.4.0)

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

Private connection resource that provides connectivity for VMware Engine private clouds.

Generated from protobuf message google.cloud.vmwareengine.v1.PrivateConnection

Namespace

Google \ Cloud \ VmwareEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the private connection. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/privateConnections/my-connection

↳ create_time Google\Protobuf\Timestamp

Output only. Creation time of this resource.

↳ update_time Google\Protobuf\Timestamp

Output only. Last update time of this resource.

↳ description string

Optional. User-provided description for this private connection.

↳ state int

Output only. State of the private connection.

↳ vmware_engine_network string

Required. The relative resource name of Legacy VMware Engine network. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project}, {location} will be same as specified in private connection resource name and {vmware_engine_network_id} will be in the form of {location}-default e.g. projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.

↳ vmware_engine_network_canonical string

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

↳ type int

Required. Private connection type.

↳ peering_id string

Output only. VPC network peering id between given network VPC and VMwareEngineNetwork.

↳ routing_mode int

Optional. Routing Mode. Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported.

↳ uid string

Output only. System-generated unique identifier for the resource.

↳ service_network string

Required. Service network to create private connection. Specify the name in the following form: projects/{project}/global/networks/{network_id} For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking VPC, e.g. projects/project-tp/global/networks/servicenetworking. For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, e.g. projects/project-tp/global/networks/netapp-tenant-vpc. For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. projects/project-tp/global/networks/dell-tenant-vpc. For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or any other producer VPC to which the VMware Engine Network needs to be connected, e.g. projects/project/global/networks/vpc.

↳ peering_state int

Output only. Peering state between service network and VMware Engine network.

getName

Output only. The resource name of the private connection.

Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/privateConnections/my-connection

Returns
TypeDescription
string

setName

Output only. The resource name of the private connection.

Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1/privateConnections/my-connection

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Creation time of this resource.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Creation time of this resource.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Last update time of this resource.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Last update time of this resource.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDescription

Optional. User-provided description for this private connection.

Returns
TypeDescription
string

setDescription

Optional. User-provided description for this private connection.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. State of the private connection.

Returns
TypeDescription
int

setState

Output only. State of the private connection.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getVmwareEngineNetwork

Required. The relative resource name of Legacy VMware Engine network.

Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project}, {location} will be same as specified in private connection resource name and {vmware_engine_network_id} will be in the form of {location}-default e.g. projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.

Returns
TypeDescription
string

setVmwareEngineNetwork

Required. The relative resource name of Legacy VMware Engine network.

Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id} where {project}, {location} will be same as specified in private connection resource name and {vmware_engine_network_id} will be in the form of {location}-default e.g. projects/project/locations/us-central1/vmwareEngineNetworks/us-central1-default.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getVmwareEngineNetworkCanonical

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

Returns
TypeDescription
string

setVmwareEngineNetworkCanonical

Output only. The canonical name of the VMware Engine network in the form: projects/{project_number}/locations/{location}/vmwareEngineNetworks/{vmware_engine_network_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Required. Private connection type.

Returns
TypeDescription
int

setType

Required. Private connection type.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPeeringId

Output only. VPC network peering id between given network VPC and VMwareEngineNetwork.

Returns
TypeDescription
string

setPeeringId

Output only. VPC network peering id between given network VPC and VMwareEngineNetwork.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getRoutingMode

Optional. Routing Mode.

Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported.

Returns
TypeDescription
int

setRoutingMode

Optional. Routing Mode.

Default value is set to GLOBAL. For type = PRIVATE_SERVICE_ACCESS, this field can be set to GLOBAL or REGIONAL, for other types only GLOBAL is supported.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getUid

Output only. System-generated unique identifier for the resource.

Returns
TypeDescription
string

setUid

Output only. System-generated unique identifier for the resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getServiceNetwork

Required. Service network to create private connection.

Specify the name in the following form: projects/{project}/global/networks/{network_id} For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking VPC, e.g. projects/project-tp/global/networks/servicenetworking. For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, e.g. projects/project-tp/global/networks/netapp-tenant-vpc. For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. projects/project-tp/global/networks/dell-tenant-vpc. For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or any other producer VPC to which the VMware Engine Network needs to be connected, e.g. projects/project/global/networks/vpc.

Returns
TypeDescription
string

setServiceNetwork

Required. Service network to create private connection.

Specify the name in the following form: projects/{project}/global/networks/{network_id} For type = PRIVATE_SERVICE_ACCESS, this field represents servicenetworking VPC, e.g. projects/project-tp/global/networks/servicenetworking. For type = NETAPP_CLOUD_VOLUME, this field represents NetApp service VPC, e.g. projects/project-tp/global/networks/netapp-tenant-vpc. For type = DELL_POWERSCALE, this field represent Dell service VPC, e.g. projects/project-tp/global/networks/dell-tenant-vpc. For type= THIRD_PARTY_SERVICE, this field could represent a consumer VPC or any other producer VPC to which the VMware Engine Network needs to be connected, e.g. projects/project/global/networks/vpc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPeeringState

Output only. Peering state between service network and VMware Engine network.

Returns
TypeDescription
int

setPeeringState

Output only. Peering state between service network and VMware Engine network.

Parameter
NameDescription
var int
Returns
TypeDescription
$this