Class: Google::Apis::DatamigrationV1::ReverseSshConnectivity
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatamigrationV1::ReverseSshConnectivity
 
- 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 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 https://cloud.google.com/database-migration/docs/ reference/rest/v1/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.
Instance Attribute Summary collapse
- 
  
    
      #vm  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the virtual machine (Compute Engine) used as the bastion server for the SSH tunnel. 
- 
  
    
      #vm_ip  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #vm_port  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #vpc  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the VPC to peer with the Cloud SQL private network. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ReverseSshConnectivity 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ReverseSshConnectivity. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ ReverseSshConnectivity
Returns a new instance of ReverseSshConnectivity.
| 3805 3806 3807 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3805 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#vm ⇒ String
The name of the virtual machine (Compute Engine) used as the bastion server
for the SSH tunnel.
Corresponds to the JSON property vm
| 3786 3787 3788 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3786 def vm @vm end | 
#vm_ip ⇒ String
Required. The IP of the virtual machine (Compute Engine) used as the bastion
server for the SSH tunnel.
Corresponds to the JSON property vmIp
| 3792 3793 3794 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3792 def vm_ip @vm_ip end | 
#vm_port ⇒ Fixnum
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
| 3798 3799 3800 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3798 def vm_port @vm_port end | 
#vpc ⇒ String
The name of the VPC to peer with the Cloud SQL private network.
Corresponds to the JSON property vpc
| 3803 3804 3805 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3803 def vpc @vpc end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3810 3811 3812 3813 3814 3815 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 3810 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 |