azure_mgmt_iot_central 0.18.0 → 0.19.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +5 -5
  2. data/LICENSE.txt +20 -20
  3. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central.rb +0 -0
  4. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/apps.rb +0 -0
  5. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/iot_central_client.rb +1 -1
  6. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app.rb +0 -0
  7. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_list_result.rb +0 -0
  8. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_name_availability_info.rb +0 -0
  9. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_name_unavailability_reason.rb +0 -0
  10. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_patch.rb +0 -0
  11. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_sku.rb +0 -0
  12. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/app_sku_info.rb +0 -0
  13. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/error_details.rb +0 -0
  14. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation.rb +0 -0
  15. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation_display.rb +0 -0
  16. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation_inputs.rb +0 -0
  17. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/operation_list_result.rb +0 -0
  18. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/models/resource.rb +0 -0
  19. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/module_definition.rb +0 -0
  20. data/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/operations.rb +0 -0
  21. data/lib/2018-09-01/generated/azure_mgmt_iot_central.rb +3 -3
  22. data/lib/2018-09-01/generated/azure_mgmt_iot_central/apps.rb +18 -18
  23. data/lib/2018-09-01/generated/azure_mgmt_iot_central/iot_central_client.rb +1 -1
  24. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app.rb +0 -6
  25. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_availability_info.rb +0 -0
  26. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_list_result.rb +0 -0
  27. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_patch.rb +12 -6
  28. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_sku.rb +0 -0
  29. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_sku_info.rb +0 -0
  30. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb +37 -3
  31. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template_locations.rb +59 -0
  32. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_templates_result.rb +0 -0
  33. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/{error_response_body.rb → cloud_error_body.rb} +8 -8
  34. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb +24 -0
  35. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_display.rb +0 -0
  36. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_inputs.rb +0 -3
  37. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_list_result.rb +0 -0
  38. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/resource.rb +0 -0
  39. data/lib/2018-09-01/generated/azure_mgmt_iot_central/module_definition.rb +0 -0
  40. data/lib/2018-09-01/generated/azure_mgmt_iot_central/operations.rb +2 -2
  41. data/lib/azure_mgmt_iot_central.rb +0 -0
  42. data/lib/module_definition.rb +8 -8
  43. data/lib/profiles/latest/iotcentral_latest_profile_client.rb +40 -40
  44. data/lib/profiles/latest/iotcentral_module_definition.rb +8 -8
  45. data/lib/profiles/latest/modules/iotcentral_profile_module.rb +10 -10
  46. data/lib/version.rb +1 -1
  47. metadata +7 -7
  48. data/lib/2018-09-01/generated/azure_mgmt_iot_central/models/error_details.rb +0 -92
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 298c58de0bef90fdae4fda33bc7453e7ebcb548f
4
- data.tar.gz: 9dee5e92fa47c5cab11c3b4e5d676797e0412557
2
+ SHA256:
3
+ metadata.gz: 7d9b93e7a1a1bb24adec527f9d6d0dccb31982668732bc8365db8c14f54a8f9c
4
+ data.tar.gz: fba199148cf0d13aa6536599e1048c3bc43844bf706558eaf720694eb5f29696
5
5
  SHA512:
6
- metadata.gz: 72e1889fdaaf25779b0b7d9f3f7a23ac90218d980952e86fc0a0e706b1d204e15ae0ccb291314278fe4094535315501e513eaaa9c0e27cac455fa68f2e2ce03f
7
- data.tar.gz: e442a58205eef5c710095bc8fc4e72727621fdbbfc8f34bb862eeba4a014d604da07becdd65b6a20202d5a27e0cd0c1d2b2d800f357dd2dff3d6768ea783659c
6
+ metadata.gz: d770f128aac868b03ad6f2d3fb683d653135344db91a9ceef2d02aed2de22eda52b98a8e05c5135cdc3c271b5352a5b028c127ac1271942f7d67a8ae6ac5df7f
7
+ data.tar.gz: 526d070cd91f8ea458ca352c491c8bfe5dceab8481a0ab7d5f052030ce8f0abbbb430410883ab09d525a5df33fbe71e23a2363627c1b88bf3b1841a4dde2e1ba
data/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2015 Microsoft Corporation
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
@@ -128,7 +128,7 @@ module Azure::IotCentral::Mgmt::V2017_07_01_privatepreview
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_iot_central'
131
- sdk_information = "#{sdk_information}/0.18.0"
131
+ sdk_information = "#{sdk_information}/0.19.4"
132
132
  add_user_agent_information(sdk_information)
