# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Redis module Models # # Response to put/get linked server (with properties) for Redis cache. # class RedisLinkedServerWithProperties include MsRestAzure include MsRest::JSONable # @return [String] Resource ID. attr_accessor :id # @return [String] Resource name. attr_accessor :name # @return [String] Resource type. attr_accessor :type # @return [String] Fully qualified resourceId of the linked redis cache. attr_accessor :linked_redis_cache_id # @return [String] Location of the linked redis cache. attr_accessor :linked_redis_cache_location # @return [ReplicationRole] Role of the linked server. Possible values # include: 'Primary', 'Secondary' attr_accessor :server_role # @return [String] Terminal state of the link between primary and # secondary redis cache. attr_accessor :provisioning_state # # Mapper for RedisLinkedServerWithProperties class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'RedisLinkedServerWithProperties', type: { name: 'Composite', class_name: 'RedisLinkedServerWithProperties', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, linked_redis_cache_id: { required: true, serialized_name: 'properties.linkedRedisCacheId', type: { name: 'String' } }, linked_redis_cache_location: { required: true, serialized_name: 'properties.linkedRedisCacheLocation', type: { name: 'String' } }, server_role: { required: true, serialized_name: 'properties.serverRole', type: { name: 'Enum', module: 'ReplicationRole' } }, provisioning_state: { required: false, read_only: true, serialized_name: 'properties.provisioningState', type: { name: 'String' } } } } } end end end end