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.



1800
1801
1802
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1800

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)


1758
1759
1760
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1758

def bak_type
  @bak_type
end

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

Corresponds to the JSON property encryptionOptions



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

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)


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

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)


1778
1779
1780
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1778

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)


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

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)


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

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)


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

def striped
  @striped
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1805
1806
1807
1808
1809
1810
1811
1812
1813
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1805

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