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

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
NameDescription
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
TypeDescription
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
NameDescription
var Google\Cloud\Sql\V1\ImportContext\SqlBakImportOptions\EncryptionOptions
Returns
TypeDescription
$this

getStriped

Whether or not the backup set being restored is striped.

Applies only to Cloud SQL for SQL Server.

Returns
TypeDescription
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
TypeDescription
bool|null

setStriped

Whether or not the backup set being restored is striped.

Applies only to Cloud SQL for SQL Server.

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$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
NameDescription
var bool|null
Returns
TypeDescription
$this

getNoRecovery

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

Returns
TypeDescription
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
TypeDescription
bool|null

setNoRecovery

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

Parameter
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$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
NameDescription
var bool|null
Returns
TypeDescription
$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
TypeDescription
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
TypeDescription
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
NameDescription
var Google\Protobuf\BoolValue
Returns
TypeDescription
$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
NameDescription
var bool|null
Returns
TypeDescription
$this

getBakType

Type of the bak content, FULL or DIFF

Returns
TypeDescription
int

setBakType

Type of the bak content, FULL or DIFF

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this