class Google::Apis::DatamigrationV1beta1::ReverseSshConnectivity

The details needed to configure a reverse SSH tunnel between the source and destination databases. These details will be used when calling the generateSshScript method (see cloud.google.com/database-migration/docs/ reference/rest/v1beta1/projects.locations.migrationJobs/generateSshScript) to produce the script that will help set up the reverse SSH tunnel, and to set up the VPC peering between the Cloud SQL private network and the VPC.

Attributes

vm[RW]

The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel. Corresponds to the JSON property `vm` @return [String]

vm_ip[RW]

Required. The IP of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel. Corresponds to the JSON property `vmIp` @return [String]

vm_port[RW]

Required. The forwarding port of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel. Corresponds to the JSON property `vmPort` @return [Fixnum]

vpc[RW]

The name of the VPC to peer with the Cloud SQL private network. Corresponds to the JSON property `vpc` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/datamigration_v1beta1/classes.rb, line 1251
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/datamigration_v1beta1/classes.rb, line 1256
def update!(**args)
  @vm = args[:vm] if args.key?(:vm)
  @vm_ip = args[:vm_ip] if args.key?(:vm_ip)
  @vm_port = args[:vm_port] if args.key?(:vm_port)
  @vpc = args[:vpc] if args.key?(:vpc)
end