public static CapacityReservation GetCapacityReservation(this ArmClient client, ResourceIdentifier id) { return(client.GetClient(() => { CapacityReservation.ValidateResourceId(id); return new CapacityReservation(client, id); } )); }
public static CapacityReservation GetCapacityReservation(this ArmClient armClient, ResourceIdentifier id) { CapacityReservation.ValidateResourceId(id); return(new CapacityReservation(armClient, id)); }
public static CapacityReservation GetCapacityReservation(this ArmClient armClient, ResourceIdentifier id) { CapacityReservation.ValidateResourceId(id); return(armClient.UseClientContext((uri, credential, clientOptions, pipeline) => new CapacityReservation(clientOptions, credential, uri, pipeline, id))); }