Show / Hide Table of Contents

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.

Inheritance
System.Object
AuthenticationRule
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.ServiceUsage.v1.Data
Assembly: Google.Apis.ServiceUsage.v1.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
System.Nullable<System.Boolean>

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.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
System.Collections.Generic.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
System.String

Implements

IDirectResponseSchema
In This Article
Back to top