Close httplib2 connections.
delete(userKey, codeId, x__xgafv=None)
Delete an ASP issued by a user.
get(userKey, codeId, x__xgafv=None)
Get information about an ASP issued by a user.
List the ASPs issued by a user.
close()
Close httplib2 connections.
delete(userKey, codeId, x__xgafv=None)
Delete an ASP issued by a user.
Args:
userKey: string, Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. (required)
codeId: integer, The unique ID of the ASP to be deleted. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
get(userKey, codeId, x__xgafv=None)
Get information about an ASP issued by a user.
Args:
userKey: string, Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. (required)
codeId: integer, The unique ID of the ASP. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # An application-specific password (ASP) is used with applications that do not accept a verification code when logging into the application on certain devices. The ASP access code is used instead of the login and password you commonly use when accessing an application through a browser. For more information about ASPs and how to create one, see the [help center](//http://support.google.com/a/bin/answer.py?amp;answer=1032419).
"creationTime": "A String", # The time when the ASP was created. Expressed in [Unix time](http://en.wikipedia.org/wiki/Epoch_time) format.
"kind": "admin#directory#asp", # The type of the API resource. This is always `admin#directory#asp`.
"lastTimeUsed": "A String", # The time when the ASP was last used. Expressed in [Unix time](http://en.wikipedia.org/wiki/Epoch_time) format.
"etag": "A String", # ETag of the ASP.
"codeId": 42, # The unique ID of the ASP.
"name": "A String", # The name of the application that the user, represented by their `userId`, entered when the ASP was created.
"userKey": "A String", # The unique ID of the user who issued the ASP.
}
list(userKey, x__xgafv=None)
List the ASPs issued by a user.
Args:
userKey: string, Identifies the user in the API request. The value can be the user's primary email address, alias email address, or unique user ID. (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{
"etag": "A String", # ETag of the resource.
"kind": "admin#directory#aspList", # The type of the API resource. This is always `admin#directory#aspList`.
"items": [ # A list of ASP resources.
{ # An application-specific password (ASP) is used with applications that do not accept a verification code when logging into the application on certain devices. The ASP access code is used instead of the login and password you commonly use when accessing an application through a browser. For more information about ASPs and how to create one, see the [help center](//http://support.google.com/a/bin/answer.py?amp;answer=1032419).
"creationTime": "A String", # The time when the ASP was created. Expressed in [Unix time](http://en.wikipedia.org/wiki/Epoch_time) format.
"kind": "admin#directory#asp", # The type of the API resource. This is always `admin#directory#asp`.
"lastTimeUsed": "A String", # The time when the ASP was last used. Expressed in [Unix time](http://en.wikipedia.org/wiki/Epoch_time) format.
"etag": "A String", # ETag of the ASP.
"codeId": 42, # The unique ID of the ASP.
"name": "A String", # The name of the application that the user, represented by their `userId`, entered when the ASP was created.
"userKey": "A String", # The unique ID of the user who issued the ASP.
},
],
}