133
133
  end
134
134
  end
@@ -30,14 +30,14 @@ module Azure::IotCentral::Mgmt::V2018_09_01
30
30
  autoload :Operation, '2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb'
31
31
  autoload :AppPatch, '2018-09-01/generated/azure_mgmt_iot_central/models/app_patch.rb'
32
32
  autoload :OperationListResult, '2018-09-01/generated/azure_mgmt_iot_central/models/operation_list_result.rb'
33
- autoload :ErrorResponseBody, '2018-09-01/generated/azure_mgmt_iot_central/models/error_response_body.rb'
33
+ autoload :CloudErrorBody, '2018-09-01/generated/azure_mgmt_iot_central/models/cloud_error_body.rb'
34
34
  autoload :OperationInputs, '2018-09-01/generated/azure_mgmt_iot_central/models/operation_inputs.rb'
35
35
  autoload :AppListResult, '2018-09-01/generated/azure_mgmt_iot_central/models/app_list_result.rb'
36
36
  autoload :AppAvailabilityInfo, '2018-09-01/generated/azure_mgmt_iot_central/models/app_availability_info.rb'
37
37
  autoload :Resource, '2018-09-01/generated/azure_mgmt_iot_central/models/resource.rb'
38
- autoload :AppTemplate, '2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb'
39
- autoload :ErrorDetails, '2018-09-01/generated/azure_mgmt_iot_central/models/error_details.rb'
38
+ autoload :AppTemplateLocations, '2018-09-01/generated/azure_mgmt_iot_central/models/app_template_locations.rb'
40
39
  autoload :AppTemplatesResult, '2018-09-01/generated/azure_mgmt_iot_central/models/app_templates_result.rb'
40
+ autoload :AppTemplate, '2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb'
41
41
  autoload :App, '2018-09-01/generated/azure_mgmt_iot_central/models/app.rb'
42
42
  autoload :AppSku, '2018-09-01/generated/azure_mgmt_iot_central/models/app_sku.rb'
43
43
  end
@@ -79,7 +79,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
79
79
  # Set Headers
80
80
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
81
81
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
82
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'
82
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'
83
83
 
84
84
  request_url = @base_url || @client.base_url
85
85
 
@@ -98,7 +98,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
98
98
  response_content = http_response.body
99
99
  unless status_code == 200
100
100
  error_model = JSON.load(response_content)
101
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
101
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
102
102
  end
103
103
 
104
104
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -308,7 +308,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
308
308
  # Set Headers
309
309
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
310
310
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
311
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps'
311
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/iotApps'
312
312
 
313
313
  request_url = @base_url || @client.base_url
314
314
 
@@ -327,7 +327,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
327
327
  response_content = http_response.body
328
328
  unless status_code == 200
329
329
  error_model = JSON.load(response_content)
330
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
330
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
331
331
  end
332
332
 
333
333
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -401,7 +401,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
401
401
  # Set Headers
402
402
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
403
403
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
404
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps'
404
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps'
405
405
 
406
406
  request_url = @base_url || @client.base_url
407
407
 
@@ -420,7 +420,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
420
420
  response_content = http_response.body
421
421
  unless status_code == 200
422
422
  error_model = JSON.load(response_content)
423
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
423
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
424
424
  end
425
425
 
426
426
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -523,7 +523,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
523
523
  response_content = http_response.body
524
524
  unless status_code == 200
525
525
  error_model = JSON.load(response_content)
526
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
526
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
527
527
  end
528
528
 
529
529
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -626,7 +626,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
626
626
  response_content = http_response.body
627
627
  unless status_code == 200
628
628
  error_model = JSON.load(response_content)
629
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
629
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
630
630
  end
631
631
 
632
632
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -712,7 +712,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
712
712
  response_content = http_response.body
