azure_mgmt_azurestack 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,46 @@
|
|
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
|
+
# The resource containing the Azure Stack activation key.
|
10
|
+
#
|
11
|
+
class ActivationKeyResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Azure Stack activation key.
|
16
|
+
attr_accessor :activation_key
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for ActivationKeyResult class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'ActivationKeyResult',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'ActivationKeyResult',
|
31
|
+
model_properties: {
|
32
|
+
activation_key: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'activationKey',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
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 ComputeRole
|
10
|
+
#
|
11
|
+
module ComputeRole
|
12
|
+
None = "None"
|
13
|
+
IaaS = "IaaS"
|
14
|
+
PaaS = "PaaS"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,81 @@
|
|
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
|
+
# Customer subscription.
|
10
|
+
#
|
11
|
+
class CustomerSubscription < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Tenant Id.
|
16
|
+
attr_accessor :tenant_id
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for CustomerSubscription class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'CustomerSubscription',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'CustomerSubscription',
|
31
|
+
model_properties: {
|
32
|
+
id: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
read_only: true,
|
36
|
+
serialized_name: 'id',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
},
|
41
|
+
name: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
read_only: true,
|
45
|
+
serialized_name: 'name',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
type: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'type',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
etag: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'etag',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
},
|
67
|
+
tenant_id: {
|
68
|
+
client_side_validation: true,
|
69
|
+
required: false,
|
70
|
+
serialized_name: 'properties.tenantId',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
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 customer subscriptions.
|
10
|
+
#
|
11
|
+
class CustomerSubscriptionList
|
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<CustomerSubscription>] List of customer subscriptions.
|
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<CustomerSubscription>] 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 [CustomerSubscriptionList] 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 CustomerSubscriptionList 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: 'CustomerSubscriptionList',
|
63
|
+
type: {
|
64
|
+
name: 'Composite',
|
65
|
+
class_name: 'CustomerSubscriptionList',
|
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: 'CustomerSubscriptionElementType',
|
85
|
+
type: {
|
86
|
+
name: 'Composite',
|
87
|
+
class_name: 'CustomerSubscription'
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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
|
+
# Data disk image.
|
10
|
+
#
|
11
|
+
class DataDiskImage
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] The LUN.
|
16
|
+
attr_accessor :lun
|
17
|
+
|
18
|
+
# @return [String] SAS key for source blob.
|
19
|
+
attr_accessor :source_blob_sas_uri
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for DataDiskImage 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: 'DataDiskImage',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'DataDiskImage',
|
34
|
+
model_properties: {
|
35
|
+
lun: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'lun',
|
40
|
+
type: {
|
41
|
+
name: 'Number'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
source_blob_sas_uri: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'sourceBlobSasUri',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,86 @@
|
|
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
|
+
# Contains the localized display information for this particular operation
|
10
|
+
# or action.
|
11
|
+
#
|
12
|
+
class Display
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] The localized, friendly version of the resource
|
17
|
+
# provider name.
|
18
|
+
attr_accessor :provider
|
19
|
+
|
20
|
+
# @return [String] The localized, friendly version of the resource type
|
21
|
+
# related to this action or operation; the resource type should match the
|
22
|
+
# public documentation for the resource provider.
|
23
|
+
attr_accessor :resource
|
24
|
+
|
25
|
+
# @return [String] The localized, friendly name for the operation. Use
|
26
|
+
# the name as it will displayed to the user.
|
27
|
+
attr_accessor :operation
|
28
|
+
|
29
|
+
# @return [String] The localized, friendly description for the operation.
|
30
|
+
# The description will be displayed to the user. It should be thorough
|
31
|
+
# and concise for used in both tooltips and detailed views.
|
32
|
+
attr_accessor :description
|
33
|
+
|
34
|
+
|
35
|
+
#
|
36
|
+
# Mapper for Display class as Ruby Hash.
|
37
|
+
# This will be used for serialization/deserialization.
|
38
|
+
#
|
39
|
+
def self.mapper()
|
40
|
+
{
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'Display',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
class_name: 'Display',
|
47
|
+
model_properties: {
|
48
|
+
provider: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'provider',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
resource: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'resource',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
operation: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'operation',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
description: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'description',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
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
|
+
# The details of the error.
|
10
|
+
#
|
11
|
+
class ErrorDetails
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Error code.
|
16
|
+
attr_accessor :code
|
17
|
+
|
18
|
+
# @return [String] Error message indicating why the operation failed.
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
# @return [String] The target of the particular error.
|
22
|
+
attr_accessor :target
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for ErrorDetails class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'ErrorDetails',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'ErrorDetails',
|
37
|
+
model_properties: {
|
38
|
+
code: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
read_only: true,
|
42
|
+
serialized_name: 'code',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
message: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: false,
|
50
|
+
read_only: true,
|
51
|
+
serialized_name: 'message',
|
52
|
+
type: {
|
53
|
+
name: 'String'
|
54
|
+
}
|
55
|
+
},
|
56
|
+
target: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
read_only: true,
|
60
|
+
serialized_name: 'target',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|