azure_mgmt_azurestack 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack.rb +58 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/azure_stack_management_client.rb +145 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/customer_subscriptions.rb +528 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/activation_key_result.rb +46 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/compute_role.rb +17 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/customer_subscription.rb +81 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/customer_subscription_list.rb +98 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/data_disk_image.rb +59 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/display.rb +86 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/error_details.rb +71 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/error_response.rb +48 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/extended_product.rb +184 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/icon_uris.rb +90 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/location.rb +15 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/operating_system.rb +17 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/operation.rb +71 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/operation_list.rb +98 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/os_disk_image.rb +60 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/product.rb +271 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/product_link.rb +57 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/product_list.rb +98 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/product_properties.rb +46 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/provisioning_state.rb +18 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/registration.rb +131 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/registration_list.rb +98 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/registration_parameter.rb +58 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/resource.rb +92 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/tracked_resource.rb +115 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/virtual_machine_extension_product_properties.rb +123 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/virtual_machine_product_properties.rb +81 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/module_definition.rb +9 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/operations.rb +218 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/products.rb +426 -0
- data/lib/2017-06-01/generated/azure_mgmt_azurestack/registrations.rb +717 -0
- data/lib/azure_mgmt_azurestack.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/azurestack_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/azurestack_module_definition.rb +8 -0
- data/lib/profiles/latest/modules/azurestack_profile_module.rb +175 -0
- data/lib/version.rb +7 -0
- metadata +158 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::AzureStack::Mgmt::V2017_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# OS disk image.
|
10
|
+
#
|
11
|
+
class OsDiskImage
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [OperatingSystem] OS operating system type. Possible values
|
16
|
+
# include: 'None', 'Windows', 'Linux'
|
17
|
+
attr_accessor :operating_system
|
18
|
+
|
19
|
+
# @return [String] SAS key for source blob.
|
20
|
+
attr_accessor :source_blob_sas_uri
|
21
|
+
|
22
|
+
|
23
|
+
#
|
24
|
+
# Mapper for OsDiskImage class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
client_side_validation: true,
|
30
|
+
required: false,
|
31
|
+
serialized_name: 'OsDiskImage',
|
32
|
+
type: {
|
33
|
+
name: 'Composite',
|
34
|
+
class_name: 'OsDiskImage',
|
35
|
+
model_properties: {
|
36
|
+
operating_system: {
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
read_only: true,
|
40
|
+
serialized_name: 'operatingSystem',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
},
|
45
|
+
source_blob_sas_uri: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'sourceBlobSasUri',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
@@ -0,0 +1,271 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::AzureStack::Mgmt::V2017_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Product information.
|
10
|
+
#
|
11
|
+
class Product < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The display name of the product.
|
16
|
+
attr_accessor :display_name
|
17
|
+
|
18
|
+
# @return [String] The description of the product.
|
19
|
+
attr_accessor :description
|
20
|
+
|
21
|
+
# @return [String] The user-friendly name of the product publisher.
|
22
|
+
attr_accessor :publisher_display_name
|
23
|
+
|
24
|
+
# @return [String] Publisher identifier.
|
25
|
+
attr_accessor :publisher_identifier
|
26
|
+
|
27
|
+
# @return [String] The offer representing the product.
|
28
|
+
attr_accessor :offer
|
29
|
+
|
30
|
+
# @return [String] The version of the product offer.
|
31
|
+
attr_accessor :offer_version
|
32
|
+
|
33
|
+
# @return [String] The product SKU.
|
34
|
+
attr_accessor :sku
|
35
|
+
|
36
|
+
# @return [String] The part number used for billing purposes.
|
37
|
+
attr_accessor :billing_part_number
|
38
|
+
|
39
|
+
# @return [String] The type of the Virtual Machine Extension.
|
40
|
+
attr_accessor :vm_extension_type
|
41
|
+
|
42
|
+
# @return [String] The identifier of the gallery item corresponding to
|
43
|
+
# the product.
|
44
|
+
attr_accessor :gallery_item_identity
|
45
|
+
|
46
|
+
# @return [IconUris] Additional links available for this product.
|
47
|
+
attr_accessor :icon_uris
|
48
|
+
|
49
|
+
# @return [Array<ProductLink>] Additional links available for this
|
50
|
+
# product.
|
51
|
+
attr_accessor :links
|
52
|
+
|
53
|
+
# @return [String] The legal terms.
|
54
|
+
attr_accessor :legal_terms
|
55
|
+
|
56
|
+
# @return [String] The privacy policy.
|
57
|
+
attr_accessor :privacy_policy
|
58
|
+
|
59
|
+
# @return [Integer] The length of product content.
|
60
|
+
attr_accessor :payload_length
|
61
|
+
|
62
|
+
# @return [String] The kind of the product (virtualMachine or
|
63
|
+
# virtualMachineExtension)
|
64
|
+
attr_accessor :product_kind
|
65
|
+
|
66
|
+
# @return [ProductProperties] Additional properties for the product.
|
67
|
+
attr_accessor :product_properties
|
68
|
+
|
69
|
+
|
70
|
+
#
|
71
|
+
# Mapper for Product class as Ruby Hash.
|
72
|
+
# This will be used for serialization/deserialization.
|
73
|
+
#
|
74
|
+
def self.mapper()
|
75
|
+
{
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'Product',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'Product',
|
82
|
+
model_properties: {
|
83
|
+
id: {
|
84
|
+
client_side_validation: true,
|
85
|
+
required: false,
|
86
|
+
read_only: true,
|
87
|
+
serialized_name: 'id',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
name: {
|
93
|
+
client_side_validation: true,
|
94
|
+
required: false,
|
95
|
+
read_only: true,
|
96
|
+
serialized_name: 'name',
|
97
|
+
type: {
|
98
|
+
name: 'String'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
type: {
|
102
|
+
client_side_validation: true,
|
103
|
+
required: false,
|
104
|
+
read_only: true,
|
105
|
+
serialized_name: 'type',
|
106
|
+
type: {
|
107
|
+
name: 'String'
|
108
|
+
}
|
109
|
+
},
|
110
|
+
etag: {
|
111
|
+
client_side_validation: true,
|
112
|
+
required: false,
|
113
|
+
serialized_name: 'etag',
|
114
|
+
type: {
|
115
|
+
name: 'String'
|
116
|
+
}
|
117
|
+
},
|
118
|
+
display_name: {
|
119
|
+
client_side_validation: true,
|
120
|
+
required: false,
|
121
|
+
serialized_name: 'properties.displayName',
|
122
|
+
type: {
|
123
|
+
name: 'String'
|
124
|
+
}
|
125
|
+
},
|
126
|
+
description: {
|
127
|
+
client_side_validation: true,
|
128
|
+
required: false,
|
129
|
+
serialized_name: 'properties.description',
|
130
|
+
type: {
|
131
|
+
name: 'String'
|
132
|
+
}
|
133
|
+
},
|
134
|
+
publisher_display_name: {
|
135
|
+
client_side_validation: true,
|
136
|
+
required: false,
|
137
|
+
serialized_name: 'properties.publisherDisplayName',
|
138
|
+
type: {
|
139
|
+
name: 'String'
|
140
|
+
}
|
141
|
+
},
|
142
|
+
publisher_identifier: {
|
143
|
+
client_side_validation: true,
|
144
|
+
required: false,
|
145
|
+
serialized_name: 'properties.publisherIdentifier',
|
146
|
+
type: {
|
147
|
+
name: 'String'
|
148
|
+
}
|
149
|
+
},
|
150
|
+
offer: {
|
151
|
+
client_side_validation: true,
|
152
|
+
required: false,
|
153
|
+
serialized_name: 'properties.offer',
|
154
|
+
type: {
|
155
|
+
name: 'String'
|
156
|
+
}
|
157
|
+
},
|
158
|
+
offer_version: {
|
159
|
+
client_side_validation: true,
|
160
|
+
required: false,
|
161
|
+
serialized_name: 'properties.offerVersion',
|
162
|
+
type: {
|
163
|
+
name: 'String'
|
164
|
+
}
|
165
|
+
},
|
166
|
+
sku: {
|
167
|
+
client_side_validation: true,
|
168
|
+
required: false,
|
169
|
+
serialized_name: 'properties.sku',
|
170
|
+
type: {
|
171
|
+
name: 'String'
|
172
|
+
}
|
173
|
+
},
|
174
|
+
billing_part_number: {
|
175
|
+
client_side_validation: true,
|
176
|
+
required: false,
|
177
|
+
serialized_name: 'properties.billingPartNumber',
|
178
|
+
type: {
|
179
|
+
name: 'String'
|
180
|
+
}
|
181
|
+
},
|
182
|
+
vm_extension_type: {
|
183
|
+
client_side_validation: true,
|
184
|
+
required: false,
|
185
|
+
serialized_name: 'properties.vmExtensionType',
|
186
|
+
type: {
|
187
|
+
name: 'String'
|
188
|
+
}
|
189
|
+
},
|
190
|
+
gallery_item_identity: {
|
191
|
+
client_side_validation: true,
|
192
|
+
required: false,
|
193
|
+
serialized_name: 'properties.galleryItemIdentity',
|
194
|
+
type: {
|
195
|
+
name: 'String'
|
196
|
+
}
|
197
|
+
},
|
198
|
+
icon_uris: {
|
199
|
+
client_side_validation: true,
|
200
|
+
required: false,
|
201
|
+
serialized_name: 'properties.iconUris',
|
202
|
+
type: {
|
203
|
+
name: 'Composite',
|
204
|
+
class_name: 'IconUris'
|
205
|
+
}
|
206
|
+
},
|
207
|
+
links: {
|
208
|
+
client_side_validation: true,
|
209
|
+
required: false,
|
210
|
+
serialized_name: 'properties.links',
|
211
|
+
type: {
|
212
|
+
name: 'Sequence',
|
213
|
+
element: {
|
214
|
+
client_side_validation: true,
|
215
|
+
required: false,
|
216
|
+
serialized_name: 'ProductLinkElementType',
|
217
|
+
type: {
|
218
|
+
name: 'Composite',
|
219
|
+
class_name: 'ProductLink'
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
},
|
224
|
+
legal_terms: {
|
225
|
+
client_side_validation: true,
|
226
|
+
required: false,
|
227
|
+
serialized_name: 'properties.legalTerms',
|
228
|
+
type: {
|
229
|
+
name: 'String'
|
230
|
+
}
|
231
|
+
},
|
232
|
+
privacy_policy: {
|
233
|
+
client_side_validation: true,
|
234
|
+
required: false,
|
235
|
+
serialized_name: 'properties.privacyPolicy',
|
236
|
+
type: {
|
237
|
+
name: 'String'
|
238
|
+
}
|
239
|
+
},
|
240
|
+
payload_length: {
|
241
|
+
client_side_validation: true,
|
242
|
+
required: false,
|
243
|
+
serialized_name: 'properties.payloadLength',
|
244
|
+
type: {
|
245
|
+
name: 'Number'
|
246
|
+
}
|
247
|
+
},
|
248
|
+
product_kind: {
|
249
|
+
client_side_validation: true,
|
250
|
+
required: false,
|
251
|
+
serialized_name: 'properties.productKind',
|
252
|
+
type: {
|
253
|
+
name: 'String'
|
254
|
+
}
|
255
|
+
},
|
256
|
+
product_properties: {
|
257
|
+
client_side_validation: true,
|
258
|
+
required: false,
|
259
|
+
serialized_name: 'properties.productProperties',
|
260
|
+
type: {
|
261
|
+
name: 'Composite',
|
262
|
+
class_name: 'ProductProperties'
|
263
|
+
}
|
264
|
+
}
|
265
|
+
}
|
266
|
+
}
|
267
|
+
}
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::AzureStack::Mgmt::V2017_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Link with additional information about a product.
|
10
|
+
#
|
11
|
+
class ProductLink
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The description of the link.
|
16
|
+
attr_accessor :display_name
|
17
|
+
|
18
|
+
# @return [String] The URI corresponding to the link.
|
19
|
+
attr_accessor :uri
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for ProductLink class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'ProductLink',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'ProductLink',
|
34
|
+
model_properties: {
|
35
|
+
display_name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'displayName',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
uri: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'uri',
|
47
|
+
type: {
|
48
|
+
name: 'String'
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::AzureStack::Mgmt::V2017_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Pageable list of products.
|
10
|
+
#
|
11
|
+
class ProductList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] URI to the next page.
|
17
|
+
attr_accessor :next_link
|
18
|
+
|
19
|
+
# @return [Array<Product>] List of products.
|
20
|
+
attr_accessor :value
|
21
|
+
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<Product>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [ProductList] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for ProductList class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'ProductList',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'ProductList',
|
66
|
+
model_properties: {
|
67
|
+
next_link: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'nextLink',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
value: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'value',
|
79
|
+
type: {
|
80
|
+
name: 'Sequence',
|
81
|
+
element: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'ProductElementType',
|
85
|
+
type: {
|
86
|
+
name: 'Composite',
|
87
|
+
class_name: 'Product'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|