Class: Google::Apis::BackupdrV1::FetchAccessTokenResponse
- Inherits:
-
Object
- Object
- Google::Apis::BackupdrV1::FetchAccessTokenResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/backupdr_v1/classes.rb,
lib/google/apis/backupdr_v1/representations.rb,
lib/google/apis/backupdr_v1/representations.rb
Overview
Response message for FetchAccessToken.
Instance Attribute Summary collapse
-
#expire_time ⇒ String
The token is valid until this time.
-
#read_location ⇒ String
The location in bucket that can be used for reading.
-
#token ⇒ String
The downscoped token that was created.
-
#write_location ⇒ String
The location in bucket that can be used for writing.
Instance Method Summary collapse
-
#initialize(**args) ⇒ FetchAccessTokenResponse
constructor
A new instance of FetchAccessTokenResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ FetchAccessTokenResponse
Returns a new instance of FetchAccessTokenResponse.
2058 2059 2060 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2058 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expire_time ⇒ String
The token is valid until this time.
Corresponds to the JSON property expireTime
2041 2042 2043 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2041 def expire_time @expire_time end |
#read_location ⇒ String
The location in bucket that can be used for reading.
Corresponds to the JSON property readLocation
2046 2047 2048 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2046 def read_location @read_location end |
#token ⇒ String
The downscoped token that was created.
Corresponds to the JSON property token
2051 2052 2053 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2051 def token @token end |
#write_location ⇒ String
The location in bucket that can be used for writing.
Corresponds to the JSON property writeLocation
2056 2057 2058 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2056 def write_location @write_location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2063 2064 2065 2066 2067 2068 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2063 def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) @read_location = args[:read_location] if args.key?(:read_location) @token = args[:token] if args.key?(:token) @write_location = args[:write_location] if args.key?(:write_location) end |