Class: Google::Apis::SqladminV1::ImportContext::BakImportOptions
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::ImportContext::BakImportOptions
- 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
-
#bak_type ⇒ String
Type of the bak content, FULL or DIFF Corresponds to the JSON property
bakType. -
#encryption_options ⇒ Google::Apis::SqladminV1::ImportContext::BakImportOptions::EncryptionOptions
Corresponds to the JSON property
encryptionOptions. -
#no_recovery ⇒ Boolean
(also: #no_recovery?)
Whether or not the backup importing will restore database with NORECOVERY option.
-
#recovery_only ⇒ Boolean
(also: #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.
-
#stop_at ⇒ String
Optional.
-
#stop_at_mark ⇒ String
Optional.
-
#striped ⇒ Boolean
(also: #striped?)
Whether or not the backup set being restored is striped.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BakImportOptions
constructor
A new instance of BakImportOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BakImportOptions
Returns a new instance of BakImportOptions.
2706 2707 2708 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2706 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bak_type ⇒ String
Type of the bak content, FULL or DIFF
Corresponds to the JSON property bakType
2661 2662 2663 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2661 def bak_type @bak_type end |
#encryption_options ⇒ Google::Apis::SqladminV1::ImportContext::BakImportOptions::EncryptionOptions
Corresponds to the JSON property encryptionOptions
2666 2667 2668 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2666 def @encryption_options end |
#no_recovery ⇒ Boolean 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
2672 2673 2674 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2672 def no_recovery @no_recovery end |
#recovery_only ⇒ Boolean 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
2681 2682 2683 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2681 def recovery_only @recovery_only end |
#stop_at ⇒ String
Optional. The timestamp when the import should stop. This timestamp is in the
RFC 3339 format (for example, 2023-10-
01T16:19:00.094). This field is equivalent to the STOPAT keyword and applies
to Cloud SQL for SQL Server only.
Corresponds to the JSON property stopAt
2690 2691 2692 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2690 def stop_at @stop_at end |
#stop_at_mark ⇒ String
Optional. The marked transaction where the import should stop. This field is
equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server
only.
Corresponds to the JSON property stopAtMark
2697 2698 2699 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2697 def stop_at_mark @stop_at_mark end |
#striped ⇒ Boolean 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
2703 2704 2705 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2703 def striped @striped end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2711 2712 2713 2714 2715 2716 2717 2718 2719 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 2711 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 |