Class: Azure::ServiceFabric::Mgmt::V2018_02_01::Models::ClusterUpgradePolicy

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb

Overview

Describes the policy used when upgrading the cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#delta_health_policyClusterUpgradeDeltaHealthPolicy

policy used when upgrading the cluster.

Returns:



60
61
62
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 60

def delta_health_policy
  @delta_health_policy
end

#force_restartBoolean

during upgrade even when the code version has not changed (the upgrade only changes configuration or data).

Returns:

  • (Boolean)

    If true, then processes are forcefully restarted



18
19
20
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 18

def force_restart
  @force_restart
end

#health_check_retry_timeoutString

application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

Returns:

  • (String)

    The amount of time to retry health evaluation when the



42
43
44
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 42

def health_check_retry_timeout
  @health_check_retry_timeout
end

#health_check_stable_durationString

must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

Returns:

  • (String)

    The amount of time that the application or cluster



37
38
39
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 37

def health_check_stable_duration
  @health_check_stable_duration
end

#health_check_wait_durationString

domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

Returns:

  • (String)

    The length of time to wait after completing an upgrade



31
32
33
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 31

def health_check_wait_duration
  @health_check_wait_duration
end

#health_policyClusterHealthPolicy

upgrading the cluster.

Returns:



56
57
58
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 56

def health_policy
  @health_policy
end

#upgrade_domain_timeoutString

before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

Returns:

  • (String)

    The amount of time each upgrade domain has to complete



52
53
54
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 52

def upgrade_domain_timeout
  @upgrade_domain_timeout
end

#upgrade_replica_set_check_timeoutString

upgrade domain and revent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

Returns:

  • (String)

    The maximum amount of time to block processing of an



26
27
28
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 26

def upgrade_replica_set_check_timeout
  @upgrade_replica_set_check_timeout
end

#upgrade_timeoutString

before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.

Returns:

  • (String)

    The amount of time the overall upgrade has to complete



47
48
49
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 47

def upgrade_timeout
  @upgrade_timeout
end

Class Method Details

.mapperObject

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



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
# File 'lib/2018-02-01/generated/azure_mgmt_service_fabric/models/cluster_upgrade_policy.rb', line 67

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ClusterUpgradePolicy',
    type: {
      name: 'Composite',
      class_name: 'ClusterUpgradePolicy',
      model_properties: {
        force_restart: {
          client_side_validation: true,
          required: false,
          serialized_name: 'forceRestart',
          type: {
            name: 'Boolean'
          }
        },
        upgrade_replica_set_check_timeout: {
          client_side_validation: true,
          required: true,
          serialized_name: 'upgradeReplicaSetCheckTimeout',
          type: {
            name: 'String'
          }
        },
        health_check_wait_duration: {
          client_side_validation: true,
          required: true,
          serialized_name: 'healthCheckWaitDuration',
          type: {
            name: 'String'
          }
        },
        health_check_stable_duration: {
          client_side_validation: true,
          required: true,
          serialized_name: 'healthCheckStableDuration',
          type: {
            name: 'String'
          }
        },
        health_check_retry_timeout: {
          client_side_validation: true,
          required: true,
          serialized_name: 'healthCheckRetryTimeout',
          type: {
            name: 'String'
          }
        },
        upgrade_timeout: {
          client_side_validation: true,
          required: true,
          serialized_name: 'upgradeTimeout',
          type: {
            name: 'String'
          }
        },
        upgrade_domain_timeout: {
          client_side_validation: true,
          required: true,
          serialized_name: 'upgradeDomainTimeout',
          type: {
            name: 'String'
          }
        },
        health_policy: {
          client_side_validation: true,
          required: true,
          serialized_name: 'healthPolicy',
          type: {
            name: 'Composite',
            class_name: 'ClusterHealthPolicy'
          }
        },
        delta_health_policy: {
          client_side_validation: true,
          required: false,
          serialized_name: 'deltaHealthPolicy',
          type: {
            name: 'Composite',
            class_name: 'ClusterUpgradeDeltaHealthPolicy'
          }
        }
      }
    }
  }
end