Class DatabasesResource
The "databases" collection of methods.
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1
Assembly: Google.Apis.SQLAdmin.v1.dll
Syntax
public class DatabasesResource
Constructors
DatabasesResource(IClientService)
Constructs a new resource.
Declaration
public DatabasesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string, string)
Deletes a database from a Cloud SQL instance.
Declaration
public virtual DatabasesResource.DeleteRequest Delete(string project, string instance, string database)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Database instance ID. This does not include the project ID. |
string | database | Name of the database to be deleted in the instance. |
Returns
Type | Description |
---|---|
DatabasesResource.DeleteRequest |
Get(string, string, string)
Retrieves a resource containing information about a database inside a Cloud SQL instance.
Declaration
public virtual DatabasesResource.GetRequest Get(string project, string instance, string database)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Database instance ID. This does not include the project ID. |
string | database | Name of the database in the instance. |
Returns
Type | Description |
---|---|
DatabasesResource.GetRequest |
Insert(Database, string, string)
Inserts a resource containing information about a database inside a Cloud SQL instance. Note: You can't modify the default character set and collation.
Declaration
public virtual DatabasesResource.InsertRequest Insert(Database body, string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
Database | body | The body of the request. |
string | project | Project ID of the project that contains the instance. |
string | instance | Database instance ID. This does not include the project ID. |
Returns
Type | Description |
---|---|
DatabasesResource.InsertRequest |
List(string, string)
Lists databases in the specified Cloud SQL instance.
Declaration
public virtual DatabasesResource.ListRequest List(string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
Returns
Type | Description |
---|---|
DatabasesResource.ListRequest |
Patch(Database, string, string, string)
Partially updates a resource containing information about a database inside a Cloud SQL instance. This method supports patch semantics.
Declaration
public virtual DatabasesResource.PatchRequest Patch(Database body, string project, string instance, string database)
Parameters
Type | Name | Description |
---|---|---|
Database | body | The body of the request. |
string | project | Project ID of the project that contains the instance. |
string | instance | Database instance ID. This does not include the project ID. |
string | database | Name of the database to be updated in the instance. |
Returns
Type | Description |
---|---|
DatabasesResource.PatchRequest |
Update(Database, string, string, string)
Updates a resource containing information about a database inside a Cloud SQL instance.
Declaration
public virtual DatabasesResource.UpdateRequest Update(Database body, string project, string instance, string database)
Parameters
Type | Name | Description |
---|---|---|
Database | body | The body of the request. |
string | project | Project ID of the project that contains the instance. |
string | instance | Database instance ID. This does not include the project ID. |
string | database | Name of the database to be updated in the instance. |
Returns
Type | Description |
---|---|
DatabasesResource.UpdateRequest |