/// <summary> /// Create or update a cloud link in a private cloud /// </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='privateCloudName'> /// The name of the private cloud. /// </param> /// <param name='cloudLinkName'> /// Name of the cloud link resource /// </param> /// <param name='cloudLink'> /// A cloud link in the private cloud /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <CloudLink> BeginCreateOrUpdateAsync(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName, CloudLink cloudLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, cloudLinkName, cloudLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create or update a cloud link in a private cloud /// </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='privateCloudName'> /// The name of the private cloud. /// </param> /// <param name='cloudLinkName'> /// Name of the cloud link resource /// </param> /// <param name='cloudLink'> /// A cloud link in the private cloud /// </param> public static CloudLink BeginCreateOrUpdate(this ICloudLinksOperations operations, string resourceGroupName, string privateCloudName, string cloudLinkName, CloudLink cloudLink) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, cloudLinkName, cloudLink).GetAwaiter().GetResult()); }