From 5d17a8ace17cff5e3031184b2c45520290e7ae97 Mon Sep 17 00:00:00 2001 From: Kai Ru Date: Fri, 26 Feb 2021 11:42:30 +0800 Subject: [PATCH] generate azure_mgmt_iot_central:v0.19.4 --- .../modules/iotcentral_profile_module.rb | 52 ++++++++-------- .../iot_central_client.rb | 2 +- .../generated/azure_mgmt_iot_central.rb | 13 ++-- .../generated/azure_mgmt_iot_central/apps.rb | 12 ++-- .../iot_central_client.rb | 2 +- .../models/app_template.rb | 34 +++++++++++ .../models/app_template_locations.rb | 59 +++++++++++++++++++ .../models/operation.rb | 24 ++++++++ .../modules/iotcentral_profile_module.rb | 52 ++++++++-------- .../azure_mgmt_iot_central/lib/version.rb | 2 +- 10 files changed, 189 insertions(+), 63 deletions(-) create mode 100644 management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template_locations.rb diff --git a/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb b/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb index c446dadcb..4f85fa278 100644 --- a/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb +++ b/azure_sdk/lib/latest/modules/iotcentral_profile_module.rb @@ -11,17 +11,18 @@ module Azure::Profiles::Latest Operations = Azure::IotCentral::Mgmt::V2018_09_01::Operations module Models - AppListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult OperationDisplay = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay - AppTemplatesResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult - AppPatch = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch - Operation = Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation - CloudErrorBody = Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody - OperationListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult AppSkuInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo + Operation = Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation + AppPatch = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch + OperationListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult + CloudErrorBody = Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody OperationInputs = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs + AppListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult AppAvailabilityInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppAvailabilityInfo Resource = Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource + AppTemplateLocations = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplateLocations + AppTemplatesResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult AppTemplate = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate App = Azure::IotCentral::Mgmt::V2018_09_01::Models::App AppSku = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSku @@ -58,39 +59,42 @@ module Azure::Profiles::Latest end class ModelClasses - def app_list_result - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult - end def operation_display Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay end - def app_templates_result - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult - end - def app_patch - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch - end - def operation - Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation - end - def cloud_error_body - Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody - end - def operation_list_result - Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult - end def app_sku_info Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo end + def operation + Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation + end + def app_patch + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch + end + def operation_list_result + Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult + end + def cloud_error_body + Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody + end def operation_inputs Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs end + def app_list_result + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult + end def app_availability_info Azure::IotCentral::Mgmt::V2018_09_01::Models::AppAvailabilityInfo end def resource Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource end + def app_template_locations + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplateLocations + end + def app_templates_result + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult + end def app_template Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate end diff --git a/management/azure_mgmt_iot_central/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/iot_central_client.rb b/management/azure_mgmt_iot_central/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/iot_central_client.rb index c1e0e65a0..b6cb61aab 100644 --- a/management/azure_mgmt_iot_central/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/iot_central_client.rb +++ b/management/azure_mgmt_iot_central/lib/2017-07-01-privatepreview/generated/azure_mgmt_iot_central/iot_central_client.rb @@ -128,7 +128,7 @@ module Azure::IotCentral::Mgmt::V2017_07_01_privatepreview # def add_telemetry sdk_information = 'azure_mgmt_iot_central' - sdk_information = "#{sdk_information}/0.19.3" + sdk_information = "#{sdk_information}/0.19.4" add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central.rb b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central.rb index 2183d7940..e716da898 100644 --- a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central.rb +++ b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central.rb @@ -25,17 +25,18 @@ module Azure::IotCentral::Mgmt::V2018_09_01 autoload :IotCentralClient, '2018-09-01/generated/azure_mgmt_iot_central/iot_central_client.rb' module Models - autoload :AppListResult, '2018-09-01/generated/azure_mgmt_iot_central/models/app_list_result.rb' autoload :OperationDisplay, '2018-09-01/generated/azure_mgmt_iot_central/models/operation_display.rb' - autoload :AppTemplatesResult, '2018-09-01/generated/azure_mgmt_iot_central/models/app_templates_result.rb' - autoload :AppPatch, '2018-09-01/generated/azure_mgmt_iot_central/models/app_patch.rb' - autoload :Operation, '2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb' - autoload :CloudErrorBody, '2018-09-01/generated/azure_mgmt_iot_central/models/cloud_error_body.rb' - autoload :OperationListResult, '2018-09-01/generated/azure_mgmt_iot_central/models/operation_list_result.rb' autoload :AppSkuInfo, '2018-09-01/generated/azure_mgmt_iot_central/models/app_sku_info.rb' + autoload :Operation, '2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb' + autoload :AppPatch, '2018-09-01/generated/azure_mgmt_iot_central/models/app_patch.rb' + autoload :OperationListResult, '2018-09-01/generated/azure_mgmt_iot_central/models/operation_list_result.rb' + autoload :CloudErrorBody, '2018-09-01/generated/azure_mgmt_iot_central/models/cloud_error_body.rb' autoload :OperationInputs, '2018-09-01/generated/azure_mgmt_iot_central/models/operation_inputs.rb' + autoload :AppListResult, '2018-09-01/generated/azure_mgmt_iot_central/models/app_list_result.rb' autoload :AppAvailabilityInfo, '2018-09-01/generated/azure_mgmt_iot_central/models/app_availability_info.rb' autoload :Resource, '2018-09-01/generated/azure_mgmt_iot_central/models/resource.rb' + autoload :AppTemplateLocations, '2018-09-01/generated/azure_mgmt_iot_central/models/app_template_locations.rb' + autoload :AppTemplatesResult, '2018-09-01/generated/azure_mgmt_iot_central/models/app_templates_result.rb' autoload :AppTemplate, '2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb' autoload :App, '2018-09-01/generated/azure_mgmt_iot_central/models/app.rb' autoload :AppSku, '2018-09-01/generated/azure_mgmt_iot_central/models/app_sku.rb' diff --git a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/apps.rb b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/apps.rb index cac484742..8667ef6b7 100644 --- a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/apps.rb +++ b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/apps.rb @@ -79,7 +79,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01 # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}' request_url = @base_url || @client.base_url @@ -308,7 +308,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01 # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/IoTApps' + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.IoTCentral/iotApps' request_url = @base_url || @client.base_url @@ -401,7 +401,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01 # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps' request_url = @base_url || @client.base_url @@ -812,7 +812,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01 request_content = @client.serialize(request_mapper, app) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}' request_url = @base_url || @client.base_url @@ -936,7 +936,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01 request_content = @client.serialize(request_mapper, app_patch) request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}' request_url = @base_url || @client.base_url @@ -1036,7 +1036,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01 # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? - path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/IoTApps/{resourceName}' + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}' request_url = @base_url || @client.base_url diff --git a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/iot_central_client.rb b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/iot_central_client.rb index 1952e972d..b3e4f8581 100644 --- a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/iot_central_client.rb +++ b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/iot_central_client.rb @@ -128,7 +128,7 @@ module Azure::IotCentral::Mgmt::V2018_09_01 # def add_telemetry sdk_information = 'azure_mgmt_iot_central' - sdk_information = "#{sdk_information}/0.19.3" + sdk_information = "#{sdk_information}/0.19.4" add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb index a6e50e47e..1e974248f 100644 --- a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb +++ b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template.rb @@ -30,6 +30,13 @@ module Azure::IotCentral::Mgmt::V2018_09_01 # @return [String] The description of the template. attr_accessor :description + # @return [String] The industry of the template. + attr_accessor :industry + + # @return [Array] A list of locations that support + # the template. + attr_accessor :locations + # # Mapper for AppTemplate class as Ruby Hash. @@ -97,6 +104,33 @@ module Azure::IotCentral::Mgmt::V2018_09_01 type: { name: 'String' } + }, + industry: { + client_side_validation: true, + required: false, + read_only: true, + serialized_name: 'industry', + type: { + name: 'String' + } + }, + locations: { + client_side_validation: true, + required: false, + read_only: true, + serialized_name: 'locations', + type: { + name: 'Sequence', + element: { + client_side_validation: true, + required: false, + serialized_name: 'AppTemplateLocationsElementType', + type: { + name: 'Composite', + class_name: 'AppTemplateLocations' + } + } + } } } } diff --git a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template_locations.rb b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template_locations.rb new file mode 100644 index 000000000..8765bac5d --- /dev/null +++ b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/app_template_locations.rb @@ -0,0 +1,59 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::IotCentral::Mgmt::V2018_09_01 + module Models + # + # IoT Central Application Template Locations. + # + class AppTemplateLocations + + include MsRestAzure + + # @return [String] The ID of the location. + attr_accessor :id + + # @return [String] The display name of the location. + attr_accessor :display_name + + + # + # Mapper for AppTemplateLocations class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + client_side_validation: true, + required: false, + serialized_name: 'AppTemplateLocations', + type: { + name: 'Composite', + class_name: 'AppTemplateLocations', + model_properties: { + id: { + client_side_validation: true, + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + display_name: { + client_side_validation: true, + required: false, + read_only: true, + serialized_name: 'displayName', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb index 491985be1..b1ec6015d 100644 --- a/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb +++ b/management/azure_mgmt_iot_central/lib/2018-09-01/generated/azure_mgmt_iot_central/models/operation.rb @@ -19,6 +19,12 @@ module Azure::IotCentral::Mgmt::V2018_09_01 # @return [OperationDisplay] The object that represents the operation. attr_accessor :display + # @return [String] The intended executor of the operation. + attr_accessor :origin + + # @return Additional descriptions for the operation. + attr_accessor :properties + # # Mapper for Operation class as Ruby Hash. @@ -50,6 +56,24 @@ module Azure::IotCentral::Mgmt::V2018_09_01 name: 'Composite', class_name: 'OperationDisplay' } + }, + origin: { + client_side_validation: true, + required: false, + read_only: true, + serialized_name: 'origin', + type: { + name: 'String' + } + }, + properties: { + client_side_validation: true, + required: false, + read_only: true, + serialized_name: 'properties', + type: { + name: 'Object' + } } } } diff --git a/management/azure_mgmt_iot_central/lib/profiles/latest/modules/iotcentral_profile_module.rb b/management/azure_mgmt_iot_central/lib/profiles/latest/modules/iotcentral_profile_module.rb index f23cb2d21..24e011ab6 100644 --- a/management/azure_mgmt_iot_central/lib/profiles/latest/modules/iotcentral_profile_module.rb +++ b/management/azure_mgmt_iot_central/lib/profiles/latest/modules/iotcentral_profile_module.rb @@ -10,17 +10,18 @@ module Azure::IotCentral::Profiles::Latest Operations = Azure::IotCentral::Mgmt::V2018_09_01::Operations module Models - AppListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult OperationDisplay = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay - AppTemplatesResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult - AppPatch = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch - Operation = Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation - CloudErrorBody = Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody - OperationListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult AppSkuInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo + Operation = Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation + AppPatch = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch + OperationListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult + CloudErrorBody = Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody OperationInputs = Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs + AppListResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult AppAvailabilityInfo = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppAvailabilityInfo Resource = Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource + AppTemplateLocations = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplateLocations + AppTemplatesResult = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult AppTemplate = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate App = Azure::IotCentral::Mgmt::V2018_09_01::Models::App AppSku = Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSku @@ -72,39 +73,42 @@ module Azure::IotCentral::Profiles::Latest end class ModelClasses - def app_list_result - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult - end def operation_display Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationDisplay end - def app_templates_result - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult - end - def app_patch - Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch - end - def operation - Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation - end - def cloud_error_body - Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody - end - def operation_list_result - Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult - end def app_sku_info Azure::IotCentral::Mgmt::V2018_09_01::Models::AppSkuInfo end + def operation + Azure::IotCentral::Mgmt::V2018_09_01::Models::Operation + end + def app_patch + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppPatch + end + def operation_list_result + Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationListResult + end + def cloud_error_body + Azure::IotCentral::Mgmt::V2018_09_01::Models::CloudErrorBody + end def operation_inputs Azure::IotCentral::Mgmt::V2018_09_01::Models::OperationInputs end + def app_list_result + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppListResult + end def app_availability_info Azure::IotCentral::Mgmt::V2018_09_01::Models::AppAvailabilityInfo end def resource Azure::IotCentral::Mgmt::V2018_09_01::Models::Resource end + def app_template_locations + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplateLocations + end + def app_templates_result + Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplatesResult + end def app_template Azure::IotCentral::Mgmt::V2018_09_01::Models::AppTemplate end diff --git a/management/azure_mgmt_iot_central/lib/version.rb b/management/azure_mgmt_iot_central/lib/version.rb index 8dfbacc5a..6d73939b4 100644 --- a/management/azure_mgmt_iot_central/lib/version.rb +++ b/management/azure_mgmt_iot_central/lib/version.rb @@ -3,5 +3,5 @@ # Licensed under the MIT License. See License.txt in the project root for license information. module Azure::IotCentral::Mgmt - VERSION = '0.19.3' + VERSION = '0.19.4' end