Class: Azure::Web::Mgmt::V2018_02_01::Models::Operation

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#created_timeDateTime

Returns Time when operation has started.

Returns:

  • (DateTime)

    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

#errorsArray<ErrorEntity>

Returns Any errors associate with the operation.

Returns:

  • (Array<ErrorEntity>)

    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_timeDateTime

Returns Time when operation will expire.

Returns:

  • (DateTime)

    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_idObject

Returns Applicable only for stamp operation ids.

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

#idString

Returns Operation ID.

Returns:

  • (String)

    Operation ID.



16
17
18
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 16

def id
  @id
end

#modified_timeDateTime

Returns Time when operation has been updated.

Returns:

  • (DateTime)

    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

#nameString

Returns Operation name.

Returns:

  • (String)

    Operation name.



19
20
21
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 19

def name
  @name
end

#statusOperationStatus

values include: ‘InProgress’, ‘Failed’, ‘Succeeded’, ‘TimedOut’, ‘Created’

Returns:



24
25
26
# File 'lib/2018-02-01/generated/azure_mgmt_web/models/operation.rb', line 24

def status
  @status
end

Class Method Details

.mapperObject

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