Class: Azure::ServiceFabric::V6_5_0_36::Models::RepairTaskCancelDescription

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

Overview

Describes a request to cancel 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

#request_abortBoolean

possible even if it has already started executing. False if the repair should be cancelled only if execution has not yet started.

Returns:

  • (Boolean)

    True if the repair should be stopped as soon as



30
31
32
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_cancel_description.rb', line 30

def request_abort
  @request_abort
end

#task_idString

Returns The ID of the repair task.

Returns:

  • (String)

    The ID of the repair task.



19
20
21
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_cancel_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 version 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.5.0.36/generated/azure_service_fabric/models/repair_task_cancel_description.rb', line 25

def version
  @version
end

Class Method Details

.mapperObject

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



37
38
39
40
41
42
43
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
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/repair_task_cancel_description.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'RepairTaskCancelDescription',
    type: {
      name: 'Composite',
      class_name: 'RepairTaskCancelDescription',
      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'
          }
        },
        request_abort: {
          client_side_validation: true,
          required: false,
          serialized_name: 'RequestAbort',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end