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,6 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require '2017-06-01/generated/azure_mgmt_azurestack'
6
+ require 'profiles/latest/azurestack_latest_profile_client'
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::Azurestack end
7
+ module Azure::Azurestack::Mgmt end
@@ -0,0 +1,40 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/latest/azurestack_module_definition'
6
+ require 'profiles/latest/modules/azurestack_profile_module'
7
+
8
+ module Azure::AzureStack::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < AzureStackManagementClass
14
+ include MsRestAzure::Common::Configurable
15
+
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
37
+
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::AzureStack end
7
+ module Azure::AzureStack::Profiles end
8
+ module Azure::AzureStack::Profiles::Latest end
@@ -0,0 +1,175 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_azurestack'
6
+
7
+ module Azure::AzureStack::Profiles::Latest
8
+ module Mgmt
9
+ Operations = Azure::AzureStack::Mgmt::V2017_06_01::Operations
10
+ Products = Azure::AzureStack::Mgmt::V2017_06_01::Products
11
+ Registrations = Azure::AzureStack::Mgmt::V2017_06_01::Registrations
12
+ CustomerSubscriptions = Azure::AzureStack::Mgmt::V2017_06_01::CustomerSubscriptions
13
+
14
+ module Models
15
+ VirtualMachineProductProperties = Azure::AzureStack::Mgmt::V2017_06_01::Models::VirtualMachineProductProperties
16
+ IconUris = Azure::AzureStack::Mgmt::V2017_06_01::Models::IconUris
17
+ TrackedResource = Azure::AzureStack::Mgmt::V2017_06_01::Models::TrackedResource
18
+ ProductLink = Azure::AzureStack::Mgmt::V2017_06_01::Models::ProductLink
19
+ Operation = Azure::AzureStack::Mgmt::V2017_06_01::Models::Operation
20
+ ProductProperties = Azure::AzureStack::Mgmt::V2017_06_01::Models::ProductProperties
21
+ ErrorDetails = Azure::AzureStack::Mgmt::V2017_06_01::Models::ErrorDetails
22
+ OperationList = Azure::AzureStack::Mgmt::V2017_06_01::Models::OperationList
23
+ ErrorResponse = Azure::AzureStack::Mgmt::V2017_06_01::Models::ErrorResponse
24
+ DataDiskImage = Azure::AzureStack::Mgmt::V2017_06_01::Models::DataDiskImage
25
+ VirtualMachineExtensionProductProperties = Azure::AzureStack::Mgmt::V2017_06_01::Models::VirtualMachineExtensionProductProperties
26
+ ProductList = Azure::AzureStack::Mgmt::V2017_06_01::Models::ProductList
27
+ Display = Azure::AzureStack::Mgmt::V2017_06_01::Models::Display
28
+ CustomerSubscriptionList = Azure::AzureStack::Mgmt::V2017_06_01::Models::CustomerSubscriptionList
29
+ ExtendedProduct = Azure::AzureStack::Mgmt::V2017_06_01::Models::ExtendedProduct
30
+ RegistrationList = Azure::AzureStack::Mgmt::V2017_06_01::Models::RegistrationList
31
+ OsDiskImage = Azure::AzureStack::Mgmt::V2017_06_01::Models::OsDiskImage
32
+ ActivationKeyResult = Azure::AzureStack::Mgmt::V2017_06_01::Models::ActivationKeyResult
33
+ Resource = Azure::AzureStack::Mgmt::V2017_06_01::Models::Resource
34
+ RegistrationParameter = Azure::AzureStack::Mgmt::V2017_06_01::Models::RegistrationParameter
35
+ Product = Azure::AzureStack::Mgmt::V2017_06_01::Models::Product
36
+ Registration = Azure::AzureStack::Mgmt::V2017_06_01::Models::Registration
37
+ CustomerSubscription = Azure::AzureStack::Mgmt::V2017_06_01::Models::CustomerSubscription
38
+ ProvisioningState = Azure::AzureStack::Mgmt::V2017_06_01::Models::ProvisioningState
39
+ ComputeRole = Azure::AzureStack::Mgmt::V2017_06_01::Models::ComputeRole
40
+ OperatingSystem = Azure::AzureStack::Mgmt::V2017_06_01::Models::OperatingSystem
41
+ Location = Azure::AzureStack::Mgmt::V2017_06_01::Models::Location
42
+ end
43
+
44
+ #
45
+ # AzureStackManagementClass
46
+ #
47
+ class AzureStackManagementClass
48
+ attr_reader :operations, :products, :registrations, :customer_subscriptions, :configurable, :base_url, :options, :model_classes
49
+
50
+ def initialize(options = {})
51
+ if options.is_a?(Hash) && options.length == 0
52
+ @options = setup_default_options
53
+ else
54
+ @options = options
55
+ end
56
+
57
+ reset!(options)
58
+
59
+ @configurable = self
60
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
61
+ @options = options[:options].nil? ? nil:options[:options]
62
+
63
+ @client_0 = Azure::AzureStack::Mgmt::V2017_06_01::AzureStackManagementClient.new(configurable.credentials, base_url, options)
64
+ if(@client_0.respond_to?(:subscription_id))
65
+ @client_0.subscription_id = configurable.subscription_id
66
+ end
67
+ add_telemetry(@client_0)
68
+ @operations = @client_0.operations
69
+ @products = @client_0.products
70
+ @registrations = @client_0.registrations
71
+ @customer_subscriptions = @client_0.customer_subscriptions
72
+
73
+ @model_classes = ModelClasses.new
74
+ end
75
+
76
+ def add_telemetry(client)
77
+ profile_information = 'Profiles/Latest/AzureStack/Mgmt'
78
+ client.add_user_agent_information(profile_information)
79
+ end
80
+
81
+ def method_missing(method, *args)
82
+ if @client_0.respond_to?method
83
+ @client_0.send(method, *args)
84
+ else
85
+ super
86
+ end
87
+ end
88
+
89
+ end
90
+
91
+ class ModelClasses
92
+ def virtual_machine_product_properties
93
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::VirtualMachineProductProperties
94
+ end
95
+ def icon_uris
96
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::IconUris
97
+ end
98
+ def tracked_resource
99
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::TrackedResource
100
+ end
101
+ def product_link
102
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::ProductLink
103
+ end
104
+ def operation
105
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::Operation
106
+ end
107
+ def product_properties
108
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::ProductProperties
109
+ end
110
+ def error_details
111
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::ErrorDetails
112
+ end
113
+ def operation_list
114
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::OperationList
115
+ end
116
+ def error_response
117
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::ErrorResponse
118
+ end
119
+ def data_disk_image
120
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::DataDiskImage
121
+ end
122
+ def virtual_machine_extension_product_properties
123
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::VirtualMachineExtensionProductProperties
124
+ end
125
+ def product_list
126
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::ProductList
127
+ end
128
+ def display
129
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::Display
130
+ end
131
+ def customer_subscription_list
132
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::CustomerSubscriptionList
133
+ end
134
+ def extended_product
135
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::ExtendedProduct
136
+ end
137
+ def registration_list
138
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::RegistrationList
139
+ end
140
+ def os_disk_image
141
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::OsDiskImage
142
+ end
143
+ def activation_key_result
144
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::ActivationKeyResult
145
+ end
146
+ def resource
147
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::Resource
148
+ end
149
+ def registration_parameter
150
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::RegistrationParameter
151
+ end
152
+ def product
153
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::Product
154
+ end
155
+ def registration
156
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::Registration
157
+ end
158
+ def customer_subscription
159
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::CustomerSubscription
160
+ end
161
+ def provisioning_state
162
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::ProvisioningState
163
+ end
164
+ def compute_role
165
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::ComputeRole
166
+ end
167
+ def operating_system
168
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::OperatingSystem
169
+ end
170
+ def location
171
+ Azure::AzureStack::Mgmt::V2017_06_01::Models::Location
172
+ end
173
+ end
174
+ end
175
+ end
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::Azurestack::Mgmt
6
+ VERSION = '0.17.0'
7
+ end
metadata ADDED
@@ -0,0 +1,158 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_mgmt_azurestack
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.17.0
5
+ platform: ruby
6
+ authors:
7
+ - Microsoft Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-07-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ms_rest_azure
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.11.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.11.1
83
+ description:
84
+ email: azrubyteam@microsoft.com
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files: []
88
+ files:
89
+ - LICENSE.txt
90
+ - lib/2017-06-01/generated/azure_mgmt_azurestack.rb
91
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/azure_stack_management_client.rb
92
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/customer_subscriptions.rb
93
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/activation_key_result.rb
94
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/compute_role.rb
95
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/customer_subscription.rb
96
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/customer_subscription_list.rb
97
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/data_disk_image.rb
98
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/display.rb
99
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/error_details.rb
100
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/error_response.rb
101
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/extended_product.rb
102
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/icon_uris.rb
103
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/location.rb
104
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/operating_system.rb
105
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/operation.rb
106
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/operation_list.rb
107
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/os_disk_image.rb
108
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/product.rb
109
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/product_link.rb
110
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/product_list.rb
111
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/product_properties.rb
112
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/provisioning_state.rb
113
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/registration.rb
114
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/registration_list.rb
115
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/registration_parameter.rb
116
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/resource.rb
117
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/tracked_resource.rb
118
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/virtual_machine_extension_product_properties.rb
119
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/models/virtual_machine_product_properties.rb
120
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/module_definition.rb
121
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/operations.rb
122
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/products.rb
123
+ - lib/2017-06-01/generated/azure_mgmt_azurestack/registrations.rb
124
+ - lib/azure_mgmt_azurestack.rb
125
+ - lib/module_definition.rb
126
+ - lib/profiles/latest/azurestack_latest_profile_client.rb
127
+ - lib/profiles/latest/azurestack_module_definition.rb
128
+ - lib/profiles/latest/modules/azurestack_profile_module.rb
129
+ - lib/version.rb
130
+ homepage: https://aka.ms/azure-sdk-for-ruby
131
+ licenses:
132
+ - MIT
133
+ metadata:
134
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
135
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
136
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
137
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
138
+ post_install_message:
139
+ rdoc_options: []
140
+ require_paths:
141
+ - lib
142
+ required_ruby_version: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: 2.0.0
147
+ required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ requirements: []
153
+ rubyforge_project:
154
+ rubygems_version: 2.7.8
155
+ signing_key:
156
+ specification_version: 4
157
+ summary: Official Ruby client library to consume Azurestack
158
+ test_files: []