Class: Azure::ARM::Redis::Models::RedisListKeysResult

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/azure_mgmt_redis/models/redis_list_keys_result.rb

Overview

The response of redis list keys operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#primary_keyString

authenticate with redis cache.

Returns:

  • (String)

    The current primary key that clients can use to



17
18
19
# File 'lib/azure_mgmt_redis/models/redis_list_keys_result.rb', line 17

def primary_key
  @primary_key
end

#secondary_keyString

authenticate with redis cache.

Returns:

  • (String)

    The current secondary key that clients can use to



21
22
23
# File 'lib/azure_mgmt_redis/models/redis_list_keys_result.rb', line 21

def secondary_key
  @secondary_key
end

Class Method Details

.deserialize_object(object) ⇒ RedisListKeysResult

Deserializes given Ruby Hash into Model object.

Parameters:

  • object (Hash)

    Ruby Hash object to deserialize.

Returns:



53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/azure_mgmt_redis/models/redis_list_keys_result.rb', line 53

def self.deserialize_object(object)
  return if object.nil?
  output_object = RedisListKeysResult.new

  deserialized_property = object['primaryKey']
  output_object.primary_key = deserialized_property

  deserialized_property = object['secondaryKey']
  output_object.secondary_key = deserialized_property

  output_object
end

.serialize_object(object) ⇒ Hash

Serializes given Model object into Ruby Hash.

Parameters:

  • object

    Model object to serialize.

Returns:

  • (Hash)

    Serialized object in form of Ruby Hash.



35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/azure_mgmt_redis/models/redis_list_keys_result.rb', line 35

def self.serialize_object(object)
  object.validate
  output_object = {}

  serialized_property = object.primary_key
  output_object['primaryKey'] = serialized_property unless serialized_property.nil?

  serialized_property = object.secondary_key
  output_object['secondaryKey'] = serialized_property unless serialized_property.nil?

  output_object
end

Instance Method Details

#validateObject

Validate the object. Throws ValidationError if validation fails.



26
27
28
# File 'lib/azure_mgmt_redis/models/redis_list_keys_result.rb', line 26

def validate
  # Nothing to validate
end