Class: Google::Apis::DatamigrationV1beta1::VpcPeeringConnectivity

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

Overview

The details of the VPC where the source database is located in Google Cloud. We will use this information to set up the VPC peering connection between Cloud SQL and this VPC.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VpcPeeringConnectivity

Returns a new instance of VpcPeeringConnectivity.



1656
1657
1658
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 1656

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

Instance Attribute Details

#vpcString

The name of the VPC network to peer with the Cloud SQL private network. Corresponds to the JSON property vpc

Returns:

  • (String)


1654
1655
1656
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 1654

def vpc
  @vpc
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1661
1662
1663
# File 'lib/google/apis/datamigration_v1beta1/classes.rb', line 1661

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