WebServiceAccessToken Class
Defines base functionality for retrieving the Access Token for deployed web services in Azure Machine Learning.
Create a new instance of WebServiceAccessToken.
- Inheritance
-
builtins.objectWebServiceAccessToken
Constructor
WebServiceAccessToken(access_token, token_type, refresh_after, expiry_on)
Parameters
Name | Description |
---|---|
access_token
Required
|
The access token. |
access_token
Required
|
The access token. |
refresh_after
Required
|
Time after which access token should be fetched again. |
expiry_on
Required
|
Expiration time of the access token. |
token_type
Required
|
The type of access token. |
Methods
deserialize |
Convert a JSON object into a WebServiceAccessToken object. |
serialize |
Convert this WeberviceAccessToken object into a JSON serialized dictionary. |
deserialize
Convert a JSON object into a WebServiceAccessToken object.
static deserialize(payload_obj)
Parameters
Name | Description |
---|---|
payload_obj
Required
|
A JSON object to convert to a WebServiceAccessToken object. |
Returns
Type | Description |
---|---|
The WebServiceAccessToken representation of the provided JSON object. |
serialize
Convert this WeberviceAccessToken object into a JSON serialized dictionary.
serialize()
Returns
Type | Description |
---|---|
The JSON representation of this WebServiceAccessToken object. |