# Serverless VPC Access V1 API - Class Google::Cloud::VpcAccess::V1::Connector (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.2 0.8.0 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Serverless VPC Access V1 API class Google::Cloud::VpcAccess::V1::Connector.

Definition of a Serverless VPC Access connector.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #connected_projects

    def connected_projects() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Output only. List of projects using the connector.

### #ip_cidr_range

    def ip_cidr_range() -> ::String

**Returns**

- (::String) --- The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`.

### #ip_cidr_range=

    def ip_cidr_range=(value) -> ::String

**Parameter**

- **value** (::String) --- The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`.
**Returns**

- (::String) --- The range of internal addresses that follows RFC 4632 notation. Example: `10.132.0.0/28`.

### #machine_type

    def machine_type() -> ::String

**Returns**

- (::String) --- Machine type of VM Instance underlying connector. Default is e2-micro

### #machine_type=

    def machine_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Machine type of VM Instance underlying connector. Default is e2-micro
**Returns**

- (::String) --- Machine type of VM Instance underlying connector. Default is e2-micro

### #max_instances

    def max_instances() -> ::Integer

**Returns**

- (::Integer) --- Maximum value of instances in autoscaling group underlying the connector.

### #max_instances=

    def max_instances=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Maximum value of instances in autoscaling group underlying the connector.
**Returns**

- (::Integer) --- Maximum value of instances in autoscaling group underlying the connector.

### #max_throughput

    def max_throughput() -> ::Integer

**Returns**

- (::Integer) --- Maximum throughput of the connector in Mbps. Default is 300, max is 1000.

### #max_throughput=

    def max_throughput=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Maximum throughput of the connector in Mbps. Default is 300, max is 1000.
**Returns**

- (::Integer) --- Maximum throughput of the connector in Mbps. Default is 300, max is 1000.

### #min_instances

    def min_instances() -> ::Integer

**Returns**

- (::Integer) --- Minimum value of instances in autoscaling group underlying the connector.

### #min_instances=

    def min_instances=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Minimum value of instances in autoscaling group underlying the connector.
**Returns**

- (::Integer) --- Minimum value of instances in autoscaling group underlying the connector.

### #min_throughput

    def min_throughput() -> ::Integer

**Returns**

- (::Integer) --- Minimum throughput of the connector in Mbps. Default and min is 200.

### #min_throughput=

    def min_throughput=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Minimum throughput of the connector in Mbps. Default and min is 200.
**Returns**

- (::Integer) --- Minimum throughput of the connector in Mbps. Default and min is 200.

### #name

    def name() -> ::String

**Returns**

- (::String) --- The resource name in the format `projects/*/locations/*/connectors/*`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- The resource name in the format `projects/*/locations/*/connectors/*`.
**Returns**

- (::String) --- The resource name in the format `projects/*/locations/*/connectors/*`.

### #network

    def network() -> ::String

**Returns**

- (::String) --- Name of a VPC network.

### #network=

    def network=(value) -> ::String

**Parameter**

- **value** (::String) --- Name of a VPC network.
**Returns**

- (::String) --- Name of a VPC network.

### #state

    def state() -> ::Google::Cloud::VpcAccess::V1::Connector::State

**Returns**

- ([::Google::Cloud::VpcAccess::V1::Connector::State](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vpc_access-v1/latest/Google-Cloud-VpcAccess-V1-Connector-State)) --- Output only. State of the VPC access connector.

### #subnet

    def subnet() -> ::Google::Cloud::VpcAccess::V1::Connector::Subnet

**Returns**

- ([::Google::Cloud::VpcAccess::V1::Connector::Subnet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vpc_access-v1/latest/Google-Cloud-VpcAccess-V1-Connector-Subnet)) --- The subnet in which to house the VPC Access Connector.

### #subnet=

    def subnet=(value) -> ::Google::Cloud::VpcAccess::V1::Connector::Subnet

**Parameter**

- **value** ([::Google::Cloud::VpcAccess::V1::Connector::Subnet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vpc_access-v1/latest/Google-Cloud-VpcAccess-V1-Connector-Subnet)) --- The subnet in which to house the VPC Access Connector.
**Returns**

- ([::Google::Cloud::VpcAccess::V1::Connector::Subnet](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vpc_access-v1/latest/Google-Cloud-VpcAccess-V1-Connector-Subnet)) --- The subnet in which to house the VPC Access Connector.