Class: Google::Apis::RunV2::GoogleCloudRunV2VpcAccess

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2VpcAccess

Returns a new instance of GoogleCloudRunV2VpcAccess.



2406
2407
2408
# File 'lib/google/apis/run_v2/classes.rb', line 2406

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

Instance Attribute Details

#connectorString

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

Returns:

  • (String)


2399
2400
2401
# File 'lib/google/apis/run_v2/classes.rb', line 2399

def connector
  @connector
end

#egressString

Traffic VPC egress settings. Corresponds to the JSON property egress

Returns:

  • (String)


2404
2405
2406
# File 'lib/google/apis/run_v2/classes.rb', line 2404

def egress
  @egress
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2411
2412
2413
2414
# File 'lib/google/apis/run_v2/classes.rb', line 2411

def update!(**args)
  @connector = args[:connector] if args.key?(:connector)
  @egress = args[:egress] if args.key?(:egress)
end