CreateClusterKubeconfigContentDetails

class oci.container_engine.models.CreateClusterKubeconfigContentDetails(**kwargs)

Bases: object

The properties that define a request to create a cluster kubeconfig.

Attributes

ENDPOINT_LEGACY_KUBERNETES A constant which can be used with the endpoint property of a CreateClusterKubeconfigContentDetails.
ENDPOINT_PRIVATE_ENDPOINT A constant which can be used with the endpoint property of a CreateClusterKubeconfigContentDetails.
ENDPOINT_PUBLIC_ENDPOINT A constant which can be used with the endpoint property of a CreateClusterKubeconfigContentDetails.
ENDPOINT_VCN_HOSTNAME A constant which can be used with the endpoint property of a CreateClusterKubeconfigContentDetails.
endpoint Gets the endpoint of this CreateClusterKubeconfigContentDetails.
expiration Gets the expiration of this CreateClusterKubeconfigContentDetails.
token_version Gets the token_version of this CreateClusterKubeconfigContentDetails.

Methods

__init__(**kwargs) Initializes a new CreateClusterKubeconfigContentDetails object with values from keyword arguments.
ENDPOINT_LEGACY_KUBERNETES = 'LEGACY_KUBERNETES'

A constant which can be used with the endpoint property of a CreateClusterKubeconfigContentDetails. This constant has a value of “LEGACY_KUBERNETES”

ENDPOINT_PRIVATE_ENDPOINT = 'PRIVATE_ENDPOINT'

A constant which can be used with the endpoint property of a CreateClusterKubeconfigContentDetails. This constant has a value of “PRIVATE_ENDPOINT”

ENDPOINT_PUBLIC_ENDPOINT = 'PUBLIC_ENDPOINT'

A constant which can be used with the endpoint property of a CreateClusterKubeconfigContentDetails. This constant has a value of “PUBLIC_ENDPOINT”

ENDPOINT_VCN_HOSTNAME = 'VCN_HOSTNAME'

A constant which can be used with the endpoint property of a CreateClusterKubeconfigContentDetails. This constant has a value of “VCN_HOSTNAME”

__init__(**kwargs)

Initializes a new CreateClusterKubeconfigContentDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • token_version (str) – The value to assign to the token_version property of this CreateClusterKubeconfigContentDetails.
  • expiration (int) – The value to assign to the expiration property of this CreateClusterKubeconfigContentDetails.
  • endpoint (str) – The value to assign to the endpoint property of this CreateClusterKubeconfigContentDetails. Allowed values for this property are: “LEGACY_KUBERNETES”, “PUBLIC_ENDPOINT”, “PRIVATE_ENDPOINT”, “VCN_HOSTNAME”
endpoint

Gets the endpoint of this CreateClusterKubeconfigContentDetails. The endpoint to target. A cluster may have multiple endpoints exposed but the kubeconfig can only target one at a time.

Allowed values for this property are: “LEGACY_KUBERNETES”, “PUBLIC_ENDPOINT”, “PRIVATE_ENDPOINT”, “VCN_HOSTNAME”

Returns:The endpoint of this CreateClusterKubeconfigContentDetails.
Return type:str
expiration

Gets the expiration of this CreateClusterKubeconfigContentDetails. Deprecated. This field is no longer used.

Returns:The expiration of this CreateClusterKubeconfigContentDetails.
Return type:int
token_version

Gets the token_version of this CreateClusterKubeconfigContentDetails. The version of the kubeconfig token. Supported value 2.0.0

Returns:The token_version of this CreateClusterKubeconfigContentDetails.
Return type:str