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