Class: Google::Apis::DeveloperconnectV1::FetchReadWriteTokenResponse

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 get read/write token.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FetchReadWriteTokenResponse

Returns a new instance of FetchReadWriteTokenResponse.



1005
1006
1007
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1005

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

Instance Attribute Details

#expiration_timeString

Expiration timestamp. Can be empty if unknown or non-expiring. Corresponds to the JSON property expirationTime

Returns:

  • (String)


992
993
994
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 992

def expiration_time
  @expiration_time
end

#git_usernameString

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

Returns:

  • (String)


998
999
1000
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 998

def git_username
  @git_username
end

#tokenString

The token content. Corresponds to the JSON property token

Returns:

  • (String)


1003
1004
1005
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1003

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1010
1011
1012
1013
1014
# File 'lib/google/apis/developerconnect_v1/classes.rb', line 1010

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