Class: Google::Apis::CloudbuildV2::FetchReadWriteTokenResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/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.



706
707
708
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 706

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)


699
700
701
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 699

def expiration_time
  @expiration_time
end

#tokenString

The token content. Corresponds to the JSON property token

Returns:

  • (String)


704
705
706
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 704

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



711
712
713
714
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 711

def update!(**args)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @token = args[:token] if args.key?(:token)
end