Reference documentation and code samples for the Google Cloud Sql Admin V1beta4 Client class Database.
Represents a SQL database on the Cloud SQL instance.
Generated from protobuf message google.cloud.sql.v1beta4.Database
Namespace
Google \ Cloud \ Sql \ V1beta4Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ kind |
string
This is always |
↳ 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\V1beta4\SqlServerDatabaseDetails
|
getKind
This is always sql#database
.
Returns | |
---|---|
Type | Description |
string |
setKind
This is always sql#database
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCharset
The Cloud SQL charset value.
Returns | |
---|---|
Type | Description |
string |
setCharset
The Cloud SQL charset value.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCollation
The Cloud SQL collation value.
Returns | |
---|---|
Type | Description |
string |
setCollation
The Cloud SQL collation value.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getEtag
This field is deprecated and will be removed from a future version of the API.
Returns | |
---|---|
Type | Description |
string |
setEtag
This field is deprecated and will be removed from a future version of the API.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getName
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
Returns | |
---|---|
Type | Description |
string |
setName
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getInstance
The name of the Cloud SQL instance. This does not include the project ID.
Returns | |
---|---|
Type | Description |
string |
setInstance
The name of the Cloud SQL instance. This does not include the project ID.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSelfLink
The URI of this resource.
Returns | |
---|---|
Type | Description |
string |
setSelfLink
The URI of this resource.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getProject
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
Returns | |
---|---|
Type | Description |
string |
setProject
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getSqlserverDatabaseDetails
Generated from protobuf field .google.cloud.sql.v1beta4.SqlServerDatabaseDetails sqlserver_database_details = 9;
Returns | |
---|---|
Type | Description |
Google\Cloud\Sql\V1beta4\SqlServerDatabaseDetails|null |
hasSqlserverDatabaseDetails
setSqlserverDatabaseDetails
Generated from protobuf field .google.cloud.sql.v1beta4.SqlServerDatabaseDetails sqlserver_database_details = 9;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Sql\V1beta4\SqlServerDatabaseDetails
|
Returns | |
---|---|
Type | Description |
$this |
getDatabaseDetails
Returns | |
---|---|
Type | Description |
string |