Class: Google::Apis::DatastreamV1alpha1::VpcPeeringConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastream_v1alpha1/classes.rb,
lib/google/apis/datastream_v1alpha1/representations.rb,
lib/google/apis/datastream_v1alpha1/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.



1782
1783
1784
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1782

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

Instance Attribute Details

#subnetString

Required. A free subnet for peering. (CIDR of /29) TODO(b/172995841) add validators. Corresponds to the JSON property subnet

Returns:

  • (String)


1775
1776
1777
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1775

def subnet
  @subnet
end

#vpc_nameString

Required. fully qualified name of the VPC Datastream will peer to. Corresponds to the JSON property vpcName

Returns:

  • (String)


1780
1781
1782
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1780

def vpc_name
  @vpc_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1787
1788
1789
1790
# File 'lib/google/apis/datastream_v1alpha1/classes.rb', line 1787

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