/// <summary> /// Gets details of the Source Control Configuration. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterRp'> /// The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS /// clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible /// values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' /// </param> /// <param name='clusterResourceName'> /// The Kubernetes cluster resource name - either managedClusters (for AKS /// clusters) or connectedClusters (for OnPrem K8S clusters). Possible values /// include: 'managedClusters', 'connectedClusters' /// </param> /// <param name='clusterName'> /// The name of the kubernetes cluster. /// </param> /// <param name='sourceControlConfigurationName'> /// Name of the Source Control Configuration. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <SourceControlConfiguration> GetAsync(this ISourceControlConfigurationsOperations operations, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List all Source Control Configurations. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <SourceControlConfiguration> > ListNextAsync(this ISourceControlConfigurationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets details of the Source Control Configuration. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterRp'> /// The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS /// clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible /// values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' /// </param> /// <param name='clusterResourceName'> /// The Kubernetes cluster resource name - either managedClusters (for AKS /// clusters) or connectedClusters (for OnPrem K8S clusters). Possible values /// include: 'managedClusters', 'connectedClusters' /// </param> /// <param name='clusterName'> /// The name of the kubernetes cluster. /// </param> /// <param name='sourceControlConfigurationName'> /// Name of the Source Control Configuration. /// </param> public static SourceControlConfiguration Get(this ISourceControlConfigurationsOperations operations, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName) { return(operations.GetAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).GetAwaiter().GetResult()); }
/// <summary> /// List all Source Control Configurations. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <SourceControlConfiguration> ListNext(this ISourceControlConfigurationsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// This will delete the YAML file used to set up the Source control /// configuration, thus stopping future sync from the source repo. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterRp'> /// The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS /// clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible /// values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' /// </param> /// <param name='clusterResourceName'> /// The Kubernetes cluster resource name - either managedClusters (for AKS /// clusters) or connectedClusters (for OnPrem K8S clusters). Possible values /// include: 'managedClusters', 'connectedClusters' /// </param> /// <param name='clusterName'> /// The name of the kubernetes cluster. /// </param> /// <param name='sourceControlConfigurationName'> /// Name of the Source Control Configuration. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this ISourceControlConfigurationsOperations operations, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// This will delete the YAML file used to set up the Source control /// configuration, thus stopping future sync from the source repo. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterRp'> /// The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS /// clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible /// values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' /// </param> /// <param name='clusterResourceName'> /// The Kubernetes cluster resource name - either managedClusters (for AKS /// clusters) or connectedClusters (for OnPrem K8S clusters). Possible values /// include: 'managedClusters', 'connectedClusters' /// </param> /// <param name='clusterName'> /// The name of the kubernetes cluster. /// </param> /// <param name='sourceControlConfigurationName'> /// Name of the Source Control Configuration. /// </param> public static void BeginDelete(this ISourceControlConfigurationsOperations operations, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName) { operations.BeginDeleteAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName).GetAwaiter().GetResult(); }
/// <summary> /// List all Source Control Configurations. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterRp'> /// The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS /// clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible /// values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' /// </param> /// <param name='clusterResourceName'> /// The Kubernetes cluster resource name - either managedClusters (for AKS /// clusters) or connectedClusters (for OnPrem K8S clusters). Possible values /// include: 'managedClusters', 'connectedClusters' /// </param> /// <param name='clusterName'> /// The name of the kubernetes cluster. /// </param> /// <param name='apiVersion'> /// The API version to be used with the HTTP request. /// </param> public static IPage <SourceControlConfiguration> List(this ISourceControlConfigurationsOperations operations, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string apiVersion) { return(operations.ListAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, apiVersion).GetAwaiter().GetResult()); }
/// <summary> /// Create a new Kubernetes Source Control Configuration. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='clusterRp'> /// The Kubernetes cluster RP - either Microsoft.ContainerService (for AKS /// clusters) or Microsoft.Kubernetes (for OnPrem K8S clusters). Possible /// values include: 'Microsoft.ContainerService', 'Microsoft.Kubernetes' /// </param> /// <param name='clusterResourceName'> /// The Kubernetes cluster resource name - either managedClusters (for AKS /// clusters) or connectedClusters (for OnPrem K8S clusters). Possible values /// include: 'managedClusters', 'connectedClusters' /// </param> /// <param name='clusterName'> /// The name of the kubernetes cluster. /// </param> /// <param name='sourceControlConfigurationName'> /// Name of the Source Control Configuration. /// </param> /// <param name='apiVersion'> /// The API version to be used with the HTTP request. /// </param> /// <param name='sourceControlConfiguration'> /// Properties necessary to Create KubernetesConfiguration. /// </param> public static SourceControlConfiguration CreateOrUpdate(this ISourceControlConfigurationsOperations operations, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string sourceControlConfigurationName, string apiVersion, SourceControlConfiguration sourceControlConfiguration) { return(operations.CreateOrUpdateAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, sourceControlConfigurationName, apiVersion, sourceControlConfiguration).GetAwaiter().GetResult()); }