Class: Google::Apis::DatastreamV1::VpcPeeringConfig

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpcPeeringConfig

Returns a new instance of VpcPeeringConfig.



2504
2505
2506
# File 'lib/google/apis/datastream_v1/classes.rb', line 2504

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

Instance Attribute Details

#subnetString

Required. A free subnet for peering. (CIDR of /29) Corresponds to the JSON property subnet

Returns:

  • (String)


2496
2497
2498
# File 'lib/google/apis/datastream_v1/classes.rb', line 2496

def subnet
  @subnet
end

#vpcString

Required. Fully qualified name of the VPC that Datastream will peer to. Format: projects/project/global/networks/name` Corresponds to the JSON propertyvpc`

Returns:

  • (String)


2502
2503
2504
# File 'lib/google/apis/datastream_v1/classes.rb', line 2502

def vpc
  @vpc
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2509
2510
2511
2512
# File 'lib/google/apis/datastream_v1/classes.rb', line 2509

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