JavaDownloadToken

class oci.jms_java_downloads.models.JavaDownloadToken(**kwargs)

Bases: object

A JavaDownloadToken is a primary resource for the script friendly URLs. The value of this token serves as the authorization token for the download.

Attributes

LIFECYCLE_DETAILS_EXPIRED A constant which can be used with the lifecycle_details property of a JavaDownloadToken.
LIFECYCLE_DETAILS_REVOKED A constant which can be used with the lifecycle_details property of a JavaDownloadToken.
LIFECYCLE_DETAILS_REVOKING A constant which can be used with the lifecycle_details property of a JavaDownloadToken.
LIFECYCLE_STATE_ACTIVE A constant which can be used with the lifecycle_state property of a JavaDownloadToken.
LIFECYCLE_STATE_CREATING A constant which can be used with the lifecycle_state property of a JavaDownloadToken.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a JavaDownloadToken.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a JavaDownloadToken.
LIFECYCLE_STATE_FAILED A constant which can be used with the lifecycle_state property of a JavaDownloadToken.
LIFECYCLE_STATE_NEEDS_ATTENTION A constant which can be used with the lifecycle_state property of a JavaDownloadToken.
LIFECYCLE_STATE_UPDATING A constant which can be used with the lifecycle_state property of a JavaDownloadToken.
compartment_id [Required] Gets the compartment_id of this JavaDownloadToken.
created_by [Required] Gets the created_by of this JavaDownloadToken.
defined_tags Gets the defined_tags of this JavaDownloadToken.
description [Required] Gets the description of this JavaDownloadToken.
display_name [Required] Gets the display_name of this JavaDownloadToken.
freeform_tags Gets the freeform_tags of this JavaDownloadToken.
id [Required] Gets the id of this JavaDownloadToken.
is_default Gets the is_default of this JavaDownloadToken.
java_version [Required] Gets the java_version of this JavaDownloadToken.
last_updated_by Gets the last_updated_by of this JavaDownloadToken.
license_type Gets the license_type of this JavaDownloadToken.
lifecycle_details Gets the lifecycle_details of this JavaDownloadToken.
lifecycle_state [Required] Gets the lifecycle_state of this JavaDownloadToken.
system_tags Gets the system_tags of this JavaDownloadToken.
time_created [Required] Gets the time_created of this JavaDownloadToken.
time_expires [Required] Gets the time_expires of this JavaDownloadToken.
time_last_used Gets the time_last_used of this JavaDownloadToken.
time_updated Gets the time_updated of this JavaDownloadToken.
value [Required] Gets the value of this JavaDownloadToken.

Methods

__init__(**kwargs) Initializes a new JavaDownloadToken object with values from keyword arguments.
LIFECYCLE_DETAILS_EXPIRED = 'EXPIRED'

A constant which can be used with the lifecycle_details property of a JavaDownloadToken. This constant has a value of “EXPIRED”

LIFECYCLE_DETAILS_REVOKED = 'REVOKED'

A constant which can be used with the lifecycle_details property of a JavaDownloadToken. This constant has a value of “REVOKED”

LIFECYCLE_DETAILS_REVOKING = 'REVOKING'

A constant which can be used with the lifecycle_details property of a JavaDownloadToken. This constant has a value of “REVOKING”

LIFECYCLE_STATE_ACTIVE = 'ACTIVE'

A constant which can be used with the lifecycle_state property of a JavaDownloadToken. This constant has a value of “ACTIVE”

LIFECYCLE_STATE_CREATING = 'CREATING'

A constant which can be used with the lifecycle_state property of a JavaDownloadToken. This constant has a value of “CREATING”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a JavaDownloadToken. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a JavaDownloadToken. This constant has a value of “DELETING”

LIFECYCLE_STATE_FAILED = 'FAILED'

A constant which can be used with the lifecycle_state property of a JavaDownloadToken. This constant has a value of “FAILED”

LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'

A constant which can be used with the lifecycle_state property of a JavaDownloadToken. This constant has a value of “NEEDS_ATTENTION”

LIFECYCLE_STATE_UPDATING = 'UPDATING'

A constant which can be used with the lifecycle_state property of a JavaDownloadToken. This constant has a value of “UPDATING”

__init__(**kwargs)

