ExtensionsOperations Class

ExtensionsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
ExtensionsOperations

Constructor

ExtensionsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

begin_create

Create a new Kubernetes Cluster Extension.

begin_delete

Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.

begin_update

Patch an existing Kubernetes Cluster Extension.

get

Gets Kubernetes Cluster Extension.

list

List all Extensions in the cluster.

begin_create

Create a new Kubernetes Cluster Extension.

begin_create(resource_group_name: str, cluster_rp: str, cluster_resource_name: str, cluster_name: str, extension_name: str, extension: azure.mgmt.kubernetesconfiguration.v2022_03_01.models._models_py3.Extension, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.kubernetesconfiguration.v2022_03_01.models._models_py3.Extension]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cluster_rp
str
Required

The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.

cluster_resource_name
str
Required

The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.

cluster_name
str
Required

The name of the kubernetes cluster.

extension_name
str
Required

Name of the Extension.

extension
Extension
Required

Properties necessary to Create an Extension.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

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

Return type

Exceptions

begin_delete

Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.

begin_delete(resource_group_name: str, cluster_rp: str, cluster_resource_name: str, cluster_name: str, extension_name: str, force_delete: Optional[bool] = None, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cluster_rp
str
Required

The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.

cluster_resource_name
str
Required

The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.

cluster_name
str
Required

The name of the kubernetes cluster.

extension_name
str
Required

Name of the Extension.

force_delete
bool
Required

Delete the extension resource in Azure - not the normal asynchronous delete.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

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

Return type

Exceptions

begin_update

Patch an existing Kubernetes Cluster Extension.

begin_update(resource_group_name: str, cluster_rp: str, cluster_resource_name: str, cluster_name: str, extension_name: str, patch_extension: azure.mgmt.kubernetesconfiguration.v2022_03_01.models._models_py3.PatchExtension, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.kubernetesconfiguration.v2022_03_01.models._models_py3.Extension]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cluster_rp
str
Required

The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.

cluster_resource_name
str
Required

The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.

cluster_name
str
Required

The name of the kubernetes cluster.

extension_name
str
Required

Name of the Extension.

patch_extension
PatchExtension
Required

Properties to Patch in an existing Extension.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

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

Return type

Exceptions

get

Gets Kubernetes Cluster Extension.

get(resource_group_name: str, cluster_rp: str, cluster_resource_name: str, cluster_name: str, extension_name: str, **kwargs: Any) -> azure.mgmt.kubernetesconfiguration.v2022_03_01.models._models_py3.Extension

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cluster_rp
str
Required

The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.

cluster_resource_name
str
Required

The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.

cluster_name
str
Required

The name of the kubernetes cluster.

extension_name
str
Required

Name of the Extension.

cls
callable

A custom type or function that will be passed the direct response

Returns

Extension, or the result of cls(response)

Return type

Exceptions

list

List all Extensions in the cluster.

list(resource_group_name: str, cluster_rp: str, cluster_resource_name: str, cluster_name: str, **kwargs: Any) -> Iterable[azure.mgmt.kubernetesconfiguration.v2022_03_01.models._models_py3.ExtensionsList]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cluster_rp
str
Required

The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.

cluster_resource_name
str
Required

The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.

cluster_name
str
Required

The name of the kubernetes cluster.

cls
callable

A custom type or function that will be passed the direct response

Returns

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

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.kubernetesconfiguration.v2022_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\kubernetesconfiguration\\v2022_03_01\\models\\__init__.py'>