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.



1794
1795
1796
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1794

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)


1752
1753
1754
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1752

def bak_type
  @bak_type
end

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

Corresponds to the JSON property encryptionOptions



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

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)


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

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)


1772
1773
1774
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1772

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)


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

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)


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

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)


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

def striped
  @striped
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1799
1800
1801
1802
1803
1804
1805
1806
1807
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1799

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