Google Cloud Vpc Access V1 Client - Class Connector (1.1.1)

Reference documentation and code samples for the Google Cloud Vpc Access V1 Client class Connector.

Definition of a Serverless VPC Access connector.

Generated from protobuf message google.cloud.vpcaccess.v1.Connector

Namespace

Google \ Cloud \ VpcAccess \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name in the format projects/*/locations/*/connectors/*.

↳ network string

Name of a VPC network.

↳ ip_cidr_range string

The range of internal addresses that follows RFC 4632 notation. Example: 10.132.0.0/28.

↳ state int

Output only. State of the VPC access connector.

↳ min_throughput int

Minimum throughput of the connector in Mbps. Default and min is 200.

↳ max_throughput int

Maximum throughput of the connector in Mbps. Default is 300, max is 1000.

↳ connected_projects array

Output only. List of projects using the connector.

↳ subnet Google\Cloud\VpcAccess\V1\Connector\Subnet

The subnet in which to house the VPC Access Connector.

↳ machine_type string

Machine type of VM Instance underlying connector. Default is e2-micro

↳ min_instances int

Minimum value of instances in autoscaling group underlying the connector.

↳ max_instances int

Maximum value of instances in autoscaling group underlying the connector.

getName

The resource name in the format projects/*/locations/*/connectors/*.

Returns
TypeDescription
string

setName

The resource name in the format projects/*/locations/*/connectors/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNetwork

Name of a VPC network.

Returns
TypeDescription
string

setNetwork

Name of a VPC network.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getIpCidrRange

The range of internal addresses that follows RFC 4632 notation.

Example: 10.132.0.0/28.

Returns
TypeDescription
string

setIpCidrRange

The range of internal addresses that follows RFC 4632 notation.

Example: 10.132.0.0/28.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. State of the VPC access connector.

Returns
TypeDescription
int

setState

Output only. State of the VPC access connector.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMinThroughput

Minimum throughput of the connector in Mbps. Default and min is 200.

Returns
TypeDescription
int

setMinThroughput

Minimum throughput of the connector in Mbps. Default and min is 200.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMaxThroughput

Maximum throughput of the connector in Mbps. Default is 300, max is 1000.

Returns
TypeDescription
int

setMaxThroughput

Maximum throughput of the connector in Mbps. Default is 300, max is 1000.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getConnectedProjects

Output only. List of projects using the connector.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setConnectedProjects

Output only. List of projects using the connector.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getSubnet

The subnet in which to house the VPC Access Connector.

Returns
TypeDescription
Google\Cloud\VpcAccess\V1\Connector\Subnet|null

hasSubnet

clearSubnet

setSubnet

The subnet in which to house the VPC Access Connector.

Parameter
NameDescription
var Google\Cloud\VpcAccess\V1\Connector\Subnet
Returns
TypeDescription
$this

getMachineType

Machine type of VM Instance underlying connector. Default is e2-micro

Returns
TypeDescription
string

setMachineType

Machine type of VM Instance underlying connector. Default is e2-micro

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMinInstances

Minimum value of instances in autoscaling group underlying the connector.

Returns
TypeDescription
int

setMinInstances

Minimum value of instances in autoscaling group underlying the connector.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMaxInstances

Maximum value of instances in autoscaling group underlying the connector.

Returns
TypeDescription
int

setMaxInstances

Maximum value of instances in autoscaling group underlying the connector.

Parameter
NameDescription
var int
Returns
TypeDescription
$this