Google Cloud Sql Admin V1 Client - Class SqlBakImportOptions (0.16.1)

Reference documentation and code samples for the Google Cloud Sql Admin V1 Client class SqlBakImportOptions.

Generated from protobuf message google.cloud.sql.v1.ImportContext.SqlBakImportOptions

Namespace

Google \ Cloud \ Sql \ V1 \ ImportContext

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ encryption_options Google\Cloud\Sql\V1\ImportContext\SqlBakImportOptions\EncryptionOptions
↳ striped Google\Protobuf\BoolValue

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

↳ no_recovery Google\Protobuf\BoolValue

Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server.

↳ recovery_only Google\Protobuf\BoolValue

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.

↳ bak_type int

Type of the bak content, FULL or DIFF

↳ stop_at Google\Protobuf\Timestamp

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.

↳ 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.

getEncryptionOptions

Generated from protobuf field .google.cloud.sql.v1.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Returns
Type Description
Google\Cloud\Sql\V1\ImportContext\SqlBakImportOptions\EncryptionOptions|null

hasEncryptionOptions

clearEncryptionOptions

setEncryptionOptions

Generated from protobuf field .google.cloud.sql.v1.ImportContext.SqlBakImportOptions.EncryptionOptions encryption_options = 1;

Parameter
Name Description
var Google\Cloud\Sql\V1\ImportContext\SqlBakImportOptions\EncryptionOptions
Returns
Type Description
$this

getStriped

Whether or not the backup set being restored is striped.

Applies only to Cloud SQL for SQL Server.

Returns
Type Description
Google\Protobuf\BoolValue|null

hasStriped

clearStriped

getStripedValue

Returns the unboxed value from getStriped()

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

Returns
Type Description
bool|null

setStriped

Whether or not the backup set being restored is striped.

Applies only to Cloud SQL for SQL Server.

Parameter
Name Description
var Google\Protobuf\BoolValue
Returns
Type Description
$this

setStripedValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Whether or not the backup set being restored is striped. Applies only to Cloud SQL for SQL Server.

Parameter
Name Description
var bool|null
Returns
Type Description
$this

getNoRecovery

Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server.

Returns
Type Description
Google\Protobuf\BoolValue|null

hasNoRecovery

clearNoRecovery

getNoRecoveryValue

Returns the unboxed value from getNoRecovery()

Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server.

Returns
Type Description
bool|null

setNoRecovery

Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server.

Parameter
Name Description
var Google\Protobuf\BoolValue
Returns
Type Description
$this

setNoRecoveryValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

Whether or not the backup importing will restore database with NORECOVERY option Applies only to Cloud SQL for SQL Server.

Parameter
Name Description
var bool|null
Returns
Type Description
$this

getRecoveryOnly

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.

Returns
Type Description
Google\Protobuf\BoolValue|null

hasRecoveryOnly

clearRecoveryOnly

getRecoveryOnlyValue

Returns the unboxed value from getRecoveryOnly()

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.

Returns
Type Description
bool|null

setRecoveryOnly

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.

Parameter
Name Description
var Google\Protobuf\BoolValue
Returns
Type Description
$this

setRecoveryOnlyValue

Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.

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.

Parameter
Name Description
var bool|null
Returns
Type Description
$this

getBakType

Type of the bak content, FULL or DIFF

Returns
Type Description
int

setBakType

Type of the bak content, FULL or DIFF

Parameter
Name Description
var int
Returns
Type Description
$this

getStopAt

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.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStopAt

clearStopAt

setStopAt

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.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getStopAtMark

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.

Returns
Type Description
string

setStopAtMark

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.

Parameter
Name Description
var string
Returns
Type Description
$this