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