Class: Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel

Inherits:
TrackedResource show all
Includes:
MsRestAzure
Defined in:
lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb

Overview

Definition of the module type.

Instance Attribute Summary collapse

Attributes inherited from TrackedResource

#location, #tags

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#activity_countInteger

Returns Gets or sets the activity count of the module.

Returns:

  • (Integer)

    Gets or sets the activity count of the module.



25
26
27
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 25

def activity_count
  @activity_count
end

Returns Gets or sets the contentLink of the module.

Returns:

  • (ContentLink)

    Gets or sets the contentLink of the module.



37
38
39
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 37

def content_link
  @content_link
end

#creation_timeDateTime

Returns Gets or sets the creation time.

Returns:

  • (DateTime)

    Gets or sets the creation time.



43
44
45
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 43

def creation_time
  @creation_time
end

#descriptionString

Returns Gets or sets the description.

Returns:

  • (String)

    Gets or sets the description.



49
50
51
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 49

def description
  @description
end

#errorModuleErrorInfo

Returns Gets or sets the error info of the module.

Returns:



40
41
42
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 40

def error
  @error
end

#etagString

Returns Gets or sets the etag of the resource.

Returns:

  • (String)

    Gets or sets the etag of the resource.



55
56
57
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 55

def etag
  @etag
end

#is_compositeBoolean

Returns Gets or sets type of module, if its composite or not.

Returns:

  • (Boolean)

    Gets or sets type of module, if its composite or not.



52
53
54
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 52

def is_composite
  @is_composite
end

#is_globalBoolean

Returns Gets or sets the isGlobal flag of the module.

Returns:

  • (Boolean)

    Gets or sets the isGlobal flag of the module.



16
17
18
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 16

def is_global
  @is_global
end

#last_modified_timeDateTime

Returns Gets or sets the last modified time.

Returns:

  • (DateTime)

    Gets or sets the last modified time.



46
47
48
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 46

def last_modified_time
  @last_modified_time
end

#provisioning_stateModuleProvisioningState

of the module. Possible values include: ‘Created’, ‘Creating’, ‘StartingImportModuleRunbook’, ‘RunningImportModuleRunbook’, ‘ContentRetrieved’, ‘ContentDownloaded’, ‘ContentValidated’, ‘ConnectionTypeImported’, ‘ContentStored’, ‘ModuleDataStored’, ‘ActivitiesStored’, ‘ModuleImportRunbookComplete’, ‘Succeeded’, ‘Failed’, ‘Cancelled’, ‘Updating’

Returns:



34
35
36
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 34

def provisioning_state
  @provisioning_state
end

#size_in_bytesInteger

Returns Gets or sets the size in bytes of the module.

Returns:

  • (Integer)

    Gets or sets the size in bytes of the module.



22
23
24
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 22

def size_in_bytes
  @size_in_bytes
end

#versionString

Returns Gets or sets the version of the module.

Returns:

  • (String)

    Gets or sets the version of the module.



19
20
21
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 19

def version
  @version
end

Class Method Details

.mapperObject

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



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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# File 'lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb', line 62

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Module',
    type: {
      name: 'Composite',
      class_name: 'ModuleModel',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        is_global: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isGlobal',
          type: {
            name: 'Boolean'
          }
        },
        version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.version',
          type: {
            name: 'String'
          }
        },
        size_in_bytes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.sizeInBytes',
          type: {
            name: 'Number'
          }
        },
        activity_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.activityCount',
          type: {
            name: 'Number'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'Enum',
            module: 'ModuleProvisioningState'
          }
        },
        content_link: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.contentLink',
          type: {
            name: 'Composite',
            class_name: 'ContentLink'
          }
        },
        error: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.error',
          type: {
            name: 'Composite',
            class_name: 'ModuleErrorInfo'
          }
        },
        creation_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.creationTime',
          type: {
            name: 'DateTime'
          }
        },
        last_modified_time: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.lastModifiedTime',
          type: {
            name: 'DateTime'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.description',
          type: {
            name: 'String'
          }
        },
        is_composite: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isComposite',
          type: {
            name: 'Boolean'
          }
        },
        etag: {
          client_side_validation: true,
          required: false,
          serialized_name: 'etag',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end