FleetTarget¶
- class oci.fleet_apps_management.models.FleetTarget(**kwargs)¶
Bases:
objectA confirmed target within a fleet.
Attributes:
A constant which can be used with the compliance_state property of a FleetTarget.
A constant which can be used with the compliance_state property of a FleetTarget.
A constant which can be used with the compliance_state property of a FleetTarget.
A constant which can be used with the compliance_state property of a FleetTarget.
A constant which can be used with the lifecycle_state property of a FleetTarget.
A constant which can be used with the lifecycle_state property of a FleetTarget.
A constant which can be used with the lifecycle_state property of a FleetTarget.
Gets the compartment_id of this FleetTarget.
Gets the compliance_state of this FleetTarget.
[Required] Gets the display_name of this FleetTarget.
[Required] Gets the id of this FleetTarget.
Gets the is_last_discovery_attempt_successful of this FleetTarget.
Gets the lifecycle_state of this FleetTarget.
Gets the product of this FleetTarget.
Gets the resource of this FleetTarget.
Gets the system_tags of this FleetTarget.
Gets the time_created of this FleetTarget.
Gets the time_of_last_discovery_attempt of this FleetTarget.
Gets the time_of_last_successful_discovery of this FleetTarget.
Gets the version of this FleetTarget.
Methods:
__init__(**kwargs)Initializes a new FleetTarget object with values from keyword arguments.
- COMPLIANCE_STATE_COMPLIANT = 'COMPLIANT'¶
A constant which can be used with the compliance_state property of a FleetTarget. This constant has a value of “COMPLIANT”
- COMPLIANCE_STATE_NON_COMPLIANT = 'NON_COMPLIANT'¶
A constant which can be used with the compliance_state property of a FleetTarget. This constant has a value of “NON_COMPLIANT”
- COMPLIANCE_STATE_UNKNOWN = 'UNKNOWN'¶
A constant which can be used with the compliance_state property of a FleetTarget. This constant has a value of “UNKNOWN”
- COMPLIANCE_STATE_WARNING = 'WARNING'¶
A constant which can be used with the compliance_state property of a FleetTarget. This constant has a value of “WARNING”
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a FleetTarget. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_DELETED = 'DELETED'¶
A constant which can be used with the lifecycle_state property of a FleetTarget. This constant has a value of “DELETED”
- LIFECYCLE_STATE_FAILED = 'FAILED'¶
A constant which can be used with the lifecycle_state property of a FleetTarget. This constant has a value of “FAILED”
- __init__(**kwargs)¶
Initializes a new FleetTarget 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 FleetTarget.
compartment_id (str) – The value to assign to the compartment_id property of this FleetTarget.
display_name (str) – The value to assign to the display_name property of this FleetTarget.
time_created (datetime) – The value to assign to the time_created property of this FleetTarget.
version (str) – The value to assign to the version property of this FleetTarget.
product (str) – The value to assign to the product property of this FleetTarget.
resource (oci.fleet_apps_management.models.TargetResource) – The value to assign to the resource property of this FleetTarget.
compliance_state (str) – The value to assign to the compliance_state property of this FleetTarget. Allowed values for this property are: “UNKNOWN”, “COMPLIANT”, “NON_COMPLIANT”, “WARNING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
time_of_last_successful_discovery (datetime) – The value to assign to the time_of_last_successful_discovery property of this FleetTarget.
time_of_last_discovery_attempt (datetime) – The value to assign to the time_of_last_discovery_attempt property of this FleetTarget.
is_last_discovery_attempt_successful (bool) – The value to assign to the is_last_discovery_attempt_successful property of this FleetTarget.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this FleetTarget. Allowed values for this property are: “ACTIVE”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this FleetTarget.
- property compartment_id¶
Gets the compartment_id of this FleetTarget. compartment OCID
- Returns
The compartment_id of this FleetTarget.
- Return type
str
- property compliance_state¶
Gets the compliance_state of this FleetTarget. The last known compliance state of the target.
Allowed values for this property are: “UNKNOWN”, “COMPLIANT”, “NON_COMPLIANT”, “WARNING”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The compliance_state of this FleetTarget.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this FleetTarget. A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information.
Example: My new resource
- Returns
The display_name of this FleetTarget.
- Return type
str
- property id¶
[Required] Gets the id of this FleetTarget. The OCID of the resource.
- Returns
The id of this FleetTarget.
- Return type
str
- property is_last_discovery_attempt_successful¶
Gets the is_last_discovery_attempt_successful of this FleetTarget. A boolean flag that represents whether the last discovery attempt was successful.
- Returns
The is_last_discovery_attempt_successful of this FleetTarget.
- Return type
bool
- property lifecycle_state¶
Gets the lifecycle_state of this FleetTarget. The current state of the FleetTarget.
Allowed values for this property are: “ACTIVE”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this FleetTarget.
- Return type
str
- property product¶
Gets the product of this FleetTarget. Product to which the target belongs to.
- Returns
The product of this FleetTarget.
- Return type
str
- property resource¶
Gets the resource of this FleetTarget.
- Returns
The resource of this FleetTarget.
- Return type
- property system_tags¶
Gets the system_tags of this FleetTarget. System tags for this resource. Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Returns
The system_tags of this FleetTarget.
- Return type
dict(str, dict(str, object))
- property time_created¶
Gets the time_created of this FleetTarget. The time this resource was created. An RFC3339 formatted datetime string.
- Returns
The time_created of this FleetTarget.
- Return type
datetime
- property time_of_last_discovery_attempt¶
Gets the time_of_last_discovery_attempt of this FleetTarget. The time when last discovery was attempted.
- Returns
The time_of_last_discovery_attempt of this FleetTarget.
- Return type
datetime
- property time_of_last_successful_discovery¶
Gets the time_of_last_successful_discovery of this FleetTarget. The time when the last successful discovery was made.
- Returns
The time_of_last_successful_discovery of this FleetTarget.
- Return type
datetime
- property version¶
Gets the version of this FleetTarget. Current version of target.
- Returns
The version of this FleetTarget.
- Return type
str