Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::CommandProperties

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

Overview

Base class for all types of DMS command properties. If command 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

#initializeCommandProperties

Returns a new instance of CommandProperties.



20
21
22
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/command_properties.rb', line 20

def initialize
  @commandType = "CommandProperties"
end

Instance Attribute Details

#commandTypeObject

Returns the value of attribute commandType.



24
25
26
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/command_properties.rb', line 24

def commandType
  @commandType
end

#errorsArray<ODataError>

submitted.

Returns:

  • (Array<ODataError>)

    Array of errors. This is ignored if



28
29
30
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/command_properties.rb', line 28

def errors
  @errors
end

#stateCommandState

submitted. Possible values include: ‘Unknown’, ‘Accepted’, ‘Running’, ‘Succeeded’, ‘Failed’

Returns:

  • (CommandState)

    The state of the command. This is ignored if



33
34
35
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/command_properties.rb', line 33

def state
  @state
end

Class Method Details

.mapperObject

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



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

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CommandProperties',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'commandType',
      uber_parent: 'CommandProperties',
      class_name: 'CommandProperties',
      model_properties: {
        errors: {
          client_side_validation: true,
          required: false,
          read_only: true,
          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