CreateDataSourceDetails¶
- class oci.management_agent.models.CreateDataSourceDetails(**kwargs)¶
Bases:
objectA new data source.
Attributes:
A constant which can be used with the type property of a CreateDataSourceDetails.
A constant which can be used with the type property of a CreateDataSourceDetails.
[Required] Gets the compartment_id of this CreateDataSourceDetails.
[Required] Gets the name of this CreateDataSourceDetails.
[Required] Gets the type of this CreateDataSourceDetails.
Methods:
__init__(**kwargs)Initializes a new CreateDataSourceDetails object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- TYPE_KUBERNETES_CLUSTER = 'KUBERNETES_CLUSTER'¶
A constant which can be used with the type property of a CreateDataSourceDetails. This constant has a value of “KUBERNETES_CLUSTER”
- TYPE_PROMETHEUS_EMITTER = 'PROMETHEUS_EMITTER'¶
A constant which can be used with the type property of a CreateDataSourceDetails. This constant has a value of “PROMETHEUS_EMITTER”
- __init__(**kwargs)¶
Initializes a new CreateDataSourceDetails object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:
The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
type (str) – The value to assign to the type property of this CreateDataSourceDetails. Allowed values for this property are: “KUBERNETES_CLUSTER”, “PROMETHEUS_EMITTER”
name (str) – The value to assign to the name property of this CreateDataSourceDetails.
compartment_id (str) – The value to assign to the compartment_id property of this CreateDataSourceDetails.
- property compartment_id¶
[Required] Gets the compartment_id of this CreateDataSourceDetails. Compartment owning this DataSource.
- Returns
The compartment_id of this CreateDataSourceDetails.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property name¶
[Required] Gets the name of this CreateDataSourceDetails. Unique name of the DataSource.
- Returns
The name of this CreateDataSourceDetails.
- Return type
str
- property type¶
[Required] Gets the type of this CreateDataSourceDetails. The type of the DataSource.
Allowed values for this property are: “KUBERNETES_CLUSTER”, “PROMETHEUS_EMITTER”
- Returns
The type of this CreateDataSourceDetails.
- Return type
str