Class UsersResource
The "users" collection of methods.
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1beta4
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class UsersResource
Constructors
UsersResource(IClientService)
Constructs a new resource.
Declaration
public UsersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes a user from a Cloud SQL instance.
Declaration
public virtual UsersResource.DeleteRequest Delete(string project, string instance)
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. |
Returns
Type | Description |
---|---|
UsersResource.DeleteRequest |
Get(string, string, string)
Retrieves a resource containing information about a user.
Declaration
public virtual UsersResource.GetRequest Get(string project, string instance, string name)
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 | name | User of the instance. |
Returns
Type | Description |
---|---|
UsersResource.GetRequest |
Insert(User, string, string)
Creates a new user in a Cloud SQL instance.
Declaration
public virtual UsersResource.InsertRequest Insert(User body, string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
User | 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 |
---|---|
UsersResource.InsertRequest |
List(string, string)
Lists users in the specified Cloud SQL instance.
Declaration
public virtual UsersResource.ListRequest List(string project, string instance)
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. |
Returns
Type | Description |
---|---|
UsersResource.ListRequest |
Update(User, string, string)
Updates an existing user in a Cloud SQL instance.
Declaration
public virtual UsersResource.UpdateRequest Update(User body, string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
User | 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 |
---|---|
UsersResource.UpdateRequest |