Class: Google::Apis::SqladminV1::ExportContext::BakExportOptions
- Inherits:
-
Object
- Object
- Google::Apis::SqladminV1::ExportContext::BakExportOptions
- 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
Options for exporting BAK files (SQL Server-only)
Instance Attribute Summary collapse
-
#bak_type ⇒ String
Type of this bak file will be export, FULL or DIFF, SQL Server only Corresponds to the JSON property
bakType. -
#copy_only ⇒ Boolean
(also: #copy_only?)
Whether or not the export will be exeucted with COPY_ONLY, SQL Server only deprecated as the behavior should default to copy_only = true use differential_base instead Corresponds to the JSON property
copyOnly. -
#differential_base ⇒ Boolean
(also: #differential_base?)
Whether or not the backup can be use as differential base only non copy only backup can be served as differential base Corresponds to the JSON property
differentialBase. -
#stripe_count ⇒ Fixnum
Option for specifying how many stripes to use for the export.
-
#striped ⇒ Boolean
(also: #striped?)
Whether or not the export should be striped.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BakExportOptions
constructor
A new instance of BakExportOptions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BakExportOptions
Returns a new instance of BakExportOptions.
1297 1298 1299 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1297 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bak_type ⇒ String
Type of this bak file will be export, FULL or DIFF, SQL Server only
Corresponds to the JSON property bakType
1267 1268 1269 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1267 def bak_type @bak_type end |
#copy_only ⇒ Boolean Also known as: copy_only?
Whether or not the export will be exeucted with COPY_ONLY, SQL Server only
deprecated as the behavior should default to copy_only = true use
differential_base instead
Corresponds to the JSON property copyOnly
1274 1275 1276 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1274 def copy_only @copy_only end |
#differential_base ⇒ Boolean Also known as: differential_base?
Whether or not the backup can be use as differential base only non copy only
backup can be served as differential base
Corresponds to the JSON property differentialBase
1281 1282 1283 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1281 def differential_base @differential_base end |
#stripe_count ⇒ Fixnum
Option for specifying how many stripes to use for the export. If blank, and
the value of the striped field is true, the number of stripes is automatically
chosen.
Corresponds to the JSON property stripeCount
1289 1290 1291 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1289 def stripe_count @stripe_count end |
#striped ⇒ Boolean Also known as: striped?
Whether or not the export should be striped.
Corresponds to the JSON property striped
1294 1295 1296 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1294 def striped @striped end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1302 1303 1304 1305 1306 1307 1308 |
# File 'lib/google/apis/sqladmin_v1/classes.rb', line 1302 def update!(**args) @bak_type = args[:bak_type] if args.key?(:bak_type) @copy_only = args[:copy_only] if args.key?(:copy_only) @differential_base = args[:differential_base] if args.key?(:differential_base) @stripe_count = args[:stripe_count] if args.key?(:stripe_count) @striped = args[:striped] if args.key?(:striped) end |