Class: Google::Apis::SqladminV1beta4::ImportContext::BakImportOptions

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

Overview

Import parameters specific to SQL Server .BAK files

Defined Under Namespace

Classes: EncryptionOptions

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BakImportOptions

Returns a new instance of BakImportOptions.



1756
1757
1758
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1756

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

Instance Attribute Details

#bak_typeString

Type of the bak content, FULL or DIFF. Corresponds to the JSON property bakType

Returns:

  • (String)


1726
1727
1728
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1726

def bak_type
  @bak_type
end

#encryption_optionsGoogle::Apis::SqladminV1beta4::ImportContext::BakImportOptions::EncryptionOptions

Corresponds to the JSON property encryptionOptions



1731
1732
1733
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1731

def encryption_options
  @encryption_options
end

#no_recoveryBoolean Also known as: no_recovery?

Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server. Corresponds to the JSON property noRecovery

Returns:

  • (Boolean)


1737
1738
1739
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1737

def no_recovery
  @no_recovery
end

#recovery_onlyBoolean Also known as: recovery_only?

Whether or not the backup importing request will just bring database online without downloading Bak content only one of "no_recovery" and "recovery_only" can be true otherwise error will return. Applies only to Cloud SQL for SQL Server. Corresponds to the JSON property recoveryOnly

Returns:

  • (Boolean)


1746
1747
1748
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1746

def recovery_only
  @recovery_only
end

#stripedBoolean Also known as: striped?

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server. Corresponds to the JSON property striped

Returns:

  • (Boolean)


1753
1754
1755
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1753

def striped
  @striped
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1761
1762
1763
1764
1765
1766
1767
# File 'lib/google/apis/sqladmin_v1beta4/classes.rb', line 1761

def update!(**args)
  @bak_type = args[:bak_type] if args.key?(:bak_type)
  @encryption_options = args[:encryption_options] if args.key?(:encryption_options)
  @no_recovery = args[:no_recovery] if args.key?(:no_recovery)
  @recovery_only = args[:recovery_only] if args.key?(:recovery_only)
  @striped = args[:striped] if args.key?(:striped)
end