CreateDiscoveryJobDetails¶
- class oci.stack_monitoring.models.CreateDiscoveryJobDetails(**kwargs)¶
Bases:
objectThe request of DiscoveryJob details.
Attributes:
A constant which can be used with the discovery_type property of a CreateDiscoveryJobDetails.
A constant which can be used with the discovery_type property of a CreateDiscoveryJobDetails.
A constant which can be used with the discovery_type property of a CreateDiscoveryJobDetails.
[Required] Gets the compartment_id of this CreateDiscoveryJobDetails.
Gets the defined_tags of this CreateDiscoveryJobDetails.
Gets the discovery_client of this CreateDiscoveryJobDetails.
[Required] Gets the discovery_details of this CreateDiscoveryJobDetails.
Gets the discovery_type of this CreateDiscoveryJobDetails.
Gets the freeform_tags of this CreateDiscoveryJobDetails.
Gets the should_propagate_tags_to_discovered_resources of this CreateDiscoveryJobDetails.
Methods:
__init__(**kwargs)Initializes a new CreateDiscoveryJobDetails object with values from keyword arguments.
- DISCOVERY_TYPE_ADD = 'ADD'¶
A constant which can be used with the discovery_type property of a CreateDiscoveryJobDetails. This constant has a value of “ADD”
- DISCOVERY_TYPE_ADD_WITH_RETRY = 'ADD_WITH_RETRY'¶
A constant which can be used with the discovery_type property of a CreateDiscoveryJobDetails. This constant has a value of “ADD_WITH_RETRY”
- DISCOVERY_TYPE_REFRESH = 'REFRESH'¶
A constant which can be used with the discovery_type property of a CreateDiscoveryJobDetails. This constant has a value of “REFRESH”
- __init__(**kwargs)¶
Initializes a new CreateDiscoveryJobDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
discovery_type (str) – The value to assign to the discovery_type property of this CreateDiscoveryJobDetails. Allowed values for this property are: “ADD”, “ADD_WITH_RETRY”, “REFRESH”
discovery_client (str) – The value to assign to the discovery_client property of this CreateDiscoveryJobDetails.
compartment_id (str) – The value to assign to the compartment_id property of this CreateDiscoveryJobDetails.
discovery_details (oci.stack_monitoring.models.DiscoveryDetails) – The value to assign to the discovery_details property of this CreateDiscoveryJobDetails.
should_propagate_tags_to_discovered_resources (bool) – The value to assign to the should_propagate_tags_to_discovered_resources property of this CreateDiscoveryJobDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateDiscoveryJobDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateDiscoveryJobDetails.
- property compartment_id¶
[Required] Gets the compartment_id of this CreateDiscoveryJobDetails. The OCID of Compartment
- Returns
The compartment_id of this CreateDiscoveryJobDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateDiscoveryJobDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Returns
The defined_tags of this CreateDiscoveryJobDetails.
- Return type
dict(str, dict(str, object))
- property discovery_client¶
Gets the discovery_client of this CreateDiscoveryJobDetails. Client who submits discovery job.
- Returns
The discovery_client of this CreateDiscoveryJobDetails.
- Return type
str
- property discovery_details¶
[Required] Gets the discovery_details of this CreateDiscoveryJobDetails.
- Returns
The discovery_details of this CreateDiscoveryJobDetails.
- Return type
- property discovery_type¶
Gets the discovery_type of this CreateDiscoveryJobDetails. Add option submits new discovery Job. Add with retry option to re-submit failed discovery job. Refresh option refreshes the existing discovered resources.
Allowed values for this property are: “ADD”, “ADD_WITH_RETRY”, “REFRESH”
- Returns
The discovery_type of this CreateDiscoveryJobDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateDiscoveryJobDetails. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Returns
The freeform_tags of this CreateDiscoveryJobDetails.
- Return type
dict(str, str)
- property should_propagate_tags_to_discovered_resources¶
Gets the should_propagate_tags_to_discovered_resources of this CreateDiscoveryJobDetails. If this parameter set to true, the specified tags will be applied to all resources discovered in the current request. Default is true.
- Returns
The should_propagate_tags_to_discovered_resources of this CreateDiscoveryJobDetails.
- Return type
bool