Class: Google::Apis::VpcaccessV1beta1::Connector

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Connector

Returns a new instance of Connector.



89
90
91
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 89

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#connected_projectsArray<String>

Output only. List of projects using the connector. Corresponds to the JSON property connectedProjects

Returns:

  • (Array<String>)


32
33
34
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 32

def connected_projects
  @connected_projects
end

#ip_cidr_rangeString

The range of internal addresses that follows RFC 4632 notation. Example: 10. 132.0.0/28. Corresponds to the JSON property ipCidrRange

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 38

def ip_cidr_range
  @ip_cidr_range
end

#machine_typeString

Machine type of VM Instance underlying connector. Default is e2-micro Corresponds to the JSON property machineType

Returns:

  • (String)


43
44
45
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 43

def machine_type
  @machine_type
end

#max_instancesFixnum

Maximum value of instances in autoscaling group underlying the connector. Corresponds to the JSON property maxInstances

Returns:

  • (Fixnum)


48
49
50
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 48

def max_instances
  @max_instances
end

#max_throughputFixnum

Maximum throughput of the connector in Mbps. Default is 300, max is 1000. If both maxThroughput and maxInstances are set, the value for maxInstances is utilzed. Corresponds to the JSON property maxThroughput

Returns:

  • (Fixnum)


55
56
57
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 55

def max_throughput
  @max_throughput
end

#min_instancesFixnum

Minimum value of instances in autoscaling group underlying the connector. Corresponds to the JSON property minInstances

Returns:

  • (Fixnum)


60
61
62
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 60

def min_instances
  @min_instances
end

#min_throughputFixnum

Minimum throughput of the connector in Mbps. Default and min is 200. If both max-throughput and max-instances are provided, max-instances takes precedence over max-throughput. Corresponds to the JSON property minThroughput

Returns:

  • (Fixnum)


67
68
69
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 67

def min_throughput
  @min_throughput
end

#nameString

The resource name in the format projects/*/locations/*/connectors/*. Corresponds to the JSON property name

Returns:

  • (String)


72
73
74
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 72

def name
  @name
end

#networkString

Name of a VPC network. Corresponds to the JSON property network

Returns:

  • (String)


77
78
79
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 77

def network
  @network
end

#stateString

Output only. State of the VPC access connector. Corresponds to the JSON property state

Returns:

  • (String)


82
83
84
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 82

def state
  @state
end

#subnetGoogle::Apis::VpcaccessV1beta1::Subnet

The subnet in which to house the connector Corresponds to the JSON property subnet



87
88
89
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 87

def subnet
  @subnet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



94
95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/google/apis/vpcaccess_v1beta1/classes.rb', line 94

def update!(**args)
  @connected_projects = args[:connected_projects] if args.key?(:connected_projects)
  @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
  @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