Class: Google::Apis::RedisV1::AddAuthTokenRequest
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::AddAuthTokenRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/redis_v1/classes.rb,
lib/google/apis/redis_v1/representations.rb,
lib/google/apis/redis_v1/representations.rb
Overview
Request message for AddAuthToken.
Instance Attribute Summary collapse
-
#auth_token ⇒ Google::Apis::RedisV1::AuthToken
Auth token for the cluster.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddAuthTokenRequest
constructor
A new instance of AddAuthTokenRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AddAuthTokenRequest
Returns a new instance of AddAuthTokenRequest.
124 125 126 |
# File 'lib/google/apis/redis_v1/classes.rb', line 124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_token ⇒ Google::Apis::RedisV1::AuthToken
Auth token for the cluster.
Corresponds to the JSON property authToken
122 123 124 |
# File 'lib/google/apis/redis_v1/classes.rb', line 122 def auth_token @auth_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
129 130 131 |
# File 'lib/google/apis/redis_v1/classes.rb', line 129 def update!(**args) @auth_token = args[:auth_token] if args.key?(:auth_token) end |