Class: Google::Apis::AgentregistryV1alpha::AuthProviderBinding

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/agentregistry_v1alpha/classes.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb,
lib/google/apis/agentregistry_v1alpha/representations.rb

Overview

The AuthProvider of the Binding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthProviderBinding

Returns a new instance of AuthProviderBinding.



231
232
233
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 231

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auth_providerString

Required. The resource name of the target AuthProvider. Format: * projects/ project/locations/location/authProviders/auth_provider` Corresponds to the JSON propertyauthProvider`

Returns:

  • (String)


218
219
220
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 218

def auth_provider
  @auth_provider
end

#continue_uriString

Optional. The continue URI of the AuthProvider. The URI is used to reauthenticate the user and finalize the managed OAuth flow. Corresponds to the JSON property continueUri

Returns:

  • (String)


224
225
226
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 224

def continue_uri
  @continue_uri
end

#scopesArray<String>

Optional. The list of OAuth2 scopes of the AuthProvider. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


229
230
231
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 229

def scopes
  @scopes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



236
237
238
239
240
# File 'lib/google/apis/agentregistry_v1alpha/classes.rb', line 236

def update!(**args)
  @auth_provider = args[:auth_provider] if args.key?(:auth_provider)
  @continue_uri = args[:continue_uri] if args.key?(:continue_uri)
  @scopes = args[:scopes] if args.key?(:scopes)
end