Ejemplo n.º 1
0
 public static DiskAccess GetDiskAccess(this ArmClient client, ResourceIdentifier id)
 {
     return(client.GetClient(() =>
     {
         DiskAccess.ValidateResourceId(id);
         return new DiskAccess(client, id);
     }
                             ));
 }
Ejemplo n.º 2
0
 public static DiskAccess GetDiskAccess(this ArmClient armClient, ResourceIdentifier id)
 {
     DiskAccess.ValidateResourceId(id);
     return(armClient.UseClientContext((uri, credential, clientOptions, pipeline) => new DiskAccess(clientOptions, credential, uri, pipeline, id)));
 }
 public static DiskAccess GetDiskAccess(this ArmClient armClient, ResourceIdentifier id)
 {
     DiskAccess.ValidateResourceId(id);
     return(new DiskAccess(armClient, id));
 }