# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ServiceFabric::V6_3_0_9 module Models # # Safety check that waits to ensure the availability of the partition. It # waits until there are replicas available such that bringing down this # replica will not cause availability loss for the partition. # class EnsureAvailabilitySafetyCheck < PartitionSafetyCheck include MsRestAzure def initialize @Kind = "EnsureAvailability" end attr_accessor :Kind # # Mapper for EnsureAvailabilitySafetyCheck class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'EnsureAvailability', type: { name: 'Composite', class_name: 'EnsureAvailabilitySafetyCheck', model_properties: { Kind: { client_side_validation: true, required: true, serialized_name: 'Kind', type: { name: 'String' } }, partition_id: { client_side_validation: true, required: false, serialized_name: 'PartitionId', type: { name: 'String' } } } } } end end end end