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 creating a VPC Connector, visit https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For information on how to configure Cloud Run with an existing VPC Connector, 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.
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.
2537 2538 2539 |
# File 'lib/google/apis/run_v2/classes.rb', line 2537 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.
Corresponds to the JSON property connector
2529 2530 2531 |
# File 'lib/google/apis/run_v2/classes.rb', line 2529 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
2535 2536 2537 |
# File 'lib/google/apis/run_v2/classes.rb', line 2535 def egress @egress end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2542 2543 2544 2545 |
# File 'lib/google/apis/run_v2/classes.rb', line 2542 def update!(**args) @connector = args[:connector] if args.key?(:connector) @egress = args[:egress] if args.key?(:egress) end |