713
713
  unless status_code == 200
714
714
  error_model = JSON.load(response_content)
715
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
715
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
716
716
  end
717
717
 
718
718
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -812,7 +812,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
812
812
  request_content = @client.serialize(request_mapper, app)
813
813
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
814
814
 
815
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'
815
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'
816
816
 
817
817
  request_url = @base_url || @client.base_url
818
818
 
@@ -832,7 +832,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
832
832
  response_content = http_response.body
833
833
  unless status_code == 200 || status_code == 201 || status_code == 202
834
834
  error_model = JSON.load(response_content)
835
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
835
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
836
836
  end
837
837
 
838
838
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -936,7 +936,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
936
936
  request_content = @client.serialize(request_mapper, app_patch)
937
937
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
938
938
 
939
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'
939
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'
940
940
 
941
941
  request_url = @base_url || @client.base_url
942
942
 
@@ -956,7 +956,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
956
956
  response_content = http_response.body
957
957
  unless status_code == 200 || status_code == 202
958
958
  error_model = JSON.load(response_content)
959
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
959
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
960
960
  end
961
961
 
962
962
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -1036,7 +1036,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
1036
1036
  # Set Headers
1037
1037
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
1038
1038
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
1039
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}'
1039
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}'
1040
1040
 
1041
1041
  request_url = @base_url || @client.base_url
1042
1042
 
@@ -1055,7 +1055,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
1055
1055
  response_content = http_response.body
1056
1056
  unless status_code == 200 || status_code == 202 || status_code == 204
1057
1057
  error_model = JSON.load(response_content)
1058
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1058
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1059
1059
  end
1060
1060
 
1061
1061
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -1135,7 +1135,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
1135
1135
  response_content = http_response.body
1136
1136
  unless status_code == 200
1137
1137
  error_model = JSON.load(response_content)
1138
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1138
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1139
1139
  end
1140
1140
 
1141
1141
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -1225,7 +1225,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
1225
1225
  response_content = http_response.body
1226
1226
  unless status_code == 200
1227
1227
  error_model = JSON.load(response_content)
1228
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1228
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1229
1229
  end
1230
1230
 
1231
1231
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -1315,7 +1315,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
1315
1315
  response_content = http_response.body
1316
1316
  unless status_code == 200
1317
1317
  error_model = JSON.load(response_content)
1318
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
1318
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
1319
1319
  end
1320
1320
 
1321
1321
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -128,7 +128,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_iot_central'
131
- sdk_information = "#{sdk_information}/0.18.0"
131
+ sdk_information = "#{sdk_information}/0.19.4"
132
132
  add_user_agent_information(sdk_information)
133
133
  end
134
134
  end
@@ -111,9 +111,6 @@ module Azure::IotCentral::Mgmt::V2018_09_01
111
111
  client_side_validation: true,
112
112
  required: false,
113
113
  serialized_name: 'properties.displayName',
114
- constraints: {
115
- Pattern: '^.{1,200}$'
116
- },
117
114
  type: {
118
115
  name: 'String'
119
116
  }
@@ -122,9 +119,6 @@ module Azure::IotCentral::Mgmt::V2018_09_01
122
119
  client_side_validation: true,
123
120
  required: false,
124
121
  serialized_name: 'properties.subdomain',
125
- constraints: {
126
- Pattern: '^[a-z0-9-]{1,63}$'
127
- },
128
122
  type: {
129
123
  name: 'String'
130
124
  }
@@ -15,6 +15,9 @@ module Azure::IotCentral::Mgmt::V2018_09_01
15
15
  # @return [Hash{String => String}] Instance tags
16
16
  attr_accessor :tags
17
17
 
18
+ # @return [AppSkuInfo] A valid instance SKU.
19
+ attr_accessor :sku
20
+
18
21
  # @return [String] The ID of the application.
19
22
  attr_accessor :application_id
20
23
 
@@ -60,6 +63,15 @@ module Azure::IotCentral::Mgmt::V2018_09_01
60
63
  }
61
64
  }
62
65
  },
