Reference documentation and code samples for the Service Management V1 API class Google::Api::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#allow_without_credential
def allow_without_credential() -> ::Boolean
- (::Boolean) — If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
#allow_without_credential=
def allow_without_credential=(value) -> ::Boolean
- value (::Boolean) — If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
- (::Boolean) — If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
#oauth
def oauth() -> ::Google::Api::OAuthRequirements
- (::Google::Api::OAuthRequirements) — The requirements for OAuth credentials.
#oauth=
def oauth=(value) -> ::Google::Api::OAuthRequirements
- value (::Google::Api::OAuthRequirements) — The requirements for OAuth credentials.
- (::Google::Api::OAuthRequirements) — The requirements for OAuth credentials.
#requirements
def requirements() -> ::Array<::Google::Api::AuthRequirement>
- (::Array<::Google::Api::AuthRequirement>) — Requirements for additional authentication providers.
#requirements=
def requirements=(value) -> ::Array<::Google::Api::AuthRequirement>
- value (::Array<::Google::Api::AuthRequirement>) — Requirements for additional authentication providers.
- (::Array<::Google::Api::AuthRequirement>) — Requirements for additional authentication providers.
#selector
def selector() -> ::String
-
(::String) — Selects the methods to which this rule applies.
Refer to selector for syntax details.
#selector=
def selector=(value) -> ::String
-
value (::String) — Selects the methods to which this rule applies.
Refer to selector for syntax details.
-
(::String) — Selects the methods to which this rule applies.
Refer to selector for syntax details.