Class ProjectsResource.LocationsResource.OauthClientsResource
The "oauthClients" collection of methods.
Inherited Members
Namespace: Google.Apis.Iam.v1
Assembly: Google.Apis.Iam.v1.dll
Syntax
public class ProjectsResource.LocationsResource.OauthClientsResource
Constructors
OauthClientsResource(IClientService)
Constructs a new resource.
Declaration
public OauthClientsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Credentials
Gets the Credentials resource.
Declaration
public virtual ProjectsResource.LocationsResource.OauthClientsResource.CredentialsResource Credentials { get; }
Property Value
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.OauthClientsResource.CredentialsResource |
Methods
Create(OauthClient, string)
Creates a new OauthClient. You cannot reuse the name of a deleted OauthClient until 30 days after deletion.
Declaration
public virtual ProjectsResource.LocationsResource.OauthClientsResource.CreateRequest Create(OauthClient body, string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| OauthClient | body | The body of the request. |
| string | parent | Required. The parent resource to create the OauthClient in. The only supported location is |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.OauthClientsResource.CreateRequest |
Delete(string)
Deletes an OauthClient. You cannot use a deleted OauthClient. However, deletion does not revoke access tokens that have already been issued. They continue to grant access. Deletion does revoke refresh tokens that have already been issued. They cannot be used to renew an access token. If the OauthClient is undeleted, and the refresh tokens are not expired, they are valid for token exchange again. You can undelete an OauthClient for 30 days. After 30 days, deletion is permanent. You cannot update deleted OauthClients. However, you can view and list them.
Declaration
public virtual ProjectsResource.LocationsResource.OauthClientsResource.DeleteRequest Delete(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the OauthClient to delete. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.OauthClientsResource.DeleteRequest |
Get(string)
Gets an individual OauthClient.
Declaration
public virtual ProjectsResource.LocationsResource.OauthClientsResource.GetRequest Get(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. The name of the OauthClient to retrieve. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.OauthClientsResource.GetRequest |
List(string)
Lists all non-deleted OauthClients in a project. If show_deleted is set to true, then deleted
OauthClients are also listed.
Declaration
public virtual ProjectsResource.LocationsResource.OauthClientsResource.ListRequest List(string parent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | parent | Required. The parent to list OauthClients for. |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.OauthClientsResource.ListRequest |
Patch(OauthClient, string)
Updates an existing OauthClient.
Declaration
public virtual ProjectsResource.LocationsResource.OauthClientsResource.PatchRequest Patch(OauthClient body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| OauthClient | body | The body of the request. |
| string | name | Immutable. Identifier. The resource name of the OauthClient.
Format: |
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.OauthClientsResource.PatchRequest |
Undelete(UndeleteOauthClientRequest, string)
Undeletes an OauthClient, as long as it was deleted fewer than 30 days ago.
Declaration
public virtual ProjectsResource.LocationsResource.OauthClientsResource.UndeleteRequest Undelete(UndeleteOauthClientRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| UndeleteOauthClientRequest | body | The body of the request. |
| string | name | Required. The name of the OauthClient to undelete. Format:
|
Returns
| Type | Description |
|---|---|
| ProjectsResource.LocationsResource.OauthClientsResource.UndeleteRequest |