InstanceAgentCommandSourceViaTextDetails

class oci.compute_instance_agent.models.InstanceAgentCommandSourceViaTextDetails(**kwargs)

Bases: oci.compute_instance_agent.models.instance_agent_command_source_details.InstanceAgentCommandSourceDetails

The source of the command when provided using plain text.

Attributes

SOURCE_TYPE_OBJECT_STORAGE_TUPLE str(object=’’) -> str
SOURCE_TYPE_OBJECT_STORAGE_URI str(object=’’) -> str
SOURCE_TYPE_TEXT str(object=’’) -> str
source_type [Required] Gets the source_type of this InstanceAgentCommandSourceDetails.
text [Required] Gets the text of this InstanceAgentCommandSourceViaTextDetails.
text_sha256 Gets the text_sha256 of this InstanceAgentCommandSourceViaTextDetails.

Methods

__init__(**kwargs) Initializes a new InstanceAgentCommandSourceViaTextDetails 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.
SOURCE_TYPE_OBJECT_STORAGE_TUPLE = 'OBJECT_STORAGE_TUPLE'
SOURCE_TYPE_OBJECT_STORAGE_URI = 'OBJECT_STORAGE_URI'
SOURCE_TYPE_TEXT = 'TEXT'
__init__(**kwargs)

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

Parameters:
  • source_type (str) – The value to assign to the source_type property of this InstanceAgentCommandSourceViaTextDetails. Allowed values for this property are: “TEXT”, “OBJECT_STORAGE_URI”, “OBJECT_STORAGE_TUPLE”
  • text (str) – The value to assign to the text property of this InstanceAgentCommandSourceViaTextDetails.
  • text_sha256 (str) – The value to assign to the text_sha256 property of this InstanceAgentCommandSourceViaTextDetails.
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.

source_type

[Required] Gets the source_type of this InstanceAgentCommandSourceDetails. The source type for the command. The following values are supported:

  • TEXT - uses a plain text command that is specified inline with the request.
  • OBJECT_STORAGE_URI - imports a command from an Object Storage URL.
  • OBJECT_STORAGE_TUPLE - imports a command from an Object Storage bucket.

For background information about Object Storage buckets and URLs, see Overview of Object Storage.

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

Returns:The source_type of this InstanceAgentCommandSourceDetails.
Return type:str
text

[Required] Gets the text of this InstanceAgentCommandSourceViaTextDetails. The plain text command.

Returns:The text of this InstanceAgentCommandSourceViaTextDetails.
Return type:str
text_sha256

Gets the text_sha256 of this InstanceAgentCommandSourceViaTextDetails. SHA-256 checksum value of the text content.

Returns:The text_sha256 of this InstanceAgentCommandSourceViaTextDetails.
Return type:str