Class: Google::Apis::SqladminV1::ImportContext::BakImportOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/sqladmin_v1/classes.rb,
lib/google/apis/sqladmin_v1/representations.rb,
lib/google/apis/sqladmin_v1/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.



1706
1707
1708
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1706

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)


1676
1677
1678
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1676

def bak_type
  @bak_type
end

#encryption_optionsGoogle::Apis::SqladminV1::ImportContext::BakImportOptions::EncryptionOptions

Corresponds to the JSON property encryptionOptions



1681
1682
1683
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1681

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)


1687
1688
1689
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1687

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)


1696
1697
1698
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1696

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)


1703
1704
1705
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1703

def striped
  @striped
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1711
1712
1713
1714
1715
1716
1717
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1711

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