66
+ sku: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'sku',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'AppSkuInfo'
73
+ }
74
+ },
63
75
  application_id: {
64
76
  client_side_validation: true,
65
77
  required: false,
@@ -73,9 +85,6 @@ module Azure::IotCentral::Mgmt::V2018_09_01
73
85
  client_side_validation: true,
74
86
  required: false,
75
87
  serialized_name: 'properties.displayName',
76
- constraints: {
77
- Pattern: '^.{1,200}$'
78
- },
79
88
  type: {
80
89
  name: 'String'
81
90
  }
@@ -84,9 +93,6 @@ module Azure::IotCentral::Mgmt::V2018_09_01
84
93
  client_side_validation: true,
85
94
  required: false,
86
95
  serialized_name: 'properties.subdomain',
87
- constraints: {
88
- Pattern: '^[a-z0-9-]{1,63}$'
89
- },
90
96
  type: {
91
97
  name: 'String'
92
98
  }
@@ -19,7 +19,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
19
19
  attr_accessor :manifest_version
20
20
 
21
21
  # @return [String] The name of the template.
22
- attr_accessor :app_template_name
22
+ attr_accessor :name
23
23
 
24
24
  # @return [String] The title of the template.
25
25
  attr_accessor :title
@@ -30,6 +30,13 @@ module Azure::IotCentral::Mgmt::V2018_09_01
30
30
  # @return [String] The description of the template.
31
31
  attr_accessor :description
32
32
 
33
+ # @return [String] The industry of the template.
34
+ attr_accessor :industry
35
+
36
+ # @return [Array<AppTemplateLocations>] A list of locations that support
37
+ # the template.
38
+ attr_accessor :locations
39
+
33
40
 
34
41
  #
35
42
  # Mapper for AppTemplate class as Ruby Hash.
@@ -62,11 +69,11 @@ module Azure::IotCentral::Mgmt::V2018_09_01
62
69
  name: 'String'
63
70
  }
64
71
  },
65
- app_template_name: {
72
+ name: {
66
73
  client_side_validation: true,
67
74
  required: false,
68
75
  read_only: true,
69
- serialized_name: 'appTemplateName',
76
+ serialized_name: 'name',
70
77
  type: {
71
78
  name: 'String'
72
79
  }
@@ -97,6 +104,33 @@ module Azure::IotCentral::Mgmt::V2018_09_01
97
104
  type: {
98
105
  name: 'String'
99
106
  }
107
+ },
108
+ industry: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'industry',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ locations: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: 'locations',
122
+ type: {
123
+ name: 'Sequence',
124
+ element: {
125
+ client_side_validation: true,
126
+ required: false,
127
+ serialized_name: 'AppTemplateLocationsElementType',
128
+ type: {
129
+ name: 'Composite',
130
+ class_name: 'AppTemplateLocations'
131
+ }
132
+ }
133
+ }
100
134
  }
101
135
  }
102
136
  }
@@ -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::IotCentral::Mgmt::V2018_09_01
7
+ module Models
8
+ #
9
+ # IoT Central Application Template Locations.
10
+ #
11
+ class AppTemplateLocations
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The ID of the location.
16
+ attr_accessor :id
17
+
18
+ # @return [String] The display name of the location.
19
+ attr_accessor :display_name
20
+
21
+
22
+ #
23
+ # Mapper for AppTemplateLocations 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: 'AppTemplateLocations',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'AppTemplateLocations',
34
+ model_properties: {
35
+ id: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ read_only: true,
39
+ serialized_name: 'id',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ display_name: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'displayName',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ }
55
+ }
56
+ end
57
+ end
58
+ end
59
+ end
@@ -8,7 +8,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
8
8
  #
9
9
  # Details of error response.
10
10
  #
11
- class ErrorResponseBody
11
+ class CloudErrorBody
12
12
 
13
13
  include MsRestAzure
14
14
 
@@ -21,23 +21,23 @@ module Azure::IotCentral::Mgmt::V2018_09_01
21
21
  # @return [String] The target of the particular error.
22
22
  attr_accessor :target
23
23
 
24
- # @return [Array<ErrorResponseBody>] A list of additional details about
25
- # the error.
24
+ # @return [Array<CloudErrorBody>] A list of additional details about the
25
+ # error.
26
26
  attr_accessor :details
