OcicAuthorizationTokenDetails

class oci.application_migration.models.OcicAuthorizationTokenDetails(**kwargs)

Bases: oci.application_migration.models.authorization_details.AuthorizationDetails

Auth Token and endpoint to access Oracle Cloud Infrastructure - Classic, which is the source environment from which you want to migrate the application.

Attributes

TYPE_IMPORT str(object=’’) -> str
TYPE_INTERNAL_COMPUTE str(object=’’) -> str
TYPE_OCC str(object=’’) -> str
TYPE_OCIC str(object=’’) -> str
TYPE_OCIC_IDCS str(object=’’) -> str
access_token [Required] Gets the access_token of this OcicAuthorizationTokenDetails.
client_app_url [Required] Gets the client_app_url of this OcicAuthorizationTokenDetails.
type [Required] Gets the type of this AuthorizationDetails.

Methods

__init__(**kwargs) Initializes a new OcicAuthorizationTokenDetails object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
TYPE_IMPORT = 'IMPORT'
TYPE_INTERNAL_COMPUTE = 'INTERNAL_COMPUTE'
TYPE_OCC = 'OCC'
TYPE_OCIC = 'OCIC'
TYPE_OCIC_IDCS = 'OCIC_IDCS'
__init__(**kwargs)

Initializes a new OcicAuthorizationTokenDetails object with values from keyword arguments. The default value of the type attribute of this class is OCIC_IDCS and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • type (str) – The value to assign to the type property of this OcicAuthorizationTokenDetails. Allowed values for this property are: “OCIC”, “INTERNAL_COMPUTE”, “OCC”, “OCIC_IDCS”, “IMPORT”
  • client_app_url (str) – The value to assign to the client_app_url property of this OcicAuthorizationTokenDetails.
  • access_token (str) – The value to assign to the access_token property of this OcicAuthorizationTokenDetails.
access_token

[Required] Gets the access_token of this OcicAuthorizationTokenDetails. AccessToken to access the app endpoint.

Returns:The access_token of this OcicAuthorizationTokenDetails.
Return type:str
client_app_url

[Required] Gets the client_app_url of this OcicAuthorizationTokenDetails. AuthClient app url resource that the accesstoken is for.

Returns:The client_app_url of this OcicAuthorizationTokenDetails.
Return type:str
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

type

[Required] Gets the type of this AuthorizationDetails. Type of the source environment from which you are migrating applications to Oracle Cloud Infrastructure.

Allowed values for this property are: “OCIC”, “INTERNAL_COMPUTE”, “OCC”, “OCIC_IDCS”, “IMPORT”

Returns:The type of this AuthorizationDetails.
Return type:str