/// <inheritdoc cref="FloatingIP.AssociateAsync" /> public static void Associate(this FloatingIP floatingIP, Identifier portId) { floatingIP.AssociateAsync(portId).ForceSynchronous(); }
/// <summary> /// The Associate Reserved IP operation associates a Reserved IP with a /// service. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Network.IReservedIPOperations. /// </param> /// <param name='reservedIpName'> /// Required. The name of the reserved IP. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to associate Reserved IP. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static Task<OperationStatusResponse> AssociateAsync(this IReservedIPOperations operations, string reservedIpName, NetworkReservedIPMobilityParameters parameters) { return operations.AssociateAsync(reservedIpName, parameters, CancellationToken.None); }
/// <summary> /// Creates a profile /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.SiteRecovery.IProtectionProfileOperations. /// </param> /// <param name='name'> /// Required. Input to associate profile /// </param> /// <param name='input'> /// Required. Input to associate profile /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// A standard service response for long running operations. /// </returns> public static Task<LongRunningOperationResponse> AssociateAsync(this IProtectionProfileOperations operations, string name, ProtectionProfileAssociationInput input, CustomRequestHeaders customRequestHeaders) { return operations.AssociateAsync(name, input, customRequestHeaders, CancellationToken.None); }