Service Management V1 API - Class Google::Api::AuthenticationRule (v0.7.0)

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
Returns
  • (::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
Parameter
  • value (::Boolean) — If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests.
Returns
  • (::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
Returns

#oauth=

def oauth=(value) -> ::Google::Api::OAuthRequirements
Parameter
Returns

#requirements

def requirements() -> ::Array<::Google::Api::AuthRequirement>
Returns

#requirements=

def requirements=(value) -> ::Array<::Google::Api::AuthRequirement>
Parameter
Returns

#selector

def selector() -> ::String
Returns
  • (::String) — Selects the methods to which this rule applies.

    Refer to selector for syntax details.

#selector=

def selector=(value) -> ::String
Parameter
  • value (::String) — Selects the methods to which this rule applies.

    Refer to selector for syntax details.

Returns
  • (::String) — Selects the methods to which this rule applies.

    Refer to selector for syntax details.