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.



2597
2598
2599
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2597

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)


2564
2565
2566
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2564

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)


2569
2570
2571
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2569

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)


2574
2575
2576
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2574

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)


2579
2580
2581
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2579

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>)


2584
2585
2586
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2584

def scopes
  @scopes
end

#system_provider_idString

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

Returns:

  • (String)


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

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)


2595
2596
2597
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2595

def ticket
  @ticket
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2602
2603
2604
2605
2606
2607
2608
2609
2610
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 2602

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