Class: Google::Apis::DatamigrationV1::VpcPeeringConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datamigration_v1/classes.rb,
lib/google/apis/datamigration_v1/representations.rb,
lib/google/apis/datamigration_v1/representations.rb

Overview

The VPC peering configuration is used to create VPC peering with the consumer' s VPC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpcPeeringConfig

Returns a new instance of VpcPeeringConfig.



5524
5525
5526
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5524

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)


5516
5517
5518
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5516

def subnet
  @subnet
end

#vpc_nameString

Required. Fully qualified name of the VPC that Database Migration Service will peer to. Corresponds to the JSON property vpcName

Returns:

  • (String)


5522
5523
5524
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5522

def vpc_name
  @vpc_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5529
5530
5531
5532
# File 'lib/google/apis/datamigration_v1/classes.rb', line 5529

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