File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/fleet_apps_management/models/activity_resource_target.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, 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: 20250228 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 ActivityResourceTarget(object): """ Activity Resource Target. """ #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "ACCEPTED" STATUS_ACCEPTED = "ACCEPTED" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "WAITING" STATUS_WAITING = "WAITING" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "IN_PROGRESS" STATUS_IN_PROGRESS = "IN_PROGRESS" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "FAILED" STATUS_FAILED = "FAILED" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "SUCCEEDED" STATUS_SUCCEEDED = "SUCCEEDED" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "CANCELED" STATUS_CANCELED = "CANCELED" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "SKIPPED" STATUS_SKIPPED = "SKIPPED" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "IGNORED" STATUS_IGNORED = "IGNORED" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "NOT_APPLICABLE" STATUS_NOT_APPLICABLE = "NOT_APPLICABLE" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "ABORTED" STATUS_ABORTED = "ABORTED" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "TIMED_OUT" STATUS_TIMED_OUT = "TIMED_OUT" #: A constant which can be used with the status property of a ActivityResourceTarget. #: This constant has a value of "PAUSED" STATUS_PAUSED = "PAUSED" def __init__(self, **kwargs): """ Initializes a new ActivityResourceTarget object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param target_name: The value to assign to the target_name property of this ActivityResourceTarget. :type target_name: str :param status: The value to assign to the status property of this ActivityResourceTarget. Allowed values for this property are: "ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELED", "SKIPPED", "IGNORED", "NOT_APPLICABLE", "ABORTED", "TIMED_OUT", "PAUSED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type status: str :param description: The value to assign to the description property of this ActivityResourceTarget. :type description: str """ self.swagger_types = { 'target_name': 'str', 'status': 'str', 'description': 'str' } self.attribute_map = { 'target_name': 'targetName', 'status': 'status', 'description': 'description' } self._target_name = None self._status = None self._description = None @property def target_name(self): """ **[Required]** Gets the target_name of this ActivityResourceTarget. Target Name. :return: The target_name of this ActivityResourceTarget. :rtype: str """ return self._target_name @target_name.setter def target_name(self, target_name): """ Sets the target_name of this ActivityResourceTarget. Target Name. :param target_name: The target_name of this ActivityResourceTarget. :type: str """ self._target_name = target_name @property def status(self): """ Gets the status of this ActivityResourceTarget. Status of the Job at target Level. Allowed values for this property are: "ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELED", "SKIPPED", "IGNORED", "NOT_APPLICABLE", "ABORTED", "TIMED_OUT", "PAUSED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The status of this ActivityResourceTarget. :rtype: str """ return self._status @status.setter def status(self, status): """ Sets the status of this ActivityResourceTarget. Status of the Job at target Level. :param status: The status of this ActivityResourceTarget. :type: str """ allowed_values = ["ACCEPTED", "WAITING", "IN_PROGRESS", "FAILED", "SUCCEEDED", "CANCELED", "SKIPPED", "IGNORED", "NOT_APPLICABLE", "ABORTED", "TIMED_OUT", "PAUSED"] if not value_allowed_none_or_none_sentinel(status, allowed_values): status = 'UNKNOWN_ENUM_VALUE' self._status = status @property def description(self): """ Gets the description of this ActivityResourceTarget. Description of the Execution status. If there are any errors, this can also include a short error message. :return: The description of this ActivityResourceTarget. :rtype: str """ return self._description @description.setter def description(self, description): """ Sets the description of this ActivityResourceTarget. Description of the Execution status. If there are any errors, this can also include a short error message. :param description: The description of this ActivityResourceTarget. :type: str """ self._description = description 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
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings