Class: Azure::Web::Mgmt::V2018_02_01::Models::Operation
- Inherits:
-
Object
- Object
- Azure::Web::Mgmt::V2018_02_01::Models::Operation
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb
Overview
An operation on a resource.
Instance Attribute Summary collapse
-
#created_time ⇒ DateTime
Time when operation has started.
-
#errors ⇒ Array<ErrorEntity>
Any errors associate with the operation.
-
#expiration_time ⇒ DateTime
Time when operation will expire.
-
#geo_master_operation_id ⇒ Object
Applicable only for stamp operation ids.
-
#id ⇒ String
Operation ID.
-
#modified_time ⇒ DateTime
Time when operation has been updated.
-
#name ⇒ String
Operation name.
-
#status ⇒ OperationStatus
values include: ‘InProgress’, ‘Failed’, ‘Succeeded’, ‘TimedOut’, ‘Created’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for Operation class as Ruby Hash.
Instance Attribute Details
#created_time ⇒ DateTime
Returns Time when operation has started.
30 31 32 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 30 def created_time @created_time end |
#errors ⇒ Array<ErrorEntity>
Returns Any errors associate with the operation.
27 28 29 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 27 def errors @errors end |
#expiration_time ⇒ DateTime
Returns Time when operation will expire.
36 37 38 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 36 def expiration_time @expiration_time end |
#geo_master_operation_id ⇒ Object
Returns Applicable only for stamp operation ids.
39 40 41 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 39 def geo_master_operation_id @geo_master_operation_id end |
#id ⇒ String
Returns Operation ID.
16 17 18 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 16 def id @id end |
#modified_time ⇒ DateTime
Returns Time when operation has been updated.
33 34 35 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 33 def modified_time @modified_time end |
#name ⇒ String
Returns Operation name.
19 20 21 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 19 def name @name end |
#status ⇒ OperationStatus
values include: ‘InProgress’, ‘Failed’, ‘Succeeded’, ‘TimedOut’, ‘Created’
24 25 26 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 24 def status @status end |
Class Method Details
.mapper ⇒ Object
Mapper for Operation class as Ruby Hash. This will be used for serialization/deserialization.
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 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 46 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Operation', type: { name: 'Composite', class_name: 'Operation', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, status: { client_side_validation: true, required: false, serialized_name: 'status', type: { name: 'Enum', module: 'OperationStatus' } }, errors: { client_side_validation: true, required: false, serialized_name: 'errors', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ErrorEntityElementType', type: { name: 'Composite', class_name: 'ErrorEntity' } } } }, created_time: { client_side_validation: true, required: false, serialized_name: 'createdTime', type: { name: 'DateTime' } }, modified_time: { client_side_validation: true, required: false, serialized_name: 'modifiedTime', type: { name: 'DateTime' } }, expiration_time: { client_side_validation: true, required: false, serialized_name: 'expirationTime', type: { name: 'DateTime' } }, geo_master_operation_id: { client_side_validation: true, required: false, serialized_name: 'geoMasterOperationId', type: { name: 'String' } } } } } end |