Class: Google::Apis::SqladminV1beta3::ImportContext
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::SqladminV1beta3::ImportContext
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/sqladmin_v1beta3/classes.rb,
 generated/google/apis/sqladmin_v1beta3/representations.rb,
 generated/google/apis/sqladmin_v1beta3/representations.rb
Overview
Database instance import context.
Instance Attribute Summary collapse
- 
  
    
      #database  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The database (for example, guestbook) to which the import is made. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This is always sql#importContext. 
- 
  
    
      #uri  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A path to the MySQL dump file in Google Cloud Storage from which the import is made. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ImportContext 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of ImportContext. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ImportContext
Returns a new instance of ImportContext
| 572 573 574 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 572 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#database ⇒ String
The database (for example, guestbook) to which the import is made. If not set,
it is assumed that the database is specified in the file to be imported.
Corresponds to the JSON property database
| 558 559 560 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 558 def database @database end | 
#kind ⇒ String
This is always sql#importContext.
Corresponds to the JSON property kind
| 563 564 565 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 563 def kind @kind end | 
#uri ⇒ Array<String>
A path to the MySQL dump file in Google Cloud Storage from which the import is
made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.
gz) are also supported.
Corresponds to the JSON property uri
| 570 571 572 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 570 def uri @uri end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 577 578 579 580 581 | # File 'generated/google/apis/sqladmin_v1beta3/classes.rb', line 577 def update!(**args) @database = args[:database] if args.key?(:database) @kind = args[:kind] if args.key?(:kind) @uri = args[:uri] if args.key?(:uri) end |