Google Cloud Sql Admin V1 Client - Class Database (0.4.1)

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

Represents a SQL database on the Cloud SQL instance.

Generated from protobuf message google.cloud.sql.v1.Database

Namespace

Google \ Cloud \ Sql \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ kind string

This is always sql#database.

↳ charset string

The Cloud SQL charset value.

↳ collation string

The Cloud SQL collation value.

↳ etag string

This field is deprecated and will be removed from a future version of the API.

↳ name string

The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.

↳ instance string

The name of the Cloud SQL instance. This does not include the project ID.

↳ self_link string

The URI of this resource.

↳ project string

The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.

↳ sqlserver_database_details Google\Cloud\Sql\V1\SqlServerDatabaseDetails

getKind

This is always sql#database.

Returns
TypeDescription
string

setKind

This is always sql#database.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCharset

The Cloud SQL charset value.

Returns
TypeDescription
string

setCharset

The Cloud SQL charset value.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCollation

The Cloud SQL collation value.

Returns
TypeDescription
string

setCollation

The Cloud SQL collation value.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getEtag

This field is deprecated and will be removed from a future version of the API.

Returns
TypeDescription
string

setEtag

This field is deprecated and will be removed from a future version of the API.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.

Returns
TypeDescription
string

setName

The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInstance

The name of the Cloud SQL instance. This does not include the project ID.

Returns
TypeDescription
string

setInstance

The name of the Cloud SQL instance. This does not include the project ID.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

The URI of this resource.

Returns
TypeDescription
string

The URI of this resource.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProject

The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.

Returns
TypeDescription
string

setProject

The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSqlserverDatabaseDetails

Generated from protobuf field .google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;

Returns
TypeDescription
Google\Cloud\Sql\V1\SqlServerDatabaseDetails|null

hasSqlserverDatabaseDetails

setSqlserverDatabaseDetails

Generated from protobuf field .google.cloud.sql.v1.SqlServerDatabaseDetails sqlserver_database_details = 9;

Parameter
NameDescription
var Google\Cloud\Sql\V1\SqlServerDatabaseDetails
Returns
TypeDescription
$this

getDatabaseDetails

Returns
TypeDescription
string