Class UsersResource
The "users" collection of methods.
Inheritance
System.Object
UsersResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
|---|---|---|
| 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 |
|---|---|
| UsersResource.DeleteRequest |
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. |
| 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 |
|---|---|
| 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 |
|---|---|---|
| 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 |
|---|---|
| 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. |
| 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 |
|---|---|
| UsersResource.UpdateRequest |