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 oauth client 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 oauth client in. The only supported location is
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OauthClientsResource.CreateRequest |
Delete(string)
Deletes a OauthClient. You cannot use a deleted oauth client. 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 oauth client is undeleted, and the refresh tokens are not expired, they are valid for token exchange again. You can undelete an oauth client for 30 days. After 30 days, deletion is permanent. You cannot update deleted oauth clients. 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 oauth client 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 oauth client to retrieve. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OauthClientsResource.GetRequest |
List(string)
Lists all non-deleted OauthClientss in a project. If show_deleted
is set to true
, then deleted
oauth clients are also listed.
Declaration
public virtual ProjectsResource.LocationsResource.OauthClientsResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. The parent to list oauth clients 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. The resource name of the oauth client.
Format: |
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OauthClientsResource.PatchRequest |
Undelete(UndeleteOauthClientRequest, string)
Undeletes a 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 oauth client to undelete. Format:
|
Returns
Type | Description |
---|---|
ProjectsResource.LocationsResource.OauthClientsResource.UndeleteRequest |