/// <summary>
 /// Update Extension for HCI cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='arcSettingName'>
 /// The name of the proxy resource holding details of HCI ArcSetting
 /// information.
 /// </param>
 /// <param name='extensionName'>
 /// The name of the machine extension.
 /// </param>
 /// <param name='extension'>
 /// Details of the Machine Extension to be created.
 /// </param>
 public static Extension Update(this IExtensionsOperations operations, string resourceGroupName, string clusterName, string arcSettingName, string extensionName, Extension extension)
 {
     return(operations.UpdateAsync(resourceGroupName, clusterName, arcSettingName, extensionName, extension).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Patch an existing Kubernetes Cluster Extension.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </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='extensionName'>
 /// Name of the Extension.
 /// </param>
 /// <param name='patchExtension'>
 /// Properties to Patch in an existing Extension.
 /// </param>
 public static Extension Update(this IExtensionsOperations operations, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionName, PatchExtension patchExtension)
 {
     return(operations.UpdateAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionName, patchExtension).GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Update an existing Kubernetes Cluster Extension Instance.
 /// </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='extensionInstanceName'>
 /// Name of an instance of the Extension.
 /// </param>
 /// <param name='extensionInstance'>
 /// Properties to Update in the Extension Instance.
 /// </param>
 public static ExtensionInstance Update(this IExtensionsOperations operations, string resourceGroupName, string clusterRp, string clusterResourceName, string clusterName, string extensionInstanceName, ExtensionInstanceUpdate extensionInstance)
 {
     return(operations.UpdateAsync(resourceGroupName, clusterRp, clusterResourceName, clusterName, extensionInstanceName, extensionInstance).GetAwaiter().GetResult());
 }