/// <summary> /// Creates a DNS zone within a resource group. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Management.Dns.IZoneOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='zoneName'> /// Required. The name of the zone without a terminating dot. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the CreateOrUpdate operation. /// </param> /// <param name='ifMatch'> /// Optional. The etag of Zone. /// </param> /// <param name='ifNoneMatch'> /// Optional. Defines the If-None-Match condition. Set to '*' to force /// Create-If-Not-Exist. Other values will be ignored. /// </param> /// <returns> /// The response to a Zone Update operation. /// </returns> public static Task<ZoneUpdateResponse> UpdateAsync(this IZoneOperations operations, string resourceGroupName, string zoneName, ZoneUpdateParameters parameters, string ifMatch, string ifNoneMatch) { return operations.UpdateAsync(resourceGroupName, zoneName, parameters, ifMatch, ifNoneMatch, CancellationToken.None); }
/// <summary> /// Creates a DNS zone within a resource group. /// </summary> /// <param name='operations'> /// Reference to the Microsoft.Azure.Management.Dns.IZoneOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='zoneName'> /// Required. The name of the zone without a terminating dot. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the CreateOrUpdate operation. /// </param> /// <param name='ifMatch'> /// Optional. The etag of Zone. /// </param> /// <param name='ifNoneMatch'> /// Optional. Defines the If-None-Match condition. Set to '*' to force /// Create-If-Not-Exist. Other values will be ignored. /// </param> /// <returns> /// The response to a Zone Update operation. /// </returns> public static ZoneUpdateResponse Update(this IZoneOperations operations, string resourceGroupName, string zoneName, ZoneUpdateParameters parameters, string ifMatch, string ifNoneMatch) { return Task.Factory.StartNew((object s) => { return ((IZoneOperations)s).UpdateAsync(resourceGroupName, zoneName, parameters, ifMatch, ifNoneMatch); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }