azure_mgmt_iot_central 0.19.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central.rb +42 -0
  4. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/apps.rb +1103 -0
  5. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/iot_central_client.rb +135 -0
  6. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app.rb +155 -0
  7. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_list_result.rb +99 -0
  8. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_name_availability_info.rb +74 -0
  9. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_name_unavailability_reason.rb +16 -0
  10. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_patch.rb +108 -0
  11. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_sku.rb +16 -0
  12. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_sku_info.rb +47 -0
  13. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/error_details.rb +71 -0
  14. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation.rb +60 -0
  15. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation_display.rb +83 -0
  16. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation_inputs.rb +47 -0
  17. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation_list_result.rb +102 -0
  18. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/resource.rb +113 -0
  19. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/module_definition.rb +9 -0
  20. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/operations.rb +219 -0
  21. data/lib/2018-09-01/generated/azure_mgmt_iot_central.rb +43 -0
  22. data/lib/2018-09-01/generated/azure_mgmt_iot_central/apps.rb +1402 -0
  23. data/lib/2018-09-01/generated/azure_mgmt_iot_central/iot_central_client.rb +135 -0
  24. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app.rb +149 -0
  25. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_availability_info.rb +73 -0
  26. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_list_result.rb +99 -0
  27. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_patch.rb +114 -0
  28. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_sku.rb +19 -0
  29. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_sku_info.rb +47 -0
  30. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb +107 -0
  31. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_templates_result.rb +101 -0
  32. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/cloud_error_body.rb +92 -0
  33. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb +60 -0
  34. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_display.rb +83 -0
  35. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_inputs.rb +60 -0
  36. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_list_result.rb +102 -0
  37. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/resource.rb +113 -0
  38. data/lib/2018-09-01/generated/azure_mgmt_iot_central/module_definition.rb +9 -0
  39. data/lib/2018-09-01/generated/azure_mgmt_iot_central/operations.rb +219 -0
  40. data/lib/azure_mgmt_iot_central.rb +7 -0
  41. data/lib/module_definition.rb +8 -0
  42. data/lib/profiles/latest/iotcentral_latest_profile_client.rb +40 -0
  43. data/lib/profiles/latest/iotcentral_module_definition.rb +8 -0
  44. data/lib/profiles/latest/modules/iotcentral_profile_module.rb +119 -0
  45. data/lib/version.rb +7 -0
  46. metadata +163 -0
