Class DatabasesResource
The "databases" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1beta4
Assembly: Google.Apis.SQLAdmin.v1beta4.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 |
|---|---|---|
| System.String | project | Project ID of the project that contains the instance. |
| System.String | instance | Database instance ID. This does not include the project ID. |
| System.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 |
|---|---|---|
| System.String | project | Project ID of the project that contains the instance. |
| System.String | instance | Database instance ID. This does not include the project ID. |
| System.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.
Declaration
public virtual DatabasesResource.InsertRequest Insert(Database body, string project, string instance)
Parameters
| Type | Name | Description |
|---|---|---|
| Database | body | The body of the request. |
| System.String | project | Project ID of the project that contains the instance. |
| System.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 |
|---|---|---|
| System.String | project | Project ID of the project that contains the instance. |
| System.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. |
| System.String | project | Project ID of the project that contains the instance. |
| System.String | instance | Database instance ID. This does not include the project ID. |
| System.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. |
| System.String | project | Project ID of the project that contains the instance. |
| System.String | instance | Database instance ID. This does not include the project ID. |
| System.String | database | Name of the database to be updated in the instance. |
Returns
| Type | Description |
|---|---|
| DatabasesResource.UpdateRequest |