FleetResource¶
- class oci.fleet_apps_management.models.FleetResource(**kwargs)¶
Bases:
objectResource added to a fleet in Fleet Application Management.
Attributes:
A constant which can be used with the compliance_state property of a FleetResource.
A constant which can be used with the compliance_state property of a FleetResource.
A constant which can be used with the compliance_state property of a FleetResource.
A constant which can be used with the compliance_state property of a FleetResource.
A constant which can be used with the lifecycle_state property of a FleetResource.
A constant which can be used with the lifecycle_state property of a FleetResource.
A constant which can be used with the lifecycle_state property of a FleetResource.
A constant which can be used with the lifecycle_state property of a FleetResource.
Gets the compartment of this FleetResource.
[Required] Gets the compartment_id of this FleetResource.
Gets the compliance_state of this FleetResource.
[Required] Gets the display_name of this FleetResource.
Gets the environment_type of this FleetResource.
[Required] Gets the id of this FleetResource.
Gets the lifecycle_details of this FleetResource.
[Required] Gets the lifecycle_state of this FleetResource.
Gets the percent_compliant of this FleetResource.
Gets the product of this FleetResource.
Gets the product_count of this FleetResource.
[Required] Gets the resource_id of this FleetResource.
Gets the resource_region of this FleetResource.
[Required] Gets the resource_type of this FleetResource.
Gets the system_tags of this FleetResource.
Gets the target_count of this FleetResource.
[Required] Gets the tenancy_id of this FleetResource.
Gets the tenancy_name of this FleetResource.
[Required] Gets the time_created of this FleetResource.
Gets the time_updated of this FleetResource.
Methods:
__init__(**kwargs)Initializes a new FleetResource object with values from keyword arguments.
- COMPLIANCE_STATE_COMPLIANT = 'COMPLIANT'¶
A constant which can be used with the compliance_state property of a FleetResource. 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 FleetResource. 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 FleetResource. This constant has a value of “UNKNOWN”
- COMPLIANCE_STATE_WARNING = 'WARNING'¶
A constant which can be used with the compliance_state property of a FleetResource. This constant has a value of “WARNING”
- LIFECYCLE_STATE_ACTIVE = 'ACTIVE'¶
A constant which can be used with the lifecycle_state property of a FleetResource. This constant has a value of “ACTIVE”
- LIFECYCLE_STATE_DELETED = 'DELETED'¶
A constant which can be used with the lifecycle_state property of a FleetResource. This constant has a value of “DELETED”
- LIFECYCLE_STATE_FAILED = 'FAILED'¶
A constant which can be used with the lifecycle_state property of a FleetResource. 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 FleetResource. This constant has a value of “NEEDS_ATTENTION”
- __init__(**kwargs)¶
Initializes a new FleetResource 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 FleetResource.
tenancy_id (str) – The value to assign to the tenancy_id property of this FleetResource.
resource_region (str) – The value to assign to the resource_region property of this FleetResource.
time_created (datetime) – The value to assign to the time_created property of this FleetResource.
time_updated (datetime) – The value to assign to the time_updated property of this FleetResource.
compartment_id (str) – The value to assign to the compartment_id property of this FleetResource.
display_name (str) – The value to assign to the display_name property of this FleetResource.
resource_id (str) – The value to assign to the resource_id property of this FleetResource.
compartment (str) – The value to assign to the compartment property of this FleetResource.
compliance_state (str) – The value to assign to the compliance_state property of this FleetResource. 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’.
percent_compliant (float) – The value to assign to the percent_compliant property of this FleetResource.
tenancy_name (str) – The value to assign to the tenancy_name property of this FleetResource.
resource_type (str) – The value to assign to the resource_type property of this FleetResource.
product_count (int) – The value to assign to the product_count property of this FleetResource.
target_count (int) – The value to assign to the target_count property of this FleetResource.
product (str) – The value to assign to the product property of this FleetResource.
environment_type (str) – The value to assign to the environment_type property of this FleetResource.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this FleetResource. Allowed values for this property are: “ACTIVE”, “DELETED”, “FAILED”, “NEEDS_ATTENTION”, ‘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 FleetResource.
system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this FleetResource.
- property compartment¶
Gets the compartment of this FleetResource. Resource Compartment name.
- Returns
The compartment of this FleetResource.
- Return type
str
- property compartment_id¶
[Required] Gets the compartment_id of this FleetResource. OCID of the compartment to which the resource belongs to.
- Returns
The compartment_id of this FleetResource.
- Return type
str
- property compliance_state¶
Gets the compliance_state of this FleetResource. Compliance State of the Resource.
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 FleetResource.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this FleetResource. 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 FleetResource.
- Return type
str
- property environment_type¶
Gets the environment_type of this FleetResource. Environment Type associated with the Fleet when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
- Returns
The environment_type of this FleetResource.
- Return type
str
- property id¶
[Required] Gets the id of this FleetResource. The unique id of the resource.
- Returns
The id of this FleetResource.
- Return type
str
- property lifecycle_details¶
Gets the lifecycle_details of this FleetResource. A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Returns
The lifecycle_details of this FleetResource.
- Return type
str
- property lifecycle_state¶
[Required] Gets the lifecycle_state of this FleetResource. The current state of the FleetResource.
Allowed values for this property are: “ACTIVE”, “DELETED”, “FAILED”, “NEEDS_ATTENTION”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The lifecycle_state of this FleetResource.
- Return type
str
- property percent_compliant¶
Gets the percent_compliant of this FleetResource. The compliance percentage.
- Returns
The percent_compliant of this FleetResource.
- Return type
float
- property product¶
Gets the product of this FleetResource. Product associated with the resource when the resource type is fleet. Will only be returned for PRODUCT fleets that are part of a GROUP Fleet.
- Returns
The product of this FleetResource.
- Return type
str
- property product_count¶
Gets the product_count of this FleetResource. Count of products within the resource.
- Returns
The product_count of this FleetResource.
- Return type
int
- property resource_id¶
[Required] Gets the resource_id of this FleetResource. The OCID of the resource.
- Returns
The resource_id of this FleetResource.
- Return type
str
- property resource_region¶
Gets the resource_region of this FleetResource. Associated region
- Returns
The resource_region of this FleetResource.
- Return type
str
- property resource_type¶
[Required] Gets the resource_type of this FleetResource. Type of the Resource.
- Returns
The resource_type of this FleetResource.
- Return type
str
- property system_tags¶
Gets the system_tags of this FleetResource. 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 FleetResource.
- Return type
dict(str, dict(str, object))
- property target_count¶
Gets the target_count of this FleetResource. Count of targets within the resource.
- Returns
The target_count of this FleetResource.
- Return type
int
- property tenancy_id¶
[Required] Gets the tenancy_id of this FleetResource. OCID of the tenancy to which the resource belongs to.
- Returns
The tenancy_id of this FleetResource.
- Return type
str
- property tenancy_name¶
Gets the tenancy_name of this FleetResource. Resource Tenancy Name.
- Returns
The tenancy_name of this FleetResource.
- Return type
str
- property time_created¶
[Required] Gets the time_created of this FleetResource. The time this resource was created. An RFC3339 formatted datetime string.
- Returns
The time_created of this FleetResource.
- Return type
datetime
- property time_updated¶
Gets the time_updated of this FleetResource. The time this resource was last updated. An RFC3339 formatted datetime string.
- Returns
The time_updated of this FleetResource.
- Return type
datetime