Class: Azure::ServiceFabric::V6_5_0_36::Models::WaitForPrimarySwapSafetyCheck
- Inherits:
-
PartitionSafetyCheck
- Object
- SafetyCheck
- PartitionSafetyCheck
- Azure::ServiceFabric::V6_5_0_36::Models::WaitForPrimarySwapSafetyCheck
- Includes:
- MsRestAzure
- Defined in:
- lib/6.5.0.36/generated/azure_service_fabric/models/wait_for_primary_swap_safety_check.rb
Overview
Safety check that waits for the primary replica to be moved out of the node before starting an upgrade to ensure the availability of the primary replica for the partition.
Instance Attribute Summary collapse
-
#Kind ⇒ Object
Returns the value of attribute Kind.
Attributes inherited from PartitionSafetyCheck
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for WaitForPrimarySwapSafetyCheck class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ WaitForPrimarySwapSafetyCheck
constructor
A new instance of WaitForPrimarySwapSafetyCheck.
Constructor Details
#initialize ⇒ WaitForPrimarySwapSafetyCheck
Returns a new instance of WaitForPrimarySwapSafetyCheck.
18 19 20 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/wait_for_primary_swap_safety_check.rb', line 18 def initialize @Kind = "WaitForPrimarySwap" end |
Instance Attribute Details
#Kind ⇒ Object
Returns the value of attribute Kind.
22 23 24 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/wait_for_primary_swap_safety_check.rb', line 22 def Kind @Kind end |
Class Method Details
.mapper ⇒ Object
Mapper for WaitForPrimarySwapSafetyCheck class as Ruby Hash. This will be used for serialization/deserialization.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/wait_for_primary_swap_safety_check.rb', line 29 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'WaitForPrimarySwap', type: { name: 'Composite', class_name: 'WaitForPrimarySwapSafetyCheck', 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 |