Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::CommandProperties
- Inherits:
-
Object
- Object
- Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::CommandProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-07-15-preview/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, MongoDbCancelCommand, MongoDbFinishCommand, MongoDbRestartCommand
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.
23 24 25 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/command_properties.rb', line 23 def initialize @commandType = "CommandProperties" end |
Instance Attribute Details
#commandType ⇒ Object
Returns the value of attribute commandType.
27 28 29 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/command_properties.rb', line 27 def commandType @commandType end |
#errors ⇒ Array<ODataError>
submitted.
31 32 33 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/command_properties.rb', line 31 def errors @errors end |
#state ⇒ CommandState
submitted. Possible values include: ‘Unknown’, ‘Accepted’, ‘Running’, ‘Succeeded’, ‘Failed’
36 37 38 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/command_properties.rb', line 36 def state @state end |
Class Method Details
.mapper ⇒ Object
Mapper for CommandProperties class as Ruby Hash. This will be used for serialization/deserialization.
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 83 84 |
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/command_properties.rb', line 43 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 |