Class: Google::Apis::ConnectorsV1::OAuthTokenData
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::OAuthTokenData
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
pass only at create and not update using updateMask Auth Code Data
Instance Attribute Summary collapse
-
#access_token ⇒ Google::Apis::ConnectorsV1::EuaSecret
EUASecret provides a reference to entries in Secret Manager.
-
#create_time ⇒ String
Optional.
-
#expiry ⇒ String
Optional.
-
#refresh_token ⇒ Google::Apis::ConnectorsV1::EuaSecret
EUASecret provides a reference to entries in Secret Manager.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OAuthTokenData
constructor
A new instance of OAuthTokenData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OAuthTokenData
Returns a new instance of OAuthTokenData.
5282 5283 5284 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5282 def initialize(**args) update!(**args) end |
Instance Attribute Details
#access_token ⇒ Google::Apis::ConnectorsV1::EuaSecret
EUASecret provides a reference to entries in Secret Manager.
Corresponds to the JSON property accessToken
5265 5266 5267 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5265 def access_token @access_token end |
#create_time ⇒ String
Optional. Timestamp when the access token was created.
Corresponds to the JSON property createTime
5270 5271 5272 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5270 def create_time @create_time end |
#expiry ⇒ String
Optional. Time in seconds when the access token expires.
Corresponds to the JSON property expiry
5275 5276 5277 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5275 def expiry @expiry end |
#refresh_token ⇒ Google::Apis::ConnectorsV1::EuaSecret
EUASecret provides a reference to entries in Secret Manager.
Corresponds to the JSON property refreshToken
5280 5281 5282 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5280 def refresh_token @refresh_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5287 5288 5289 5290 5291 5292 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5287 def update!(**args) @access_token = args[:access_token] if args.key?(:access_token) @create_time = args[:create_time] if args.key?(:create_time) @expiry = args[:expiry] if args.key?(:expiry) @refresh_token = args[:refresh_token] if args.key?(:refresh_token) end |