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.



2058
2059
2060
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2058

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)


2041
2042
2043
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2041

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)


2046
2047
2048
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2046

def read_location
  @read_location
end

#tokenString

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

Returns:

  • (String)


2051
2052
2053
# File 'lib/google/apis/backupdr_v1/classes.rb', line 2051

def token
  @token
end

#write_locationString

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

Returns:

  • (String)


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