class Google::Apis::ServiceusageV1beta1::Authentication

`Authentication` defines the authentication configuration for API methods provided by an API service. Example: name: calendar.googleapis.com authentication: providers: - id: google_calendar_auth jwks_uri: www. googleapis.com/oauth2/v1/certs issuer: securetoken.google.com rules: - selector: “*” requirements: provider_id: google_calendar_auth - selector: google.calendar.Delegate oauth: canonical_scopes: www.googleapis.com/ auth/calendar.read

Attributes

providers[RW]

Defines a set of authentication providers that a service supports. Corresponds to the JSON property `providers` @return [Array<Google::Apis::ServiceusageV1beta1::AuthProvider>]

rules[RW]

A list of authentication rules that apply to individual API methods. NOTE: All service configuration rules follow “last one wins” order. Corresponds to the JSON property `rules` @return [Array<Google::Apis::ServiceusageV1beta1::AuthenticationRule>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/serviceusage_v1beta1/classes.rb, line 297
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/serviceusage_v1beta1/classes.rb, line 302
def update!(**args)
  @providers = args[:providers] if args.key?(:providers)
  @rules = args[:rules] if args.key?(:rules)
end