/// <inheritdoc cref="Server.AssociateFloatingIPAsync"/> public static void AssociateFloatingIP(this Server server, AssociateFloatingIPRequest request) { server.AssociateFloatingIPAsync(request).ForceSynchronous(); }
/// <inheritdoc cref="ComputeService.AssociateFloatingIPAddressAsync" /> public static void AssociateFloatingIPAddressAsync(this ComputeService service, Identifier serverId, AssociateFloatingIPRequest request) { service.AssociateFloatingIPAddressAsync(serverId, request).ForceSynchronous(); }
/// <inheritdoc cref="ComputeApi.AssociateFloatingIPAsync" /> /// <exception cref="InvalidOperationException">When this instance was not constructed by the <see cref="ComputeService"/>, as it is missing the appropriate internal state to execute service calls.</exception> public virtual async Task AssociateFloatingIPAsync(AssociateFloatingIPRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var compute = this.GetOwnerOrThrow<ComputeApi>(); await compute.AssociateFloatingIPAsync(Id, request, cancellationToken); Addresses = await compute.ListServerAddressesAsync<ServerAddressCollection>(Id, cancellationToken); }