27
27
 
28
28
 
29
29
  #
30
- # Mapper for ErrorResponseBody class as Ruby Hash.
30
+ # Mapper for CloudErrorBody class as Ruby Hash.
31
31
  # This will be used for serialization/deserialization.
32
32
  #
33
33
  def self.mapper()
34
34
  {
35
35
  client_side_validation: true,
36
36
  required: false,
37
- serialized_name: 'ErrorResponseBody',
37
+ serialized_name: 'CloudErrorBody',
38
38
  type: {
39
39
  name: 'Composite',
40
- class_name: 'ErrorResponseBody',
40
+ class_name: 'CloudErrorBody',
41
41
  model_properties: {
42
42
  code: {
43
43
  client_side_validation: true,
@@ -75,10 +75,10 @@ module Azure::IotCentral::Mgmt::V2018_09_01
75
75
  element: {
76
76
  client_side_validation: true,
77
77
  required: false,
78
- serialized_name: 'ErrorResponseBodyElementType',
78
+ serialized_name: 'CloudErrorBodyElementType',
79
79
  type: {
80
80
  name: 'Composite',
81
- class_name: 'ErrorResponseBody'
81
+ class_name: 'CloudErrorBody'
82
82
  }
83
83
  }
84
84
  }
@@ -19,6 +19,12 @@ module Azure::IotCentral::Mgmt::V2018_09_01
19
19
  # @return [OperationDisplay] The object that represents the operation.
20
20
  attr_accessor :display
21
21
 
22
+ # @return [String] The intended executor of the operation.
23
+ attr_accessor :origin
24
+
25
+ # @return Additional descriptions for the operation.
26
+ attr_accessor :properties
27
+
22
28
 
23
29
  #
24
30
  # Mapper for Operation class as Ruby Hash.
@@ -50,6 +56,24 @@ module Azure::IotCentral::Mgmt::V2018_09_01
50
56
  name: 'Composite',
51
57
  class_name: 'OperationDisplay'
52
58
  }
59
+ },
60
+ origin: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'origin',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ properties: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'properties',
74
+ type: {
75
+ name: 'Object'
76
+ }
53
77
  }
54
78
  }
55
79
  }
@@ -38,9 +38,6 @@ module Azure::IotCentral::Mgmt::V2018_09_01
38
38
  client_side_validation: true,
39
39
  required: true,
40
40
  serialized_name: 'name',
41
- constraints: {
42
- Pattern: '^[a-z0-9-]{1,63}$'
43
- },
44
41
  type: {
45
42
  name: 'String'
46
43
  }
@@ -82,7 +82,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
82
82
  response_content = http_response.body
83
83
  unless status_code == 200
84
84
  error_model = JSON.load(response_content)
85
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
85
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
86
86
  end
87
87
 
88
88
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -172,7 +172,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01
172
172
  response_content = http_response.body
173
173
  unless status_code == 200
174
174
  error_model = JSON.load(response_content)
175
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
175
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
176
176
  end
177
177
 
178
178
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
File without changes
@@ -1,8 +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
-
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
+
@@ -1,40 +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
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
@@ -1,8 +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
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
@@ -15,14 +15,14 @@ module Azure::IotCentral::Profiles::Latest
15
15
  Operation = Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation
16
16
  AppPatch = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch
17
17
  OperationListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult
18
- ErrorResponseBody = Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorResponseBody
18
+ CloudErrorBody = Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody
19
19
  OperationInputs = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs
20
20
  AppListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult
21
21
  AppAvailabilityInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppAvailabilityInfo
22
22
  Resource = Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource
23
- AppTemplate = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate
24
- ErrorDetails = Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails
23
+ AppTemplateLocations = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplateLocations
25
24
  AppTemplatesResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult
25
+ AppTemplate = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate
26
26
  App = Azure::IotCentral::Mgmt::V2018_09_01::Models::App
27
27
  AppSku = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSku
28
28
  end
@@ -88,8 +88,8 @@ module Azure::IotCentral::Profiles::Latest
88
88
  def operation_list_result
89
89
  Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult
