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.objectExtensionsOperations
Constructor
ExtensionsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create |
Create a new Kubernetes Cluster Extension Instance. |
| delete |
Delete a Kubernetes Cluster Extension Instance. This will cause the Agent to Uninstall the extension instance from the cluster. |
| get |
Gets details of the Kubernetes Cluster Extension Instance. |
| list |
List all Source Control Configurations. |
| update |
Update an existing Kubernetes Cluster Extension Instance. |
create
Create a new Kubernetes Cluster Extension Instance.
create(resource_group_name: str, cluster_rp: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum0], cluster_resource_name: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum1], cluster_name: str, extension_instance_name: str, extension_instance: azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._models_py3.ExtensionInstance, **kwargs: Any) -> azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._models_py3.ExtensionInstance
Parameters
The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ExtensionInstance, or the result of cls(response)
Return type
Exceptions
delete
Delete a Kubernetes Cluster Extension Instance. This will cause the Agent to Uninstall the extension instance from the cluster.
delete(resource_group_name: str, cluster_rp: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum0], cluster_resource_name: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum1], cluster_name: str, extension_instance_name: str, **kwargs: Any) -> None
Parameters
The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Gets details of the Kubernetes Cluster Extension Instance.
get(resource_group_name: str, cluster_rp: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum0], cluster_resource_name: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum1], cluster_name: str, extension_instance_name: str, **kwargs: Any) -> azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._models_py3.ExtensionInstance
Parameters
The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ExtensionInstance, or the result of cls(response)
Return type
Exceptions
list
List all Source Control Configurations.
list(resource_group_name: str, cluster_rp: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum0], cluster_resource_name: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum1], cluster_name: str, **kwargs: Any) -> Iterable[azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._models_py3.ExtensionInstancesList]
Parameters
The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ExtensionInstancesList or the result of cls(response)
Return type
Exceptions
update
Update an existing Kubernetes Cluster Extension Instance.
update(resource_group_name: str, cluster_rp: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum0], cluster_resource_name: Union[str, azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._source_control_configuration_client_enums.Enum1], cluster_name: str, extension_instance_name: str, extension_instance: azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._models_py3.ExtensionInstanceUpdate, **kwargs: Any) -> azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models._models_py3.ExtensionInstance
Parameters
The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters).
The Kubernetes cluster resource name - either managedClusters (for AKS clusters) or connectedClusters (for OnPrem K8S clusters).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ExtensionInstance, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.kubernetesconfiguration.v2020_07_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\kubernetesconfiguration\\v2020_07_01_preview\\models\\__init__.py'>
Feedback
Submit and view feedback for