コード例 #1
0
 public static CapacityReservation GetCapacityReservation(this ArmClient client, ResourceIdentifier id)
 {
     return(client.GetClient(() =>
     {
         CapacityReservation.ValidateResourceId(id);
         return new CapacityReservation(client, id);
     }
                             ));
 }
コード例 #2
0
 public static CapacityReservation GetCapacityReservation(this ArmClient armClient, ResourceIdentifier id)
 {
     CapacityReservation.ValidateResourceId(id);
     return(new CapacityReservation(armClient, id));
 }
コード例 #3
0
 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)));
 }