Interface SourceControlConfigurations


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

      • get

        SourceControlConfiguration get​(String resourceGroupName,
                                       String clusterRp,
                                       String clusterResourceName,
                                       String clusterName,
                                       String sourceControlConfigurationName)
        Gets details of the Source Control Configuration.
        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.
        sourceControlConfigurationName - Name of the Source Control Configuration.
        Returns:
        details of the Source Control Configuration.
        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<SourceControlConfiguration> getWithResponse​(String resourceGroupName,
                                                                                      String clusterRp,
                                                                                      String clusterResourceName,
                                                                                      String clusterName,
                                                                                      String sourceControlConfigurationName,
                                                                                      com.azure.core.util.Context context)
        Gets details of the Source Control Configuration.
        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.
        sourceControlConfigurationName - Name of the Source Control Configuration.
        context - The context to associate with this operation.
        Returns:
        details of the Source Control Configuration 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.
      • createOrUpdate

        SourceControlConfiguration createOrUpdate​(String resourceGroupName,
                                                  String clusterRp,
                                                  String clusterResourceName,
                                                  String clusterName,
                                                  String sourceControlConfigurationName,
                                                  SourceControlConfigurationInner sourceControlConfiguration)
        Create a new Kubernetes Source Control Configuration.
        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.
        sourceControlConfigurationName - Name of the Source Control Configuration.
        sourceControlConfiguration - Properties necessary to Create KubernetesConfiguration.
        Returns:
        the SourceControl Configuration object returned in Get & Put 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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<SourceControlConfiguration> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                                 String clusterRp,
                                                                                                 String clusterResourceName,
                                                                                                 String clusterName,
                                                                                                 String sourceControlConfigurationName,
                                                                                                 SourceControlConfigurationInner sourceControlConfiguration,
                                                                                                 com.azure.core.util.Context context)
        Create a new Kubernetes Source Control Configuration.
        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.
        sourceControlConfigurationName - Name of the Source Control Configuration.
        sourceControlConfiguration - Properties necessary to Create KubernetesConfiguration.
        context - The context to associate with this operation.
        Returns:
        the SourceControl Configuration object returned in Get & Put response 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 sourceControlConfigurationName)
        This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
        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.
        sourceControlConfigurationName - Name of the Source Control Configuration.
        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 sourceControlConfigurationName,
                    com.azure.core.util.Context context)
        This will delete the YAML file used to set up the Source control configuration, thus stopping future sync from the source repo.
        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.
        sourceControlConfigurationName - Name of the Source Control Configuration.
        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.
      • list

        com.azure.core.http.rest.PagedIterable<SourceControlConfiguration> list​(String resourceGroupName,
                                                                                String clusterRp,
                                                                                String clusterResourceName,
                                                                                String clusterName)
        List all Source Control Configurations.
        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 Source Control Configurations 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<SourceControlConfiguration> list​(String resourceGroupName,
                                                                                String clusterRp,
                                                                                String clusterResourceName,
                                                                                String clusterName,
                                                                                com.azure.core.util.Context context)
        List all Source Control Configurations.
        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 Source Control Configurations 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.