azure_mgmt_azurestack 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2017-06-01/generated/azure_mgmt_azurestack.rb +58 -0
  4. data/lib/2017-06-01/generated/azure_mgmt_azurestack/azure_stack_management_client.rb +145 -0
  5. data/lib/2017-06-01/generated/azure_mgmt_azurestack/customer_subscriptions.rb +528 -0
  6. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/activation_key_result.rb +46 -0
  7. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/compute_role.rb +17 -0
  8. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/customer_subscription.rb +81 -0
  9. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/customer_subscription_list.rb +98 -0
  10. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/data_disk_image.rb +59 -0
  11. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/display.rb +86 -0
  12. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/error_details.rb +71 -0
  13. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/error_response.rb +48 -0
  14. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/extended_product.rb +184 -0
  15. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/icon_uris.rb +90 -0
  16. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/location.rb +15 -0
  17. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/operating_system.rb +17 -0
  18. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/operation.rb +71 -0
  19. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/operation_list.rb +98 -0
  20. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/os_disk_image.rb +60 -0
  21. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/product.rb +271 -0
  22. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/product_link.rb +57 -0
  23. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/product_list.rb +98 -0
  24. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/product_properties.rb +46 -0
  25. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/provisioning_state.rb +18 -0
  26. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/registration.rb +131 -0
  27. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/registration_list.rb +98 -0
  28. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/registration_parameter.rb +58 -0
  29. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/resource.rb +92 -0
  30. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/tracked_resource.rb +115 -0
  31. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/virtual_machine_extension_product_properties.rb +123 -0
  32. data/lib/2017-06-01/generated/azure_mgmt_azurestack/models/virtual_machine_product_properties.rb +81 -0
  33. data/lib/2017-06-01/generated/azure_mgmt_azurestack/module_definition.rb +9 -0
  34. data/lib/2017-06-01/generated/azure_mgmt_azurestack/operations.rb +218 -0
  35. data/lib/2017-06-01/generated/azure_mgmt_azurestack/products.rb +426 -0
  36. data/lib/2017-06-01/generated/azure_mgmt_azurestack/registrations.rb +717 -0
  37. data/lib/azure_mgmt_azurestack.rb +6 -0
  38. data/lib/module_definition.rb +7 -0
  39. data/lib/profiles/latest/azurestack_latest_profile_client.rb +40 -0
  40. data/lib/profiles/latest/azurestack_module_definition.rb +8 -0
  41. data/lib/profiles/latest/modules/azurestack_profile_module.rb +175 -0
  42. data/lib/version.rb +7 -0
  43. 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
+ # Additional properties of the product
10
+ #
11
+ class ProductProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The version.
16
+ attr_accessor :version
17
+
18
+
19
+ #
20
+ # Mapper for ProductProperties 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: 'ProductProperties',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ProductProperties',
31
+ model_properties: {
32
+ version: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'version',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,18 @@
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 ProvisioningState
10
+ #
11
+ module ProvisioningState
12
+ Creating = "Creating"
13
+ Failed = "Failed"
14
+ Succeeded = "Succeeded"
15
+ Canceled = "Canceled"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,131 @@
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
+ # Registration information.
10
+ #
11
+ class Registration < TrackedResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The object identifier associated with the Azure Stack
16
+ # connecting to Azure.
17
+ attr_accessor :object_id
18
+
19
+ # @return [String] The identifier of the registered Azure Stack.
20
+ attr_accessor :cloud_id
21
+
22
+ # @return [String] Specifies the billing mode for the Azure Stack
23
+ # registration.
24
+ attr_accessor :billing_model
25
+
26
+
27
+ #
28
+ # Mapper for Registration 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: 'Registration',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'Registration',
39
+ model_properties: {
40
+ id: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ read_only: true,
44
+ serialized_name: 'id',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ name: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ read_only: true,
53
+ serialized_name: 'name',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ type: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'type',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ location: {
68
+ client_side_validation: true,
69
+ required: true,
70
+ is_constant: true,
71
+ serialized_name: 'location',
72
+ default_value: 'global',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ tags: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'tags',
81
+ type: {
82
+ name: 'Dictionary',
83
+ value: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'StringElementType',
87
+ type: {
88
+ name: 'String'
89
+ }
90
+ }
91
+ }
92
+ },
93
+ etag: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'etag',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ object_id: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'properties.objectId',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ },
109
+ cloud_id: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ serialized_name: 'properties.cloudId',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ billing_model: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ serialized_name: 'properties.billingModel',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ end
129
+ end
130
+ end
131
+ 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 registrations.
10
+ #
11
+ class RegistrationList
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<Registration>] List of Registrations
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<Registration>] 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 [RegistrationList] 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 RegistrationList 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: 'RegistrationList',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'RegistrationList',
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: 'RegistrationElementType',
85
+ type: {
86
+ name: 'Composite',
87
+ class_name: 'Registration'
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,58 @@
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
+ # Registration resource
10
+ #
11
+ class RegistrationParameter
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The token identifying registered Azure Stack
16
+ attr_accessor :registration_token
17
+
18
+ # @return [Location] Location of the resource. Possible values include:
19
+ # 'global'
20
+ attr_accessor :location
21
+
22
+
23
+ #
24
+ # Mapper for RegistrationParameter 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: 'RegistrationParameter',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'RegistrationParameter',
35
+ model_properties: {
36
+ registration_token: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: 'properties.registrationToken',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ location: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'location',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,92 @@
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
+ # Base resource object.
10
+ #
11
+ class Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] ID of the resource.
16
+ attr_accessor :id
17
+
18
+ # @return [String] Name of the resource.
19
+ attr_accessor :name
20
+
21
+ # @return [String] Type of Resource.
22
+ attr_accessor :type
23
+
24
+ # @return [String] The entity tag used for optimistic concurrency when
25
+ # modifying the resource.
26
+ attr_accessor :etag
27
+
28
+
29
+ # @return [String] the name of the resource group of the resource.
30
+ def resource_group
31
+ unless self.id.nil?
32
+ groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
33
+ groups.captures[0].strip if groups
34
+ end
35
+ end
36
+
37
+
38
+ #
39
+ # Mapper for Resource class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'Resource',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'Resource',
50
+ model_properties: {
51
+ id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ name: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'name',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ type: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ etag: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'etag',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ end
90
+ end
91
+ end
92
+ end