Class AuthenticationRule
Authentication rules for the service. By default, if a method has any authentication requirements, every request must include a valid credential matching one of the requirements. It's an error to include more than one kind of credential in a single request. If a method doesn't have any auth requirements, request credentials will be ignored.
Implements
Inherited Members
Namespace: Google.Apis.ServiceUsage.v1beta1.Data
Assembly: Google.Apis.ServiceUsage.v1beta1.dll
Syntax
public class AuthenticationRule : IDirectResponseSchema
Properties
AllowWithoutCredential
If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
Declaration
[JsonProperty("allowWithoutCredential")]
public virtual bool? AllowWithoutCredential { get; set; }
Property Value
Type | Description |
---|---|
bool? |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Oauth
The requirements for OAuth credentials.
Declaration
[JsonProperty("oauth")]
public virtual OAuthRequirements Oauth { get; set; }
Property Value
Type | Description |
---|---|
OAuthRequirements |
Requirements
Requirements for additional authentication providers.
Declaration
[JsonProperty("requirements")]
public virtual IList<AuthRequirement> Requirements { get; set; }
Property Value
Type | Description |
---|---|
IList<AuthRequirement> |
Selector
Selects the methods to which this rule applies. Refer to selector for syntax details.
Declaration
[JsonProperty("selector")]
public virtual string Selector { get; set; }
Property Value
Type | Description |
---|---|
string |