Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::ProjectTaskProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_task_properties.rb

Overview

Base class for all types of DMS task properties. If task is not supported by current client, this object is returned.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProjectTaskProperties

Returns a new instance of ProjectTaskProperties.



22
23
24
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_task_properties.rb', line 22

def initialize
  @taskType = "Unknown"
end

Instance Attribute Details

#errorsArray<ODataError>

submitted.

Returns:

  • (Array<ODataError>)

    Array of errors. This is ignored if



30
31
32
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_task_properties.rb', line 30

def errors
  @errors
end

#stateTaskState

submitted. Possible values include: ‘Unknown’, ‘Queued’, ‘Running’, ‘Canceled’, ‘Succeeded’, ‘Failed’, ‘FailedInputValidation’, ‘Faulted’

Returns:

  • (TaskState)

    The state of the task. This is ignored if



35
36
37
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_task_properties.rb', line 35

def state
  @state
end

#taskTypeObject

Returns the value of attribute taskType.



26
27
28
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_task_properties.rb', line 26

def taskType
  @taskType
end

Class Method Details

.mapperObject

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



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
74
75
76
77
78
79
80
81
82
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/project_task_properties.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Unknown',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'taskType',
      uber_parent: 'ProjectTaskProperties',
      class_name: 'ProjectTaskProperties',
      model_properties: {
        errors: {
          client_side_validation: true,
          required: false,
          serialized_name: 'errors',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ODataErrorElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ODataError'
                }
            }
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'state',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end