Class: Google::Apis::RunV2::GoogleCloudRunV2VpcAccess
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2VpcAccess
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v2/classes.rb,
lib/google/apis/run_v2/representations.rb,
lib/google/apis/run_v2/representations.rb
Overview
VPC Access settings. For more information on sending traffic to a VPC network, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
Instance Attribute Summary collapse
-
#connector ⇒ String
VPC Access connector name.
-
#egress ⇒ String
Traffic VPC egress settings.
-
#network_interfaces ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface>
Direct VPC egress settings.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2VpcAccess
constructor
A new instance of GoogleCloudRunV2VpcAccess.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2VpcAccess
Returns a new instance of GoogleCloudRunV2VpcAccess.
2708 2709 2710 |
# File 'lib/google/apis/run_v2/classes.rb', line 2708 def initialize(**args) update!(**args) end |
Instance Attribute Details
#connector ⇒ String
VPC Access connector name. Format: projects/project/locations/location/
connectors/connector, where project can be project id or number. For more
information on sending traffic to a VPC network via a connector, visit https://
cloud.google.com/run/docs/configuring/vpc-connectors.
Corresponds to the JSON property connector
2694 2695 2696 |
# File 'lib/google/apis/run_v2/classes.rb', line 2694 def connector @connector end |
#egress ⇒ String
Traffic VPC egress settings. If not provided, it defaults to
PRIVATE_RANGES_ONLY.
Corresponds to the JSON property egress
2700 2701 2702 |
# File 'lib/google/apis/run_v2/classes.rb', line 2700 def egress @egress end |
#network_interfaces ⇒ Array<Google::Apis::RunV2::GoogleCloudRunV2NetworkInterface>
Direct VPC egress settings. Currently only single network interface is
supported.
Corresponds to the JSON property networkInterfaces
2706 2707 2708 |
# File 'lib/google/apis/run_v2/classes.rb', line 2706 def network_interfaces @network_interfaces end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2713 2714 2715 2716 2717 |
# File 'lib/google/apis/run_v2/classes.rb', line 2713 def update!(**args) @connector = args[:connector] if args.key?(:connector) @egress = args[:egress] if args.key?(:egress) @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) end |