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.
2075 2076 2077 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2075 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
2058 2059 2060 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2058 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
2063 2064 2065 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2063 def read_location @read_location end |
#token ⇒ String
The downscoped token that was created.
Corresponds to the JSON property token
2068 2069 2070 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2068 def token @token end |
#write_location ⇒ String
The location in bucket that can be used for writing.
Corresponds to the JSON property writeLocation
2073 2074 2075 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2073 def write_location @write_location end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2080 2081 2082 2083 2084 2085 |
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2080 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 |