Class: Google::Apis::DeveloperconnectV1::FetchReadWriteTokenResponse
- Inherits:
-
Object
- Object
- Google::Apis::DeveloperconnectV1::FetchReadWriteTokenResponse
- 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 get read/write token.
Instance Attribute Summary collapse
-
#expiration_time ⇒ String
Expiration timestamp.
-
#git_username ⇒ String
The git_username to specify when making a git clone with the token.
-
#token ⇒ String
The token content.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FetchReadWriteTokenResponse
constructor
A new instance of FetchReadWriteTokenResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FetchReadWriteTokenResponse
Returns a new instance of FetchReadWriteTokenResponse.
343 344 345 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 343 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expiration_time ⇒ String
Expiration timestamp. Can be empty if unknown or non-expiring.
Corresponds to the JSON property expirationTime
330 331 332 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 330 def expiration_time @expiration_time end |
#git_username ⇒ String
The git_username to specify when making a git clone with the token. For
example, for GitHub GitRepositoryLinks, this would be "x-access-token"
Corresponds to the JSON property gitUsername
336 337 338 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 336 def git_username @git_username end |
#token ⇒ String
The token content.
Corresponds to the JSON property token
341 342 343 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 341 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
348 349 350 351 352 |
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 348 def update!(**args) @expiration_time = args[:expiration_time] if args.key?(:expiration_time) @git_username = args[:git_username] if args.key?(:git_username) @token = args[:token] if args.key?(:token) end |