From f9b5b671c2fd8f5e3c83d2fd3cf1baa4cca19fa1 Mon Sep 17 00:00:00 2001 From: API Engineering Date: Wed, 20 May 2026 12:58:17 +0000 Subject: [PATCH] [bot] Updated client based on openapi-6fd6c99/clientgen --- DO_OPENAPI_COMMIT_SHA.txt | 2 +- src/pydo/aio/operations/_operations.py | 161 ++++++++++++++++++++++- src/pydo/operations/_operations.py | 169 ++++++++++++++++++++++++- 3 files changed, 324 insertions(+), 8 deletions(-) diff --git a/DO_OPENAPI_COMMIT_SHA.txt b/DO_OPENAPI_COMMIT_SHA.txt index ca9b12e..55e0e42 100644 --- a/DO_OPENAPI_COMMIT_SHA.txt +++ b/DO_OPENAPI_COMMIT_SHA.txt @@ -1 +1 @@ -a1cee6c +6fd6c99 diff --git a/src/pydo/aio/operations/_operations.py b/src/pydo/aio/operations/_operations.py index b229f68..bc56655 100644 --- a/src/pydo/aio/operations/_operations.py +++ b/src/pydo/aio/operations/_operations.py @@ -149330,6 +149330,19 @@ async def list_clusters( "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is + False. Indicates whether SSO authentication is enabled for the + cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL + for the identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is + False. Indicates whether any non-SSO forms of authentication are + disallowed. Can only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -149617,6 +149630,17 @@ async def create_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID registered with + the identity provider. Required when ``enabled`` is ``true``. + "enabled": False, # Optional. Default value is False. Indicates + whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. Indicates + whether any non-SSO forms of authentication are disallowed. Can only be set + to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -149817,6 +149841,18 @@ async def create_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -150048,6 +150084,18 @@ async def create_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -150265,6 +150313,17 @@ async def create_cluster(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> J }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID registered with + the identity provider. Required when ``enabled`` is ``true``. + "enabled": False, # Optional. Default value is False. Indicates + whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. Indicates + whether any non-SSO forms of authentication are disallowed. Can only be set + to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -150465,6 +150524,18 @@ async def create_cluster(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> J }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -150760,6 +150831,18 @@ async def get_cluster(self, cluster_id: str, **kwargs: Any) -> JSON: }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -150976,6 +151059,17 @@ async def update_cluster( "enabled": bool # Optional. Indicates whether the routing-agent component is enabled. }, + "sso": { + "client_id": "str", # Optional. The OIDC client ID registered with + the identity provider. Required when ``enabled`` is ``true``. + "enabled": False, # Optional. Default value is False. Indicates + whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. Indicates + whether any non-SSO forms of authentication are disallowed. Can only be set + to ``true`` when ``enabled`` is ``true``. + }, "surge_upgrade": False, # Optional. Default value is False. A boolean value indicating whether surge upgrade is enabled/disabled for the cluster. Surge upgrade makes cluster upgrades fast and reliable by bringing up new nodes before @@ -151161,6 +151255,18 @@ async def update_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -151404,6 +151510,18 @@ async def update_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -151536,6 +151654,17 @@ async def update_cluster( "enabled": bool # Optional. Indicates whether the routing-agent component is enabled. }, + "sso": { + "client_id": "str", # Optional. The OIDC client ID registered with + the identity provider. Required when ``enabled`` is ``true``. + "enabled": False, # Optional. Default value is False. Indicates + whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. Indicates + whether any non-SSO forms of authentication are disallowed. Can only be set + to ``true`` when ``enabled`` is ``true``. + }, "surge_upgrade": False, # Optional. Default value is False. A boolean value indicating whether surge upgrade is enabled/disabled for the cluster. Surge upgrade makes cluster upgrades fast and reliable by bringing up new nodes before @@ -151721,6 +151850,18 @@ async def update_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -152465,7 +152606,12 @@ async def destroy_associated_resources_dangerous( @distributed_trace_async async def get_kubeconfig( - self, cluster_id: str, *, expiry_seconds: int = 0, **kwargs: Any + self, + cluster_id: str, + *, + expiry_seconds: int = 0, + type: Optional[str] = None, + **kwargs: Any ) -> Optional[JSON]: # pylint: disable=line-too-long """Retrieve the kubeconfig for a Kubernetes Cluster. @@ -152487,9 +152633,12 @@ async def get_kubeconfig( passing a duration in seconds as a query parameter to ``/v2/kubernetes/clusters/$K8S_CLUSTER_ID/kubeconfig?expiry_seconds=$DURATION_IN_SECONDS``. If not set or 0, then the token will have a 7 day expiry. The query parameter - has no impact in certificate-based authentication. + has no impact for other kubeconfig types. + + Using an ``sso`` kubeconfig type requires ``doctl`` to be installed to handle the client side + of the OAuth2 flow. - Kubernetes Roles granted to a user with a token-based kubeconfig are derived from that user's + Kubernetes Roles granted to a user are derived from that user's DigitalOcean role. Predefined roles (Owner, Member, Modifier etc.) have an automatic mapping to Kubernetes roles. Custom roles are not automatically mapped to any Kubernetes roles, and require `additional configuration @@ -152501,6 +152650,11 @@ async def get_kubeconfig( :keyword expiry_seconds: The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry. Default value is 0. :paramtype expiry_seconds: int + :keyword type: The type of credentials to return in the kubeconfig. When omitted, the + default credential type for the cluster is used: ``sso`` for clusters with SSO enabled, + ``token`` for clusters without SSO enabled. Known values are: "token" and "sso". Default value + is None. + :paramtype type: str :return: JSON object or None :rtype: JSON or None :raises ~azure.core.exceptions.HttpResponseError: @@ -152541,6 +152695,7 @@ async def get_kubeconfig( _request = build_kubernetes_get_kubeconfig_request( cluster_id=cluster_id, expiry_seconds=expiry_seconds, + type=type, headers=_headers, params=_params, ) diff --git a/src/pydo/operations/_operations.py b/src/pydo/operations/_operations.py index 08f334d..a1e4ce5 100644 --- a/src/pydo/operations/_operations.py +++ b/src/pydo/operations/_operations.py @@ -6157,7 +6157,11 @@ def build_kubernetes_destroy_associated_resources_dangerous_request( # pylint: def build_kubernetes_get_kubeconfig_request( - cluster_id: str, *, expiry_seconds: int = 0, **kwargs: Any + cluster_id: str, + *, + expiry_seconds: int = 0, + type: Optional[str] = None, + **kwargs: Any, ) -> HttpRequest: _headers = case_insensitive_dict(kwargs.pop("headers", {}) or {}) _params = case_insensitive_dict(kwargs.pop("params", {}) or {}) @@ -6177,6 +6181,8 @@ def build_kubernetes_get_kubeconfig_request( _params["expiry_seconds"] = _SERIALIZER.query( "expiry_seconds", expiry_seconds, "int", minimum=0 ) + if type is not None: + _params["type"] = _SERIALIZER.query("type", type, "str") # Construct headers _headers["Accept"] = _SERIALIZER.header("accept", accept, "str") @@ -164218,6 +164224,19 @@ def list_clusters( "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is + False. Indicates whether SSO authentication is enabled for the + cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL + for the identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is + False. Indicates whether any non-SSO forms of authentication are + disallowed. Can only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -164505,6 +164524,17 @@ def create_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID registered with + the identity provider. Required when ``enabled`` is ``true``. + "enabled": False, # Optional. Default value is False. Indicates + whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. Indicates + whether any non-SSO forms of authentication are disallowed. Can only be set + to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -164705,6 +164735,18 @@ def create_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -164936,6 +164978,18 @@ def create_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -165153,6 +165207,17 @@ def create_cluster(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON: }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID registered with + the identity provider. Required when ``enabled`` is ``true``. + "enabled": False, # Optional. Default value is False. Indicates + whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. Indicates + whether any non-SSO forms of authentication are disallowed. Can only be set + to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -165353,6 +165418,18 @@ def create_cluster(self, body: Union[JSON, IO[bytes]], **kwargs: Any) -> JSON: }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -165648,6 +165725,18 @@ def get_cluster(self, cluster_id: str, **kwargs: Any) -> JSON: }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -165864,6 +165953,17 @@ def update_cluster( "enabled": bool # Optional. Indicates whether the routing-agent component is enabled. }, + "sso": { + "client_id": "str", # Optional. The OIDC client ID registered with + the identity provider. Required when ``enabled`` is ``true``. + "enabled": False, # Optional. Default value is False. Indicates + whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. Indicates + whether any non-SSO forms of authentication are disallowed. Can only be set + to ``true`` when ``enabled`` is ``true``. + }, "surge_upgrade": False, # Optional. Default value is False. A boolean value indicating whether surge upgrade is enabled/disabled for the cluster. Surge upgrade makes cluster upgrades fast and reliable by bringing up new nodes before @@ -166049,6 +166149,18 @@ def update_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -166292,6 +166404,18 @@ def update_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -166424,6 +166548,17 @@ def update_cluster( "enabled": bool # Optional. Indicates whether the routing-agent component is enabled. }, + "sso": { + "client_id": "str", # Optional. The OIDC client ID registered with + the identity provider. Required when ``enabled`` is ``true``. + "enabled": False, # Optional. Default value is False. Indicates + whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. Indicates + whether any non-SSO forms of authentication are disallowed. Can only be set + to ``true`` when ``enabled`` is ``true``. + }, "surge_upgrade": False, # Optional. Default value is False. A boolean value indicating whether surge upgrade is enabled/disabled for the cluster. Surge upgrade makes cluster upgrades fast and reliable by bringing up new nodes before @@ -166609,6 +166744,18 @@ def update_cluster( }, "service_subnet": "str", # Optional. The range of assignable IP addresses for services running in the Kubernetes cluster in CIDR notation. + "sso": { + "client_id": "str", # Optional. The OIDC client ID + registered with the identity provider. Required when ``enabled`` is + ``true``. + "enabled": False, # Optional. Default value is False. + Indicates whether SSO authentication is enabled for the cluster. + "issuer_url": "str", # Optional. The OIDC issuer URL for the + identity provider. Required when ``enabled`` is ``true``. + "required": False # Optional. Default value is False. + Indicates whether any non-SSO forms of authentication are disallowed. Can + only be set to ``true`` when ``enabled`` is ``true``. + }, "status": { "message": "str", # Optional. An optional message providing additional information about the current cluster state. @@ -167353,7 +167500,12 @@ def destroy_associated_resources_dangerous( @distributed_trace def get_kubeconfig( - self, cluster_id: str, *, expiry_seconds: int = 0, **kwargs: Any + self, + cluster_id: str, + *, + expiry_seconds: int = 0, + type: Optional[str] = None, + **kwargs: Any, ) -> Optional[JSON]: # pylint: disable=line-too-long """Retrieve the kubeconfig for a Kubernetes Cluster. @@ -167375,9 +167527,12 @@ def get_kubeconfig( passing a duration in seconds as a query parameter to ``/v2/kubernetes/clusters/$K8S_CLUSTER_ID/kubeconfig?expiry_seconds=$DURATION_IN_SECONDS``. If not set or 0, then the token will have a 7 day expiry. The query parameter - has no impact in certificate-based authentication. + has no impact for other kubeconfig types. + + Using an ``sso`` kubeconfig type requires ``doctl`` to be installed to handle the client side + of the OAuth2 flow. - Kubernetes Roles granted to a user with a token-based kubeconfig are derived from that user's + Kubernetes Roles granted to a user are derived from that user's DigitalOcean role. Predefined roles (Owner, Member, Modifier etc.) have an automatic mapping to Kubernetes roles. Custom roles are not automatically mapped to any Kubernetes roles, and require `additional configuration @@ -167389,6 +167544,11 @@ def get_kubeconfig( :keyword expiry_seconds: The duration in seconds that the returned Kubernetes credentials will be valid. If not set or 0, the credentials will have a 7 day expiry. Default value is 0. :paramtype expiry_seconds: int + :keyword type: The type of credentials to return in the kubeconfig. When omitted, the + default credential type for the cluster is used: ``sso`` for clusters with SSO enabled, + ``token`` for clusters without SSO enabled. Known values are: "token" and "sso". Default value + is None. + :paramtype type: str :return: JSON object or None :rtype: JSON or None :raises ~azure.core.exceptions.HttpResponseError: @@ -167429,6 +167589,7 @@ def get_kubeconfig( _request = build_kubernetes_get_kubeconfig_request( cluster_id=cluster_id, expiry_seconds=expiry_seconds, + type=type, headers=_headers, params=_params, )