Class: Google::Apis::DeveloperconnectV1::StartOAuthResponse

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

Overview

Message for responding to starting an OAuth flow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StartOAuthResponse

Returns a new instance of StartOAuthResponse.



2589
2590
2591
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2589

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

Instance Attribute Details

#auth_uriString

The authorization server URL to the OAuth flow of the service provider. Corresponds to the JSON property authUri

Returns:

  • (String)


2556
2557
2558
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2556

def auth_uri
  @auth_uri
end

#client_idString

The client ID to the OAuth App of the service provider. Corresponds to the JSON property clientId

Returns:

  • (String)


2561
2562
2563
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2561

def client_id
  @client_id
end

#code_challengeString

Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.1 Corresponds to the JSON property codeChallenge

Returns:

  • (String)


2566
2567
2568
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2566

def code_challenge
  @code_challenge
end

#code_challenge_methodString

Please refer to https://datatracker.ietf.org/doc/html/rfc7636#section-4.2 Corresponds to the JSON property codeChallengeMethod

Returns:

  • (String)


2571
2572
2573
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2571

def code_challenge_method
  @code_challenge_method
end

#scopesArray<String>

The list of scopes requested by the application. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


2576
2577
2578
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2576

def scopes
  @scopes
end

#system_provider_idString

The ID of the system provider. Corresponds to the JSON property systemProviderId

Returns:

  • (String)


2581
2582
2583
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2581

def system_provider_id
  @system_provider_id
end

#ticketString

The ticket to be used for post processing the callback from the service provider. Corresponds to the JSON property ticket

Returns:

  • (String)


2587
2588
2589
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2587

def ticket
  @ticket
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2594
2595
2596
2597
2598
2599
2600
2601
2602
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2594

def update!(**args)
  @auth_uri = args[:auth_uri] if args.key?(:auth_uri)
  @client_id = args[:client_id] if args.key?(:client_id)
  @code_challenge = args[:code_challenge] if args.key?(:code_challenge)
  @code_challenge_method = args[:code_challenge_method] if args.key?(:code_challenge_method)
  @scopes = args[:scopes] if args.key?(:scopes)
  @system_provider_id = args[:system_provider_id] if args.key?(:system_provider_id)
  @ticket = args[:ticket] if args.key?(:ticket)
end