Class: Google::Apis::RedisV1::AuthToken
- Inherits:
-
Object
- Object
- Google::Apis::RedisV1::AuthToken
- 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
Auth token for the cluster.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Identifier.
-
#state ⇒ String
Output only.
-
#token ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AuthToken
constructor
A new instance of AuthToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AuthToken
Returns a new instance of AuthToken.
180 181 182 |
# File 'lib/google/apis/redis_v1/classes.rb', line 180 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Create time of the auth token.
Corresponds to the JSON property createTime
160 161 162 |
# File 'lib/google/apis/redis_v1/classes.rb', line 160 def create_time @create_time end |
#name ⇒ String
Identifier. Name of the auth token. Format: projects/project/locations/
location/clusters/cluster/tokenAuthUsers/token_auth_user/authTokens/
auth_token
Corresponds to the JSON property name
167 168 169 |
# File 'lib/google/apis/redis_v1/classes.rb', line 167 def name @name end |
#state ⇒ String
Output only. State of the auth token.
Corresponds to the JSON property state
172 173 174 |
# File 'lib/google/apis/redis_v1/classes.rb', line 172 def state @state end |
#token ⇒ String
Output only. The service generated authentication token used to connect to the
Redis cluster.
Corresponds to the JSON property token
178 179 180 |
# File 'lib/google/apis/redis_v1/classes.rb', line 178 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
185 186 187 188 189 190 |
# File 'lib/google/apis/redis_v1/classes.rb', line 185 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @token = args[:token] if args.key?(:token) end |