azure.mgmt.hybridkubernetes.operations module

class azure.mgmt.hybridkubernetes.operations.ConnectedClusterOperations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ConnectedKubernetesClient’s connected_cluster attribute.

begin_create_or_replace(resource_group_name: str, cluster_name: str, connected_cluster: ConnectedCluster | IO[bytes], **kwargs: Any) LROPoller[ConnectedCluster][source]

Register a new Kubernetes cluster with Azure Resource Manager.

API to register a new Kubernetes cluster and create or replace a connected cluster tracked resource in Azure Resource Manager (ARM).

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • cluster_name (str) – The name of the Kubernetes cluster on which get is called. Required.

  • connected_cluster (ConnectedCluster or IO[bytes]) – Parameters supplied to Create a Connected Cluster. Is either a ConnectedCluster type or a IO[bytes] type. Required.

Returns:

An instance of LROPoller that returns either ConnectedCluster or the result of cls(response)

Return type:

LROPoller[ConnectedCluster]

Raises:

HttpResponseError

begin_delete(resource_group_name: str, cluster_name: str, **kwargs: Any) LROPoller[None][source]

Delete a connected cluster.

Delete a connected cluster, removing the tracked resource in Azure Resource Manager (ARM).

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • cluster_name (str) – The name of the Kubernetes cluster on which get is called. Required.

Returns:

An instance of LROPoller that returns either None or the result of cls(response)

Return type:

LROPoller[None]

Raises:

HttpResponseError

get(resource_group_name: str, cluster_name: str, **kwargs: Any) ConnectedCluster[source]

Get the properties of the specified connected cluster.

Returns the properties of the specified connected cluster, including name, identity, properties, and additional cluster details.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • cluster_name (str) – The name of the Kubernetes cluster on which get is called. Required.

Returns:

ConnectedCluster or the result of cls(response)

Return type:

ConnectedCluster

Raises:

HttpResponseError

list_by_resource_group(resource_group_name: str, **kwargs: Any) Iterable[ConnectedCluster][source]

Lists all connected clusters in the given ResourceGroup.

API to enumerate registered connected K8s clusters under a Resource Group.

Parameters:

resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

Returns:

An iterator like instance of either ConnectedCluster or the result of cls(response)

Return type:

ItemPaged[ConnectedCluster]

Raises:

HttpResponseError

list_by_subscription(**kwargs: Any) Iterable[ConnectedCluster][source]

Lists all connected clusters in the given Subscription.

API to enumerate registered connected K8s clusters under a Subscription.

Returns:

An iterator like instance of either ConnectedCluster or the result of cls(response)

Return type:

ItemPaged[ConnectedCluster]

Raises:

HttpResponseError

list_cluster_user_credential(resource_group_name: str, cluster_name: str, properties: ListClusterUserCredentialProperties | IO[bytes], **kwargs: Any) CredentialResults[source]

Gets cluster user credentials of a connected cluster.

Gets cluster user credentials of the connected cluster with a specified resource group and name.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • cluster_name (str) – The name of the Kubernetes cluster on which get is called. Required.

  • properties (ListClusterUserCredentialProperties or IO[bytes]) – ListClusterUserCredential properties. Is either a ListClusterUserCredentialProperties type or a IO[bytes] type. Required.

Returns:

CredentialResults or the result of cls(response)

Return type:

CredentialResults

Raises:

HttpResponseError

update(resource_group_name: str, cluster_name: str, connected_cluster_patch: ConnectedClusterPatch | IO[bytes], **kwargs: Any) ConnectedCluster[source]

Updates a connected cluster.

API to update certain properties of the connected cluster resource.

Parameters:
  • resource_group_name (str) – The name of the resource group. The name is case insensitive. Required.

  • cluster_name (str) – The name of the Kubernetes cluster on which get is called. Required.

  • connected_cluster_patch (ConnectedClusterPatch or IO[bytes]) – Parameters supplied to update Connected Cluster. Is either a ConnectedClusterPatch type or a IO[bytes] type. Required.

Returns:

ConnectedCluster or the result of cls(response)

Return type:

ConnectedCluster

Raises:

HttpResponseError

models = <module 'azure.mgmt.hybridkubernetes.models' from '/mnt/vss/_work/1/s/sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/hybridkubernetes/models/__init__.py'>
class azure.mgmt.hybridkubernetes.operations.Operations(*args, **kwargs)[source]

Bases: object

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through ConnectedKubernetesClient’s operations attribute.

get(**kwargs: Any) Iterable[Operation][source]

Lists all of the available API operations for Connected Cluster resource.

Returns:

An iterator like instance of either Operation or the result of cls(response)

Return type:

ItemPaged[Operation]

Raises:

HttpResponseError

models = <module 'azure.mgmt.hybridkubernetes.models' from '/mnt/vss/_work/1/s/sdk/hybridkubernetes/azure-mgmt-hybridkubernetes/.tox/sphinx/lib/python3.13/site-packages/azure/mgmt/hybridkubernetes/models/__init__.py'>