@@ -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
+ require '2018-09-01/generated/azure_mgmt_iot_central'
6
+ require '2017-07-01-privatepreview/generated/azure_mgmt_iot_central'
7
+ require 'profiles/latest/iotcentral_latest_profile_client'
@@ -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::IotCentral end
7
+ module Azure::IotCentral::Mgmt end
8
+
@@ -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/iotcentral_module_definition'
6
+ require 'profiles/latest/modules/iotcentral_profile_module'
7
+
8
+ module Azure::IotCentral::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < IotCentralManagementClass
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::IotCentral end
7
+ module Azure::IotCentral::Profiles end
8
+ module Azure::IotCentral::Profiles::Latest end
@@ -0,0 +1,119 @@
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_iot_central'
6
+
7
+ module Azure::IotCentral::Profiles::Latest
8
+ module Mgmt
9
+ Apps = Azure::IotCentral::Mgmt::V2018_09_01::Apps
10
+ Operations = Azure::IotCentral::Mgmt::V2018_09_01::Operations
11
+
12
+ module Models
13
+ AppListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult
14
+ OperationDisplay = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay
15
+ AppTemplatesResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult
16
+ AppPatch = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch
17
+ Operation = Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation
18
+ CloudErrorBody = Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody
19
+ OperationListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult
20
+ AppSkuInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo
21
+ OperationInputs = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs
22
+ AppAvailabilityInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppAvailabilityInfo
23
+ Resource = Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource
24
+ AppTemplate = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate
25
+ App = Azure::IotCentral::Mgmt::V2018_09_01::Models::App
26
+ AppSku = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSku
27
+ end
28
+
29
+ #
30
+ # IotCentralManagementClass
31
+ #
32
+ class IotCentralManagementClass
33
+ attr_reader :apps, :operations, :configurable, :base_url, :options, :model_classes
34
+
35
+ def initialize(options = {})
36
+ if options.is_a?(Hash) && options.length == 0
37
+ @options = setup_default_options
38
+ else
39
+ @options = options
40
+ end
41
+
42
+ reset!(options)
43
+
44
+ @configurable = self
45
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
46
+ @options = options[:options].nil? ? nil:options[:options]
47
+
48
+ @client_0 = Azure::IotCentral::Mgmt::V2018_09_01::IotCentralClient.new(configurable.credentials, base_url, options)
49
+ if(@client_0.respond_to?(:subscription_id))
50
+ @client_0.subscription_id = configurable.subscription_id
51
+ end
52
+ add_telemetry(@client_0)
53
+ @apps = @client_0.apps
54
+ @operations = @client_0.operations
55
+
56
+ @model_classes = ModelClasses.new
57
+ end
58
+
59
+ def add_telemetry(client)
60
+ profile_information = 'Profiles/Latest/IotCentral/Mgmt'
61
+ client.add_user_agent_information(profile_information)
62
+ end
63
+
64
+ def method_missing(method, *args)
65
+ if @client_0.respond_to?method
66
+ @client_0.send(method, *args)
67
+ else
68
+ super
69
+ end
70
+ end
71
+
72
+ end
73
+
74
+ class ModelClasses
75
+ def app_list_result
76
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult
77
+ end
78
+ def operation_display
79
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay
80
+ end
81
+ def app_templates_result
82
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult
83
+ end
84
+ def app_patch
85
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch
86
+ end
87
+ def operation
88
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation
89
+ end
90
+ def cloud_error_body
91
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody
92
+ end
93
+ def operation_list_result
94
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult
95
+ end
96
+ def app_sku_info
97
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo
98
+ end
99
+ def operation_inputs
100
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs
101
+ end
102
+ def app_availability_info
103
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::AppAvailabilityInfo
104
+ end
105
+ def resource
106
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource
107
+ end
108
+ def app_template
109
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate
110
+ end
111
+ def app
112
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::App
113
+ end
114
+ def app_sku
115
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSku
116
+ end
117
+ end
118
+ end
119
+ 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::IotCentral::Mgmt
6
+ VERSION = '0.19.2'
7
+ end
metadata ADDED
@@ -0,0 +1,163 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_mgmt_iot_central
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.19.2
5
+ platform: ruby
6
+ authors:
7
+ - Microsoft Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-07-21 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.12.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.12.0
83
+ description: Microsoft Azure IotCentral Management Client Library for Ruby
84
+ email: azrubyteam@microsoft.com
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files: []
88
+ files:
89
+ - LICENSE.txt
90
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central.rb
91
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/apps.rb
92
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/iot_central_client.rb
93
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app.rb
94
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_list_result.rb
95
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_name_availability_info.rb
96
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_name_unavailability_reason.rb
97
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_patch.rb
98
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_sku.rb
99
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_sku_info.rb
100
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/error_details.rb
101
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation.rb
102
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation_display.rb
103
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation_inputs.rb
104
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation_list_result.rb
105
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/resource.rb
106
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/module_definition.rb
107
+ - lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/operations.rb
108
+ - lib/2018-09-01/generated/azure_mgmt_iot_central.rb
109
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/apps.rb
110
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/iot_central_client.rb
111
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app.rb
112
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_availability_info.rb
113
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_list_result.rb
114
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_patch.rb
115
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_sku.rb
116
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_sku_info.rb
117
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb
118
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_templates_result.rb
119
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/cloud_error_body.rb
120
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb
121
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_display.rb
122
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_inputs.rb
123
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_list_result.rb
124
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/resource.rb
125
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/module_definition.rb
126
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/operations.rb
127
+ - lib/azure_mgmt_iot_central.rb
128
+ - lib/module_definition.rb
129
+ - lib/profiles/latest/iotcentral_latest_profile_client.rb
130
+ - lib/profiles/latest/iotcentral_module_definition.rb
131
+ - lib/profiles/latest/modules/iotcentral_profile_module.rb
132
+ - lib/version.rb
133
+ homepage: https://aka.ms/azure-sdk-for-ruby
134
+ licenses:
135
+ - MIT
136
+ metadata:
137
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
138
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
139
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
140
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
141
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_iot_central
142
+ post_install_message:
143
+ rdoc_options: []
144
+ require_paths:
145
+ - lib
146
+ required_ruby_version: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - ">="
149
+ - !ruby/object:Gem::Version
150
+ version: 2.0.0
151
+ required_rubygems_version: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: '0'
156
+ requirements: []
157
+ rubyforge_project:
158
+ rubygems_version: 2.7.8
159
+ signing_key:
160
+ specification_version: 4
161
+ summary: Official Ruby client library to consume Microsoft Azure IotCentral Management
162
+ services.
163
+ test_files: []