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,48 @@
|
|
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
|
+
# Error response indicates that the service is not able to process the
|
10
|
+
# incoming request. The reason is provided in the error message.
|
11
|
+
#
|
12
|
+
class ErrorResponse
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [ErrorDetails] The details of the error.
|
17
|
+
attr_accessor :error
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for ErrorResponse class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'ErrorResponse',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'ErrorResponse',
|
32
|
+
model_properties: {
|
33
|
+
error: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'error',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'ErrorDetails'
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,184 @@
|
|
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
|
+
# Extended description about the product required for installing it into
|
10
|
+
# Azure Stack.
|
11
|
+
#
|
12
|
+
class ExtendedProduct
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The URI to the .azpkg file that provides information
|
17
|
+
# required for showing product in the gallery.
|
18
|
+
attr_accessor :gallery_package_blob_sas_uri
|
19
|
+
|
20
|
+
# @return [String] Specifies the kind of the product (virtualMachine or
|
21
|
+
# virtualMachineExtension).
|
22
|
+
attr_accessor :product_kind
|
23
|
+
|
24
|
+
# @return [ComputeRole] Specifies kind of compute role included in the
|
25
|
+
# package. Possible values include: 'None', 'IaaS', 'PaaS'
|
26
|
+
attr_accessor :compute_role
|
27
|
+
|
28
|
+
# @return [Boolean] Specifies if product is a Virtual Machine Extension.
|
29
|
+
attr_accessor :is_system_extension
|
30
|
+
|
31
|
+
# @return [String] The URI.
|
32
|
+
attr_accessor :uri
|
33
|
+
|
34
|
+
# @return [Boolean] Indicates if specified product supports multiple
|
35
|
+
# extensions.
|
36
|
+
attr_accessor :support_multiple_extensions
|
37
|
+
|
38
|
+
# @return [String] Specifies product version.
|
39
|
+
attr_accessor :version
|
40
|
+
|
41
|
+
# @return [OperatingSystem] Specifies operating system used by the
|
42
|
+
# product. Possible values include: 'None', 'Windows', 'Linux'
|
43
|
+
attr_accessor :vm_os_type
|
44
|
+
|
45
|
+
# @return [Boolean] Indicates if virtual machine Scale Set is enabled in
|
46
|
+
# the specified product.
|
47
|
+
attr_accessor :vm_scale_set_enabled
|
48
|
+
|
49
|
+
# @return [OsDiskImage] OS disk image used by product.
|
50
|
+
attr_accessor :os_disk_image
|
51
|
+
|
52
|
+
# @return [Array<DataDiskImage>] List of attached data disks.
|
53
|
+
attr_accessor :data_disk_images
|
54
|
+
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for ExtendedProduct class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'ExtendedProduct',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'ExtendedProduct',
|
68
|
+
model_properties: {
|
69
|
+
gallery_package_blob_sas_uri: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
read_only: true,
|
73
|
+
serialized_name: 'galleryPackageBlobSasUri',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
product_kind: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
read_only: true,
|
82
|
+
serialized_name: 'productKind',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
compute_role: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
read_only: true,
|
91
|
+
serialized_name: 'properties.computeRole',
|
92
|
+
type: {
|
93
|
+
name: 'String'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
is_system_extension: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
read_only: true,
|
100
|
+
serialized_name: 'properties.isSystemExtension',
|
101
|
+
type: {
|
102
|
+
name: 'Boolean'
|
103
|
+
}
|
104
|
+
},
|
105
|
+
uri: {
|
106
|
+
client_side_validation: true,
|
107
|
+
required: false,
|
108
|
+
read_only: true,
|
109
|
+
serialized_name: 'properties.sourceBlob.uri',
|
110
|
+
type: {
|
111
|
+
name: 'String'
|
112
|
+
}
|
113
|
+
},
|
114
|
+
support_multiple_extensions: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
read_only: true,
|
118
|
+
serialized_name: 'properties.supportMultipleExtensions',
|
119
|
+
type: {
|
120
|
+
name: 'Boolean'
|
121
|
+
}
|
122
|
+
},
|
123
|
+
version: {
|
124
|
+
client_side_validation: true,
|
125
|
+
required: false,
|
126
|
+
read_only: true,
|
127
|
+
serialized_name: 'properties.version',
|
128
|
+
type: {
|
129
|
+
name: 'String'
|
130
|
+
}
|
131
|
+
},
|
132
|
+
vm_os_type: {
|
133
|
+
client_side_validation: true,
|
134
|
+
required: false,
|
135
|
+
read_only: true,
|
136
|
+
serialized_name: 'properties.vmOsType',
|
137
|
+
type: {
|
138
|
+
name: 'String'
|
139
|
+
}
|
140
|
+
},
|
141
|
+
vm_scale_set_enabled: {
|
142
|
+
client_side_validation: true,
|
143
|
+
required: false,
|
144
|
+
read_only: true,
|
145
|
+
serialized_name: 'properties.vmScaleSetEnabled',
|
146
|
+
type: {
|
147
|
+
name: 'Boolean'
|
148
|
+
}
|
149
|
+
},
|
150
|
+
os_disk_image: {
|
151
|
+
client_side_validation: true,
|
152
|
+
required: false,
|
153
|
+
read_only: true,
|
154
|
+
serialized_name: 'properties.osDiskImage',
|
155
|
+
type: {
|
156
|
+
name: 'Composite',
|
157
|
+
class_name: 'OsDiskImage'
|
158
|
+
}
|
159
|
+
},
|
160
|
+
data_disk_images: {
|
161
|
+
client_side_validation: true,
|
162
|
+
required: false,
|
163
|
+
read_only: true,
|
164
|
+
serialized_name: 'properties.dataDiskImages',
|
165
|
+
type: {
|
166
|
+
name: 'Sequence',
|
167
|
+
element: {
|
168
|
+
client_side_validation: true,
|
169
|
+
required: false,
|
170
|
+
serialized_name: 'DataDiskImageElementType',
|
171
|
+
type: {
|
172
|
+
name: 'Composite',
|
173
|
+
class_name: 'DataDiskImage'
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
180
|
+
}
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
@@ -0,0 +1,90 @@
|
|
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
|
+
# Links to product icons.
|
10
|
+
#
|
11
|
+
class IconUris
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] URI to large icon.
|
16
|
+
attr_accessor :large
|
17
|
+
|
18
|
+
# @return [String] URI to wide icon.
|
19
|
+
attr_accessor :wide
|
20
|
+
|
21
|
+
# @return [String] URI to medium icon.
|
22
|
+
attr_accessor :medium
|
23
|
+
|
24
|
+
# @return [String] URI to small icon.
|
25
|
+
attr_accessor :small
|
26
|
+
|
27
|
+
# @return [String] URI to hero icon.
|
28
|
+
attr_accessor :hero
|
29
|
+
|
30
|
+
|
31
|
+
#
|
32
|
+
# Mapper for IconUris class as Ruby Hash.
|
33
|
+
# This will be used for serialization/deserialization.
|
34
|
+
#
|
35
|
+
def self.mapper()
|
36
|
+
{
|
37
|
+
client_side_validation: true,
|
38
|
+
required: false,
|
39
|
+
serialized_name: 'IconUris',
|
40
|
+
type: {
|
41
|
+
name: 'Composite',
|
42
|
+
class_name: 'IconUris',
|
43
|
+
model_properties: {
|
44
|
+
large: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'large',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
wide: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'wide',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
medium: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'medium',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
small: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'small',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
hero: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'hero',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,15 @@
|
|
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
|
+
# Defines values for Location
|
10
|
+
#
|
11
|
+
module Location
|
12
|
+
Global = "global"
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,17 @@
|
|
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
|
+
# Defines values for OperatingSystem
|
10
|
+
#
|
11
|
+
module OperatingSystem
|
12
|
+
None = "None"
|
13
|
+
Windows = "Windows"
|
14
|
+
Linux = "Linux"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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
|
+
# Describes the supported REST operation.
|
10
|
+
#
|
11
|
+
class Operation
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The name of the operation being performed on this
|
16
|
+
# particular object.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# @return [Display] Contains the localized display information for this
|
20
|
+
# particular operation or action.
|
21
|
+
attr_accessor :display
|
22
|
+
|
23
|
+
# @return [String] The intended executor of the operation.
|
24
|
+
attr_accessor :origin
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for Operation class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'Operation',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'Operation',
|
39
|
+
model_properties: {
|
40
|
+
name: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'name',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
display: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'display',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'Display'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
origin: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'origin',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
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
|
+
# List of Operations
|
10
|
+
#
|
11
|
+
class OperationList
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<Operation>] Array of operations
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] URI to the next page of operations.
|
20
|
+
attr_accessor :next_link
|
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<Operation>] 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 [OperationList] 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 OperationList 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: 'OperationList',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'OperationList',
|
66
|
+
model_properties: {
|
67
|
+
value: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'value',
|
71
|
+
type: {
|
72
|
+
name: 'Sequence',
|
73
|
+
element: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'OperationElementType',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'Operation'
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
},
|
84
|
+
next_link: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'nextLink',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|