Class: Google::Apis::DatastreamV1::VpcPeeringConfig
- Inherits:
-
Object
- Object
- Google::Apis::DatastreamV1::VpcPeeringConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/datastream_v1/classes.rb,
lib/google/apis/datastream_v1/representations.rb,
lib/google/apis/datastream_v1/representations.rb
Overview
The VPC Peering configuration is used to create VPC peering between Datastream and the consumer's VPC.
Instance Attribute Summary collapse
-
#subnet ⇒ String
Required.
-
#vpc ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VpcPeeringConfig
constructor
A new instance of VpcPeeringConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VpcPeeringConfig
Returns a new instance of VpcPeeringConfig.
3071 3072 3073 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3071 def initialize(**args) update!(**args) end |
Instance Attribute Details
#subnet ⇒ String
Required. A free subnet for peering. (CIDR of /29)
Corresponds to the JSON property subnet
3063 3064 3065 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3063 def subnet @subnet end |
#vpc ⇒ String
Required. Fully qualified name of the VPC that Datastream will peer to. Format:
projects/
project/global/
networks/
name`
Corresponds to the JSON property
vpc`
3069 3070 3071 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3069 def vpc @vpc end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3076 3077 3078 3079 |
# File 'lib/google/apis/datastream_v1/classes.rb', line 3076 def update!(**args) @subnet = args[:subnet] if args.key?(:subnet) @vpc = args[:vpc] if args.key?(:vpc) end |