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.



1806
1807
1808
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1806

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)


1764
1765
1766
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1764

def bak_type
  @bak_type
end

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

Corresponds to the JSON property encryptionOptions



1769
1770
1771
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1769

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)


1775
1776
1777
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1775

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)


1784
1785
1786
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1784

def recovery_only
  @recovery_only
end

#stop_atString

Optional. StopAt keyword for transaction log import, Applies to Cloud SQL for SQL Server only Corresponds to the JSON property stopAt

Returns:

  • (String)


1791
1792
1793
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1791

def stop_at
  @stop_at
end

#stop_at_markString

Optional. StopAtMark keyword for transaction log import, Applies to Cloud SQL for SQL Server only Corresponds to the JSON property stopAtMark

Returns:

  • (String)


1797
1798
1799
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1797

def stop_at_mark
  @stop_at_mark
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)


1803
1804
1805
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1803

def striped
  @striped
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1811
1812
1813
1814
1815
1816
1817
1818
1819
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1811

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)
  @stop_at = args[:stop_at] if args.key?(:stop_at)
  @stop_at_mark = args[:stop_at_mark] if args.key?(:stop_at_mark)
  @striped = args[:striped] if args.key?(:striped)
end