KubernetesClusterDataSource

class oci.management_agent.models.KubernetesClusterDataSource(**kwargs)

Bases: oci.management_agent.models.data_source.DataSource

A Kubernetes cluster data source.

Attributes

STATE_ACTIVE str(object=’’) -> str
STATE_CREATING str(object=’’) -> str
STATE_DELETED str(object=’’) -> str
STATE_DELETING str(object=’’) -> str
STATE_FAILED str(object=’’) -> str
STATE_INACTIVE str(object=’’) -> str
STATE_TERMINATED str(object=’’) -> str
STATE_UPDATING str(object=’’) -> str
TYPE_KUBERNETES_CLUSTER str(object=’’) -> str
TYPE_PROMETHEUS_EMITTER str(object=’’) -> str
compartment_id [Required] Gets the compartment_id of this DataSource.
is_daemon_set Gets the is_daemon_set of this KubernetesClusterDataSource.
key [Required] Gets the key of this DataSource.
name [Required] Gets the name of this DataSource.
namespace [Required] Gets the namespace of this KubernetesClusterDataSource.
state [Required] Gets the state of this DataSource.
time_created [Required] Gets the time_created of this DataSource.
time_updated [Required] Gets the time_updated of this DataSource.
type [Required] Gets the type of this DataSource.

Methods

__init__(**kwargs) Initializes a new KubernetesClusterDataSource 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.
STATE_ACTIVE = 'ACTIVE'
STATE_CREATING = 'CREATING'
STATE_DELETED = 'DELETED'
STATE_DELETING = 'DELETING'
STATE_FAILED = 'FAILED'
STATE_INACTIVE = 'INACTIVE'
STATE_TERMINATED = 'TERMINATED'
STATE_UPDATING = 'UPDATING'
TYPE_KUBERNETES_CLUSTER = 'KUBERNETES_CLUSTER'
TYPE_PROMETHEUS_EMITTER = 'PROMETHEUS_EMITTER'
__init__(**kwargs)

Initializes a new KubernetesClusterDataSource object with values from keyword arguments. The default value of the type attribute of this class is KUBERNETES_CLUSTER and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • key (str) – The value to assign to the key property of this KubernetesClusterDataSource.
  • type (str) – The value to assign to the type property of this KubernetesClusterDataSource. Allowed values for this property are: “KUBERNETES_CLUSTER”, “PROMETHEUS_EMITTER”
  • name (str) – The value to assign to the name property of this KubernetesClusterDataSource.
  • compartment_id (str) – The value to assign to the compartment_id property of this KubernetesClusterDataSource.
  • state (str) – The value to assign to the state property of this KubernetesClusterDataSource. Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “TERMINATED”, “DELETING”, “DELETED”, “FAILED”
  • time_created (datetime) – The value to assign to the time_created property of this KubernetesClusterDataSource.
  • time_updated (datetime) – The value to assign to the time_updated property of this KubernetesClusterDataSource.
  • namespace (str) – The value to assign to the namespace property of this KubernetesClusterDataSource.
  • is_daemon_set (bool) – The value to assign to the is_daemon_set property of this KubernetesClusterDataSource.
compartment_id

[Required] Gets the compartment_id of this DataSource. Compartment owning this DataSource.

Returns:The compartment_id of this DataSource.
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.

is_daemon_set

Gets the is_daemon_set of this KubernetesClusterDataSource. If the Kubernetes cluster type is Daemon set then this will be set to true.

Returns:The is_daemon_set of this KubernetesClusterDataSource.
Return type:bool
key

[Required] Gets the key of this DataSource. Identifier for DataSource. This represents the type and name for the data source associated with the Management Agent.

Returns:The key of this DataSource.
Return type:str
name

[Required] Gets the name of this DataSource. Unique name of the DataSource.

Returns:The name of this DataSource.
Return type:str
namespace

[Required] Gets the namespace of this KubernetesClusterDataSource. The Kubernetes namespace

Returns:The namespace of this KubernetesClusterDataSource.
Return type:str
state

[Required] Gets the state of this DataSource. State of the DataSource.

Allowed values for this property are: “CREATING”, “UPDATING”, “ACTIVE”, “INACTIVE”, “TERMINATED”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The state of this DataSource.
Return type:str
time_created

[Required] Gets the time_created of this DataSource. The time the DataSource was created. An RFC3339 formatted datetime string

Returns:The time_created of this DataSource.
Return type:datetime
time_updated

[Required] Gets the time_updated of this DataSource. The time the DataSource data was last received. An RFC3339 formatted datetime string

Returns:The time_updated of this DataSource.
Return type:datetime
type

[Required] Gets the type of this DataSource. The type of the DataSource.

Allowed values for this property are: “KUBERNETES_CLUSTER”, “PROMETHEUS_EMITTER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this DataSource.
Return type:str