class Azure::SQL::Mgmt::V2014_04_01::Models::DisasterRecoveryConfiguration

Represents a disaster recovery configuration.

Attributes

auto_failover[RW]

@return [DisasterRecoveryConfigurationAutoFailover] Whether or not failover can be done automatically. Possible values include: 'Off', 'On'

failover_policy[RW]

@return [DisasterRecoveryConfigurationFailoverPolicy] How aggressive the automatic failover should be. Possible values include: 'Manual', 'Automatic'

location[RW]

@return [String] Location of the server that contains this disaster recovery configuration.

logical_server_name[RW]

@return [String] Logical name of the server.

partner_logical_server_name[RW]

@return [String] Logical name of the partner server.

partner_server_id[RW]

@return [String] Id of the partner server.

role[RW]

@return [DisasterRecoveryConfigurationRole] The role of the current server in the disaster recovery configuration. Possible values include: 'None', 'Primary', 'Secondary'

status[RW]

@return [DisasterRecoveryConfigurationStatus] The status of the disaster recovery configuration. Possible values include: 'Creating', 'Ready', 'FailingOver', 'Dropping'

Private Class Methods

mapper() click to toggle source

Mapper for DisasterRecoveryConfiguration class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2014-04-01/generated/azure_mgmt_sql/models/disaster_recovery_configuration.rb, line 53
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'DisasterRecoveryConfiguration',
    type: {
      name: 'Composite',
      class_name: 'DisasterRecoveryConfiguration',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.status',
          type: {
            name: 'String'
          }
        },
        auto_failover: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.autoFailover',
          type: {
            name: 'String'
          }
        },
        failover_policy: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.failoverPolicy',
          type: {
            name: 'String'
          }
        },
        partner_server_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.partnerServerId',
          type: {
            name: 'String'
          }
        },
        logical_server_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.logicalServerName',
          type: {
            name: 'String'
          }
        },
        partner_logical_server_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.partnerLogicalServerName',
          type: {
            name: 'String'
          }
        },
        role: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.role',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end