azure_mgmt_iot_central 0.16.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.
Files changed (27) 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 +1085 -0
  5. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/iot_central_client.rb +134 -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 +104 -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 +215 -0
  21. data/lib/azure_mgmt_iot_central.rb +6 -0
  22. data/lib/module_definition.rb +8 -0
  23. data/lib/profiles/latest/iotcentral_latest_profile_client.rb +40 -0
  24. data/lib/profiles/latest/iotcentral_module_definition.rb +8 -0
  25. data/lib/profiles/latest/modules/iotcentral_profile_module.rb +115 -0
  26. data/lib/version.rb +7 -0
  27. metadata +144 -0
@@ -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,115 @@
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::V2017_07_01_privatepreview::Apps
10
+ Operations = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Operations
11
+
12
+ module Models
13
+ AppListResult = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppListResult
14
+ OperationDisplay = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::OperationDisplay
15
+ AppPatch = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppPatch
16
+ Operation = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::Operation
17
+ ErrorDetails = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::ErrorDetails
18
+ OperationListResult = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::OperationListResult
19
+ Resource = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::Resource
20
+ OperationInputs = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::OperationInputs
21
+ AppSkuInfo = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppSkuInfo
22
+ AppNameAvailabilityInfo = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppNameAvailabilityInfo
23
+ App = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::App
24
+ AppSku = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppSku
25
+ AppNameUnavailabilityReason = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppNameUnavailabilityReason
26
+ end
27
+
28
+ #
29
+ # IotCentralManagementClass
30
+ #
31
+ class IotCentralManagementClass
32
+ attr_reader :apps, :operations, :configurable, :base_url, :options, :model_classes
33
+
34
+ def initialize(options = {})
35
+ if options.is_a?(Hash) && options.length == 0
36
+ @options = setup_default_options
37
+ else
38
+ @options = options
39
+ end
40
+
41
+ reset!(options)
42
+
43
+ @configurable = self
44
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
45
+ @options = options[:options].nil? ? nil:options[:options]
46
+
47
+ @client_0 = Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::IotCentralClient.new(configurable.credentials, base_url, options)
48
+ if(@client_0.respond_to?(:subscription_id))
49
+ @client_0.subscription_id = configurable.subscription_id
50
+ end
51
+ add_telemetry(@client_0)
52
+ @apps = @client_0.apps
53
+ @operations = @client_0.operations
54
+
55
+ @model_classes = ModelClasses.new
56
+ end
57
+
58
+ def add_telemetry(client)
59
+ profile_information = 'Profiles/Latest/IotCentral/Mgmt'
60
+ client.add_user_agent_information(profile_information)
61
+ end
62
+
63
+ def method_missing(method, *args)
64
+ if @client_0.respond_to?method
65
+ @client_0.send(method, *args)
66
+ else
67
+ super
68
+ end
69
+ end
70
+
71
+ end
72
+
73
+ class ModelClasses
74
+ def app_list_result
75
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppListResult
76
+ end
77
+ def operation_display
78
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::OperationDisplay
79
+ end
80
+ def app_patch
81
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppPatch
82
+ end
83
+ def operation
84
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::Operation
85
+ end
86
+ def error_details
87
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::ErrorDetails
88
+ end
89
+ def operation_list_result
90
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::OperationListResult
91
+ end
92
+ def resource
93
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::Resource
94
+ end
95
+ def operation_inputs
96
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::OperationInputs
97
+ end
98
+ def app_sku_info
99
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppSkuInfo
100
+ end
101
+ def app_name_availability_info
102
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppNameAvailabilityInfo
103
+ end
104
+ def app
105
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::App
106
+ end
107
+ def app_sku
108
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppSku
109
+ end
110
+ def app_name_unavailability_reason
111
+ Azure::IotCentral::Mgmt::V2017_07_01_privatepreview::Models::AppNameUnavailabilityReason
112
+ end
113
+ end
114
+ end
115
+ 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.16.0'
7
+ end
metadata ADDED
@@ -0,0 +1,144 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_mgmt_iot_central
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.16.0
5
+ platform: ruby
6
+ authors:
7
+ - Microsoft Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-06-20 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.10.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.10.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/azure_mgmt_iot_central.rb
109
+ - lib/module_definition.rb
110
+ - lib/profiles/latest/iotcentral_latest_profile_client.rb
111
+ - lib/profiles/latest/iotcentral_module_definition.rb
112
+ - lib/profiles/latest/modules/iotcentral_profile_module.rb
113
+ - lib/version.rb
114
+ homepage: https://aka.ms/azure-sdk-for-ruby
115
+ licenses:
116
+ - MIT
117
+ metadata:
118
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
119
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
120
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
121
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
122
+ source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_iot_central
123
+ post_install_message:
124
+ rdoc_options: []
125
+ require_paths:
126
+ - lib
127
+ required_ruby_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 2.0.0
132
+ required_rubygems_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: '0'
137
+ requirements: []
138
+ rubyforge_project:
139
+ rubygems_version: 2.5.1
140
+ signing_key:
141
+ specification_version: 4
142
+ summary: Official Ruby client library to consume Microsoft Azure IotCentral Management
143
+ services.
144
+ test_files: []