Class: Azure::DataMigration::Mgmt::V2018_04_19::Models::CommandProperties
- Inherits:
-
Object
- Object
- Azure::DataMigration::Mgmt::V2018_04_19::Models::CommandProperties
- 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.
Direct Known Subclasses
MigrateMISyncCompleteCommandProperties, MigrateSyncCompleteCommandProperties
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#commandType ⇒ Object
Returns the value of attribute commandType.
-
#errors ⇒ Array<ODataError>
submitted.
-
#state ⇒ CommandState
submitted.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for CommandProperties class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ CommandProperties
constructor
A new instance of CommandProperties.
Constructor Details
#initialize ⇒ CommandProperties
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
#commandType ⇒ Object
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 |
#errors ⇒ Array<ODataError>
submitted.
28 29 30 |
# File 'lib/2018-04-19/generated/azure_mgmt_data_migration/models/command_properties.rb', line 28 def errors @errors end |
#state ⇒ CommandState
submitted. Possible values include: ‘Unknown’, ‘Accepted’, ‘Running’, ‘Succeeded’, ‘Failed’
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
.mapper ⇒ Object
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 |