Class: Google::Apis::RedisV1::AuthToken

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

Instance Method Summary collapse

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_timeString

Output only. Create time of the auth token. Corresponds to the JSON property createTime

Returns:

  • (String)


160
161
162
# File 'lib/google/apis/redis_v1/classes.rb', line 160

def create_time
  @create_time
end

#nameString

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

Returns:

  • (String)


167
168
169
# File 'lib/google/apis/redis_v1/classes.rb', line 167

def name
  @name
end

#stateString

Output only. State of the auth token. Corresponds to the JSON property state

Returns:

  • (String)


172
173
174
# File 'lib/google/apis/redis_v1/classes.rb', line 172

def state
  @state
end

#tokenString

Output only. The service generated authentication token used to connect to the Redis cluster. Corresponds to the JSON property token

Returns:

  • (String)


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