Class: Google::Apis::BackupdrV1::FetchAccessTokenResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FetchAccessTokenResponse

Returns a new instance of FetchAccessTokenResponse.



1477
1478
1479
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1477

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

Instance Attribute Details

#expire_timeString

The token is valid until this time. Corresponds to the JSON property expireTime

Returns:

  • (String)


1460
1461
1462
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1460

def expire_time
  @expire_time
end

#read_locationString

The location in bucket that can be used for reading. Corresponds to the JSON property readLocation

Returns:

  • (String)


1465
1466
1467
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1465

def read_location
  @read_location
end

#tokenString

The downscoped token that was created. Corresponds to the JSON property token

Returns:

  • (String)


1470
1471
1472
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1470

def token
  @token
end

#write_locationString

The location in bucket that can be used for writing. Corresponds to the JSON property writeLocation

Returns:

  • (String)


1475
1476
1477
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1475

def write_location
  @write_location
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1482
1483
1484
1485
1486
1487
# File 'lib/google/apis/backupdr_v1/classes.rb', line 1482

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