| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.9/site-packages/oci/compute_instance_agent/models/ |
Upload File : |
# coding: utf-8
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20180530
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from oci.decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class InstanceAgentCommand(object):
"""
The command payload.
"""
def __init__(self, **kwargs):
"""
Initializes a new InstanceAgentCommand object with values from keyword arguments.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param id:
The value to assign to the id property of this InstanceAgentCommand.
:type id: str
:param compartment_id:
The value to assign to the compartment_id property of this InstanceAgentCommand.
:type compartment_id: str
:param display_name:
The value to assign to the display_name property of this InstanceAgentCommand.
:type display_name: str
:param time_created:
The value to assign to the time_created property of this InstanceAgentCommand.
:type time_created: datetime
:param time_updated:
The value to assign to the time_updated property of this InstanceAgentCommand.
:type time_updated: datetime
:param is_canceled:
The value to assign to the is_canceled property of this InstanceAgentCommand.
:type is_canceled: bool
:param execution_time_out_in_seconds:
The value to assign to the execution_time_out_in_seconds property of this InstanceAgentCommand.
:type execution_time_out_in_seconds: int
:param target:
The value to assign to the target property of this InstanceAgentCommand.
:type target: oci.compute_instance_agent.models.InstanceAgentCommandTarget
:param content:
The value to assign to the content property of this InstanceAgentCommand.
:type content: oci.compute_instance_agent.models.InstanceAgentCommandContent
"""
self.swagger_types = {
'id': 'str',
'compartment_id': 'str',
'display_name': 'str',
'time_created': 'datetime',
'time_updated': 'datetime',
'is_canceled': 'bool',
'execution_time_out_in_seconds': 'int',
'target': 'InstanceAgentCommandTarget',
'content': 'InstanceAgentCommandContent'
}
self.attribute_map = {
'id': 'id',
'compartment_id': 'compartmentId',
'display_name': 'displayName',
'time_created': 'timeCreated',
'time_updated': 'timeUpdated',
'is_canceled': 'isCanceled',
'execution_time_out_in_seconds': 'executionTimeOutInSeconds',
'target': 'target',
'content': 'content'
}
self._id = None
self._compartment_id = None
self._display_name = None
self._time_created = None
self._time_updated = None
self._is_canceled = None
self._execution_time_out_in_seconds = None
self._target = None
self._content = None
@property
def id(self):
"""
**[Required]** Gets the id of this InstanceAgentCommand.
The `OCID`__ of the command.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The id of this InstanceAgentCommand.
:rtype: str
"""
return self._id
@id.setter
def id(self, id):
"""
Sets the id of this InstanceAgentCommand.
The `OCID`__ of the command.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param id: The id of this InstanceAgentCommand.
:type: str
"""
self._id = id
@property
def compartment_id(self):
"""
**[Required]** Gets the compartment_id of this InstanceAgentCommand.
The `OCID`__ of the compartment containing the command.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:return: The compartment_id of this InstanceAgentCommand.
:rtype: str
"""
return self._compartment_id
@compartment_id.setter
def compartment_id(self, compartment_id):
"""
Sets the compartment_id of this InstanceAgentCommand.
The `OCID`__ of the compartment containing the command.
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
:param compartment_id: The compartment_id of this InstanceAgentCommand.
:type: str
"""
self._compartment_id = compartment_id
@property
def display_name(self):
"""
Gets the display_name of this InstanceAgentCommand.
A user-friendly name. Does not have to be unique. Avoid entering confidential information.
:return: The display_name of this InstanceAgentCommand.
:rtype: str
"""
return self._display_name
@display_name.setter
def display_name(self, display_name):
"""
Sets the display_name of this InstanceAgentCommand.
A user-friendly name. Does not have to be unique. Avoid entering confidential information.
:param display_name: The display_name of this InstanceAgentCommand.
:type: str
"""
self._display_name = display_name
@property
def time_created(self):
"""
Gets the time_created of this InstanceAgentCommand.
The date and time the command was created, in the format defined by
`RFC3339`__.
__ https://tools.ietf.org/html/rfc3339
:return: The time_created of this InstanceAgentCommand.
:rtype: datetime
"""
return self._time_created
@time_created.setter
def time_created(self, time_created):
"""
Sets the time_created of this InstanceAgentCommand.
The date and time the command was created, in the format defined by
`RFC3339`__.
__ https://tools.ietf.org/html/rfc3339
:param time_created: The time_created of this InstanceAgentCommand.
:type: datetime
"""
self._time_created = time_created
@property
def time_updated(self):
"""
Gets the time_updated of this InstanceAgentCommand.
The date and time the command was last updated, in the format defined by
`RFC3339`__.
__ https://tools.ietf.org/html/rfc3339
:return: The time_updated of this InstanceAgentCommand.
:rtype: datetime
"""
return self._time_updated
@time_updated.setter
def time_updated(self, time_updated):
"""
Sets the time_updated of this InstanceAgentCommand.
The date and time the command was last updated, in the format defined by
`RFC3339`__.
__ https://tools.ietf.org/html/rfc3339
:param time_updated: The time_updated of this InstanceAgentCommand.
:type: datetime
"""
self._time_updated = time_updated
@property
def is_canceled(self):
"""
Gets the is_canceled of this InstanceAgentCommand.
Whether a request was made to cancel the command. Canceling a command is a best-effort attempt.
:return: The is_canceled of this InstanceAgentCommand.
:rtype: bool
"""
return self._is_canceled
@is_canceled.setter
def is_canceled(self, is_canceled):
"""
Sets the is_canceled of this InstanceAgentCommand.
Whether a request was made to cancel the command. Canceling a command is a best-effort attempt.
:param is_canceled: The is_canceled of this InstanceAgentCommand.
:type: bool
"""
self._is_canceled = is_canceled
@property
def execution_time_out_in_seconds(self):
"""
Gets the execution_time_out_in_seconds of this InstanceAgentCommand.
The amount of time that Oracle Cloud Agent is given to run the command on the instance before timing
out. The timer starts when Oracle Cloud Agent starts the command. Zero means no timeout.
:return: The execution_time_out_in_seconds of this InstanceAgentCommand.
:rtype: int
"""
return self._execution_time_out_in_seconds
@execution_time_out_in_seconds.setter
def execution_time_out_in_seconds(self, execution_time_out_in_seconds):
"""
Sets the execution_time_out_in_seconds of this InstanceAgentCommand.
The amount of time that Oracle Cloud Agent is given to run the command on the instance before timing
out. The timer starts when Oracle Cloud Agent starts the command. Zero means no timeout.
:param execution_time_out_in_seconds: The execution_time_out_in_seconds of this InstanceAgentCommand.
:type: int
"""
self._execution_time_out_in_seconds = execution_time_out_in_seconds
@property
def target(self):
"""
**[Required]** Gets the target of this InstanceAgentCommand.
The target instance that the command runs on.
:return: The target of this InstanceAgentCommand.
:rtype: oci.compute_instance_agent.models.InstanceAgentCommandTarget
"""
return self._target
@target.setter
def target(self, target):
"""
Sets the target of this InstanceAgentCommand.
The target instance that the command runs on.
:param target: The target of this InstanceAgentCommand.
:type: oci.compute_instance_agent.models.InstanceAgentCommandTarget
"""
self._target = target
@property
def content(self):
"""
**[Required]** Gets the content of this InstanceAgentCommand.
The contents of the command.
:return: The content of this InstanceAgentCommand.
:rtype: oci.compute_instance_agent.models.InstanceAgentCommandContent
"""
return self._content
@content.setter
def content(self, content):
"""
Sets the content of this InstanceAgentCommand.
The contents of the command.
:param content: The content of this InstanceAgentCommand.
:type: oci.compute_instance_agent.models.InstanceAgentCommandContent
"""
self._content = content
def __repr__(self):
return formatted_flat_dict(self)
def __eq__(self, other):
if other is None:
return False
return self.__dict__ == other.__dict__
def __ne__(self, other):
return not self == other