Class: Google::Apis::VpcaccessV1beta1::Connector
- Inherits:
-
Object
- Object
- Google::Apis::VpcaccessV1beta1::Connector
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vpcaccess_v1beta1/classes.rb,
lib/google/apis/vpcaccess_v1beta1/representations.rb,
lib/google/apis/vpcaccess_v1beta1/representations.rb
Overview
Definition of a Serverless VPC Access connector.
Instance Attribute Summary collapse
-
#connected_projects ⇒ Array<String>
Output only.
-
#create_time ⇒ String
Output only.
-
#ip_cidr_range ⇒ String
The range of internal addresses that follows RFC 4632 notation.
-
#last_restart_time ⇒ String
Output only.
-
#machine_type ⇒ String
Machine type of VM Instance underlying connector.
-
#max_instances ⇒ Fixnum
Maximum value of instances in autoscaling group underlying the connector.
-
#max_throughput ⇒ Fixnum
Maximum throughput of the connector in Mbps.
-
#min_instances ⇒ Fixnum
Minimum value of instances in autoscaling group underlying the connector.
-
#min_throughput ⇒ Fixnum
Minimum throughput of the connector in Mbps.
-
#name ⇒ String
The resource name in the format
projects/*/locations/*/connectors/*
. -
#network ⇒ String
Name of a VPC network.
-
#state ⇒ String
Output only.
-
#subnet ⇒ Google::Apis::VpcaccessV1beta1::Subnet
The subnet in which to house the connector Corresponds to the JSON property
subnet
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Connector
constructor
A new instance of Connector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Connector
Returns a new instance of Connector.
105 106 107 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 105 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connected_projects ⇒ Array<String>
Output only. List of projects using the connector.
Corresponds to the JSON property connectedProjects
32 33 34 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 32 def connected_projects @connected_projects end |
#create_time ⇒ String
Output only. The creation time of the connector.
Corresponds to the JSON property createTime
37 38 39 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 37 def create_time @create_time end |
#ip_cidr_range ⇒ String
The range of internal addresses that follows RFC 4632 notation. Example: 10.
132.0.0/28
.
Corresponds to the JSON property ipCidrRange
43 44 45 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 43 def ip_cidr_range @ip_cidr_range end |
#last_restart_time ⇒ String
Output only. The last restart time of the connector.
Corresponds to the JSON property lastRestartTime
48 49 50 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 48 def last_restart_time @last_restart_time end |
#machine_type ⇒ String
Machine type of VM Instance underlying connector. Default is e2-micro
Corresponds to the JSON property machineType
53 54 55 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 53 def machine_type @machine_type end |
#max_instances ⇒ Fixnum
Maximum value of instances in autoscaling group underlying the connector.
Corresponds to the JSON property maxInstances
58 59 60 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 58 def max_instances @max_instances end |
#max_throughput ⇒ Fixnum
Maximum throughput of the connector in Mbps. Refers to the expected throughput
when using an e2-micro
machine type. Value must be a multiple of 100 from
300 through 1000. Must be higher than the value specified by --min-throughput.
If both max-throughput and max-instances are provided, max-instances takes
precedence over max-throughput. The use of max-throughput
is discouraged in
favor of max-instances
.
Corresponds to the JSON property maxThroughput
68 69 70 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 68 def max_throughput @max_throughput end |
#min_instances ⇒ Fixnum
Minimum value of instances in autoscaling group underlying the connector.
Corresponds to the JSON property minInstances
73 74 75 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 73 def min_instances @min_instances end |
#min_throughput ⇒ Fixnum
Minimum throughput of the connector in Mbps. Refers to the expected throughput
when using an e2-micro
machine type. Value must be a multiple of 100 from
200 through 900. Must be lower than the value specified by --max-throughput.
If both min-throughput and min-instances are provided, min-instances takes
precedence over min-throughput. The use of min-throughput
is discouraged in
favor of min-instances
.
Corresponds to the JSON property minThroughput
83 84 85 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 83 def min_throughput @min_throughput end |
#name ⇒ String
The resource name in the format projects/*/locations/*/connectors/*
.
Corresponds to the JSON property name
88 89 90 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 88 def name @name end |
#network ⇒ String
Name of a VPC network.
Corresponds to the JSON property network
93 94 95 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 93 def network @network end |
#state ⇒ String
Output only. State of the VPC access connector.
Corresponds to the JSON property state
98 99 100 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 98 def state @state end |
#subnet ⇒ Google::Apis::VpcaccessV1beta1::Subnet
The subnet in which to house the connector
Corresponds to the JSON property subnet
103 104 105 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 103 def subnet @subnet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 110 def update!(**args) @connected_projects = args[:connected_projects] if args.key?(:connected_projects) @create_time = args[:create_time] if args.key?(:create_time) @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) @last_restart_time = args[:last_restart_time] if args.key?(:last_restart_time) @machine_type = args[:machine_type] if args.key?(:machine_type) @max_instances = args[:max_instances] if args.key?(:max_instances) @max_throughput = args[:max_throughput] if args.key?(:max_throughput) @min_instances = args[:min_instances] if args.key?(:min_instances) @min_throughput = args[:min_throughput] if args.key?(:min_throughput) @name = args[:name] if args.key?(:name) @network = args[:network] if args.key?(:network) @state = args[:state] if args.key?(:state) @subnet = args[:subnet] if args.key?(:subnet) end |