Class: Google::Apis::DatamigrationV1::VpcPeeringConfig
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::DatamigrationV1::VpcPeeringConfig
 
- 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
- 
  
    
      #subnet  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
- 
  
    
      #vpc_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Required. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ VpcPeeringConfig 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of VpcPeeringConfig. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Constructor Details
#initialize(**args) ⇒ VpcPeeringConfig
Returns a new instance of VpcPeeringConfig.
| 5151 5152 5153 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 5151 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#subnet ⇒ String
Required. A free subnet for peering. (CIDR of /29)
Corresponds to the JSON property subnet
| 5143 5144 5145 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 5143 def subnet @subnet end | 
#vpc_name ⇒ String
Required. Fully qualified name of the VPC that Database Migration Service will
peer to.
Corresponds to the JSON property vpcName
| 5149 5150 5151 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 5149 def vpc_name @vpc_name end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 5156 5157 5158 5159 | # File 'lib/google/apis/datamigration_v1/classes.rb', line 5156 def update!(**args) @subnet = args[:subnet] if args.key?(:subnet) @vpc_name = args[:vpc_name] if args.key?(:vpc_name) end |