Initializes a new JavaDownloadToken object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this JavaDownloadToken.
  • display_name (str) – The value to assign to the display_name property of this JavaDownloadToken.
  • compartment_id (str) – The value to assign to the compartment_id property of this JavaDownloadToken.
  • created_by (oci.jms_java_downloads.models.Principal) – The value to assign to the created_by property of this JavaDownloadToken.
  • last_updated_by (oci.jms_java_downloads.models.Principal) – The value to assign to the last_updated_by property of this JavaDownloadToken.
  • description (str) – The value to assign to the description property of this JavaDownloadToken.
  • value (str) – The value to assign to the value property of this JavaDownloadToken.
  • time_created (datetime) – The value to assign to the time_created property of this JavaDownloadToken.
  • time_updated (datetime) – The value to assign to the time_updated property of this JavaDownloadToken.
  • time_last_used (datetime) – The value to assign to the time_last_used property of this JavaDownloadToken.
  • time_expires (datetime) – The value to assign to the time_expires property of this JavaDownloadToken.
  • java_version (str) – The value to assign to the java_version property of this JavaDownloadToken.
  • license_type (list[oci.jms_java_downloads.models.LicenseType]) – The value to assign to the license_type property of this JavaDownloadToken.
  • is_default (bool) – The value to assign to the is_default property of this JavaDownloadToken.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this JavaDownloadToken. Allowed values for this property are: “ACTIVE”, “CREATING”, “DELETED”, “DELETING”, “FAILED”, “NEEDS_ATTENTION”, “UPDATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • lifecycle_details (str) – The value to assign to the lifecycle_details property of this JavaDownloadToken. Allowed values for this property are: “EXPIRED”, “REVOKING”, “REVOKED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this JavaDownloadToken.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this JavaDownloadToken.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this JavaDownloadToken.
compartment_id

[Required] Gets the compartment_id of this JavaDownloadToken. The OCID of the tenancy scoped to the JavaDownloadToken.

Returns:The compartment_id of this JavaDownloadToken.
Return type:str
created_by

[Required] Gets the created_by of this JavaDownloadToken.

Returns:The created_by of this JavaDownloadToken.
Return type:oci.jms_java_downloads.models.Principal
defined_tags

Gets the defined_tags of this JavaDownloadToken. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}. (See Understanding Free-form Tags).

Returns:The defined_tags of this JavaDownloadToken.
Return type:dict(str, dict(str, object))
description

[Required] Gets the description of this JavaDownloadToken. User provided description of the JavaDownloadToken.

Returns:The description of this JavaDownloadToken.
Return type:str
display_name

[Required] Gets the display_name of this JavaDownloadToken. User provided display name of the JavaDownloadToken.

Returns:The display_name of this JavaDownloadToken.
Return type:str
freeform_tags

Gets the freeform_tags of this JavaDownloadToken. Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}. (See Managing Tags and Tag Namespaces.)

Returns:The freeform_tags of this JavaDownloadToken.
Return type:dict(str, str)
id

[Required] Gets the id of this JavaDownloadToken. The OCID of the JavaDownloadToken.

Returns:The id of this JavaDownloadToken.
Return type:str
is_default

Gets the is_default of this JavaDownloadToken. A flag to indicate if the token is default.

Returns:The is_default of this JavaDownloadToken.
Return type:bool
java_version

[Required] Gets the java_version of this JavaDownloadToken. The associated Java version of the JavaDownloadToken.

Returns:The java_version of this JavaDownloadToken.
Return type:str
last_updated_by

Gets the last_updated_by of this JavaDownloadToken.

Returns:The last_updated_by of this JavaDownloadToken.
Return type:oci.jms_java_downloads.models.Principal
license_type

Gets the license_type of this JavaDownloadToken. The license type(s) associated with the JavaDownloadToken.

Returns:The license_type of this JavaDownloadToken.
Return type:list[oci.jms_java_downloads.models.LicenseType]
lifecycle_details

Gets the lifecycle_details of this JavaDownloadToken. Possible lifecycle substates.

Allowed values for this property are: “EXPIRED”, “REVOKING”, “REVOKED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_details of this JavaDownloadToken.
Return type:str
lifecycle_state

[Required] Gets the lifecycle_state of this JavaDownloadToken. The current state of the JavaDownloadToken.

Allowed values for this property are: “ACTIVE”, “CREATING”, “DELETED”, “DELETING”, “FAILED”, “NEEDS_ATTENTION”, “UPDATING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this JavaDownloadToken.
Return type:str
system_tags

Gets the system_tags of this JavaDownloadToken. System tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. System tags can be viewed by users, but can only be created by the system.

Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this JavaDownloadToken.
Return type:dict(str, dict(str, object))
time_created

[Required] Gets the time_created of this JavaDownloadToken. The time the JavaDownloadToken was created. An RFC3339 formatted datetime string.

Returns:The time_created of this JavaDownloadToken.
Return type:datetime
time_expires

[Required] Gets the time_expires of this JavaDownloadToken. The expiry time of the JavaDownloadToken. An RFC3339 formatted datetime string.

Returns:The time_expires of this JavaDownloadToken.
Return type:datetime
time_last_used

Gets the time_last_used of this JavaDownloadToken. The time the JavaDownloadToken was last used for download. An RFC3339 formatted datetime string.

Returns:The time_last_used of this JavaDownloadToken.
Return type:datetime
time_updated

Gets the time_updated of this JavaDownloadToken. The time the JavaDownloadToken was updated. An RFC3339 formatted datetime string.

Returns:The time_updated of this JavaDownloadToken.
Return type:datetime
value

[Required] Gets the value of this JavaDownloadToken. Uniquely generated value for the JavaDownloadToken.

Returns:The value of this JavaDownloadToken.
Return type:str