90
90
  end
91
- def error_response_body
92
- Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorResponseBody
91
+ def cloud_error_body
92
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody
93
93
  end
94
94
  def operation_inputs
95
95
  Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs
@@ -103,15 +103,15 @@ module Azure::IotCentral::Profiles::Latest
103
103
  def resource
104
104
  Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource
105
105
  end
106
- def app_template
107
- Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate
108
- end
109
- def error_details
110
- Azure::IotCentral::Mgmt::V2018_09_01::Models::ErrorDetails
106
+ def app_template_locations
107
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplateLocations
111
108
  end
112
109
  def app_templates_result
113
110
  Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult
114
111
  end
112
+ def app_template
113
+ Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate
114
+ end
115
115
  def app
116
116
  Azure::IotCentral::Mgmt::V2018_09_01::Models::App
117
117
  end
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::IotCentral::Mgmt
6
- VERSION = '0.18.0'
6
+ VERSION = '0.19.4'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azure_mgmt_iot_central
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Microsoft Corporation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-12 00:00:00.000000000 Z
11
+ date: 2021-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.11.1
75
+ version: 0.12.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.11.1
82
+ version: 0.12.0
83
83
  description: Microsoft Azure IotCentral Management Client Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -115,9 +115,9 @@ files:
115
115
  - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_sku.rb
116
116
  - lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_sku_info.rb
117
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_template_locations.rb
118
119
  - 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/error_details.rb
120
- - lib/2018-09-01/generated/azure_mgmt_iot_central/models/error_response_body.rb
120
+ - lib/2018-09-01/generated/azure_mgmt_iot_central/models/cloud_error_body.rb
121
121
  - lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb
122
122
  - lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_display.rb
123
123
  - lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation_inputs.rb
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  version: '0'
157
157
  requirements: []
158
158
  rubyforge_project:
159
- rubygems_version: 2.5.2.3
159
+ rubygems_version: 2.7.10
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Official Ruby client library to consume Microsoft Azure IotCentral Management
@@ -1,92 +0,0 @@
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::IotCentral::Mgmt::V2018_09_01
7
- module Models
8
- #
9
- # Error details.
10
- #
11
- class ErrorDetails
12
-
13
- include MsRestAzure
14
-
15
- # @return [String] The error code.
16
- attr_accessor :code
17
-
18
- # @return [String] The error message.
19
- attr_accessor :message
20
-
21
- # @return [String] The target of the particular error.
22
- attr_accessor :target
23
-
24
- # @return [Array<ErrorResponseBody>] A list of additional details about
25
- # the error.
26
- attr_accessor :details
27
-
28
-
29
- #
30
- # Mapper for ErrorDetails class as Ruby Hash.
31
- # This will be used for serialization/deserialization.
32
- #
33
- def self.mapper()
34
- {
35
- client_side_validation: true,
36
- required: false,
37
- serialized_name: 'ErrorDetails',
38
- type: {
39
- name: 'Composite',
40
- class_name: 'ErrorDetails',
41
- model_properties: {
42
- code: {
43
- client_side_validation: true,
44
- required: false,
45
- read_only: true,
46
- serialized_name: 'error.code',
47
- type: {
48
- name: 'String'
49
- }
50
- },
51
- message: {
52
- client_side_validation: true,
53
- required: false,
54
- read_only: true,
55
- serialized_name: 'error.message',
56
- type: {
57
- name: 'String'
58
- }
59
- },
60
- target: {
61
- client_side_validation: true,
62
- required: false,
63
- read_only: true,
64
- serialized_name: 'error.target',
65
- type: {
66
- name: 'String'
67
- }
68
- },
69
- details: {
70
- client_side_validation: true,
71
- required: false,
72
- serialized_name: 'error.details',
73
- type: {
74
- name: 'Sequence',
75
- element: {
76
- client_side_validation: true,
77
- required: false,
78
- serialized_name: 'ErrorResponseBodyElementType',
79
- type: {
80
- name: 'Composite',
81
- class_name: 'ErrorResponseBody'
82
- }
83
- }
84
- }
85
- }
86
- }
87
- }
88
- }
89
- end
90
- end
91
- end
92
- end