Class: Azure::ServiceFabric::V6_3_0_9::Models::StatefulServiceUpdateDescription

Inherits:
ServiceUpdateDescription show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_update_description.rb

Overview

Describes an update for a stateful service.

Instance Attribute Summary collapse

Attributes inherited from ServiceUpdateDescription

#correlation_scheme, #default_move_cost, #flags, #load_metrics, #placement_constraints, #scaling_policies, #service_placement_policies

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStatefulServiceUpdateDescription

Returns a new instance of StatefulServiceUpdateDescription.



16
17
18
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_update_description.rb', line 16

def initialize
  @ServiceKind = "Stateful"
end

Instance Attribute Details

#min_replica_set_sizeInteger

Returns The minimum replica set size as a number.

Returns:

  • (Integer)

    The minimum replica set size as a number.



26
27
28
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_update_description.rb', line 26

def min_replica_set_size
  @min_replica_set_size
end

#quorum_loss_wait_duration_secondsString

partition is allowed to be in a state of quorum loss.

Returns:

  • (String)

    The maximum duration, in seconds, for which a



34
35
36
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_update_description.rb', line 34

def quorum_loss_wait_duration_seconds
  @quorum_loss_wait_duration_seconds
end

#replica_restart_wait_duration_secondsString

down and when a new replica is created.

Returns:

  • (String)

    The duration, in seconds, between when a replica goes



30
31
32
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_update_description.rb', line 30

def replica_restart_wait_duration_seconds
  @replica_restart_wait_duration_seconds
end

#ServiceKindObject

Returns the value of attribute ServiceKind.



20
21
22
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_update_description.rb', line 20

def ServiceKind
  @ServiceKind
end

#stand_by_replica_keep_duration_secondsString

maintained before being removed.

Returns:

  • (String)

    The definition on how long StandBy replicas should be



38
39
40
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_update_description.rb', line 38

def stand_by_replica_keep_duration_seconds
  @stand_by_replica_keep_duration_seconds
end

#target_replica_set_sizeInteger

Returns The target replica set size as a number.

Returns:

  • (Integer)

    The target replica set size as a number.



23
24
25
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_update_description.rb', line 23

def target_replica_set_size
  @target_replica_set_size
end

Class Method Details

.mapperObject

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



45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/stateful_service_update_description.rb', line 45

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Stateful',
    type: {
      name: 'Composite',
      class_name: 'StatefulServiceUpdateDescription',
      model_properties: {
        flags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Flags',
          type: {
            name: 'String'
          }
        },
        placement_constraints: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PlacementConstraints',
          type: {
            name: 'String'
          }
        },
        correlation_scheme: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CorrelationScheme',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServiceCorrelationDescriptionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ServiceCorrelationDescription'
                }
            }
          }
        },
        load_metrics: {
          client_side_validation: true,
          required: false,
          serialized_name: 'LoadMetrics',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServiceLoadMetricDescriptionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ServiceLoadMetricDescription'
                }
            }
          }
        },
        service_placement_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServicePlacementPolicies',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ServicePlacementPolicyDescriptionElementType',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: 'Type',
                  uber_parent: 'ServicePlacementPolicyDescription',
                  class_name: 'ServicePlacementPolicyDescription'
                }
            }
          }
        },
        default_move_cost: {
          client_side_validation: true,
          required: false,
          serialized_name: 'DefaultMoveCost',
          type: {
            name: 'String'
          }
        },
        scaling_policies: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ScalingPolicies',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ScalingPolicyDescriptionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ScalingPolicyDescription'
                }
            }
          }
        },
        ServiceKind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ServiceKind',
          type: {
            name: 'String'
          }
        },
        target_replica_set_size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'TargetReplicaSetSize',
          constraints: {
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        min_replica_set_size: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MinReplicaSetSize',
          constraints: {
            InclusiveMinimum: 1
          },
          type: {
            name: 'Number'
          }
        },
        replica_restart_wait_duration_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReplicaRestartWaitDurationSeconds',
          type: {
            name: 'String'
          }
        },
        quorum_loss_wait_duration_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'QuorumLossWaitDurationSeconds',
          type: {
            name: 'String'
          }
        },
        stand_by_replica_keep_duration_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'StandByReplicaKeepDurationSeconds',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end