Interface Extensions


  • public interface Extensions
    Resource collection API of Extensions.
    • Method Detail

      • create

        Extension create​(String resourceGroupName,
                         String clusterRp,
                         String clusterResourceName,
                         String clusterName,
                         String extensionName,
                         ExtensionInner extension)
        Create a new Kubernetes Cluster Extension.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        extensionName - Name of the Extension.
        extension - Properties necessary to Create an Extension.
        Returns:
        the Extension object.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • create

        Extension create​(String resourceGroupName,
                         String clusterRp,
                         String clusterResourceName,
                         String clusterName,
                         String extensionName,
                         ExtensionInner extension,
                         com.azure.core.util.Context context)
        Create a new Kubernetes Cluster Extension.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        extensionName - Name of the Extension.
        extension - Properties necessary to Create an Extension.
        context - The context to associate with this operation.
        Returns:
        the Extension object.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • get

        Extension get​(String resourceGroupName,
                      String clusterRp,
                      String clusterResourceName,
                      String clusterName,
                      String extensionName)
        Gets Kubernetes Cluster Extension.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        extensionName - Name of the Extension.
        Returns:
        kubernetes Cluster Extension.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • getWithResponse

        com.azure.core.http.rest.Response<Extension> getWithResponse​(String resourceGroupName,
                                                                     String clusterRp,
                                                                     String clusterResourceName,
                                                                     String clusterName,
                                                                     String extensionName,
                                                                     com.azure.core.util.Context context)
        Gets Kubernetes Cluster Extension.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        extensionName - Name of the Extension.
        context - The context to associate with this operation.
        Returns:
        kubernetes Cluster Extension along with Response.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String clusterRp,
                    String clusterResourceName,
                    String clusterName,
                    String extensionName,
                    Boolean forceDelete)
        Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        extensionName - Name of the Extension.
        forceDelete - Delete the extension resource in Azure - not the normal asynchronous delete.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String clusterRp,
                    String clusterResourceName,
                    String clusterName,
                    String extensionName)
        Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        extensionName - Name of the Extension.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • delete

        void delete​(String resourceGroupName,
                    String clusterRp,
                    String clusterResourceName,
                    String clusterName,
                    String extensionName,
                    Boolean forceDelete,
                    com.azure.core.util.Context context)
        Delete a Kubernetes Cluster Extension. This will cause the Agent to Uninstall the extension from the cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        extensionName - Name of the Extension.
        forceDelete - Delete the extension resource in Azure - not the normal asynchronous delete.
        context - The context to associate with this operation.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        Extension update​(String resourceGroupName,
                         String clusterRp,
                         String clusterResourceName,
                         String clusterName,
                         String extensionName,
                         PatchExtension patchExtension)
        Patch an existing Kubernetes Cluster Extension.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        extensionName - Name of the Extension.
        patchExtension - Properties to Patch in an existing Extension.
        Returns:
        the Extension object.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • update

        Extension update​(String resourceGroupName,
                         String clusterRp,
                         String clusterResourceName,
                         String clusterName,
                         String extensionName,
                         PatchExtension patchExtension,
                         com.azure.core.util.Context context)
        Patch an existing Kubernetes Cluster Extension.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        extensionName - Name of the Extension.
        patchExtension - Properties to Patch in an existing Extension.
        context - The context to associate with this operation.
        Returns:
        the Extension object.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<Extension> list​(String resourceGroupName,
                                                               String clusterRp,
                                                               String clusterResourceName,
                                                               String clusterName)
        List all Extensions in the cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        Returns:
        result of the request to list Extensions as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
      • list

        com.azure.core.http.rest.PagedIterable<Extension> list​(String resourceGroupName,
                                                               String clusterRp,
                                                               String clusterResourceName,
                                                               String clusterName,
                                                               com.azure.core.util.Context context)
        List all Extensions in the cluster.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        clusterRp - The Kubernetes cluster RP - i.e. Microsoft.ContainerService, Microsoft.Kubernetes, Microsoft.HybridContainerService.
        clusterResourceName - The Kubernetes cluster resource name - i.e. managedClusters, connectedClusters, provisionedClusters.
        clusterName - The name of the kubernetes cluster.
        context - The context to associate with this operation.
        Returns:
        result of the request to list Extensions as paginated response with PagedIterable.
        Throws:
        IllegalArgumentException - thrown if parameters fail the validation.
        com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
        RuntimeException - all other wrapped checked exceptions if the request fails to be sent.