Class: Google::Apis::CesV1::LfA2aV1DeviceCodeOAuthFlow

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

Overview

Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628). This flow is designed for input-constrained devices such as IoT devices, and CLI tools where the user authenticates on a separate device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LfA2aV1DeviceCodeOAuthFlow

Returns a new instance of LfA2aV1DeviceCodeOAuthFlow.



4928
4929
4930
# File 'lib/google/apis/ces_v1/classes.rb', line 4928

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

Instance Attribute Details

#device_authorization_urlString

Required. The device authorization endpoint URL. Corresponds to the JSON property deviceAuthorizationUrl

Returns:

  • (String)


4911
4912
4913
# File 'lib/google/apis/ces_v1/classes.rb', line 4911

def device_authorization_url
  @device_authorization_url
end

#refresh_urlString

The URL to be used for obtaining refresh tokens. Corresponds to the JSON property refreshUrl

Returns:

  • (String)


4916
4917
4918
# File 'lib/google/apis/ces_v1/classes.rb', line 4916

def refresh_url
  @refresh_url
end

#scopesHash<String,String>

Required. The available scopes for the OAuth2 security scheme. Corresponds to the JSON property scopes

Returns:

  • (Hash<String,String>)


4921
4922
4923
# File 'lib/google/apis/ces_v1/classes.rb', line 4921

def scopes
  @scopes
end

#token_urlString

Required. The token URL to be used for this flow. Corresponds to the JSON property tokenUrl

Returns:

  • (String)


4926
4927
4928
# File 'lib/google/apis/ces_v1/classes.rb', line 4926

def token_url
  @token_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4933
4934
4935
4936
4937
4938
# File 'lib/google/apis/ces_v1/classes.rb', line 4933

def update!(**args)
  @device_authorization_url = args[:device_authorization_url] if args.key?(:device_authorization_url)
  @refresh_url = args[:refresh_url] if args.key?(:refresh_url)
  @scopes = args[:scopes] if args.key?(:scopes)
  @token_url = args[:token_url] if args.key?(:token_url)
end