Returns the credentials Resource.
Close httplib2 connections.
create(parent, body=None, oauthClientId=None, x__xgafv=None)
Creates a new OauthClient. You cannot reuse the name of a deleted oauth client until 30 days after deletion.
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.
Gets an individual OauthClient.
list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)
Lists all non-deleted OauthClientss in a project. If `show_deleted` is set to `true`, then deleted oauth clients are also listed.
Retrieves the next page of results.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates an existing OauthClient.
undelete(name, body=None, x__xgafv=None)
Undeletes a OauthClient, as long as it was deleted fewer than 30 days ago.
close()
Close httplib2 connections.
create(parent, body=None, oauthClientId=None, x__xgafv=None)
Creates a new OauthClient. You cannot reuse the name of a deleted oauth client until 30 days after deletion. Args: parent: string, Required. The parent resource to create the oauth client in. The only supported location is `global`. (required) body: object, The request body. The object takes the form of: { # Represents an oauth client. Used to access Google Cloud resources on behave of a user by using OAuth2 Protocol to obtain an access token from Google Cloud Platform. "allowedGrantTypes": [ # Required. The list of OAuth grant type is allowed for the oauth client. "A String", ], "allowedRedirectUris": [ # Required. The list of redirect uris that is allowed to redirect back when authorization process is completed. "A String", ], "allowedScopes": [ # Required. The list of scopes that the oauth client is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. * `openid`: Associate you with your personal info on Google Cloud. * `email`: See your Google Cloud Account email address. "A String", ], "clientId": "A String", # Output only. The system-generated oauth client id. "clientType": "A String", # Immutable. The type of oauth client. either public or private. "description": "A String", # Optional. A user-specified description of the oauth client. Cannot exceed 256 characters. "disabled": True or False, # Optional. Whether the oauth client is disabled. You cannot use a disabled oauth client for login. "displayName": "A String", # Optional. A user-specified display name of the oauth client. Cannot exceed 32 characters. "expireTime": "A String", # Output only. Time after which the oauth client will be permanently purged and cannot be recovered. "name": "A String", # Immutable. The resource name of the oauth client. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. "state": "A String", # Output only. The state of the oauth client. } oauthClientId: string, Required. The ID to use for the oauth client, which becomes the final component of the resource name. This value should be a string of 6 to 63 lowercase letters, digits, or hyphens. It must start with a letter, and cannot have a trailing hyphen. The prefix `gcp-` is reserved for use by Google, and may not be specified. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents an oauth client. Used to access Google Cloud resources on behave of a user by using OAuth2 Protocol to obtain an access token from Google Cloud Platform. "allowedGrantTypes": [ # Required. The list of OAuth grant type is allowed for the oauth client. "A String", ], "allowedRedirectUris": [ # Required. The list of redirect uris that is allowed to redirect back when authorization process is completed. "A String", ], "allowedScopes": [ # Required. The list of scopes that the oauth client is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. * `openid`: Associate you with your personal info on Google Cloud. * `email`: See your Google Cloud Account email address. "A String", ], "clientId": "A String", # Output only. The system-generated oauth client id. "clientType": "A String", # Immutable. The type of oauth client. either public or private. "description": "A String", # Optional. A user-specified description of the oauth client. Cannot exceed 256 characters. "disabled": True or False, # Optional. Whether the oauth client is disabled. You cannot use a disabled oauth client for login. "displayName": "A String", # Optional. A user-specified display name of the oauth client. Cannot exceed 32 characters. "expireTime": "A String", # Output only. Time after which the oauth client will be permanently purged and cannot be recovered. "name": "A String", # Immutable. The resource name of the oauth client. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. "state": "A String", # Output only. The state of the oauth client. }
delete(name, x__xgafv=None)
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. Args: name: string, Required. The name of the oauth client to delete. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}`. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents an oauth client. Used to access Google Cloud resources on behave of a user by using OAuth2 Protocol to obtain an access token from Google Cloud Platform. "allowedGrantTypes": [ # Required. The list of OAuth grant type is allowed for the oauth client. "A String", ], "allowedRedirectUris": [ # Required. The list of redirect uris that is allowed to redirect back when authorization process is completed. "A String", ], "allowedScopes": [ # Required. The list of scopes that the oauth client is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. * `openid`: Associate you with your personal info on Google Cloud. * `email`: See your Google Cloud Account email address. "A String", ], "clientId": "A String", # Output only. The system-generated oauth client id. "clientType": "A String", # Immutable. The type of oauth client. either public or private. "description": "A String", # Optional. A user-specified description of the oauth client. Cannot exceed 256 characters. "disabled": True or False, # Optional. Whether the oauth client is disabled. You cannot use a disabled oauth client for login. "displayName": "A String", # Optional. A user-specified display name of the oauth client. Cannot exceed 32 characters. "expireTime": "A String", # Output only. Time after which the oauth client will be permanently purged and cannot be recovered. "name": "A String", # Immutable. The resource name of the oauth client. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. "state": "A String", # Output only. The state of the oauth client. }
get(name, x__xgafv=None)
Gets an individual OauthClient. Args: name: string, Required. The name of the oauth client to retrieve. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}`. (required) x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents an oauth client. Used to access Google Cloud resources on behave of a user by using OAuth2 Protocol to obtain an access token from Google Cloud Platform. "allowedGrantTypes": [ # Required. The list of OAuth grant type is allowed for the oauth client. "A String", ], "allowedRedirectUris": [ # Required. The list of redirect uris that is allowed to redirect back when authorization process is completed. "A String", ], "allowedScopes": [ # Required. The list of scopes that the oauth client is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. * `openid`: Associate you with your personal info on Google Cloud. * `email`: See your Google Cloud Account email address. "A String", ], "clientId": "A String", # Output only. The system-generated oauth client id. "clientType": "A String", # Immutable. The type of oauth client. either public or private. "description": "A String", # Optional. A user-specified description of the oauth client. Cannot exceed 256 characters. "disabled": True or False, # Optional. Whether the oauth client is disabled. You cannot use a disabled oauth client for login. "displayName": "A String", # Optional. A user-specified display name of the oauth client. Cannot exceed 32 characters. "expireTime": "A String", # Output only. Time after which the oauth client will be permanently purged and cannot be recovered. "name": "A String", # Immutable. The resource name of the oauth client. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. "state": "A String", # Output only. The state of the oauth client. }
list(parent, pageSize=None, pageToken=None, showDeleted=None, x__xgafv=None)
Lists all non-deleted OauthClientss in a project. If `show_deleted` is set to `true`, then deleted oauth clients are also listed. Args: parent: string, Required. The parent to list oauth clients for. (required) pageSize: integer, Optional. The maximum number of oauth clients to return. If unspecified, at most 50 oauth clients will be returned. The maximum value is 100; values above 100 are truncated to 100. pageToken: string, Optional. A page token, received from a previous `ListOauthClients` call. Provide this to retrieve the subsequent page. showDeleted: boolean, Optional. Whether to return soft-deleted oauth clients. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Response message for ListOauthClients. "nextPageToken": "A String", # Optional. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. "oauthClients": [ # A list of oauth clients. { # Represents an oauth client. Used to access Google Cloud resources on behave of a user by using OAuth2 Protocol to obtain an access token from Google Cloud Platform. "allowedGrantTypes": [ # Required. The list of OAuth grant type is allowed for the oauth client. "A String", ], "allowedRedirectUris": [ # Required. The list of redirect uris that is allowed to redirect back when authorization process is completed. "A String", ], "allowedScopes": [ # Required. The list of scopes that the oauth client is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. * `openid`: Associate you with your personal info on Google Cloud. * `email`: See your Google Cloud Account email address. "A String", ], "clientId": "A String", # Output only. The system-generated oauth client id. "clientType": "A String", # Immutable. The type of oauth client. either public or private. "description": "A String", # Optional. A user-specified description of the oauth client. Cannot exceed 256 characters. "disabled": True or False, # Optional. Whether the oauth client is disabled. You cannot use a disabled oauth client for login. "displayName": "A String", # Optional. A user-specified display name of the oauth client. Cannot exceed 32 characters. "expireTime": "A String", # Output only. Time after which the oauth client will be permanently purged and cannot be recovered. "name": "A String", # Immutable. The resource name of the oauth client. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. "state": "A String", # Output only. The state of the oauth client. }, ], }
list_next()
Retrieves the next page of results. Args: previous_request: The request for the previous page. (required) previous_response: The response from the request for the previous page. (required) Returns: A request object that you can call 'execute()' on to request the next page. Returns None if there are no more items in the collection.
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates an existing OauthClient. Args: name: string, Immutable. The resource name of the oauth client. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. (required) body: object, The request body. The object takes the form of: { # Represents an oauth client. Used to access Google Cloud resources on behave of a user by using OAuth2 Protocol to obtain an access token from Google Cloud Platform. "allowedGrantTypes": [ # Required. The list of OAuth grant type is allowed for the oauth client. "A String", ], "allowedRedirectUris": [ # Required. The list of redirect uris that is allowed to redirect back when authorization process is completed. "A String", ], "allowedScopes": [ # Required. The list of scopes that the oauth client is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. * `openid`: Associate you with your personal info on Google Cloud. * `email`: See your Google Cloud Account email address. "A String", ], "clientId": "A String", # Output only. The system-generated oauth client id. "clientType": "A String", # Immutable. The type of oauth client. either public or private. "description": "A String", # Optional. A user-specified description of the oauth client. Cannot exceed 256 characters. "disabled": True or False, # Optional. Whether the oauth client is disabled. You cannot use a disabled oauth client for login. "displayName": "A String", # Optional. A user-specified display name of the oauth client. Cannot exceed 32 characters. "expireTime": "A String", # Output only. Time after which the oauth client will be permanently purged and cannot be recovered. "name": "A String", # Immutable. The resource name of the oauth client. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. "state": "A String", # Output only. The state of the oauth client. } updateMask: string, Required. The list of fields to update. x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents an oauth client. Used to access Google Cloud resources on behave of a user by using OAuth2 Protocol to obtain an access token from Google Cloud Platform. "allowedGrantTypes": [ # Required. The list of OAuth grant type is allowed for the oauth client. "A String", ], "allowedRedirectUris": [ # Required. The list of redirect uris that is allowed to redirect back when authorization process is completed. "A String", ], "allowedScopes": [ # Required. The list of scopes that the oauth client is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. * `openid`: Associate you with your personal info on Google Cloud. * `email`: See your Google Cloud Account email address. "A String", ], "clientId": "A String", # Output only. The system-generated oauth client id. "clientType": "A String", # Immutable. The type of oauth client. either public or private. "description": "A String", # Optional. A user-specified description of the oauth client. Cannot exceed 256 characters. "disabled": True or False, # Optional. Whether the oauth client is disabled. You cannot use a disabled oauth client for login. "displayName": "A String", # Optional. A user-specified display name of the oauth client. Cannot exceed 32 characters. "expireTime": "A String", # Output only. Time after which the oauth client will be permanently purged and cannot be recovered. "name": "A String", # Immutable. The resource name of the oauth client. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. "state": "A String", # Output only. The state of the oauth client. }
undelete(name, body=None, x__xgafv=None)
Undeletes a OauthClient, as long as it was deleted fewer than 30 days ago. Args: name: string, Required. The name of the oauth client to undelete. Format: `projects/{project}/locations/{location}/oauthClients/{oauth_client}`. (required) body: object, The request body. The object takes the form of: { # Request message for UndeleteOauthClient. } x__xgafv: string, V1 error format. Allowed values 1 - v1 error format 2 - v2 error format Returns: An object of the form: { # Represents an oauth client. Used to access Google Cloud resources on behave of a user by using OAuth2 Protocol to obtain an access token from Google Cloud Platform. "allowedGrantTypes": [ # Required. The list of OAuth grant type is allowed for the oauth client. "A String", ], "allowedRedirectUris": [ # Required. The list of redirect uris that is allowed to redirect back when authorization process is completed. "A String", ], "allowedScopes": [ # Required. The list of scopes that the oauth client is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. * `openid`: Associate you with your personal info on Google Cloud. * `email`: See your Google Cloud Account email address. "A String", ], "clientId": "A String", # Output only. The system-generated oauth client id. "clientType": "A String", # Immutable. The type of oauth client. either public or private. "description": "A String", # Optional. A user-specified description of the oauth client. Cannot exceed 256 characters. "disabled": True or False, # Optional. Whether the oauth client is disabled. You cannot use a disabled oauth client for login. "displayName": "A String", # Optional. A user-specified display name of the oauth client. Cannot exceed 32 characters. "expireTime": "A String", # Output only. Time after which the oauth client will be permanently purged and cannot be recovered. "name": "A String", # Immutable. The resource name of the oauth client. Format:`projects/{project}/locations/{location}/oauthClients/{oauth_client}`. "state": "A String", # Output only. The state of the oauth client. }