Class: Azure::ServiceFabric::V6_3_0_9::Models::RepairTaskUpdateHealthPolicyDescription

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/repair_task_update_health_policy_description.rb

Overview

Describes a request to update the health policy of a repair task.

This type supports the Service Fabric platform; it is not meant to be used directly from your code.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#perform_preparing_health_checkBoolean

performed in the Preparing stage of the repair task. If not specified the existing value should not be altered. Otherwise, specify the desired new value.

Returns:

  • (Boolean)

    A boolean indicating if health check is to be



31
32
33
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/repair_task_update_health_policy_description.rb', line 31

def perform_preparing_health_check
  @perform_preparing_health_check
end

#perform_restoring_health_checkBoolean

performed in the Restoring stage of the repair task. If not specified the existing value should not be altered. Otherwise, specify the desired new value.

Returns:

  • (Boolean)

    A boolean indicating if health check is to be



37
38
39
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/repair_task_update_health_policy_description.rb', line 37

def perform_restoring_health_check
  @perform_restoring_health_check
end

#task_idString

Returns The ID of the repair task to be updated.

Returns:

  • (String)

    The ID of the repair task to be updated.



19
20
21
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/repair_task_update_health_policy_description.rb', line 19

def task_id
  @task_id
end

#versionString

non-zero, then the request will only succeed if this value matches the actual current value of the repair task. If zero, then no version check is performed.

Returns:

  • (String)

    The current version number of the repair task. If



25
26
27
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/repair_task_update_health_policy_description.rb', line 25

def version
  @version
end

Class Method Details

.mapperObject

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



44
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
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/repair_task_update_health_policy_description.rb', line 44

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RepairTaskUpdateHealthPolicyDescription',
    type: {
      name: 'Composite',
      class_name: 'RepairTaskUpdateHealthPolicyDescription',
      model_properties: {
        task_id: {
          client_side_validation: true,
          required: true,
          serialized_name: 'TaskId',
          type: {
            name: 'String'
          }
        },
        version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Version',
          type: {
            name: 'String'
          }
        },
        perform_preparing_health_check: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PerformPreparingHealthCheck',
          type: {
            name: 'Boolean'
          }
        },
        perform_restoring_health_check: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PerformRestoringHealthCheck',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end