diff --git a/.travis.yml b/.travis.yml
index 3991bc22a1..d8780a278f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -12,9 +12,9 @@ matrix:
- rvm: 2.3.0
env: LATEST_RUNTIME=true
before_install:
+ - gem install bundler -v 1.14.1
- if [ "$LATEST_RUNTIME" == "true" ] ; then ./scripts/latest_runtime.sh ; fi
script:
- - gem install bundler
- if [ "$INTEG_RECORDED" == "true" ] ; then bundle install --gemfile=Gemfile && bundle exec rake arm:spec ; fi
- bundle exec rake arm:build
- unset BUNDLE_GEMFILE
diff --git a/ARM_VERSION b/ARM_VERSION
index 142464bf22..51de3305bb 100644
--- a/ARM_VERSION
+++ b/ARM_VERSION
@@ -1 +1 @@
-0.11.0
\ No newline at end of file
+0.13.0
\ No newline at end of file
diff --git a/ChangeLog.md b/ChangeLog.md
index 94daa9d215..23ee566359 100644
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,3 +1,32 @@
+## 2017.09.28 - Azure Container Registry version 0.13.0
+* Released [azure_mgmt_container_registry](https://rubygems.org/gems/azure_mgmt_container_registry) version 0.13.0. Refer [PR# 1007](https://github.com/Azure/azure-sdk-for-ruby/pull/1007) and latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/65a45deed027ed8e428b18e7a6da8ea83bc68f21/specification/containerregistry/resource-manager/readme.md) for further details.
+
+## 2017.09.27 - Azure ARM version 0.13.0
+
+* Regened all azure_mgmt_* sdks using [Autorest.2.0.4144](https://www.npmjs.com/package/autorest)(core) and [Autorest.Ruby.2.0.15](https://www.npmjs.com/package/@microsoft.azure/autorest.ruby) for release of ARM version 0.13.0
+* Updated [azure_mgmt_cognitive_services](https://rubygems.org/gems/azure_mgmt_cognitive_services) operations Update, Delete, GetProperties, ListKeys, RegenerateKey & ListSkus from CognitiveServiceAccounts group to Accounts group. Refer [PR #989](https://github.com/Azure/azure-sdk-for-ruby/pull/989) and [PR #1707](https://github.com/Azure/azure-rest-api-specs/pull/1707) for further details.
+* Updated [azure_mgmt_compute](https://rubygems.org/gems/azure_mgmt_compute) with Availabilty zones, Vmss rolling upgrade, Vmss patch and Vm instance view APIs. Refer [PR #999](https://github.com/Azure/azure-sdk-for-ruby/pull/999) and latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/0c2a12b50d8598f68d6715b507f7dd53e163407e/specification/compute/resource-manager/readme.md) for further details.
+* Updated [azure_mgmt_event_hub](https://rubygems.org/gems/azure_mgmt_event_hub) with new APIs related to disaster recovery. Refer [PR #1000](https://github.com/Azure/azure-sdk-for-ruby/pull/1000) and latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/acdca6054048e17353095a02989e4567f699b05f/specification/eventhub/resource-manager/readme.md) for further details.
+* Updated [azure_mgmt_graph](https://rubygems.org/gems/azure_mgmt_graph) models User, UserUpdateParameters, UserCreateParameters with new attributes. Refer [PR #992](https://github.com/Azure/azure-sdk-for-ruby/pull/992) and latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/143dbb7c39a63afbb81740f89407a2e4d2f55d0e/specification/graphrbac/data-plane/readme.md) for further details.
+* Updated [azure_mgmt_media_services](https://rubygems.org/gems/azure_mgmt_media_services) model CheckNameAvailabilityOutput, the serialized names: NameAvailable, Reason & Message have been changed to nameAvailable, reason & message respectively. Refer [PR #974](https://github.com/Azure/azure-sdk-for-ruby/pull/974) and latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/b88ba52c9becb9ad2f7f83d8da6610119327dfc3/specification/mediaservices/resource-manager/readme.md) for further details.
+* Updated [azure_mgmt_monitor](https://rubygems.org/gems/azure_mgmt_monitor):
+ * ServiceDiagnosticSettingsOperations has been changed to DiagnosticSettingsOperations
+ * ServiceDiagnosticSettingsResource has been changed to DiagnosticSettingsResource
+ * ServiceDiagnosticSettingsResourcePatch has been removed. Refer [PR #979](https://github.com/Azure/azure-sdk-for-ruby/pull/979) and latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/97e69db426af23a0cdfde5e5df748565ff1070b8/specification/monitor/resource-manager/readme.md) for further details.
+* Updated [azure_mgmt_network](https://rubygems.org/gems/azure_mgmt_network) to latest API version 2017-09-01 and includes Availability zone feature. Refer latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/1a88e3f49b78c6ec74f9174115e5233cb6fe20c4/specification/network/resource-manager/readme.md) for further details.
+* Updated [azure_mgmt_service_bus](https://rubygems.org/gems/azure_mgmt_service_bus) with new APIs related to disaster recovery. Refer [PR #1001](https://github.com/Azure/azure-sdk-for-ruby/pull/1001) and latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/072a4331fe088b4ca0d72534ba89078c87ce1000/specification/servicebus/resource-manager/readme.md) for further details.
+* Updated [azure_mgmt_storage](https://rubygems.org/gems/azure_mgmt_storage) operation SKU to Sku. Refer [PR #965](https://github.com/Azure/azure-sdk-for-ruby/pull/965) and latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/87c3a2d9559462a39543c7d630b936c521fafbca/specification/storage/resource-manager/readme.md) for further details.
+* Updated [azure_mgmt_traffic_manager](https://rubygems.org/gems/azure_mgmt_traffic_manager) with new features related to RealUserMetricsKey and HeatMap.Refer latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/4e092c07e412fb2007ef5cfe4daaaf8a75d95729/specification/trafficmanager/resource-manager/readme.md) for further details.
+* Updated [azure_mgmt_web](https://rubygems.org/gems/azure_mgmt_web) with several new changes. Refer latest [specification](https://github.com/Azure/azure-rest-api-specs/blob/5a2e2ed0fe36ca88c6abd339523b23a6280240e6/specification/web/resource-manager/readme.md) for further details.
+* Updated [azure_sdk](https://rubygems.org/gems/azure_sdk) dependency with [azure-storage](https://rubygems.org/gems/azure-storage) version 0.13.0.preview.
+
+## 2017.09.11 - Azure ARM version 0.12.0
+
+* Regened all azure_mgmt_* sdks using [AutoRest 1.9.3](https://www.npmjs.com/package/@microsoft.azure/autorest.ruby) for release of ARM version 0.12.0
+* Updated all azure_mgmt_* sdks to use [ms_rest_azure version 0.9.0](https://rubygems.org/gems/ms_rest_azure/versions/0.9.0) to include MSI based authentication
+* **Skipped** generation of `azure_mgmt_traffic_manager` due to https://github.com/Azure/autorest.ruby/pull/7
+* **Skipped** generation of `azure_mgmt_web` due to https://github.com/Azure/azure-sdk-for-ruby/issues/957
+
## 2017.07.19 - Azure ARM version 0.11.0
* Regened all azure_mgmt_* sdks using [AutoRest.1.2.2.0](https://github.com/Azure/autorest/tree/v1.2.2) for release of ARM version 0.11.0
diff --git a/Gemfile b/Gemfile
index 4d0b622686..4536105073 100644
--- a/Gemfile
+++ b/Gemfile
@@ -19,6 +19,7 @@ gem 'azure_mgmt_cdn', path: 'management/azure_mgmt_cdn'
gem 'azure_mgmt_cognitive_services', path: 'management/azure_mgmt_cognitive_services'
gem 'azure_mgmt_commerce', path: 'management/azure_mgmt_commerce'
gem 'azure_mgmt_compute', path: 'management/azure_mgmt_compute'
+gem 'azure_mgmt_container_registry', path: 'management/azure_mgmt_container_registry'
gem 'azure_mgmt_datalake_analytics', path: 'management/azure_mgmt_datalake_analytics'
gem 'azure_mgmt_datalake_store', path: 'management/azure_mgmt_datalake_store'
gem 'azure_mgmt_devtestlabs', path: 'management/azure_mgmt_devtestlabs'
diff --git a/README.md b/README.md
index 9c4c73c187..2386eb6645 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@ Additional info on Azure deployment models [https://azure.microsoft.com/en-us/do
* [Cognitive Services](https://rubygems.org/gems/azure_mgmt_cognitive_services) Azure Cognitive Services Account management
* [Commerce](https://rubygems.org/gems/azure_mgmt_commerce) Azure Commerce Usage aggregates & Rate card management
* [Compute](https://rubygems.org/gems/azure_mgmt_compute) Virtual Machines, Images, Extensions, Availability Sets, etc...
+* [Container Registry](https://rubygems.org/gems/azure_mgmt_container_registry) Registries, Credentials, Replications, etc...
* [Datalake Analytics](https://rubygems.org/gems/azure_mgmt_datalake_analytics) Azure Datalake Analytics Account, Catalog and Job management
* [Datalake Store](https://rubygems.org/gems/azure_mgmt_datalake_store) Azure Datalake Store Account and FileSystem management
* [DevTest Labs](https://rubygems.org/gems/azure_mgmt_devtestlabs) Azure DevTest Labs LabOperations, ArtifactSourceOperations, ArtifactOperations, CostOperations etc...
@@ -146,6 +147,14 @@ bundle install
Running the command ``yard`` will generate the API documentation in the `./doc` directory.
+### Re-Gen all azure_mgmt_* SDKs
+
+Follow the steps below to regenerate all the azure_mgmt_* sdks using [autorest.ruby](https://github.com/Azure/autorest.ruby) generator:
+1. Install [Node.js](https://nodejs.org/en/) version `7.10.0` or greater
+2. Install autorest using `npm install -g autorest`
+3. Run `bundle install` in the root directory of the project
+4. Run `rake arm:regen` task to regenerate all the management SDKs
+
## Provide Feedback
If you encounter any bugs with the library please file an issue in the [Issues](https://github.com/Azure/azure-sdk-for-ruby/issues) section of the project. Please make sure to label the
diff --git a/Rakefile b/Rakefile
index 600f2d8f3f..294e4e18e3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -57,7 +57,7 @@ namespace :arm do
unless REGEN_EXCLUDES.include?(dir.to_s)
puts "\nGenerating #{dir}\n"
md = REGEN_METADATA[dir.to_sym]
- ar_base_command = "#{OS.windows? ? '' : 'mono '} #{REGEN_METADATA[:autorest_loc]}"
+ ar_base_command = REGEN_METADATA[:autorest_loc]
command = "#{ar_base_command} #{md[:spec_uri]} --package-version=#{md[:version]} --namespace=#{md[:ns]} --package-name=#{md[:pn].nil? ? dir : md[:pn]} --output-folder=#{File.join(Dir.pwd, 'lib')} --ruby --azure-arm"
command += " --#{md[:options]}" unless md[:options].nil?
@@ -130,7 +130,7 @@ def each_gem
end
REGEN_METADATA = {
- autorest_loc: ENV.fetch('AUTOREST_LOC', '../../../autorest/binaries/net45/AutoRest.exe'),
+ autorest_loc: ENV.fetch('AUTOREST_LOC', 'autorest'),
azure_sdk: {
version: version
},
@@ -169,6 +169,11 @@ REGEN_METADATA = {
ns: 'Azure::ARM::Compute',
version: version
},
+ azure_mgmt_container_registry: {
+ spec_uri: 'https://raw.githubusercontent.com/Azure/azure-rest-api-specs/current/specification/containerregistry/resource-manager/readme.md',
+ ns: 'Azure::ARM::ContainerRegistry',
+ version: version
+ },
azure_mgmt_datalake_analytics: {
spec_uri: 'https://raw.githubusercontent.com/Azure/azure-rest-api-specs/current/specification/datalake-analytics/resource-manager/readme.md',
ns: 'Azure::ARM::DataLakeAnalytics',
diff --git a/azure_sdk/azure_sdk.gemspec b/azure_sdk/azure_sdk.gemspec
index e7c0ac6935..9e33e2020e 100644
--- a/azure_sdk/azure_sdk.gemspec
+++ b/azure_sdk/azure_sdk.gemspec
@@ -37,6 +37,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'azure_mgmt_cognitive_services', "~>#{version}"
spec.add_runtime_dependency 'azure_mgmt_commerce', "~>#{version}"
spec.add_runtime_dependency 'azure_mgmt_compute', "~>#{version}"
+ spec.add_runtime_dependency 'azure_mgmt_container_registry', "~>#{version}"
spec.add_runtime_dependency 'azure_mgmt_datalake_analytics', "~>#{version}"
spec.add_runtime_dependency 'azure_mgmt_datalake_store', "~>#{version}"
spec.add_runtime_dependency 'azure_mgmt_devtestlabs', "~>#{version}"
@@ -70,5 +71,5 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'azure_mgmt_subscriptions', "~>#{version}"
spec.add_runtime_dependency 'azure_mgmt_traffic_manager', "~>#{version}"
spec.add_runtime_dependency 'azure_mgmt_web', "~>#{version}"
- spec.add_runtime_dependency 'azure-storage', "~>0.12.1.preview"
+ spec.add_runtime_dependency 'azure-storage', "~>0.13.0.preview"
end
diff --git a/azure_sdk/lib/azure_sdk/client.rb b/azure_sdk/lib/azure_sdk/client.rb
index 8d755bf66d..ac7f8cc7c3 100644
--- a/azure_sdk/lib/azure_sdk/client.rb
+++ b/azure_sdk/lib/azure_sdk/client.rb
@@ -8,6 +8,7 @@
require 'azure_mgmt_cognitive_services'
require 'azure_mgmt_commerce'
require 'azure_mgmt_compute'
+require 'azure_mgmt_container_registry'
require 'azure_mgmt_datalake_analytics'
require 'azure_mgmt_datalake_store'
require 'azure_mgmt_devtestlabs'
@@ -53,6 +54,7 @@ class Client
:cognitive_services => 'Azure::ARM::CognitiveServices::CognitiveServicesManagementClient',
:commerce => 'Azure::ARM::Commerce::UsageManagementClient',
:compute => 'Azure::ARM::Compute::ComputeManagementClient',
+ :container_registry => 'Azure::ARM::ContainerRegistry::ContainerRegistry::ContainerRegistryManagementClient',
:datalake_analytics => 'Azure::ARM::DataLakeAnalytics::DataLakeAnalyticsAccountManagementClient',
:datalake_store => 'Azure::ARM::DataLakeStore::DataLakeStoreAccountManagementClient',
:devtestlabs => 'Azure::ARM::DevTestLabs::DevTestLabsClient',
diff --git a/azure_sdk/lib/azure_sdk/version.rb b/azure_sdk/lib/azure_sdk/version.rb
index 619af88126..164bd20c8e 100644
--- a/azure_sdk/lib/azure_sdk/version.rb
+++ b/azure_sdk/lib/azure_sdk/version.rb
@@ -3,5 +3,5 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
module Azure
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_analysis_services/azure_mgmt_analysis_services.gemspec b/management/azure_mgmt_analysis_services/azure_mgmt_analysis_services.gemspec
index 685b601d3c..dd159c9d73 100644
--- a/management/azure_mgmt_analysis_services/azure_mgmt_analysis_services.gemspec
+++ b/management/azure_mgmt_analysis_services/azure_mgmt_analysis_services.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services.rb
old mode 100755
new mode 100644
index 189db4a5ac..9ea2e00706
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -21,20 +21,33 @@
module Azure::ARM::AnalysisServices
autoload :Servers, 'generated/azure_mgmt_analysis_services/servers.rb'
+ autoload :Operations, 'generated/azure_mgmt_analysis_services/operations.rb'
autoload :AnalysisServicesManagementClient, 'generated/azure_mgmt_analysis_services/analysis_services_management_client.rb'
module Models
- autoload :ServerAdministrators, 'generated/azure_mgmt_analysis_services/models/server_administrators.rb'
+ autoload :IPv4FirewallRule, 'generated/azure_mgmt_analysis_services/models/ipv4firewall_rule.rb'
+ autoload :IPv4FirewallSettings, 'generated/azure_mgmt_analysis_services/models/ipv4firewall_settings.rb'
+ autoload :Operation, 'generated/azure_mgmt_analysis_services/models/operation.rb'
autoload :AnalysisServicesServerUpdateParameters, 'generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb'
- autoload :Resource, 'generated/azure_mgmt_analysis_services/models/resource.rb'
- autoload :SkuEnumerationForNewResourceResult, 'generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb'
+ autoload :ResourceSku, 'generated/azure_mgmt_analysis_services/models/resource_sku.rb'
+ autoload :GatewayListStatusLive, 'generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb'
autoload :AnalysisServicesServers, 'generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb'
+ autoload :GatewayError, 'generated/azure_mgmt_analysis_services/models/gateway_error.rb'
+ autoload :GatewayDetails, 'generated/azure_mgmt_analysis_services/models/gateway_details.rb'
+ autoload :GatewayListStatusError, 'generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb'
+ autoload :OperationListResult, 'generated/azure_mgmt_analysis_services/models/operation_list_result.rb'
+ autoload :SkuEnumerationForNewResourceResult, 'generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb'
+ autoload :ServerAdministrators, 'generated/azure_mgmt_analysis_services/models/server_administrators.rb'
autoload :SkuDetailsForExistingResource, 'generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb'
- autoload :ResourceSku, 'generated/azure_mgmt_analysis_services/models/resource_sku.rb'
+ autoload :Resource, 'generated/azure_mgmt_analysis_services/models/resource.rb'
autoload :SkuEnumerationForExistingResourceResult, 'generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb'
+ autoload :OperationDisplay, 'generated/azure_mgmt_analysis_services/models/operation_display.rb'
+ autoload :ErrorResponse, 'generated/azure_mgmt_analysis_services/models/error_response.rb'
autoload :AnalysisServicesServer, 'generated/azure_mgmt_analysis_services/models/analysis_services_server.rb'
autoload :SkuTier, 'generated/azure_mgmt_analysis_services/models/sku_tier.rb'
autoload :State, 'generated/azure_mgmt_analysis_services/models/state.rb'
autoload :ProvisioningState, 'generated/azure_mgmt_analysis_services/models/provisioning_state.rb'
+ autoload :ConnectionMode, 'generated/azure_mgmt_analysis_services/models/connection_mode.rb'
+ autoload :Status, 'generated/azure_mgmt_analysis_services/models/status.rb'
end
end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb
old mode 100755
new mode 100644
index 2be97494b5..f658136f89
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -38,6 +38,9 @@ class AnalysisServicesManagementClient < MsRestAzure::AzureServiceClient
# @return [Servers] servers
attr_reader :servers
+ # @return [Operations] operations
+ attr_reader :operations
+
#
# Creates initializes a new instance of the AnalysisServicesManagementClient class.
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@@ -52,7 +55,8 @@ def initialize(credentials = nil, base_url = nil, options = nil)
@credentials = credentials
@servers = Servers.new(self)
- @api_version = '2016-05-16'
+ @operations = Operations.new(self)
+ @api_version = '2017-08-01-beta'
@accept_language = 'en-US'
@long_running_operation_retry_timeout = 30
@generate_client_request_id = true
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb
old mode 100755
new mode 100644
index bcadebd88f..dcfc648f10
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,17 +8,33 @@ module Models
#
# Represents an instance of an Analysis Services resource.
#
- class AnalysisServicesServer < MsRestAzure::Resource
+ class AnalysisServicesServer < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [ServerAdministrators] A collection of AS server administrators
attr_accessor :as_administrators
# @return [String] The container URI of backup blob.
attr_accessor :backup_blob_container_uri
+ # @return [GatewayDetails] The gateway details configured for the AS
+ # server.
+ attr_accessor :gateway_details
+
+ # @return [IPv4FirewallSettings] The firewall settings for the AS server.
+ attr_accessor :ip_v4firewall_settings
+
+ # @return [ConnectionMode] How the read-write server's participation in
+ # the query pool is controlled.
It can have the following values:
+ #
- readOnly - indicates that the read-write server is intended not
+ # to participate in query operations
- all - indicates that the
+ # read-write server can participate in query
+ # operations
Specifying readOnly when capacity is 1 results in
+ # error. Possible values include: 'All', 'ReadOnly'. Default value: 'All'
+ # .
+ attr_accessor :querypool_connection_mode
+
# @return [State] The current state of Analysis Services resource. The
# state is to indicate more states outside of resource provisioning.
# Possible values include: 'Deleting', 'Succeeded', 'Failed', 'Paused',
@@ -117,6 +133,31 @@ def self.mapper()
name: 'String'
}
},
+ gateway_details: {
+ required: false,
+ serialized_name: 'properties.gatewayDetails',
+ type: {
+ name: 'Composite',
+ class_name: 'GatewayDetails'
+ }
+ },
+ ip_v4firewall_settings: {
+ required: false,
+ serialized_name: 'properties.ipV4FirewallSettings',
+ type: {
+ name: 'Composite',
+ class_name: 'IPv4FirewallSettings'
+ }
+ },
+ querypool_connection_mode: {
+ required: false,
+ serialized_name: 'properties.querypoolConnectionMode',
+ default_value: 'All',
+ type: {
+ name: 'Enum',
+ module: 'ConnectionMode'
+ }
+ },
state: {
required: false,
read_only: true,
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb
old mode 100755
new mode 100644
index dade26c483..d885c6f7b0
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AnalysisServicesServerUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [ResourceSku] The SKU of the Analysis Services resource.
attr_accessor :sku
@@ -26,6 +25,23 @@ class AnalysisServicesServerUpdateParameters
# @return [String] The container URI of backup blob.
attr_accessor :backup_blob_container_uri
+ # @return [GatewayDetails] The gateway details configured for the AS
+ # server.
+ attr_accessor :gateway_details
+
+ # @return [IPv4FirewallSettings] The firewall settings for the AS server.
+ attr_accessor :ip_v4firewall_settings
+
+ # @return [ConnectionMode] How the read-write server's participation in
+ # the query pool is controlled.
It can have the following values:
+ # - readOnly - indicates that the read-write server is intended not
+ # to participate in query operations
- all - indicates that the
+ # read-write server can participate in query
+ # operations
Specifying readOnly when capacity is 1 results in
+ # error. Possible values include: 'All', 'ReadOnly'. Default value: 'All'
+ # .
+ attr_accessor :querypool_connection_mode
+
#
# Mapper for AnalysisServicesServerUpdateParameters class as Ruby Hash.
@@ -75,6 +91,31 @@ def self.mapper()
type: {
name: 'String'
}
+ },
+ gateway_details: {
+ required: false,
+ serialized_name: 'properties.gatewayDetails',
+ type: {
+ name: 'Composite',
+ class_name: 'GatewayDetails'
+ }
+ },
+ ip_v4firewall_settings: {
+ required: false,
+ serialized_name: 'properties.ipV4FirewallSettings',
+ type: {
+ name: 'Composite',
+ class_name: 'IPv4FirewallSettings'
+ }
+ },
+ querypool_connection_mode: {
+ required: false,
+ serialized_name: 'properties.querypoolConnectionMode',
+ default_value: 'All',
+ type: {
+ name: 'Enum',
+ module: 'ConnectionMode'
+ }
}
}
}
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb
old mode 100755
new mode 100644
index a66e688605..746af3221d
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AnalysisServicesServers
include MsRestAzure
- include MsRest::JSONable
# @return [Array] An array of Analysis Services
# resources.
attr_accessor :value
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/connection_mode.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/connection_mode.rb
new file mode 100644
index 0000000000..71696bcdfa
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/connection_mode.rb
@@ -0,0 +1,16 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # Defines values for ConnectionMode
+ #
+ module ConnectionMode
+ All = "All"
+ ReadOnly = "ReadOnly"
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/error_response.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/error_response.rb
new file mode 100644
index 0000000000..6f828b6c17
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/error_response.rb
@@ -0,0 +1,54 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # Describes the format of Error response.
+ #
+ class ErrorResponse
+
+ include MsRestAzure
+
+ # @return [String] Error code
+ attr_accessor :code
+
+ # @return [String] Error message indicating why the operation failed.
+ attr_accessor :message
+
+
+ #
+ # Mapper for ErrorResponse class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'ErrorResponse',
+ type: {
+ name: 'Composite',
+ class_name: 'ErrorResponse',
+ model_properties: {
+ code: {
+ required: false,
+ serialized_name: 'code',
+ type: {
+ name: 'String'
+ }
+ },
+ message: {
+ required: false,
+ serialized_name: 'message',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_details.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_details.rb
new file mode 100644
index 0000000000..8c7cd5c7bf
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_details.rb
@@ -0,0 +1,67 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # The gateway details.
+ #
+ class GatewayDetails
+
+ include MsRestAzure
+
+ # @return [String] Gateway resource to be associated with the server.
+ attr_accessor :gateway_resource_id
+
+ # @return [String] Gateway object id from in the DMTS cluster for the
+ # gateway resource.
+ attr_accessor :gateway_object_id
+
+ # @return [String] Uri of the DMTS cluster.
+ attr_accessor :dmts_cluster_uri
+
+
+ #
+ # Mapper for GatewayDetails class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'GatewayDetails',
+ type: {
+ name: 'Composite',
+ class_name: 'GatewayDetails',
+ model_properties: {
+ gateway_resource_id: {
+ required: false,
+ serialized_name: 'gatewayResourceId',
+ type: {
+ name: 'String'
+ }
+ },
+ gateway_object_id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'gatewayObjectId',
+ type: {
+ name: 'String'
+ }
+ },
+ dmts_cluster_uri: {
+ required: false,
+ read_only: true,
+ serialized_name: 'dmtsClusterUri',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_error.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_error.rb
new file mode 100644
index 0000000000..4c2b84407f
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_error.rb
@@ -0,0 +1,54 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # Detail of gateway errors.
+ #
+ class GatewayError
+
+ include MsRestAzure
+
+ # @return [String] Error code of list gateway.
+ attr_accessor :code
+
+ # @return [String] Error message of list gateway.
+ attr_accessor :message
+
+
+ #
+ # Mapper for GatewayError class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'GatewayError',
+ type: {
+ name: 'Composite',
+ class_name: 'GatewayError',
+ model_properties: {
+ code: {
+ required: false,
+ serialized_name: 'code',
+ type: {
+ name: 'String'
+ }
+ },
+ message: {
+ required: false,
+ serialized_name: 'message',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb
new file mode 100644
index 0000000000..733be589e9
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb
@@ -0,0 +1,45 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # Status of gateway is error.
+ #
+ class GatewayListStatusError
+
+ include MsRestAzure
+
+ # @return [GatewayError] Error of the list gateway status.
+ attr_accessor :error
+
+
+ #
+ # Mapper for GatewayListStatusError class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'GatewayListStatusError',
+ type: {
+ name: 'Composite',
+ class_name: 'GatewayListStatusError',
+ model_properties: {
+ error: {
+ required: false,
+ serialized_name: 'error',
+ type: {
+ name: 'Composite',
+ class_name: 'GatewayError'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb
new file mode 100644
index 0000000000..a021d58f95
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb
@@ -0,0 +1,46 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # Status of gateway is live.
+ #
+ class GatewayListStatusLive
+
+ include MsRestAzure
+
+ # @return [Status] Live message of list gateway. Possible values include:
+ # 'Live'
+ attr_accessor :status
+
+
+ #
+ # Mapper for GatewayListStatusLive class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'GatewayListStatusLive',
+ type: {
+ name: 'Composite',
+ class_name: 'GatewayListStatusLive',
+ model_properties: {
+ status: {
+ required: false,
+ serialized_name: 'status',
+ type: {
+ name: 'Enum',
+ module: 'Status'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_rule.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_rule.rb
new file mode 100644
index 0000000000..b3edd1fe5d
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_rule.rb
@@ -0,0 +1,64 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # The detail of firewall rule.
+ #
+ class IPv4FirewallRule
+
+ include MsRestAzure
+
+ # @return [String] The rule name.
+ attr_accessor :firewall_rule_name
+
+ # @return [String] The start range of IPv4.
+ attr_accessor :range_start
+
+ # @return [String] The end range of IPv4.
+ attr_accessor :range_end
+
+
+ #
+ # Mapper for IPv4FirewallRule class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'IPv4FirewallRule',
+ type: {
+ name: 'Composite',
+ class_name: 'IPv4FirewallRule',
+ model_properties: {
+ firewall_rule_name: {
+ required: false,
+ serialized_name: 'firewallRuleName',
+ type: {
+ name: 'String'
+ }
+ },
+ range_start: {
+ required: false,
+ serialized_name: 'rangeStart',
+ type: {
+ name: 'String'
+ }
+ },
+ range_end: {
+ required: false,
+ serialized_name: 'rangeEnd',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_settings.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_settings.rb
new file mode 100644
index 0000000000..81a10f12b5
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/ipv4firewall_settings.rb
@@ -0,0 +1,62 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # An array of firewall rules.
+ #
+ class IPv4FirewallSettings
+
+ include MsRestAzure
+
+ # @return [Array] An array of firewall rules.
+ attr_accessor :firewall_rules
+
+ # @return [String] The indicator of enableing PBI service.
+ attr_accessor :enable_power_biservice
+
+
+ #
+ # Mapper for IPv4FirewallSettings class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'IPv4FirewallSettings',
+ type: {
+ name: 'Composite',
+ class_name: 'IPv4FirewallSettings',
+ model_properties: {
+ firewall_rules: {
+ required: false,
+ serialized_name: 'firewallRules',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'IPv4FirewallRuleElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'IPv4FirewallRule'
+ }
+ }
+ }
+ },
+ enable_power_biservice: {
+ required: false,
+ serialized_name: 'enablePowerBIService',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/operation.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/operation.rb
new file mode 100644
index 0000000000..6b27ac4114
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/operation.rb
@@ -0,0 +1,56 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # A Consumption REST API operation.
+ #
+ class Operation
+
+ include MsRestAzure
+
+ # @return [String] Operation name: {provider}/{resource}/{operation}.
+ attr_accessor :name
+
+ # @return [OperationDisplay] The object that represents the operation.
+ attr_accessor :display
+
+
+ #
+ # Mapper for Operation class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Operation',
+ type: {
+ name: 'Composite',
+ class_name: 'Operation',
+ model_properties: {
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ display: {
+ required: false,
+ serialized_name: 'display',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplay'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/operation_display.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/operation_display.rb
new file mode 100644
index 0000000000..eaa34a1b05
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/operation_display.rb
@@ -0,0 +1,68 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # The object that represents the operation.
+ #
+ class OperationDisplay
+
+ include MsRestAzure
+
+ # @return [String] Service provider: Microsoft.Consumption.
+ attr_accessor :provider
+
+ # @return [String] Resource on which the operation is performed:
+ # UsageDetail, etc.
+ attr_accessor :resource
+
+ # @return [String] Operation type: Read, write, delete, etc.
+ attr_accessor :operation
+
+
+ #
+ # Mapper for OperationDisplay class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Operation_display',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplay',
+ model_properties: {
+ provider: {
+ required: false,
+ read_only: true,
+ serialized_name: 'provider',
+ type: {
+ name: 'String'
+ }
+ },
+ resource: {
+ required: false,
+ read_only: true,
+ serialized_name: 'resource',
+ type: {
+ name: 'String'
+ }
+ },
+ operation: {
+ required: false,
+ read_only: true,
+ serialized_name: 'operation',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/operation_list_result.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/operation_list_result.rb
new file mode 100644
index 0000000000..5c026ab9cc
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/operation_list_result.rb
@@ -0,0 +1,99 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # Result of listing consumption operations. It contains a list of
+ # operations and a URL link to get the next set of results.
+ #
+ class OperationListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] List of analysis services operations
+ # supported by the Microsoft.AnalysisServices resource provider.
+ attr_accessor :value
+
+ # @return [String] URL to get the next set of operation list results if
+ # there are any.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [OperationListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for OperationListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'OperationListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationListResult',
+ model_properties: {
+ value: {
+ required: false,
+ read_only: true,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'OperationElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'Operation'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/provisioning_state.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/provisioning_state.rb
old mode 100755
new mode 100644
index ad068202a9..3e6f789913
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/provisioning_state.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/provisioning_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/resource.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/resource.rb
old mode 100755
new mode 100644
index 930af56b0e..9dc04e8821
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/resource.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,14 +8,30 @@ module Models
#
# Represents an instance of an Analysis Services resource.
#
- class Resource < MsRestAzure::Resource
+ class Resource
include MsRestAzure
- include MsRest::JSONable
+ # @return [String] An identifier that represents the Analysis Services
+ # resource.
+ attr_accessor :id
+
+ # @return [String] The name of the Analysis Services resource.
+ attr_accessor :name
+
+ # @return [String] The type of the Analysis Services resource.
+ attr_accessor :type
+
+ # @return [String] Location of the Analysis Services resource.
+ attr_accessor :location
+
# @return [ResourceSku] The SKU of the Analysis Services resource.
attr_accessor :sku
+ # @return [Hash{String => String}] Key-value pairs of additional resource
+ # provisioning properties.
+ attr_accessor :tags
+
#
# Mapper for Resource class as Ruby Hash.
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/resource_sku.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/resource_sku.rb
old mode 100755
new mode 100644
index 435c1ad5af..8d17b367da
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/resource_sku.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/resource_sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ResourceSku
include MsRestAzure
- include MsRest::JSONable
# @return [String] Name of the SKU level.
attr_accessor :name
@@ -21,6 +20,10 @@ class ResourceSku
# applies. Possible values include: 'Development', 'Basic', 'Standard'
attr_accessor :tier
+ # @return [Integer] The number of instances in the read only query pool.
+ # Default value: 1 .
+ attr_accessor :capacity
+
#
# Mapper for ResourceSku class as Ruby Hash.
@@ -47,6 +50,18 @@ def self.mapper()
type: {
name: 'String'
}
+ },
+ capacity: {
+ required: false,
+ serialized_name: 'capacity',
+ default_value: 1,
+ constraints: {
+ InclusiveMaximum: 8,
+ InclusiveMinimum: 1
+ },
+ type: {
+ name: 'Number'
+ }
}
}
}
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/server_administrators.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/server_administrators.rb
old mode 100755
new mode 100644
index 02a6b3657c..79a8affa63
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/server_administrators.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/server_administrators.rb
@@ -1,18 +1,17 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::AnalysisServices
module Models
#
- # An array of administrator user identities
+ # An array of administrator user identities.
#
class ServerAdministrators
include MsRestAzure
- include MsRest::JSONable
# @return [Array] An array of administrator user identities.
attr_accessor :members
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb
index 032e94e551..ca6eb727f5 100644
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb
@@ -1,18 +1,17 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::AnalysisServices
module Models
#
- # An object that represents SKU details for existing resources
+ # An object that represents SKU details for existing resources.
#
class SkuDetailsForExistingResource
include MsRestAzure
- include MsRest::JSONable
# @return [ResourceSku] The SKU in SKU details for existing resources.
attr_accessor :sku
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb
index 0e62d1753a..34bce837b6 100644
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb
@@ -1,20 +1,19 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::AnalysisServices
module Models
#
- # An object that represents enumerating SKUs for existing resources
+ # An object that represents enumerating SKUs for existing resources.
#
class SkuEnumerationForExistingResourceResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The collection of
- # available SKUs for existing resources
+ # available SKUs for existing resources.
attr_accessor :value
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb
index 3d71b68059..bf9e1a5a6f 100644
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb
@@ -1,20 +1,19 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::AnalysisServices
module Models
#
- # An object that represents enumerating SKUs for new resources
+ # An object that represents enumerating SKUs for new resources.
#
class SkuEnumerationForNewResourceResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The collection of available SKUs for new
- # resources
+ # resources.
attr_accessor :value
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_tier.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_tier.rb
old mode 100755
new mode 100644
index 80706423e1..577479118b
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_tier.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/sku_tier.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/state.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/state.rb
old mode 100755
new mode 100644
index 1fdc7d43cb..18803390cf
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/state.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/status.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/status.rb
new file mode 100644
index 0000000000..f8978554d7
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/models/status.rb
@@ -0,0 +1,15 @@
+# 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::ARM::AnalysisServices
+ module Models
+ #
+ # Defines values for Status
+ #
+ module Status
+ Live = "Live"
+ end
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/module_definition.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/module_definition.rb
old mode 100755
new mode 100644
index 11dff265c5..73ed9918a9
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/module_definition.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/operations.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/operations.rb
new file mode 100644
index 0000000000..736505a806
--- /dev/null
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/operations.rb
@@ -0,0 +1,215 @@
+# 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::ARM::AnalysisServices
+ #
+ # The Azure Analysis Services Web API provides a RESTful set of web services
+ # that enables users to create, retrieve, update, and delete Analysis
+ # Services servers
+ #
+ class Operations
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Operations class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [AnalysisServicesManagementClient] reference to the AnalysisServicesManagementClient
+ attr_reader :client
+
+ #
+ # Lists all of the available consumption REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(custom_headers = nil)
+ first_page = list_as_lazy(custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Lists all of the available consumption REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(custom_headers = nil)
+ list_async(custom_headers).value!
+ end
+
+ #
+ # Lists all of the available consumption REST API operations.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+
+
+ request_headers = {}
+
+ # 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 = 'providers/Microsoft.AnalysisServices/operations'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::AnalysisServices::Models::OperationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all of the available consumption REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all of the available consumption REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Lists all of the available consumption REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::AnalysisServices::Models::OperationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all of the available consumption REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(custom_headers = nil)
+ response = list_async(custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/servers.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/servers.rb
old mode 100755
new mode 100644
index 0435429877..613e88690b
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/servers.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/servers.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -719,6 +719,192 @@ def list_skus_for_existing_async(resource_group_name, server_name, custom_header
promise.execute
end
+ #
+ # Return the gateway status of the specified Analysis Services server instance.
+ #
+ # @param resource_group_name [String] The name of the Azure Resource group of
+ # which a given Analysis Services server is part. This name must be at least 1
+ # character in length, and no more than 90.
+ # @param server_name [String] The name of the Analysis Services server.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [GatewayListStatusLive] operation results.
+ #
+ def list_gateway_status(resource_group_name, server_name, custom_headers = nil)
+ response = list_gateway_status_async(resource_group_name, server_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Return the gateway status of the specified Analysis Services server instance.
+ #
+ # @param resource_group_name [String] The name of the Azure Resource group of
+ # which a given Analysis Services server is part. This name must be at least 1
+ # character in length, and no more than 90.
+ # @param server_name [String] The name of the Analysis Services server.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_gateway_status_with_http_info(resource_group_name, server_name, custom_headers = nil)
+ list_gateway_status_async(resource_group_name, server_name, custom_headers).value!
+ end
+
+ #
+ # Return the gateway status of the specified Analysis Services server instance.
+ #
+ # @param resource_group_name [String] The name of the Azure Resource group of
+ # which a given Analysis Services server is part. This name must be at least 1
+ # character in length, and no more than 90.
+ # @param server_name [String] The name of the Analysis Services server.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_gateway_status_async(resource_group_name, server_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.AnalysisServices/servers/{serverName}/listGatewayStatus'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::AnalysisServices::Models::GatewayListStatusLive.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Dissociates a Unified Gateway associated with the server.
+ #
+ # @param resource_group_name [String] The name of the Azure Resource group of
+ # which a given Analysis Services server is part. This name must be at least 1
+ # character in length, and no more than 90.
+ # @param server_name [String] The name of the Analysis Services server. It must
+ # be at least 3 characters in length, and no more than 63.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def dissociate_gateway(resource_group_name, server_name, custom_headers = nil)
+ response = dissociate_gateway_async(resource_group_name, server_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # Dissociates a Unified Gateway associated with the server.
+ #
+ # @param resource_group_name [String] The name of the Azure Resource group of
+ # which a given Analysis Services server is part. This name must be at least 1
+ # character in length, and no more than 90.
+ # @param server_name [String] The name of the Analysis Services server. It must
+ # be at least 3 characters in length, and no more than 63.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def dissociate_gateway_with_http_info(resource_group_name, server_name, custom_headers = nil)
+ dissociate_gateway_async(resource_group_name, server_name, custom_headers).value!
+ end
+
+ #
+ # Dissociates a Unified Gateway associated with the server.
+ #
+ # @param resource_group_name [String] The name of the Azure Resource group of
+ # which a given Analysis Services server is part. This name must be at least 1
+ # character in length, and no more than 90.
+ # @param server_name [String] The name of the Analysis Services server. It must
+ # be at least 3 characters in length, and no more than 63.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def dissociate_gateway_async(resource_group_name, server_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'server_name is nil' if server_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.AnalysisServices/servers/{serverName}/dissociateGateway'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'serverName' => server_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
#
# Provisions the specified Analysis Services server based on the configuration
# specified in the request.
diff --git a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/version.rb b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/version.rb
old mode 100755
new mode 100644
index e81e794af3..d3550b7eb7
--- a/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/version.rb
+++ b/management/azure_mgmt_analysis_services/lib/generated/azure_mgmt_analysis_services/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::AnalysisServices
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_authorization/azure_mgmt_authorization.gemspec b/management/azure_mgmt_authorization/azure_mgmt_authorization.gemspec
index 9e9f52a300..e2fbe9a589 100644
--- a/management/azure_mgmt_authorization/azure_mgmt_authorization.gemspec
+++ b/management/azure_mgmt_authorization/azure_mgmt_authorization.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization.rb
old mode 100755
new mode 100644
index 460eba1ada..bf5a2afd54
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/authorization_management_client.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/authorization_management_client.rb
old mode 100755
new mode 100644
index 9075da8a55..fca06e85da
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/authorization_management_client.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/authorization_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/classic_administrators.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/classic_administrators.rb
old mode 100755
new mode 100644
index 56b0126557..e70ea81f65
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/classic_administrators.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/classic_administrators.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator.rb
old mode 100755
new mode 100644
index a9be4071ad..ba9432f9ff
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ClassicAdministrator
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ID of the administrator.
attr_accessor :id
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb
old mode 100755
new mode 100644
index 1358518576..99d19325ac
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb
old mode 100755
new mode 100644
index 97970312d8..b0923bcee2
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/classic_administrator_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ClassicAdministratorProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The email address of the administrator.
attr_accessor :email_address
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/permission.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/permission.rb
old mode 100755
new mode 100644
index 40c69eeaba..4855ec8353
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/permission.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/permission.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Permission
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Allowed actions.
attr_accessor :actions
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/permission_get_result.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/permission_get_result.rb
old mode 100755
new mode 100644
index acea84a84a..d22916d55e
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/permission_get_result.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/permission_get_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operation.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operation.rb
old mode 100755
new mode 100644
index eceed7310a..04d7830a5c
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operation.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operation.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ProviderOperation
include MsRestAzure
- include MsRest::JSONable
# @return [String] The operation name.
attr_accessor :name
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb
old mode 100755
new mode 100644
index d7894fa134..a45a6e353f
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ProviderOperationsMetadata
include MsRestAzure
- include MsRest::JSONable
# @return [String] The provider id.
attr_accessor :id
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb
old mode 100755
new mode 100644
index f8675fd824..114b96c987
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/provider_operations_metadata_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/resource_type.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/resource_type.rb
old mode 100755
new mode 100644
index 3dc7769cd9..4b3dc4a14e
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/resource_type.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/resource_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ResourceType
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource type name.
attr_accessor :name
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment.rb
old mode 100755
new mode 100644
index c6d55ae291..982b59f29b
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RoleAssignment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The role assignment ID.
attr_accessor :id
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb
old mode 100755
new mode 100644
index 35fb62d4e6..5575a6295c
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_create_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RoleAssignmentCreateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [RoleAssignmentProperties] Role assignment properties.
attr_accessor :properties
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb
old mode 100755
new mode 100644
index 77dba1ac56..830321404b
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RoleAssignmentFilter
include MsRestAzure
- include MsRest::JSONable
# @return [String] Returns role assignment of the specific principal.
attr_accessor :principal_id
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb
old mode 100755
new mode 100644
index 65e5f7b614..cbfe3897ea
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb
old mode 100755
new mode 100644
index 3560a5438b..3d669520b2
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RoleAssignmentProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The role definition ID used in the role assignment.
attr_accessor :role_definition_id
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb
old mode 100755
new mode 100644
index 134654524a..0e40424b82
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_assignment_properties_with_scope.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RoleAssignmentPropertiesWithScope
include MsRestAzure
- include MsRest::JSONable
# @return [String] The role assignment scope.
attr_accessor :scope
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition.rb
old mode 100755
new mode 100644
index 54a7c43eeb..abb766382b
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RoleDefinition
include MsRestAzure
- include MsRest::JSONable
# @return [String] The role definition ID.
attr_accessor :id
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb
old mode 100755
new mode 100644
index 24201f7d90..3d00584ff4
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RoleDefinitionFilter
include MsRestAzure
- include MsRest::JSONable
# @return [String] Returns role definition with the specific name.
attr_accessor :role_name
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb
old mode 100755
new mode 100644
index 02b139e82a..7131ec30b1
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb
old mode 100755
new mode 100644
index a278d7031b..02347e5b3c
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/models/role_definition_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RoleDefinitionProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The role name.
attr_accessor :role_name
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/module_definition.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/module_definition.rb
old mode 100755
new mode 100644
index b47031af1d..4e4e56a315
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/module_definition.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/permissions.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/permissions.rb
old mode 100755
new mode 100644
index e52d9b5c13..be0131c25a
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/permissions.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/permissions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb
old mode 100755
new mode 100644
index 9b07069aa4..0cc1554367
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/provider_operations_metadata_operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/role_assignments.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/role_assignments.rb
old mode 100755
new mode 100644
index 49724c6d9b..a195e6f867
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/role_assignments.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/role_assignments.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/role_definitions.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/role_definitions.rb
old mode 100755
new mode 100644
index b9a8487b45..69a61ba445
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/role_definitions.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/role_definitions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/version.rb b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/version.rb
old mode 100755
new mode 100644
index 75c836dbef..d6836cd2c7
--- a/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/version.rb
+++ b/management/azure_mgmt_authorization/lib/generated/azure_mgmt_authorization/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Authorization
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_batch/azure_mgmt_batch.gemspec b/management/azure_mgmt_batch/azure_mgmt_batch.gemspec
index 0823ed234c..8b6dfa2055 100644
--- a/management/azure_mgmt_batch/azure_mgmt_batch.gemspec
+++ b/management/azure_mgmt_batch/azure_mgmt_batch.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch.rb
old mode 100755
new mode 100644
index 55541d31c0..3d3a87e4d4
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -28,28 +28,32 @@ module Azure::ARM::Batch
autoload :BatchManagementClient, 'generated/azure_mgmt_batch/batch_management_client.rb'
module Models
- autoload :ApplicationCreateParameters, 'generated/azure_mgmt_batch/models/application_create_parameters.rb'
autoload :ApplicationPackage, 'generated/azure_mgmt_batch/models/application_package.rb'
- autoload :KeyVaultReference, 'generated/azure_mgmt_batch/models/key_vault_reference.rb'
autoload :Application, 'generated/azure_mgmt_batch/models/application.rb'
+ autoload :KeyVaultReference, 'generated/azure_mgmt_batch/models/key_vault_reference.rb'
+ autoload :ListApplicationsResult, 'generated/azure_mgmt_batch/models/list_applications_result.rb'
autoload :BatchAccountCreateParameters, 'generated/azure_mgmt_batch/models/batch_account_create_parameters.rb'
- autoload :Operation, 'generated/azure_mgmt_batch/models/operation.rb'
+ autoload :CheckNameAvailabilityParameters, 'generated/azure_mgmt_batch/models/check_name_availability_parameters.rb'
autoload :BatchAccountUpdateParameters, 'generated/azure_mgmt_batch/models/batch_account_update_parameters.rb'
- autoload :ListApplicationsResult, 'generated/azure_mgmt_batch/models/list_applications_result.rb'
- autoload :BatchAccountRegenerateKeyParameters, 'generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb'
autoload :ApplicationUpdateParameters, 'generated/azure_mgmt_batch/models/application_update_parameters.rb'
- autoload :ActivateApplicationPackageParameters, 'generated/azure_mgmt_batch/models/activate_application_package_parameters.rb'
+ autoload :BatchAccountRegenerateKeyParameters, 'generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb'
autoload :BatchLocationQuota, 'generated/azure_mgmt_batch/models/batch_location_quota.rb'
- autoload :OperationListResult, 'generated/azure_mgmt_batch/models/operation_list_result.rb'
- autoload :BatchAccountKeys, 'generated/azure_mgmt_batch/models/batch_account_keys.rb'
- autoload :BatchAccountListResult, 'generated/azure_mgmt_batch/models/batch_account_list_result.rb'
+ autoload :ActivateApplicationPackageParameters, 'generated/azure_mgmt_batch/models/activate_application_package_parameters.rb'
+ autoload :Resource, 'generated/azure_mgmt_batch/models/resource.rb'
autoload :AutoStorageBaseProperties, 'generated/azure_mgmt_batch/models/auto_storage_base_properties.rb'
+ autoload :BatchAccountListResult, 'generated/azure_mgmt_batch/models/batch_account_list_result.rb'
+ autoload :ApplicationCreateParameters, 'generated/azure_mgmt_batch/models/application_create_parameters.rb'
autoload :OperationDisplay, 'generated/azure_mgmt_batch/models/operation_display.rb'
+ autoload :BatchAccountKeys, 'generated/azure_mgmt_batch/models/batch_account_keys.rb'
+ autoload :Operation, 'generated/azure_mgmt_batch/models/operation.rb'
+ autoload :CheckNameAvailabilityResult, 'generated/azure_mgmt_batch/models/check_name_availability_result.rb'
+ autoload :OperationListResult, 'generated/azure_mgmt_batch/models/operation_list_result.rb'
autoload :AutoStorageProperties, 'generated/azure_mgmt_batch/models/auto_storage_properties.rb'
autoload :BatchAccount, 'generated/azure_mgmt_batch/models/batch_account.rb'
autoload :PoolAllocationMode, 'generated/azure_mgmt_batch/models/pool_allocation_mode.rb'
autoload :ProvisioningState, 'generated/azure_mgmt_batch/models/provisioning_state.rb'
autoload :AccountKeyType, 'generated/azure_mgmt_batch/models/account_key_type.rb'
autoload :PackageState, 'generated/azure_mgmt_batch/models/package_state.rb'
+ autoload :NameAvailabilityReason, 'generated/azure_mgmt_batch/models/name_availability_reason.rb'
end
end
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/application_operations.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/application_operations.rb
old mode 100755
new mode 100644
index 787cdc1bf6..dd61d1cba3
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/application_operations.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/application_operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/application_package_operations.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/application_package_operations.rb
old mode 100755
new mode 100644
index edfbabd983..b724f6d0fd
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/application_package_operations.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/application_package_operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/batch_account_operations.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/batch_account_operations.rb
old mode 100755
new mode 100644
index cf42dbf902..5a5f277207
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/batch_account_operations.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/batch_account_operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/batch_management_client.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/batch_management_client.rb
old mode 100755
new mode 100644
index d731a3b457..c5dcced408
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/batch_management_client.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/batch_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/location.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/location.rb
old mode 100755
new mode 100644
index da1a1bb481..1c7f5e3771
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/location.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/location.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -114,5 +114,108 @@ def get_quotas_async(location_name, custom_headers = nil)
promise.execute
end
+ #
+ # Checks whether the Batch account name is available in the specified region.
+ #
+ # @param location_name [String] The desired region for the name check.
+ # @param parameters [CheckNameAvailabilityParameters] Properties needed to
+ # check the availability of a name.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CheckNameAvailabilityResult] operation results.
+ #
+ def check_name_availability(location_name, parameters, custom_headers = nil)
+ response = check_name_availability_async(location_name, parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Checks whether the Batch account name is available in the specified region.
+ #
+ # @param location_name [String] The desired region for the name check.
+ # @param parameters [CheckNameAvailabilityParameters] Properties needed to
+ # check the availability of a name.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def check_name_availability_with_http_info(location_name, parameters, custom_headers = nil)
+ check_name_availability_async(location_name, parameters, custom_headers).value!
+ end
+
+ #
+ # Checks whether the Batch account name is available in the specified region.
+ #
+ # @param location_name [String] The desired region for the name check.
+ # @param parameters [CheckNameAvailabilityParameters] Properties needed to
+ # check the availability of a name.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def check_name_availability_async(location_name, parameters, custom_headers = nil)
+ fail ArgumentError, 'location_name is nil' if location_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::Batch::Models::CheckNameAvailabilityParameters.mapper()
+ request_content = @client.serialize(request_mapper, parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'locationName' => location_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Batch::Models::CheckNameAvailabilityResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
end
end
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/account_key_type.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/account_key_type.rb
old mode 100755
new mode 100644
index b03f55f7eb..1bc9cf6c4c
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/account_key_type.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/account_key_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb
old mode 100755
new mode 100644
index 9dcff6959c..26d3038dd8
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/activate_application_package_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ActivateApplicationPackageParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The format of the application package binary file.
attr_accessor :format
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application.rb
old mode 100755
new mode 100644
index 6a1c8e196e..48f5b61418
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Application
include MsRestAzure
- include MsRest::JSONable
# @return [String] A string that uniquely identifies the application
# within the account.
attr_accessor :id
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_create_parameters.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_create_parameters.rb
index 4519ffa530..14f7cd6274 100644
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_create_parameters.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_create_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationCreateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] A value indicating whether packages within the
# application may be overwritten using the same version string.
attr_accessor :allow_updates
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_package.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_package.rb
old mode 100755
new mode 100644
index efa991fa7a..0f32efe6af
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_package.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_package.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ApplicationPackage
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ID of the application.
attr_accessor :id
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_update_parameters.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_update_parameters.rb
index 5a61fe5e88..05b11c8684 100644
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_update_parameters.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/application_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] A value indicating whether packages within the
# application may be overwritten using the same version string.
attr_accessor :allow_updates
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb
old mode 100755
new mode 100644
index c0fe87126c..67d36032bb
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/auto_storage_base_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AutoStorageBaseProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the storage account to be used for
# auto-storage account.
attr_accessor :storage_account_id
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb
old mode 100755
new mode 100644
index 28d673eead..56d649bcaa
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/auto_storage_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class AutoStorageProperties < AutoStorageBaseProperties
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] The UTC time at which storage keys were last
# synchronized with the Batch account.
attr_accessor :last_key_sync
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account.rb
old mode 100755
new mode 100644
index 3a0bc5b5ba..34567759ca
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Contains information about an Azure Batch account.
#
- class BatchAccount < MsRestAzure::Resource
+ class BatchAccount < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The account endpoint used to interact with the Batch
# service.
attr_accessor :account_endpoint
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb
old mode 100755
new mode 100644
index 5f8d04e827..9c5e524ec5
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_create_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BatchAccountCreateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The region in which to create the account.
attr_accessor :location
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_keys.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_keys.rb
old mode 100755
new mode 100644
index 906abac530..c85d26c1e5
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_keys.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_keys.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BatchAccountKeys
include MsRestAzure
- include MsRest::JSONable
# @return [String] The Batch account name.
attr_accessor :account_name
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb
old mode 100755
new mode 100644
index 5641cd0d77..7a3ea51a2f
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb
old mode 100755
new mode 100644
index b56c929b67..53b0c10b6b
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_regenerate_key_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BatchAccountRegenerateKeyParameters
include MsRestAzure
- include MsRest::JSONable
# @return [AccountKeyType] The type of account key to regenerate.
# Possible values include: 'Primary', 'Secondary'
attr_accessor :key_name
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb
old mode 100755
new mode 100644
index aee2346b50..c11ebff1aa
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_account_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BatchAccountUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] The user-specified tags associated
# with the account.
attr_accessor :tags
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_location_quota.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_location_quota.rb
old mode 100755
new mode 100644
index f7d223a018..f0d19b3679
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_location_quota.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/batch_location_quota.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BatchLocationQuota
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The number of Batch accounts that may be created
# under the subscription in the specified region.
attr_accessor :account_quota
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb
new file mode 100644
index 0000000000..a3ce90863f
--- /dev/null
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/check_name_availability_parameters.rb
@@ -0,0 +1,58 @@
+# 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::ARM::Batch
+ module Models
+ #
+ # Parameters for a check name availability request.
+ #
+ class CheckNameAvailabilityParameters
+
+ include MsRestAzure
+
+ # @return [String] The name to check for availability
+ attr_accessor :name
+
+ # @return [String] The resource type. Must be set to
+ # Microsoft.Batch/batchAccounts. Default value:
+ # 'Microsoft.Batch/batchAccounts' .
+ attr_accessor :type
+
+
+ #
+ # Mapper for CheckNameAvailabilityParameters class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CheckNameAvailabilityParameters',
+ type: {
+ name: 'Composite',
+ class_name: 'CheckNameAvailabilityParameters',
+ model_properties: {
+ name: {
+ required: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: true,
+ is_constant: true,
+ serialized_name: 'type',
+ default_value: 'Microsoft.Batch/batchAccounts',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/check_name_availability_result.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/check_name_availability_result.rb
new file mode 100644
index 0000000000..5992906baa
--- /dev/null
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/check_name_availability_result.rb
@@ -0,0 +1,74 @@
+# 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::ARM::Batch
+ module Models
+ #
+ # The CheckNameAvailability operation response.
+ #
+ class CheckNameAvailabilityResult
+
+ include MsRestAzure
+
+ # @return [Boolean] Gets a boolean value that indicates whether the name
+ # is available for you to use. If true, the name is available. If false,
+ # the name has already been taken or invalid and cannot be used.
+ attr_accessor :name_available
+
+ # @return [NameAvailabilityReason] Gets the reason that a Batch account
+ # name could not be used. The Reason element is only returned if
+ # NameAvailable is false. Possible values include: 'Invalid',
+ # 'AlreadyExists'
+ attr_accessor :reason
+
+ # @return [String] Gets an error message explaining the Reason value in
+ # more detail.
+ attr_accessor :message
+
+
+ #
+ # Mapper for CheckNameAvailabilityResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CheckNameAvailabilityResult',
+ type: {
+ name: 'Composite',
+ class_name: 'CheckNameAvailabilityResult',
+ model_properties: {
+ name_available: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nameAvailable',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ reason: {
+ required: false,
+ read_only: true,
+ serialized_name: 'reason',
+ type: {
+ name: 'Enum',
+ module: 'NameAvailabilityReason'
+ }
+ },
+ message: {
+ required: false,
+ read_only: true,
+ serialized_name: 'message',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/key_vault_reference.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/key_vault_reference.rb
old mode 100755
new mode 100644
index 45816a2f1d..9d217772f5
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/key_vault_reference.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/key_vault_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class KeyVaultReference
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the Azure key vault associated with
# the Batch account.
attr_accessor :id
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/list_applications_result.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/list_applications_result.rb
old mode 100755
new mode 100644
index a95ad41b3f..30007f679e
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/list_applications_result.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/list_applications_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/name_availability_reason.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/name_availability_reason.rb
new file mode 100644
index 0000000000..9a2918090f
--- /dev/null
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/name_availability_reason.rb
@@ -0,0 +1,16 @@
+# 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::ARM::Batch
+ module Models
+ #
+ # Defines values for NameAvailabilityReason
+ #
+ module NameAvailabilityReason
+ Invalid = "Invalid"
+ AlreadyExists = "AlreadyExists"
+ end
+ end
+end
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation.rb
index 8340cfa2b4..b7303146e7 100644
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class Operation
include MsRestAzure
- include MsRest::JSONable
# @return [String] The operation name. This is of the format
# {provider}/{resource}/{operation}
attr_accessor :name
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation_display.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation_display.rb
index d048a6da64..c4d58d325d 100644
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation_display.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation_display.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class OperationDisplay
include MsRestAzure
- include MsRest::JSONable
# @return [String] Friendly name of the resource provider.
attr_accessor :provider
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation_list_result.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation_list_result.rb
index 32b6974496..295f761da1 100644
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation_list_result.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/operation_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/package_state.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/package_state.rb
old mode 100755
new mode 100644
index 65cbb07a61..d6003e1e4e
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/package_state.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/package_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/pool_allocation_mode.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/pool_allocation_mode.rb
old mode 100755
new mode 100644
index 070ef8ee30..6568b17a16
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/pool_allocation_mode.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/pool_allocation_mode.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/provisioning_state.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/provisioning_state.rb
old mode 100755
new mode 100644
index 1f78d89d56..cdc56153ea
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/provisioning_state.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/provisioning_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/resource.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/resource.rb
new file mode 100644
index 0000000000..bf5410fe6d
--- /dev/null
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/models/resource.rb
@@ -0,0 +1,96 @@
+# 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::ARM::Batch
+ module Models
+ #
+ # A definition of an Azure resource.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] The ID of the resource.
+ attr_accessor :id
+
+ # @return [String] The name of the resource.
+ attr_accessor :name
+
+ # @return [String] The type of the resource.
+ attr_accessor :type
+
+ # @return [String] The location of the resource.
+ attr_accessor :location
+
+ # @return [Hash{String => String}] The tags of the resource.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: false,
+ read_only: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ read_only: true,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/module_definition.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/module_definition.rb
old mode 100755
new mode 100644
index e363ed617f..4295cea84b
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/module_definition.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/operations.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/operations.rb
index a68d5945e7..ee68a3dd8c 100644
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/operations.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/version.rb b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/version.rb
old mode 100755
new mode 100644
index ed09d70e56..185eaf4612
--- a/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/version.rb
+++ b/management/azure_mgmt_batch/lib/generated/azure_mgmt_batch/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Batch
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_cdn/azure_mgmt_cdn.gemspec b/management/azure_mgmt_cdn/azure_mgmt_cdn.gemspec
index 8cf5a1e5f5..0c4b1fcf81 100644
--- a/management/azure_mgmt_cdn/azure_mgmt_cdn.gemspec
+++ b/management/azure_mgmt_cdn/azure_mgmt_cdn.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn.rb
index 1062d6c5f5..1d777b7695 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -24,36 +24,42 @@ module Azure::ARM::CDN
autoload :Endpoints, 'generated/azure_mgmt_cdn/endpoints.rb'
autoload :Origins, 'generated/azure_mgmt_cdn/origins.rb'
autoload :CustomDomains, 'generated/azure_mgmt_cdn/custom_domains.rb'
+ autoload :ResourceUsageOperations, 'generated/azure_mgmt_cdn/resource_usage_operations.rb'
+ autoload :Operations, 'generated/azure_mgmt_cdn/operations.rb'
autoload :EdgeNodes, 'generated/azure_mgmt_cdn/edge_nodes.rb'
autoload :CdnManagementClient, 'generated/azure_mgmt_cdn/cdn_management_client.rb'
module Models
- autoload :CustomDomainParameters, 'generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
autoload :CustomDomainListResult, 'generated/azure_mgmt_cdn/models/custom_domain_list_result.rb'
- autoload :ProfileListResult, 'generated/azure_mgmt_cdn/models/profile_list_result.rb'
autoload :Sku, 'generated/azure_mgmt_cdn/models/sku.rb'
- autoload :SsoUri, 'generated/azure_mgmt_cdn/models/sso_uri.rb'
- autoload :EdgenodeResult, 'generated/azure_mgmt_cdn/models/edgenode_result.rb'
autoload :ValidateCustomDomainInput, 'generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb'
- autoload :GeoFilter, 'generated/azure_mgmt_cdn/models/geo_filter.rb'
+ autoload :ProfileListResult, 'generated/azure_mgmt_cdn/models/profile_list_result.rb'
autoload :ValidateCustomDomainOutput, 'generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb'
- autoload :PurgeParameters, 'generated/azure_mgmt_cdn/models/purge_parameters.rb'
+ autoload :SsoUri, 'generated/azure_mgmt_cdn/models/sso_uri.rb'
autoload :CheckNameAvailabilityInput, 'generated/azure_mgmt_cdn/models/check_name_availability_input.rb'
- autoload :ErrorResponse, 'generated/azure_mgmt_cdn/models/error_response.rb'
+ autoload :DeepCreatedOrigin, 'generated/azure_mgmt_cdn/models/deep_created_origin.rb'
autoload :CheckNameAvailabilityOutput, 'generated/azure_mgmt_cdn/models/check_name_availability_output.rb'
- autoload :OriginListResult, 'generated/azure_mgmt_cdn/models/origin_list_result.rb'
+ autoload :EndpointListResult, 'generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
+ autoload :ValidateProbeInput, 'generated/azure_mgmt_cdn/models/validate_probe_input.rb'
+ autoload :EndpointUpdateParameters, 'generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
+ autoload :ValidateProbeOutput, 'generated/azure_mgmt_cdn/models/validate_probe_output.rb'
+ autoload :LoadParameters, 'generated/azure_mgmt_cdn/models/load_parameters.rb'
autoload :ResourceUsage, 'generated/azure_mgmt_cdn/models/resource_usage.rb'
- autoload :DeepCreatedOrigin, 'generated/azure_mgmt_cdn/models/deep_created_origin.rb'
+ autoload :OriginUpdateParameters, 'generated/azure_mgmt_cdn/models/origin_update_parameters.rb'
autoload :ResourceUsageListResult, 'generated/azure_mgmt_cdn/models/resource_usage_list_result.rb'
- autoload :EndpointUpdateParameters, 'generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb'
+ autoload :OriginListResult, 'generated/azure_mgmt_cdn/models/origin_list_result.rb'
+ autoload :CustomDomainParameters, 'generated/azure_mgmt_cdn/models/custom_domain_parameters.rb'
+ autoload :ProfileUpdateParameters, 'generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
+ autoload :ErrorResponse, 'generated/azure_mgmt_cdn/models/error_response.rb'
+ autoload :Resource, 'generated/azure_mgmt_cdn/models/resource.rb'
autoload :OperationDisplay, 'generated/azure_mgmt_cdn/models/operation_display.rb'
- autoload :OriginUpdateParameters, 'generated/azure_mgmt_cdn/models/origin_update_parameters.rb'
+ autoload :PurgeParameters, 'generated/azure_mgmt_cdn/models/purge_parameters.rb'
autoload :Operation, 'generated/azure_mgmt_cdn/models/operation.rb'
- autoload :EndpointListResult, 'generated/azure_mgmt_cdn/models/endpoint_list_result.rb'
- autoload :OperationListResult, 'generated/azure_mgmt_cdn/models/operation_list_result.rb'
- autoload :ProfileUpdateParameters, 'generated/azure_mgmt_cdn/models/profile_update_parameters.rb'
+ autoload :SupportedOptimizationTypesListResult, 'generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb'
+ autoload :OperationsListResult, 'generated/azure_mgmt_cdn/models/operations_list_result.rb'
+ autoload :EdgenodeResult, 'generated/azure_mgmt_cdn/models/edgenode_result.rb'
autoload :CidrIpAddress, 'generated/azure_mgmt_cdn/models/cidr_ip_address.rb'
- autoload :LoadParameters, 'generated/azure_mgmt_cdn/models/load_parameters.rb'
+ autoload :GeoFilter, 'generated/azure_mgmt_cdn/models/geo_filter.rb'
autoload :IpAddressGroup, 'generated/azure_mgmt_cdn/models/ip_address_group.rb'
autoload :Profile, 'generated/azure_mgmt_cdn/models/profile.rb'
autoload :Endpoint, 'generated/azure_mgmt_cdn/models/endpoint.rb'
@@ -62,12 +68,14 @@ module Models
autoload :EdgeNode, 'generated/azure_mgmt_cdn/models/edge_node.rb'
autoload :SkuName, 'generated/azure_mgmt_cdn/models/sku_name.rb'
autoload :ProfileResourceState, 'generated/azure_mgmt_cdn/models/profile_resource_state.rb'
+ autoload :OptimizationType, 'generated/azure_mgmt_cdn/models/optimization_type.rb'
autoload :EndpointResourceState, 'generated/azure_mgmt_cdn/models/endpoint_resource_state.rb'
autoload :QueryStringCachingBehavior, 'generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb'
autoload :GeoFilterActions, 'generated/azure_mgmt_cdn/models/geo_filter_actions.rb'
autoload :OriginResourceState, 'generated/azure_mgmt_cdn/models/origin_resource_state.rb'
autoload :CustomDomainResourceState, 'generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb'
autoload :CustomHttpsProvisioningState, 'generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb'
+ autoload :CustomHttpsProvisioningSubstate, 'generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb'
autoload :ResourceType, 'generated/azure_mgmt_cdn/models/resource_type.rb'
end
end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/cdn_management_client.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/cdn_management_client.rb
index 2ed4cf9203..c9ace691e3 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/cdn_management_client.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/cdn_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -21,7 +21,7 @@ class CdnManagementClient < MsRestAzure::AzureServiceClient
attr_accessor :subscription_id
# @return [String] Version of the API to be used with the client request.
- # Current version is 2016-10-02.
+ # Current version is 2017-04-02.
attr_reader :api_version
# @return [String] Gets or sets the preferred language for the response.
@@ -47,6 +47,12 @@ class CdnManagementClient < MsRestAzure::AzureServiceClient
# @return [CustomDomains] custom_domains
attr_reader :custom_domains
+ # @return [ResourceUsageOperations] resource_usage_operations
+ attr_reader :resource_usage_operations
+
+ # @return [Operations] operations
+ attr_reader :operations
+
# @return [EdgeNodes] edge_nodes
attr_reader :edge_nodes
@@ -67,8 +73,10 @@ def initialize(credentials = nil, base_url = nil, options = nil)
@endpoints = Endpoints.new(self)
@origins = Origins.new(self)
@custom_domains = CustomDomains.new(self)
+ @resource_usage_operations = ResourceUsageOperations.new(self)
+ @operations = Operations.new(self)
@edge_nodes = EdgeNodes.new(self)
- @api_version = '2016-10-02'
+ @api_version = '2017-04-02'
@accept_language = 'en-US'
@long_running_operation_retry_timeout = 30
@generate_client_request_id = true
@@ -231,42 +239,52 @@ def check_name_availability_async(check_name_availability_input, custom_headers
end
#
- # Check the quota and actual usage of the CDN profiles under the given
- # subscription.
+ # Check if the probe path is a valid path and the file can be accessed. Probe
+ # path is the path to a file hosted on the origin server to help accelerate the
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
+ # the origin path specified in the endpoint configuration.
#
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [Array] operation results.
+ # @return [ValidateProbeOutput] operation results.
#
- def list_resource_usage(custom_headers = nil)
- first_page = list_resource_usage_as_lazy(custom_headers)
- first_page.get_all_items
+ def validate_probe(validate_probe_input, custom_headers = nil)
+ response = validate_probe_async(validate_probe_input, custom_headers).value!
+ response.body unless response.nil?
end
#
- # Check the quota and actual usage of the CDN profiles under the given
- # subscription.
+ # Check if the probe path is a valid path and the file can be accessed. Probe
+ # path is the path to a file hosted on the origin server to help accelerate the
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
+ # the origin path specified in the endpoint configuration.
#
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def list_resource_usage_with_http_info(custom_headers = nil)
- list_resource_usage_async(custom_headers).value!
+ def validate_probe_with_http_info(validate_probe_input, custom_headers = nil)
+ validate_probe_async(validate_probe_input, custom_headers).value!
end
#
- # Check the quota and actual usage of the CDN profiles under the given
- # subscription.
+ # Check if the probe path is a valid path and the file can be accessed. Probe
+ # path is the path to a file hosted on the origin server to help accelerate the
+ # delivery of dynamic content via the CDN endpoint. This path is relative to
+ # the origin path specified in the endpoint configuration.
#
+ # @param validate_probe_input [ValidateProbeInput] Input to check.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def list_resource_usage_async(custom_headers = nil)
+ def validate_probe_async(validate_probe_input, custom_headers = nil)
+ fail ArgumentError, 'validate_probe_input is nil' if validate_probe_input.nil?
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
fail ArgumentError, 'api_version is nil' if api_version.nil?
@@ -276,350 +294,23 @@ def list_resource_usage_async(custom_headers = nil)
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = accept_language unless accept_language.nil?
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage'
-
- request_url = @base_url || self.base_url
-
- options = {
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => subscription_id},
- query_params: {'api-version' => api_version},
- headers: request_headers.merge(custom_headers || {}),
- base_url: request_url
- }
- promise = self.make_request_async(:post, path_template, options)
-
- promise = promise.then do |result|
- http_response = result.response
- status_code = http_response.status
- response_content = http_response.body
- unless status_code == 200
- error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
- end
-
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
- # Deserialize Response
- if status_code == 200
- begin
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CDN::Models::ResourceUsageListResult.mapper()
- result.body = self.deserialize(result_mapper, parsed_response)
- rescue Exception => e
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
- end
- end
-
- result
- end
-
- promise.execute
- end
-
- #
- # Lists all of the available CDN REST API operations.
- #
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [Array] operation results.
- #
- def list_operations(custom_headers = nil)
- first_page = list_operations_as_lazy(custom_headers)
- first_page.get_all_items
- end
-
- #
- # Lists all of the available CDN REST API operations.
- #
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
- #
- def list_operations_with_http_info(custom_headers = nil)
- list_operations_async(custom_headers).value!
- end
-
- #
- # Lists all of the available CDN REST API operations.
- #
- # @param [Hash{String => String}] A hash of custom headers that will be added
- # to the HTTP request.
- #
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
- #
- def list_operations_async(custom_headers = nil)
- fail ArgumentError, 'api_version is nil' if api_version.nil?
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
- request_headers = {}
+ # Serialize Request
+ request_mapper = Azure::ARM::CDN::Models::ValidateProbeInput.mapper()
+ request_content = self.serialize(request_mapper, validate_probe_input)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
- # Set Headers
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
- request_headers['accept-language'] = accept_language unless accept_language.nil?
- path_template = 'providers/Microsoft.Cdn/operations'
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/validateProbe'
request_url = @base_url || self.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => subscription_id},
query_params: {'api-version' => api_version},
- headers: request_headers.merge(custom_headers || {}),
- base_url: request_url
- }
- promise = self.make_request_async(:get, path_template, options)
-
- promise = promise.then do |result|
- http_response = result.response
- status_code = http_response.status
- response_content = http_response.body
- unless status_code == 200
- error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
- end
-
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
- # Deserialize Response
- if status_code == 200
- begin
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CDN::Models::OperationListResult.mapper()
- result.body = self.deserialize(result_mapper, parsed_response)
- rescue Exception => e
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
- end
- end
-
- result
- end
-
- promise.execute
- end
-
- #
- # Check the quota and actual usage of the CDN profiles under the given
- # subscription.
- #
- # @param next_page_link [String] The NextLink from the previous successful call
- # to List operation.
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [ResourceUsageListResult] operation results.
- #
- def list_resource_usage_next(next_page_link, custom_headers = nil)
- response = list_resource_usage_next_async(next_page_link, custom_headers).value!
- response.body unless response.nil?
- end
-
- #
- # Check the quota and actual usage of the CDN profiles under the given
- # subscription.
- #
- # @param next_page_link [String] The NextLink from the previous successful call
- # to List operation.
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
- #
- def list_resource_usage_next_with_http_info(next_page_link, custom_headers = nil)
- list_resource_usage_next_async(next_page_link, custom_headers).value!
- end
-
- #
- # Check the quota and actual usage of the CDN profiles under the given
- # subscription.
- #
- # @param next_page_link [String] The NextLink from the previous successful call
- # to List operation.
- # @param [Hash{String => String}] A hash of custom headers that will be added
- # to the HTTP request.
- #
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
- #
- def list_resource_usage_next_async(next_page_link, custom_headers = nil)
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
-
-
- request_headers = {}
-
- # Set Headers
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
- request_headers['accept-language'] = accept_language unless accept_language.nil?
- path_template = '{nextLink}'
-
- request_url = @base_url || self.base_url
-
- options = {
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- skip_encoding_path_params: {'nextLink' => next_page_link},
- headers: request_headers.merge(custom_headers || {}),
- base_url: request_url
- }
- promise = self.make_request_async(:post, path_template, options)
-
- promise = promise.then do |result|
- http_response = result.response
- status_code = http_response.status
- response_content = http_response.body
- unless status_code == 200
- error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
- end
-
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
- # Deserialize Response
- if status_code == 200
- begin
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CDN::Models::ResourceUsageListResult.mapper()
- result.body = self.deserialize(result_mapper, parsed_response)
- rescue Exception => e
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
- end
- end
-
- result
- end
-
- promise.execute
- end
-
- #
- # Lists all of the available CDN REST API operations.
- #
- # @param next_page_link [String] The NextLink from the previous successful call
- # to List operation.
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [OperationListResult] operation results.
- #
- def list_operations_next(next_page_link, custom_headers = nil)
- response = list_operations_next_async(next_page_link, custom_headers).value!
- response.body unless response.nil?
- end
-
- #
- # Lists all of the available CDN REST API operations.
- #
- # @param next_page_link [String] The NextLink from the previous successful call
- # to List operation.
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
- #
- def list_operations_next_with_http_info(next_page_link, custom_headers = nil)
- list_operations_next_async(next_page_link, custom_headers).value!
- end
-
- #
- # Lists all of the available CDN REST API operations.
- #
- # @param next_page_link [String] The NextLink from the previous successful call
- # to List operation.
- # @param [Hash{String => String}] A hash of custom headers that will be added
- # to the HTTP request.
- #
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
- #
- def list_operations_next_async(next_page_link, custom_headers = nil)
- fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
-
-
- request_headers = {}
-
- # Set Headers
- request_headers['x-ms-client-request-id'] = SecureRandom.uuid
- request_headers['accept-language'] = accept_language unless accept_language.nil?
- path_template = '{nextLink}'
-
- request_url = @base_url || self.base_url
-
- options = {
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- skip_encoding_path_params: {'nextLink' => next_page_link},
- headers: request_headers.merge(custom_headers || {}),
- base_url: request_url
- }
- promise = self.make_request_async(:get, path_template, options)
-
- promise = promise.then do |result|
- http_response = result.response
- status_code = http_response.status
- response_content = http_response.body
- unless status_code == 200
- error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
- end
-
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
- # Deserialize Response
- if status_code == 200
- begin
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CDN::Models::OperationListResult.mapper()
- result.body = self.deserialize(result_mapper, parsed_response)
- rescue Exception => e
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
- end
- end
-
- result
- end
-
- promise.execute
- end
-
- #
- # Check the quota and actual usage of the CDN profiles under the given
- # subscription.
- #
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [ResourceUsageListResult] operation results.
- #
- def list_resource_usage_as_lazy(custom_headers = nil)
- first_page = list_resource_usage_as_lazy_as_lazy(custom_headers)
- first_page.get_all_items
- end
-
- #
- # Check the quota and actual usage of the CDN profiles under the given
- # subscription.
- #
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
- #
- def list_resource_usage_as_lazy_with_http_info(custom_headers = nil)
- list_resource_usage_as_lazy_async(custom_headers).value!
- end
-
- #
- # Check the quota and actual usage of the CDN profiles under the given
- # subscription.
- #
- # @param [Hash{String => String}] A hash of custom headers that will be added
- # to the HTTP request.
- #
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
- #
- def list_resource_usage_as_lazy_async(custom_headers = nil)
-
-
- request_headers = {}
- path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Cdn/checkResourceUsage'
-
- request_url = @base_url || self.base_url
-
- options = {
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ body: request_content,
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
@@ -639,82 +330,7 @@ def list_resource_usage_as_lazy_async(custom_headers = nil)
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CDN::Models::ResourceUsageListResult.mapper()
- result.body = self.deserialize(result_mapper, parsed_response)
- rescue Exception => e
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
- end
- end
-
- result
- end
-
- promise.execute
- end
-
- #
- # Lists all of the available CDN REST API operations.
- #
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [OperationListResult] operation results.
- #
- def list_operations_as_lazy(custom_headers = nil)
- first_page = list_operations_as_lazy_as_lazy(custom_headers)
- first_page.get_all_items
- end
-
- #
- # Lists all of the available CDN REST API operations.
- #
- # @param custom_headers [Hash{String => String}] A hash of custom headers that
- # will be added to the HTTP request.
- #
- # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
- #
- def list_operations_as_lazy_with_http_info(custom_headers = nil)
- list_operations_as_lazy_async(custom_headers).value!
- end
-
- #
- # Lists all of the available CDN REST API operations.
- #
- # @param [Hash{String => String}] A hash of custom headers that will be added
- # to the HTTP request.
- #
- # @return [Concurrent::Promise] Promise object which holds the HTTP response.
- #
- def list_operations_as_lazy_async(custom_headers = nil)
-
-
- request_headers = {}
- path_template = 'providers/Microsoft.Cdn/operations'
-
- request_url = @base_url || self.base_url
-
- options = {
- middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- headers: request_headers.merge(custom_headers || {}),
- base_url: request_url
- }
- promise = self.make_request_async(:get, path_template, options)
-
- promise = promise.then do |result|
- http_response = result.response
- status_code = http_response.status
- response_content = http_response.body
- unless status_code == 200
- error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
- end
-
- result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
- # Deserialize Response
- if status_code == 200
- begin
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CDN::Models::OperationListResult.mapper()
+ result_mapper = Azure::ARM::CDN::Models::ValidateProbeOutput.mapper()
result.body = self.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/custom_domains.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/custom_domains.rb
index 7f7f5940e4..346671cbaf 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/custom_domains.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/custom_domains.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -438,7 +438,7 @@ def disable_custom_https_async(resource_group_name, profile_name, endpoint_name,
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 202 || status_code == 200
+ unless status_code == 200 || status_code == 202
error_model = JSON.load(response_content)
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
@@ -549,7 +549,7 @@ def enable_custom_https_async(resource_group_name, profile_name, endpoint_name,
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 202 || status_code == 200
+ unless status_code == 200 || status_code == 202
error_model = JSON.load(response_content)
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/edge_nodes.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/edge_nodes.rb
index f59ba88954..805b507b86 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/edge_nodes.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/edge_nodes.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -24,7 +24,8 @@ def initialize(client)
attr_reader :client
#
- # Lists all the edge nodes of a CDN service.
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
+ # CDN content to end users.
#
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
@@ -37,7 +38,8 @@ def list(custom_headers = nil)
end
#
- # Lists all the edge nodes of a CDN service.
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
+ # CDN content to end users.
#
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
@@ -49,7 +51,8 @@ def list_with_http_info(custom_headers = nil)
end
#
- # Lists all the edge nodes of a CDN service.
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
+ # CDN content to end users.
#
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
@@ -105,7 +108,8 @@ def list_async(custom_headers = nil)
end
#
- # Lists all the edge nodes of a CDN service.
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
+ # CDN content to end users.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
@@ -120,7 +124,8 @@ def list_next(next_page_link, custom_headers = nil)
end
#
- # Lists all the edge nodes of a CDN service.
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
+ # CDN content to end users.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
@@ -134,7 +139,8 @@ def list_next_with_http_info(next_page_link, custom_headers = nil)
end
#
- # Lists all the edge nodes of a CDN service.
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
+ # CDN content to end users.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
@@ -192,7 +198,8 @@ def list_next_async(next_page_link, custom_headers = nil)
end
#
- # Lists all the edge nodes of a CDN service.
+ # Edgenodes are the global Point of Presence (POP) locations used to deliver
+ # CDN content to end users.
#
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/endpoints.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/endpoints.rb
index 963dc07425..f50a27b32f 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/endpoints.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/endpoints.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/check_name_availability_input.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/check_name_availability_input.rb
index e5bb427406..57cdf35ba9 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/check_name_availability_input.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/check_name_availability_input.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckNameAvailabilityInput
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource name to validate.
attr_accessor :name
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/check_name_availability_output.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/check_name_availability_output.rb
index e0e38c267e..e1338d6b36 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/check_name_availability_output.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/check_name_availability_output.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckNameAvailabilityOutput
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Indicates whether the name is available.
attr_accessor :name_available
@@ -38,6 +37,7 @@ def self.mapper()
model_properties: {
name_available: {
required: false,
+ read_only: true,
serialized_name: 'nameAvailable',
type: {
name: 'Boolean'
@@ -45,6 +45,7 @@ def self.mapper()
},
reason: {
required: false,
+ read_only: true,
serialized_name: 'reason',
type: {
name: 'String'
@@ -52,6 +53,7 @@ def self.mapper()
},
message: {
required: false,
+ read_only: true,
serialized_name: 'message',
type: {
name: 'String'
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/cidr_ip_address.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/cidr_ip_address.rb
index 0c4c1be7c6..e0ad2eab4e 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/cidr_ip_address.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/cidr_ip_address.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CidrIpAddress
include MsRestAzure
- include MsRest::JSONable
# @return [String] Ip adress itself.
attr_accessor :base_ip_address
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain.rb
index 2029973cab..b31e5f4b5b 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain.rb
@@ -1,18 +1,18 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::CDN
module Models
#
- # Customer provided domain for branding purposes, e.g. www.consoto.com.
+ # Friendly domain name mapping to the endpoint hostname that the customer
+ # provides for branding purposes, e.g. www.consoto.com.
#
- class CustomDomain < MsRestAzure::Resource
+ class CustomDomain < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The host name of the custom domain. Must be a domain
# name.
attr_accessor :host_name
@@ -21,11 +21,22 @@ class CustomDomain < MsRestAzure::Resource
# domain. Possible values include: 'Creating', 'Active', 'Deleting'
attr_accessor :resource_state
- # @return [CustomHttpsProvisioningState] Provisioning state of Custom
+ # @return [CustomHttpsProvisioningState] Provisioning status of Custom
# Https of the custom domain. Possible values include: 'Enabling',
# 'Enabled', 'Disabling', 'Disabled', 'Failed'
attr_accessor :custom_https_provisioning_state
+ # @return [CustomHttpsProvisioningSubstate] Provisioning substate shows
+ # the progress of custom HTTPS enabling/disabling process step by step.
+ # Possible values include: 'SubmittingDomainControlValidationRequest',
+ # 'PendingDomainControlValidationREquestApproval',
+ # 'DomainControlValidationRequestApproved',
+ # 'DomainControlValidationRequestRejected',
+ # 'DomainControlValidationRequestTimedOut', 'IssuingCertificate',
+ # 'DeployingCertificate', 'CertificateDeployed', 'DeletingCertificate',
+ # 'CertificateDeleted'
+ attr_accessor :custom_https_provisioning_substate
+
# @return [String] Special validation or data may be required when
# delivering CDN to some regions due to local compliance reasons. E.g.
# ICP license number of a custom domain is required to deliver content in
@@ -116,6 +127,14 @@ def self.mapper()
name: 'String'
}
},
+ custom_https_provisioning_substate: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.customHttpsProvisioningSubstate',
+ type: {
+ name: 'String'
+ }
+ },
validation_data: {
required: false,
serialized_name: 'properties.validationData',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb
index 5f4ec48cba..6418362c3a 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -68,6 +68,7 @@ def self.mapper()
model_properties: {
value: {
required: false,
+ read_only: true,
serialized_name: 'value',
type: {
name: 'Sequence',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb
index 43bc7bd0e5..c180245165 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CustomDomainParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The host name of the custom domain. Must be a domain
# name.
attr_accessor :host_name
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb
index ef02148892..6b89a4524f 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_domain_resource_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb
index b446315f32..f548fd44bf 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_https_provisioning_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb
new file mode 100644
index 0000000000..75460ce562
--- /dev/null
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/custom_https_provisioning_substate.rb
@@ -0,0 +1,24 @@
+# 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::ARM::CDN
+ module Models
+ #
+ # Defines values for CustomHttpsProvisioningSubstate
+ #
+ module CustomHttpsProvisioningSubstate
+ SubmittingDomainControlValidationRequest = "SubmittingDomainControlValidationRequest"
+ PendingDomainControlValidationREquestApproval = "PendingDomainControlValidationREquestApproval"
+ DomainControlValidationRequestApproved = "DomainControlValidationRequestApproved"
+ DomainControlValidationRequestRejected = "DomainControlValidationRequestRejected"
+ DomainControlValidationRequestTimedOut = "DomainControlValidationRequestTimedOut"
+ IssuingCertificate = "IssuingCertificate"
+ DeployingCertificate = "DeployingCertificate"
+ CertificateDeployed = "CertificateDeployed"
+ DeletingCertificate = "DeletingCertificate"
+ CertificateDeleted = "CertificateDeleted"
+ end
+ end
+end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/deep_created_origin.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/deep_created_origin.rb
index 83bdd0682a..972e32e564 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/deep_created_origin.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/deep_created_origin.rb
@@ -1,22 +1,22 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::CDN
module Models
#
- # Origin to be added when creating a CDN endpoint.
+ # The main origin of CDN content which is added when creating a CDN
+ # endpoint.
#
class DeepCreatedOrigin
include MsRestAzure
- include MsRest::JSONable
# @return [String] Origin name
attr_accessor :name
- # @return [String] The address of the origin. It can be a domain names,
+ # @return [String] The address of the origin. It can be a domain name,
# IPv4 address, or IPv6 address.
attr_accessor :host_name
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/edge_node.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/edge_node.rb
index 9a9ee272f5..380f6ec143 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/edge_node.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/edge_node.rb
@@ -1,18 +1,18 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::CDN
module Models
#
- # Edge node of CDN service.
+ # Edgenode is a global Point of Presence (POP) location used to deliver CDN
+ # content to end users.
#
- class EdgeNode < MsRestAzure::Resource
+ class EdgeNode < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] List of ip address groups.
attr_accessor :ip_address_groups
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/edgenode_result.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/edgenode_result.rb
index ee61ce1494..c6fda87b40 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/edgenode_result.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/edgenode_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -67,6 +67,7 @@ def self.mapper()
model_properties: {
value: {
required: false,
+ read_only: true,
serialized_name: 'value',
type: {
name: 'Sequence',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint.rb
index a06c7bda0f..890e3c0c75 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -11,16 +11,16 @@ module Models
# behavior. The CDN endpoint uses the URL format
# .azureedge.net.
#
- class Endpoint < MsRestAzure::Resource
+ class Endpoint < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The host header CDN sends along with content requests
# to origin. The default value is the host name of the origin.
attr_accessor :origin_host_header
- # @return [String] The path used when CDN sends request to origin.
+ # @return [String] A directory path on the origin that CDN can use to
+ # retreive content from, e.g. contoso.cloudapp.net/originpath.
attr_accessor :origin_path
# @return [Array] List of content types on which compression
@@ -44,17 +44,28 @@ class Endpoint < MsRestAzure::Resource
# must be allowed.
attr_accessor :is_https_allowed
- # @return [QueryStringCachingBehavior] Defines the query string caching
- # behavior. Possible values include: 'IgnoreQueryString',
- # 'BypassCaching', 'UseQueryString', 'NotSet'
+ # @return [QueryStringCachingBehavior] Defines how CDN caches requests
+ # that include query strings. You can ignore any query strings when
+ # caching, bypass caching to prevent requests that contain query strings
+ # from being cached, or cache every request with a unique URL. Possible
+ # values include: 'IgnoreQueryString', 'BypassCaching', 'UseQueryString',
+ # 'NotSet'
attr_accessor :query_string_caching_behavior
- # @return [String] Customer can specify what scenario they want this CDN
- # endpoint to optimize, e.g. Download, Media services. With this
- # information we can apply scenario driven optimization.
+ # @return [OptimizationType] Specifies what scenario the customer wants
+ # this CDN endpoint to optimize for, e.g. Download, Media services. With
+ # this information, CDN can apply scenario driven optimization. Possible
+ # values include: 'GeneralWebDelivery', 'GeneralMediaStreaming',
+ # 'VideoOnDemandMediaStreaming', 'LargeFileDownload',
+ # 'DynamicSiteAcceleration'
attr_accessor :optimization_type
- # @return [Array] List of rules defining user geo access
+ # @return [String] Path to a file hosted on the origin which helps
+ # accelerate delivery of the dynamic content and calculate the most
+ # optimal routes for the CDN. This is relative to the origin path.
+ attr_accessor :probe_path
+
+ # @return [Array] List of rules defining the user's geo access
# within a CDN endpoint. Each geo filter defines an acess rule to a
# specified path or content, e.g. block APAC for path /pictures/
attr_accessor :geo_filters
@@ -197,6 +208,13 @@ def self.mapper()
name: 'String'
}
},
+ probe_path: {
+ required: false,
+ serialized_name: 'properties.probePath',
+ type: {
+ name: 'String'
+ }
+ },
geo_filters: {
required: false,
serialized_name: 'properties.geoFilters',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_list_result.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_list_result.rb
index f7b3d1d13d..229c6e3d72 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_list_result.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -18,7 +18,7 @@ class EndpointListResult
attr_accessor :value
# @return [String] URL to get the next set of endpoint objects if there
- # are any.
+ # is any.
attr_accessor :next_link
# return [Proc] with next page method call.
@@ -67,6 +67,7 @@ def self.mapper()
model_properties: {
value: {
required: false,
+ read_only: true,
serialized_name: 'value',
type: {
name: 'Sequence',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb
index dffcdde715..07941251a2 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_resource_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb
index 13eabf1b69..cde55c6980 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/endpoint_update_parameters.rb
@@ -1,18 +1,17 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::CDN
module Models
#
- # Properties required to create a new endpoint.
+ # Properties required to create or update an endpoint.
#
class EndpointUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] Endpoint tags.
attr_accessor :tags
@@ -20,7 +19,8 @@ class EndpointUpdateParameters
# to origin. The default value is the host name of the origin.
attr_accessor :origin_host_header
- # @return [String] The path used when CDN sends request to origin.
+ # @return [String] A directory path on the origin that CDN can use to
+ # retreive content from, e.g. contoso.cloudapp.net/originpath.
attr_accessor :origin_path
# @return [Array] List of content types on which compression
@@ -44,17 +44,28 @@ class EndpointUpdateParameters
# must be allowed.
attr_accessor :is_https_allowed
- # @return [QueryStringCachingBehavior] Defines the query string caching
- # behavior. Possible values include: 'IgnoreQueryString',
- # 'BypassCaching', 'UseQueryString', 'NotSet'
+ # @return [QueryStringCachingBehavior] Defines how CDN caches requests
+ # that include query strings. You can ignore any query strings when
+ # caching, bypass caching to prevent requests that contain query strings
+ # from being cached, or cache every request with a unique URL. Possible
+ # values include: 'IgnoreQueryString', 'BypassCaching', 'UseQueryString',
+ # 'NotSet'
attr_accessor :query_string_caching_behavior
- # @return [String] Customer can specify what scenario they want this CDN
- # endpoint to optimize, e.g. Download, Media services. With this
- # information we can apply scenario driven optimization.
+ # @return [OptimizationType] Specifies what scenario the customer wants
+ # this CDN endpoint to optimize for, e.g. Download, Media services. With
+ # this information, CDN can apply scenario driven optimization. Possible
+ # values include: 'GeneralWebDelivery', 'GeneralMediaStreaming',
+ # 'VideoOnDemandMediaStreaming', 'LargeFileDownload',
+ # 'DynamicSiteAcceleration'
attr_accessor :optimization_type
- # @return [Array] List of rules defining user geo access
+ # @return [String] Path to a file hosted on the origin which helps
+ # accelerate delivery of the dynamic content and calculate the most
+ # optimal routes for the CDN. This is relative to the origin path.
+ attr_accessor :probe_path
+
+ # @return [Array] List of rules defining the user's geo access
# within a CDN endpoint. Each geo filter defines an acess rule to a
# specified path or content, e.g. block APAC for path /pictures/
attr_accessor :geo_filters
@@ -150,6 +161,13 @@ def self.mapper()
name: 'String'
}
},
+ probe_path: {
+ required: false,
+ serialized_name: 'properties.probePath',
+ type: {
+ name: 'String'
+ }
+ },
geo_filters: {
required: false,
serialized_name: 'properties.geoFilters',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/error_response.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/error_response.rb
index b72b20837b..49338ce1ad 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/error_response.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/error_response.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ErrorResponse
include MsRestAzure
- include MsRest::JSONable
# @return [String] Error code.
attr_accessor :code
@@ -35,6 +34,7 @@ def self.mapper()
model_properties: {
code: {
required: false,
+ read_only: true,
serialized_name: 'code',
type: {
name: 'String'
@@ -42,6 +42,7 @@ def self.mapper()
},
message: {
required: false,
+ read_only: true,
serialized_name: 'message',
type: {
name: 'String'
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/geo_filter.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/geo_filter.rb
index 710aa19392..f2d46b9232 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/geo_filter.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/geo_filter.rb
@@ -1,18 +1,17 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::CDN
module Models
#
- # Rules defining user geo access within a CDN endpoint.
+ # Rules defining user's geo access within a CDN endpoint.
#
class GeoFilter
include MsRestAzure
- include MsRest::JSONable
# @return [String] Relative path applicable to geo filter. (e.g.
# '/mypictures', '/mypicture/kitty.jpg', and etc.)
attr_accessor :relative_path
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/geo_filter_actions.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/geo_filter_actions.rb
index 326c5c80ea..9dee7274d9 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/geo_filter_actions.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/geo_filter_actions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/ip_address_group.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/ip_address_group.rb
index b325f94e89..e390e7d91e 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/ip_address_group.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/ip_address_group.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IpAddressGroup
include MsRestAzure
- include MsRest::JSONable
# @return [String] The delivery region of the ip address group
attr_accessor :delivery_region
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/load_parameters.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/load_parameters.rb
index 12efcbc4b7..eb6718e07b 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/load_parameters.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/load_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LoadParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The path to the content to be loaded. Path
# should be a relative file URL of the origin.
attr_accessor :content_paths
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation.rb
index f5be7b2fa0..67397dc284 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Operation
include MsRestAzure
- include MsRest::JSONable
# @return [String] Operation name: {provider}/{resource}/{operation}
attr_accessor :name
@@ -34,6 +33,7 @@ def self.mapper()
model_properties: {
name: {
required: false,
+ read_only: true,
serialized_name: 'name',
type: {
name: 'String'
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation_display.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation_display.rb
index 9089b6d9bf..be7420329b 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation_display.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation_display.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OperationDisplay
include MsRestAzure
- include MsRest::JSONable
# @return [String] Service provider: Microsoft.Cdn
attr_accessor :provider
@@ -38,6 +37,7 @@ def self.mapper()
model_properties: {
provider: {
required: false,
+ read_only: true,
serialized_name: 'provider',
type: {
name: 'String'
@@ -45,6 +45,7 @@ def self.mapper()
},
resource: {
required: false,
+ read_only: true,
serialized_name: 'resource',
type: {
name: 'String'
@@ -52,6 +53,7 @@ def self.mapper()
},
operation: {
required: false,
+ read_only: true,
serialized_name: 'operation',
type: {
name: 'String'
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation_list_result.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operations_list_result.rb
similarity index 87%
rename from management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation_list_result.rb
rename to management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operations_list_result.rb
index 9a7f987b75..dcdd4989df 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operation_list_result.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/operations_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,7 +9,7 @@ module Models
# Result of the request to list CDN operations. It contains a list of
# operations and a URL link to get the next set of results.
#
- class OperationListResult
+ class OperationsListResult
include MsRestAzure
@@ -43,7 +43,7 @@ def get_all_items
#
# Gets the next page of results.
#
- # @return [OperationListResult] with next page content.
+ # @return [OperationsListResult] with next page content.
#
def get_next_page
response = @next_method.call(@next_link).value! unless @next_method.nil?
@@ -55,19 +55,20 @@ def get_next_page
end
#
- # Mapper for OperationListResult class as Ruby Hash.
+ # Mapper for OperationsListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
- serialized_name: 'OperationListResult',
+ serialized_name: 'OperationsListResult',
type: {
name: 'Composite',
- class_name: 'OperationListResult',
+ class_name: 'OperationsListResult',
model_properties: {
value: {
required: false,
+ read_only: true,
serialized_name: 'value',
type: {
name: 'Sequence',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/optimization_type.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/optimization_type.rb
new file mode 100644
index 0000000000..02cdee93c1
--- /dev/null
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/optimization_type.rb
@@ -0,0 +1,19 @@
+# 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::ARM::CDN
+ module Models
+ #
+ # Defines values for OptimizationType
+ #
+ module OptimizationType
+ GeneralWebDelivery = "GeneralWebDelivery"
+ GeneralMediaStreaming = "GeneralMediaStreaming"
+ VideoOnDemandMediaStreaming = "VideoOnDemandMediaStreaming"
+ LargeFileDownload = "LargeFileDownload"
+ DynamicSiteAcceleration = "DynamicSiteAcceleration"
+ end
+ end
+end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin.rb
index 819438ecdc..c5c90e3cb7 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -11,11 +11,10 @@ module Models
# cached, they attempt to fetch it from one or more of the configured
# origins.
#
- class Origin < MsRestAzure::Resource
+ class Origin < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The address of the origin. Domain names, IPv4
# addresses, and IPv6 addresses are supported.
attr_accessor :host_name
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_list_result.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_list_result.rb
index f3b22419d4..c50619bd01 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_list_result.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -67,6 +67,7 @@ def self.mapper()
model_properties: {
value: {
required: false,
+ read_only: true,
serialized_name: 'value',
type: {
name: 'Sequence',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_resource_state.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_resource_state.rb
index f21aeea2ea..98fabc50c5 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_resource_state.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_resource_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_update_parameters.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_update_parameters.rb
index 84887daac8..c95bef7fc7 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_update_parameters.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/origin_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OriginUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The address of the origin. Domain names, IPv4
# addresses, and IPv6 addresses are supported.
attr_accessor :host_name
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile.rb
index ae704afb52..ee4d176f84 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile.rb
@@ -1,21 +1,18 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::CDN
module Models
#
- # CDN profile represents the top level resource and the entry point into
- # the CDN API. This allows users to set up a logical grouping of endpoints
- # in addition to creating shared configuration settings and selecting
- # pricing tiers and providers.
+ # CDN profile is a logical grouping of endpoints that share the same
+ # settings, such as CDN provider and pricing tier.
#
- class Profile < MsRestAzure::Resource
+ class Profile < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Sku] The pricing tier (defines a CDN provider, feature list
# and rate) of the CDN profile.
attr_accessor :sku
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_list_result.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_list_result.rb
index 5f094bd0cb..d2657e908e 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_list_result.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -67,6 +67,7 @@ def self.mapper()
model_properties: {
value: {
required: false,
+ read_only: true,
serialized_name: 'value',
type: {
name: 'Sequence',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_resource_state.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_resource_state.rb
index eb319f24a5..087e060fa6 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_resource_state.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_resource_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_update_parameters.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_update_parameters.rb
index d3c5173a68..bcaab68a28 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_update_parameters.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/profile_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ProfileUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] Profile tags
attr_accessor :tags
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/purge_parameters.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/purge_parameters.rb
index c705a4ad29..4b85ef1824 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/purge_parameters.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/purge_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PurgeParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The path to the content to be purged. Can
# describe a file path or a wild card directory.
attr_accessor :content_paths
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb
index 0e0fd7ec19..b32444020b 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/query_string_caching_behavior.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource.rb
new file mode 100644
index 0000000000..0987c7b980
--- /dev/null
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource.rb
@@ -0,0 +1,94 @@
+# 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::ARM::CDN
+ module Models
+ #
+ # The Resource definition.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] Resource ID.
+ attr_accessor :id
+
+ # @return [String] Resource name.
+ attr_accessor :name
+
+ # @return [String] Resource type.
+ attr_accessor :type
+
+ # @return [String] Resource location.
+ attr_accessor :location
+
+ # @return [Hash{String => String}] Resource tags.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_type.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_type.rb
index ed067c6507..3326a16cea 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_type.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_usage.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_usage.rb
index 76846c46b7..f0b43d1725 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_usage.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_usage.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,17 +12,16 @@ class ResourceUsage
include MsRestAzure
- include MsRest::JSONable
- # @return [String] Resource type of the usages.
+ # @return [String] Resource type for which the usage is provided.
attr_accessor :resource_type
# @return [String] Unit of the usage. e.g. Count.
attr_accessor :unit
- # @return [Integer] Actual value of the resource type.
+ # @return [Integer] Actual value of usage on the specified resource type.
attr_accessor :current_value
- # @return [Integer] Quota of the resource type.
+ # @return [Integer] Quota of the specified resource type.
attr_accessor :limit
@@ -40,6 +39,7 @@ def self.mapper()
model_properties: {
resource_type: {
required: false,
+ read_only: true,
serialized_name: 'resourceType',
type: {
name: 'String'
@@ -47,6 +47,7 @@ def self.mapper()
},
unit: {
required: false,
+ read_only: true,
serialized_name: 'unit',
type: {
name: 'String'
@@ -54,6 +55,7 @@ def self.mapper()
},
current_value: {
required: false,
+ read_only: true,
serialized_name: 'currentValue',
type: {
name: 'Number'
@@ -61,6 +63,7 @@ def self.mapper()
},
limit: {
required: false,
+ read_only: true,
serialized_name: 'limit',
type: {
name: 'Number'
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb
index f03e85dbcb..355f09690a 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/resource_usage_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -66,6 +66,7 @@ def self.mapper()
model_properties: {
value: {
required: false,
+ read_only: true,
serialized_name: 'value',
type: {
name: 'Sequence',
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sku.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sku.rb
index d10b29b198..a00e37f43f 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sku.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class Sku
include MsRestAzure
- include MsRest::JSONable
# @return [SkuName] Name of the pricing tier. Possible values include:
# 'Standard_Verizon', 'Premium_Verizon', 'Custom_Verizon',
# 'Standard_Akamai', 'Standard_ChinaCdn'
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sku_name.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sku_name.rb
index 21330392e3..a52d1c17ec 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sku_name.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sku_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sso_uri.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sso_uri.rb
index 9d42f0df52..96e8516533 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sso_uri.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/sso_uri.rb
@@ -1,18 +1,18 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::CDN
module Models
#
- # SSO URI required to login to the supplemental portal.
+ # The URI required to login to the supplemental portal from the Azure
+ # portal.
#
class SsoUri
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URI used to login to the supplemental portal.
attr_accessor :sso_uri_value
@@ -31,6 +31,7 @@ def self.mapper()
model_properties: {
sso_uri_value: {
required: false,
+ read_only: true,
serialized_name: 'ssoUriValue',
type: {
name: 'String'
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb
new file mode 100644
index 0000000000..ac8f3337d7
--- /dev/null
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/supported_optimization_types_list_result.rb
@@ -0,0 +1,53 @@
+# 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::ARM::CDN
+ module Models
+ #
+ # The result of the GetSupportedOptimizationTypes API
+ #
+ class SupportedOptimizationTypesListResult
+
+ include MsRestAzure
+
+ # @return [Array] Supported optimization types for a
+ # profile.
+ attr_accessor :supported_optimization_types
+
+
+ #
+ # Mapper for SupportedOptimizationTypesListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'SupportedOptimizationTypesListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'SupportedOptimizationTypesListResult',
+ model_properties: {
+ supported_optimization_types: {
+ required: false,
+ read_only: true,
+ serialized_name: 'supportedOptimizationTypes',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'OptimizationTypeElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb
index d5c92b796e..a13e4a019f 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_input.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ValidateCustomDomainInput
include MsRestAzure
- include MsRest::JSONable
# @return [String] The host name of the custom domain. Must be a domain
# name.
attr_accessor :host_name
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb
index a648064ce9..58bddf10ff 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_custom_domain_output.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,9 +12,7 @@ class ValidateCustomDomainOutput
include MsRestAzure
- include MsRest::JSONable
- # @return [Boolean] Indicates whether the custom domain is validated or
- # not.
+ # @return [Boolean] Indicates whether the custom domain is valid or not.
attr_accessor :custom_domain_validated
# @return [String] The reason why the custom domain is not valid.
@@ -39,6 +37,7 @@ def self.mapper()
model_properties: {
custom_domain_validated: {
required: false,
+ read_only: true,
serialized_name: 'customDomainValidated',
type: {
name: 'Boolean'
@@ -46,6 +45,7 @@ def self.mapper()
},
reason: {
required: false,
+ read_only: true,
serialized_name: 'reason',
type: {
name: 'String'
@@ -53,6 +53,7 @@ def self.mapper()
},
message: {
required: false,
+ read_only: true,
serialized_name: 'message',
type: {
name: 'String'
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_probe_input.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_probe_input.rb
new file mode 100644
index 0000000000..c3ca324235
--- /dev/null
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_probe_input.rb
@@ -0,0 +1,44 @@
+# 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::ARM::CDN
+ module Models
+ #
+ # Input of the validate probe API.
+ #
+ class ValidateProbeInput
+
+ include MsRestAzure
+
+ # @return [String] The probe URL to validate.
+ attr_accessor :probe_url
+
+
+ #
+ # Mapper for ValidateProbeInput class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'ValidateProbeInput',
+ type: {
+ name: 'Composite',
+ class_name: 'ValidateProbeInput',
+ model_properties: {
+ probe_url: {
+ required: true,
+ serialized_name: 'probeURL',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_probe_output.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_probe_output.rb
new file mode 100644
index 0000000000..3f21522b9d
--- /dev/null
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/models/validate_probe_output.rb
@@ -0,0 +1,69 @@
+# 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::ARM::CDN
+ module Models
+ #
+ # Output of the validate probe API.
+ #
+ class ValidateProbeOutput
+
+ include MsRestAzure
+
+ # @return [Boolean] Indicates whether the probe URL is accepted or not.
+ attr_accessor :is_valid
+
+ # @return [String] Specifies the error code when the probe url is not
+ # accepted.
+ attr_accessor :error_code
+
+ # @return [String] The detailed error message describing why the probe
+ # URL is not accepted.
+ attr_accessor :message
+
+
+ #
+ # Mapper for ValidateProbeOutput class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'ValidateProbeOutput',
+ type: {
+ name: 'Composite',
+ class_name: 'ValidateProbeOutput',
+ model_properties: {
+ is_valid: {
+ required: false,
+ read_only: true,
+ serialized_name: 'isValid',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ error_code: {
+ required: false,
+ read_only: true,
+ serialized_name: 'errorCode',
+ type: {
+ name: 'String'
+ }
+ },
+ message: {
+ required: false,
+ read_only: true,
+ serialized_name: 'message',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/module_definition.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/module_definition.rb
index de0c4662e1..50a49191b4 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/module_definition.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/operations.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/operations.rb
new file mode 100644
index 0000000000..4af8933b0b
--- /dev/null
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/operations.rb
@@ -0,0 +1,215 @@
+# 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::ARM::CDN
+ #
+ # Use these APIs to manage Azure CDN resources through the Azure Resource
+ # Manager. You must make sure that requests made to these resources are
+ # secure.
+ #
+ class Operations
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Operations class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [CdnManagementClient] reference to the CdnManagementClient
+ attr_reader :client
+
+ #
+ # Lists all of the available CDN REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(custom_headers = nil)
+ first_page = list_as_lazy(custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Lists all of the available CDN REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(custom_headers = nil)
+ list_async(custom_headers).value!
+ end
+
+ #
+ # Lists all of the available CDN REST API operations.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+
+
+ request_headers = {}
+
+ # 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 = 'providers/Microsoft.Cdn/operations'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CDN::Models::OperationsListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all of the available CDN REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationsListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all of the available CDN REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Lists all of the available CDN REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CDN::Models::OperationsListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all of the available CDN REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationsListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(custom_headers = nil)
+ response = list_async(custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/origins.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/origins.rb
index 27800e6a85..31c037f346 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/origins.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/origins.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/profiles.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/profiles.rb
index 1104701281..efb7071cfb 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/profiles.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/profiles.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -549,6 +549,106 @@ def generate_sso_uri_async(resource_group_name, profile_name, custom_headers = n
promise.execute
end
+ #
+ # Gets the supported optimization types for the current profile. A user can
+ # create an endpoint with an optimization type from the listed values.
+ #
+ # @param resource_group_name [String] Name of the Resource group within the
+ # Azure subscription.
+ # @param profile_name [String] Name of the CDN profile which is unique within
+ # the resource group.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [SupportedOptimizationTypesListResult] operation results.
+ #
+ def list_supported_optimization_types(resource_group_name, profile_name, custom_headers = nil)
+ response = list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the supported optimization types for the current profile. A user can
+ # create an endpoint with an optimization type from the listed values.
+ #
+ # @param resource_group_name [String] Name of the Resource group within the
+ # Azure subscription.
+ # @param profile_name [String] Name of the CDN profile which is unique within
+ # the resource group.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_supported_optimization_types_with_http_info(resource_group_name, profile_name, custom_headers = nil)
+ list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers).value!
+ end
+
+ #
+ # Gets the supported optimization types for the current profile. A user can
+ # create an endpoint with an optimization type from the listed values.
+ #
+ # @param resource_group_name [String] Name of the Resource group within the
+ # Azure subscription.
+ # @param profile_name [String] Name of the CDN profile which is unique within
+ # the resource group.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_supported_optimization_types_async(resource_group_name, profile_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'profile_name is nil' if profile_name.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+
+
+ request_headers = {}
+
+ # 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.Cdn/profiles/{profileName}/getSupportedOptimizationTypes'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'profileName' => profile_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CDN::Models::SupportedOptimizationTypesListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
#
# Checks the quota and actual usage of endpoints under the given CDN profile.
#
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/resource_usage_operations.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/resource_usage_operations.rb
new file mode 100644
index 0000000000..830664f0a2
--- /dev/null
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/resource_usage_operations.rb
@@ -0,0 +1,224 @@
+# 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::ARM::CDN
+ #
+ # Use these APIs to manage Azure CDN resources through the Azure Resource
+ # Manager. You must make sure that requests made to these resources are
+ # secure.
+ #
+ class ResourceUsageOperations
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the ResourceUsageOperations class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [CdnManagementClient] reference to the CdnManagementClient
+ attr_reader :client
+
+ #
+ # Check the quota and actual usage of the CDN profiles under the given
+ # subscription.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(custom_headers = nil)
+ first_page = list_as_lazy(custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Check the quota and actual usage of the CDN profiles under the given
+ # subscription.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(custom_headers = nil)
+ list_async(custom_headers).value!
+ end
+
+ #
+ # Check the quota and actual usage of the CDN profiles under the given
+ # subscription.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(custom_headers = nil)
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+
+
+ request_headers = {}
+
+ # 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.Cdn/checkResourceUsage'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CDN::Models::ResourceUsageListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Check the quota and actual usage of the CDN profiles under the given
+ # subscription.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ResourceUsageListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Check the quota and actual usage of the CDN profiles under the given
+ # subscription.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Check the quota and actual usage of the CDN profiles under the given
+ # subscription.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CDN::Models::ResourceUsageListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Check the quota and actual usage of the CDN profiles under the given
+ # subscription.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ResourceUsageListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(custom_headers = nil)
+ response = list_async(custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/version.rb b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/version.rb
index 049e66ad7b..ac374eff90 100644
--- a/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/version.rb
+++ b/management/azure_mgmt_cdn/lib/generated/azure_mgmt_cdn/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::CDN
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_cognitive_services/azure_mgmt_cognitive_services.gemspec b/management/azure_mgmt_cognitive_services/azure_mgmt_cognitive_services.gemspec
index 051ca7adfa..44eadd5d54 100644
--- a/management/azure_mgmt_cognitive_services/azure_mgmt_cognitive_services.gemspec
+++ b/management/azure_mgmt_cognitive_services/azure_mgmt_cognitive_services.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services.rb
index 198a59833d..dd9e5309ac 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -20,7 +20,6 @@
require 'ms_rest_azure'
module Azure::ARM::CognitiveServices
- autoload :CognitiveServicesAccounts, 'generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb'
autoload :Accounts, 'generated/azure_mgmt_cognitive_services/accounts.rb'
autoload :Operations, 'generated/azure_mgmt_cognitive_services/operations.rb'
autoload :CheckSkuAvailability, 'generated/azure_mgmt_cognitive_services/check_sku_availability.rb'
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/accounts.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/accounts.rb
index 9ca7eed56c..533b68857e 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/accounts.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/accounts.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -21,6 +21,435 @@ def initialize(client)
# @return [CognitiveServicesManagementClient] reference to the CognitiveServicesManagementClient
attr_reader :client
+ #
+ # Create Cognitive Services Account. Accounts is a resource group wide resource
+ # type. It holds the keys for developer to access intelligent APIs. It's also
+ # the resource type for billing.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param parameters [CognitiveServicesAccountCreateParameters] The parameters
+ # to provide for the created account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CognitiveServicesAccount] operation results.
+ #
+ def create(resource_group_name, account_name, parameters, custom_headers = nil)
+ response = create_async(resource_group_name, account_name, parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Create Cognitive Services Account. Accounts is a resource group wide resource
+ # type. It holds the keys for developer to access intelligent APIs. It's also
+ # the resource type for billing.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param parameters [CognitiveServicesAccountCreateParameters] The parameters
+ # to provide for the created account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
+ create_async(resource_group_name, account_name, parameters, custom_headers).value!
+ end
+
+ #
+ # Create Cognitive Services Account. Accounts is a resource group wide resource
+ # type. It holds the keys for developer to access intelligent APIs. It's also
+ # the resource type for billing.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param parameters [CognitiveServicesAccountCreateParameters] The parameters
+ # to provide for the created account.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def create_async(resource_group_name, account_name, parameters, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountCreateParameters.mapper()
+ request_content = @client.serialize(request_mapper, parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:put, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 201
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Updates a Cognitive Services account
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param sku [Sku] Gets or sets the SKU of the resource.
+ # @param tags [Hash{String => String}] Gets or sets a list of key value pairs
+ # that describe the resource. These tags can be used in viewing and grouping
+ # this resource (across resource groups). A maximum of 15 tags can be provided
+ # for a resource. Each tag must have a key no greater than 128 characters and
+ # value no greater than 256 characters.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CognitiveServicesAccount] operation results.
+ #
+ def update(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil)
+ response = update_async(resource_group_name, account_name, sku, tags, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Updates a Cognitive Services account
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param sku [Sku] Gets or sets the SKU of the resource.
+ # @param tags [Hash{String => String}] Gets or sets a list of key value pairs
+ # that describe the resource. These tags can be used in viewing and grouping
+ # this resource (across resource groups). A maximum of 15 tags can be provided
+ # for a resource. Each tag must have a key no greater than 128 characters and
+ # value no greater than 256 characters.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def update_with_http_info(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil)
+ update_async(resource_group_name, account_name, sku, tags, custom_headers).value!
+ end
+
+ #
+ # Updates a Cognitive Services account
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param sku [Sku] Gets or sets the SKU of the resource.
+ # @param tags [Hash{String => String}] Gets or sets a list of key value pairs
+ # that describe the resource. These tags can be used in viewing and grouping
+ # this resource (across resource groups). A maximum of 15 tags can be provided
+ # for a resource. Each tag must have a key no greater than 128 characters and
+ # value no greater than 256 characters.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def update_async(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+ parameters = CognitiveServicesAccountUpdateParameters.new
+ unless sku.nil? && tags.nil?
+ parameters.sku = sku
+ parameters.tags = tags
+ end
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountUpdateParameters.mapper()
+ request_content = @client.serialize(request_mapper, parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:patch, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Deletes a Cognitive Services account from the resource group.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def delete(resource_group_name, account_name, custom_headers = nil)
+ response = delete_async(resource_group_name, account_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # Deletes a Cognitive Services account from the resource group.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def delete_with_http_info(resource_group_name, account_name, custom_headers = nil)
+ delete_async(resource_group_name, account_name, custom_headers).value!
+ end
+
+ #
+ # Deletes a Cognitive Services account from the resource group.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def delete_async(resource_group_name, account_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.CognitiveServices/accounts/{accountName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:delete, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 204
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Returns a Cognitive Services account specified by the parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CognitiveServicesAccount] operation results.
+ #
+ def get_properties(resource_group_name, account_name, custom_headers = nil)
+ response = get_properties_async(resource_group_name, account_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Returns a Cognitive Services account specified by the parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil)
+ get_properties_async(resource_group_name, account_name, custom_headers).value!
+ end
+
+ #
+ # Returns a Cognitive Services account specified by the parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_properties_async(resource_group_name, account_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.CognitiveServices/accounts/{accountName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
#
# Returns all the resources of a particular type belonging to a resource group
#
@@ -194,6 +623,311 @@ def list_async(custom_headers = nil)
promise.execute
end
+ #
+ # Lists the account keys for the specified Cognitive Services account.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CognitiveServicesAccountKeys] operation results.
+ #
+ def list_keys(resource_group_name, account_name, custom_headers = nil)
+ response = list_keys_async(resource_group_name, account_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists the account keys for the specified Cognitive Services account.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil)
+ list_keys_async(resource_group_name, account_name, custom_headers).value!
+ end
+
+ #
+ # Lists the account keys for the specified Cognitive Services account.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_keys_async(resource_group_name, account_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.CognitiveServices/accounts/{accountName}/listKeys'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountKeys.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Regenerates the specified account key for the specified Cognitive Services
+ # account.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
+ # include: 'Key1', 'Key2'
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CognitiveServicesAccountKeys] operation results.
+ #
+ def regenerate_key(resource_group_name, account_name, key_name, custom_headers = nil)
+ response = regenerate_key_async(resource_group_name, account_name, key_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Regenerates the specified account key for the specified Cognitive Services
+ # account.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
+ # include: 'Key1', 'Key2'
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def regenerate_key_with_http_info(resource_group_name, account_name, key_name, custom_headers = nil)
+ regenerate_key_async(resource_group_name, account_name, key_name, custom_headers).value!
+ end
+
+ #
+ # Regenerates the specified account key for the specified Cognitive Services
+ # account.
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
+ # include: 'Key1', 'Key2'
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def regenerate_key_async(resource_group_name, account_name, key_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'key_name is nil' if key_name.nil?
+
+ parameters = RegenerateKeyParameters.new
+ unless key_name.nil?
+ parameters.key_name = key_name
+ end
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::CognitiveServices::Models::RegenerateKeyParameters.mapper()
+ request_content = @client.serialize(request_mapper, parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountKeys.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # List available SKUs for the requested Cognitive Services account
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CognitiveServicesAccountEnumerateSkusResult] operation results.
+ #
+ def list_skus(resource_group_name, account_name, custom_headers = nil)
+ response = list_skus_async(resource_group_name, account_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # List available SKUs for the requested Cognitive Services account
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_skus_with_http_info(resource_group_name, account_name, custom_headers = nil)
+ list_skus_async(resource_group_name, account_name, custom_headers).value!
+ end
+
+ #
+ # List available SKUs for the requested Cognitive Services account
+ #
+ # @param resource_group_name [String] The name of the resource group within the
+ # user's subscription.
+ # @param account_name [String] The name of Cognitive Services account.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_skus_async(resource_group_name, account_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'account_name is nil' if account_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.CognitiveServices/accounts/{accountName}/skus'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountEnumerateSkusResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
#
# Returns all the resources of a particular type belonging to a resource group
#
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/check_sku_availability.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/check_sku_availability.rb
index fba6284589..55dcdc83fe 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/check_sku_availability.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/check_sku_availability.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -24,6 +24,7 @@ def initialize(client)
#
# Check available SKUs.
#
+ # @param location [String] Resource location.
# @param skus [Array] The SKU of the resource.
# @param kind [Kind] The Kind of the resource. Possible values include:
# 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
@@ -36,14 +37,15 @@ def initialize(client)
#
# @return [CheckSkuAvailabilityResultList] operation results.
#
- def list(skus, kind, type, custom_headers = nil)
- response = list_async(skus, kind, type, custom_headers).value!
+ def list(location, skus, kind, type, custom_headers = nil)
+ response = list_async(location, skus, kind, type, custom_headers).value!
response.body unless response.nil?
end
#
# Check available SKUs.
#
+ # @param location [String] Resource location.
# @param skus [Array] The SKU of the resource.
# @param kind [Kind] The Kind of the resource. Possible values include:
# 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
@@ -56,13 +58,14 @@ def list(skus, kind, type, custom_headers = nil)
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def list_with_http_info(skus, kind, type, custom_headers = nil)
- list_async(skus, kind, type, custom_headers).value!
+ def list_with_http_info(location, skus, kind, type, custom_headers = nil)
+ list_async(location, skus, kind, type, custom_headers).value!
end
#
# Check available SKUs.
#
+ # @param location [String] Resource location.
# @param skus [Array] The SKU of the resource.
# @param kind [Kind] The Kind of the resource. Possible values include:
# 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
@@ -75,10 +78,10 @@ def list_with_http_info(skus, kind, type, custom_headers = nil)
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def list_async(skus, kind, type, custom_headers = nil)
+ def list_async(location, skus, kind, type, custom_headers = nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
- fail ArgumentError, '@client.location is nil' if @client.location.nil?
+ fail ArgumentError, 'location is nil' if location.nil?
fail ArgumentError, 'skus is nil' if skus.nil?
fail ArgumentError, 'kind is nil' if kind.nil?
fail ArgumentError, 'type is nil' if type.nil?
@@ -109,7 +112,7 @@ def list_async(skus, kind, type, custom_headers = nil)
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'location' => @client.location},
+ path_params: {'subscriptionId' => @client.subscription_id,'location' => location},
query_params: {'api-version' => @client.api_version},
body: request_content,
headers: request_headers.merge(custom_headers || {}),
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb
index bbc0f3bbfa..3f90dcd56f 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -24,9 +24,6 @@ class CognitiveServicesManagementClient < MsRestAzure::AzureServiceClient
# Current version is 2017-04-18
attr_reader :api_version
- # @return [String] Resource location.
- attr_accessor :location
-
# @return [String] Gets or sets the preferred language for the response.
attr_accessor :accept_language
@@ -38,9 +35,6 @@ class CognitiveServicesManagementClient < MsRestAzure::AzureServiceClient
# is generated and included in each request. Default is true.
attr_accessor :generate_client_request_id
- # @return [CognitiveServicesAccounts] cognitive_services_accounts
- attr_reader :cognitive_services_accounts
-
# @return [Accounts] accounts
attr_reader :accounts
@@ -63,7 +57,6 @@ def initialize(credentials = nil, base_url = nil, options = nil)
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
@credentials = credentials
- @cognitive_services_accounts = CognitiveServicesAccounts.new(self)
@accounts = Accounts.new(self)
@operations = Operations.new(self)
@check_sku_availability = CheckSkuAvailability.new(self)
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb
index e7ab5570e7..7913f998ff 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckSkuAvailabilityParameter
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The SKU of the resource.
attr_accessor :skus
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb
index edf060aed2..f9c821926f 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckSkuAvailabilityResult
include MsRestAzure
- include MsRest::JSONable
# @return [Kind] The Kind of the resource. Possible values include:
# 'Academic', 'Bing.Autosuggest', 'Bing.Search', 'Bing.Speech',
# 'Bing.SpellCheck', 'ComputerVision', 'ContentModerator',
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result_list.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result_list.rb
index 99bcedee21..6bdf48f25c 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result_list.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/check_sku_availability_result_list.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckSkuAvailabilityResultList
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Check SKU availability
# result list.
attr_accessor :value
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb
index 9f0e6e2c49..f93d20d569 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CognitiveServicesAccount
include MsRestAzure
- include MsRest::JSONable
# @return [String] Entity Tag
attr_accessor :etag
@@ -75,6 +74,7 @@ def self.mapper()
},
id: {
required: false,
+ read_only: true,
serialized_name: 'id',
type: {
name: 'String'
@@ -96,6 +96,7 @@ def self.mapper()
},
name: {
required: false,
+ read_only: true,
serialized_name: 'name',
type: {
name: 'String'
@@ -148,6 +149,7 @@ def self.mapper()
},
type: {
required: false,
+ read_only: true,
serialized_name: 'type',
type: {
name: 'String'
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb
index 96b239dd96..e96922cf4e 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CognitiveServicesAccountCreateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Sku] Required. Gets or sets the SKU of the resource.
attr_accessor :sku
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb
index 1c7c183cd8..17bd27ec44 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CognitiveServicesAccountEnumerateSkusResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Gets the list of
# Cognitive Services accounts and their properties.
attr_accessor :value
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb
index 4e415cadfd..d5538c492f 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CognitiveServicesAccountKeys
include MsRestAzure
- include MsRest::JSONable
# @return [String] Gets the value of key 1.
attr_accessor :key1
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb
index fab87609c0..cf7661e1a8 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb
index 2a5ced2b1c..4550c997d1 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CognitiveServicesAccountUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Sku] Gets or sets the SKU of the resource.
attr_accessor :sku
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb
index 5791e7a70d..92cf9eca84 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CognitiveServicesResourceAndSku
include MsRestAzure
- include MsRest::JSONable
# @return [String] Resource Namespace and Type
attr_accessor :resource_type
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/error.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/error.rb
index e5973c0131..c894890547 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/error.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/error.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Error
include MsRestAzure
- include MsRest::JSONable
# @return [ErrorBody] The error body.
attr_accessor :error
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/error_body.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/error_body.rb
index 63875c14c5..56e3810978 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/error_body.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/error_body.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ErrorBody
include MsRestAzure
- include MsRest::JSONable
# @return [String] error code
attr_accessor :code
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/key_name.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/key_name.rb
index febb50475e..65d0bc6de8 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/key_name.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/key_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/kind.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/kind.rb
index 2dc448134e..cb74b8d957 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/kind.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/kind.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb
index af5213ae0b..db69d078e6 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_display_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OperationDisplayInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] The description of the operation.
attr_accessor :description
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_entity.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_entity.rb
index fb7729ca0b..78795ba5ec 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_entity.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_entity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OperationEntity
include MsRestAzure
- include MsRest::JSONable
# @return [String] Operation name: {provider}/{resource}/{operation}.
attr_accessor :name
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb
index d4a221a579..e794850a0c 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/operation_entity_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb
index 157a0b0429..df69615cac 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb
index 609ccd1fb2..c96dbd62e1 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RegenerateKeyParameters
include MsRestAzure
- include MsRest::JSONable
# @return [KeyName] key name to generate (Key1|Key2). Possible values
# include: 'Key1', 'Key2'
attr_accessor :key_name
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku.rb
index 49ef80d700..a0c9805371 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Sku
include MsRestAzure
- include MsRest::JSONable
# @return [SkuName] Gets or sets the sku name. Required for account
# creation, optional for update. Possible values include: 'F0', 'P0',
# 'P1', 'P2', 'S0', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6'
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku_name.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku_name.rb
index 9dbaf32822..d96a16a0b9 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku_name.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku_tier.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku_tier.rb
index 2e4d457d1b..12981f0e63 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku_tier.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/models/sku_tier.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/module_definition.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/module_definition.rb
index b08a821a5e..be933ea042 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/module_definition.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/operations.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/operations.rb
index b92fa6a0ca..f9b54b6bb3 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/operations.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/version.rb b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/version.rb
index be92fb6c0e..afa0ea377d 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/version.rb
+++ b/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::CognitiveServices
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_commerce/azure_mgmt_commerce.gemspec b/management/azure_mgmt_commerce/azure_mgmt_commerce.gemspec
index 7286c51122..7608916120 100644
--- a/management/azure_mgmt_commerce/azure_mgmt_commerce.gemspec
+++ b/management/azure_mgmt_commerce/azure_mgmt_commerce.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce.rb
index 15bd8cced2..cdee30a761 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/aggregation_granularity.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/aggregation_granularity.rb
index a266ec14f1..d52e3de3d2 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/aggregation_granularity.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/aggregation_granularity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/error_response.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/error_response.rb
index 9e2ab4dff9..df202ccae7 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/error_response.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/error_response.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ErrorResponse
include MsRestAzure
- include MsRest::JSONable
# @return [String] Error code
attr_accessor :code
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/info_field.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/info_field.rb
index fee30e5f98..ffa13e7c12 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/info_field.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/info_field.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class InfoField
include MsRestAzure
- include MsRest::JSONable
# @return [String] Identifies the name of the instance provisioned by the
# user.
attr_accessor :project
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/meter_info.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/meter_info.rb
index aff98e0db6..58b21b64bb 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/meter_info.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/meter_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class MeterInfo
include MsRestAzure
- include MsRest::JSONable
# @return The unique identifier of the resource.
attr_accessor :meter_id
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/monetary_commitment.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/monetary_commitment.rb
index 32dc44d9c4..9b58e8c325 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/monetary_commitment.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/monetary_commitment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class MonetaryCommitment < OfferTermInfo
include MsRestAzure
- include MsRest::JSONable
def initialize
@Name = "Monetary Commitment"
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/monetary_credit.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/monetary_credit.rb
index 3915f360d7..de4ea3cafc 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/monetary_credit.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/monetary_credit.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class MonetaryCredit < OfferTermInfo
include MsRestAzure
- include MsRest::JSONable
def initialize
@Name = "Monetary Credit"
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/offer_term_info.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/offer_term_info.rb
index 36a6838be0..a65f6bdfec 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/offer_term_info.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/offer_term_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OfferTermInfo
include MsRestAzure
- include MsRest::JSONable
@@discriminatorMap = Hash.new
@@discriminatorMap["Monetary Credit"] = "MonetaryCredit"
@@discriminatorMap["Monetary Commitment"] = "MonetaryCommitment"
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb
index 9e01d9aa51..517a9c40b1 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/rate_card_query_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RateCardQueryParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The Offer ID parameter consists of the 'MS-AZR-'
# prefix, plus the Offer ID number (e.g., MS-AZR-0026P). See
# https://azure.microsoft.com/en-us/support/legal/offer-details/ for more
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/recurring_charge.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/recurring_charge.rb
index b535c74c42..d2639f4286 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/recurring_charge.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/recurring_charge.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RecurringCharge < OfferTermInfo
include MsRestAzure
- include MsRest::JSONable
def initialize
@Name = "Recurring Charge"
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/resource_rate_card_info.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/resource_rate_card_info.rb
index 10bc219f14..04b6e63602 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/resource_rate_card_info.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/resource_rate_card_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ResourceRateCardInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] The currency in which the rates are provided.
attr_accessor :currency
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/usage_aggregation.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/usage_aggregation.rb
index 5eebfcc8f1..9340029c7f 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/usage_aggregation.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/usage_aggregation.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UsageAggregation
include MsRestAzure
- include MsRest::JSONable
# @return [String] Unique Id for the usage aggregate.
attr_accessor :id
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb
index 21f9ba4892..f2872203e1 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/models/usage_aggregation_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/module_definition.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/module_definition.rb
index b168fbbfe6..64de75a5dd 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/module_definition.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/rate_card.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/rate_card.rb
index 369b18a9fa..be51e9ded7 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/rate_card.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/rate_card.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/usage_aggregates.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/usage_aggregates.rb
index 7fbf762f93..d4039be775 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/usage_aggregates.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/usage_aggregates.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/usage_management_client.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/usage_management_client.rb
index 3791b1498f..35ae0f8c37 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/usage_management_client.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/usage_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/version.rb b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/version.rb
index 311bf8131a..ae8adfae2f 100644
--- a/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/version.rb
+++ b/management/azure_mgmt_commerce/lib/generated/azure_mgmt_commerce/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Commerce
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_compute/azure_mgmt_compute.gemspec b/management/azure_mgmt_compute/azure_mgmt_compute.gemspec
index 566a6abd20..41a175bccc 100644
--- a/management/azure_mgmt_compute/azure_mgmt_compute.gemspec
+++ b/management/azure_mgmt_compute/azure_mgmt_compute.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute.rb
old mode 100755
new mode 100644
index fecbea5da1..51fc1093ed
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -31,6 +31,7 @@ module Azure::ARM::Compute
autoload :VirtualMachines, 'generated/azure_mgmt_compute/virtual_machines.rb'
autoload :VirtualMachineScaleSets, 'generated/azure_mgmt_compute/virtual_machine_scale_sets.rb'
autoload :VirtualMachineScaleSetExtensions, 'generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb'
+ autoload :VirtualMachineScaleSetRollingUpgrades, 'generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb'
autoload :VirtualMachineScaleSetVMs, 'generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb'
autoload :Disks, 'generated/azure_mgmt_compute/disks.rb'
autoload :Snapshots, 'generated/azure_mgmt_compute/snapshots.rb'
@@ -39,123 +40,135 @@ module Azure::ARM::Compute
autoload :ComputeManagementClient, 'generated/azure_mgmt_compute/compute_management_client.rb'
module Models
- autoload :VirtualMachineScaleSetDataDisk, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb'
+ autoload :VirtualMachineScaleSetPublicIPAddressConfiguration, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb'
autoload :InstanceViewStatus, 'generated/azure_mgmt_compute/models/instance_view_status.rb'
- autoload :VirtualMachineScaleSetStorageProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb'
+ autoload :VirtualMachineScaleSetUpdatePublicIPAddressConfiguration, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb'
autoload :Sku, 'generated/azure_mgmt_compute/models/sku.rb'
- autoload :ApiEntityReference, 'generated/azure_mgmt_compute/models/api_entity_reference.rb'
+ autoload :VirtualMachineScaleSetUpdateOSDisk, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb'
autoload :AvailabilitySetListResult, 'generated/azure_mgmt_compute/models/availability_set_list_result.rb'
- autoload :VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb'
+ autoload :VirtualMachineScaleSetDataDisk, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb'
autoload :VirtualMachineSizeListResult, 'generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb'
- autoload :VirtualMachineScaleSetPublicIPAddressConfiguration, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb'
- autoload :ResourceSkuRestrictions, 'generated/azure_mgmt_compute/models/resource_sku_restrictions.rb'
- autoload :VirtualMachineExtensionInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb'
- autoload :ResourceSku, 'generated/azure_mgmt_compute/models/resource_sku.rb'
- autoload :PurchasePlan, 'generated/azure_mgmt_compute/models/purchase_plan.rb'
- autoload :ResourceSkusResult, 'generated/azure_mgmt_compute/models/resource_skus_result.rb'
- autoload :DataDiskImage, 'generated/azure_mgmt_compute/models/data_disk_image.rb'
- autoload :VirtualMachineScaleSetOSProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb'
- autoload :UsageName, 'generated/azure_mgmt_compute/models/usage_name.rb'
+ autoload :VirtualMachineScaleSetStorageProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb'
autoload :VirtualMachineScaleSetManagedDiskParameters, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb'
- autoload :ListUsagesResult, 'generated/azure_mgmt_compute/models/list_usages_result.rb'
+ autoload :VirtualMachineExtensionInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb'
autoload :VirtualMachineScaleSetOSDisk, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb'
- autoload :ContainerServiceDiagnosticsProfile, 'generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb'
- autoload :HardwareProfile, 'generated/azure_mgmt_compute/models/hardware_profile.rb'
- autoload :ContainerServiceVMDiagnostics, 'generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb'
- autoload :KeyVaultSecretReference, 'generated/azure_mgmt_compute/models/key_vault_secret_reference.rb'
- autoload :SnapshotList, 'generated/azure_mgmt_compute/models/snapshot_list.rb'
- autoload :DiskEncryptionSettings, 'generated/azure_mgmt_compute/models/disk_encryption_settings.rb'
+ autoload :PurchasePlan, 'generated/azure_mgmt_compute/models/purchase_plan.rb'
autoload :VirtualMachineSize, 'generated/azure_mgmt_compute/models/virtual_machine_size.rb'
- autoload :ContainerServiceLinuxProfile, 'generated/azure_mgmt_compute/models/container_service_linux_profile.rb'
+ autoload :DataDiskImage, 'generated/azure_mgmt_compute/models/data_disk_image.rb'
+ autoload :RunCommandDocumentBase, 'generated/azure_mgmt_compute/models/run_command_document_base.rb'
+ autoload :GrantAccessData, 'generated/azure_mgmt_compute/models/grant_access_data.rb'
+ autoload :Usage, 'generated/azure_mgmt_compute/models/usage.rb'
+ autoload :AccessUri, 'generated/azure_mgmt_compute/models/access_uri.rb'
+ autoload :VirtualMachineCaptureParameters, 'generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb'
+ autoload :VirtualMachineScaleSetUpdateStorageProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb'
+ autoload :Plan, 'generated/azure_mgmt_compute/models/plan.rb'
+ autoload :ApiEntityReference, 'generated/azure_mgmt_compute/models/api_entity_reference.rb'
+ autoload :RunCommandInput, 'generated/azure_mgmt_compute/models/run_command_input.rb'
+ autoload :VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb'
+ autoload :KeyVaultKeyReference, 'generated/azure_mgmt_compute/models/key_vault_key_reference.rb'
+ autoload :SubResource, 'generated/azure_mgmt_compute/models/sub_resource.rb'
+ autoload :VirtualHardDisk, 'generated/azure_mgmt_compute/models/virtual_hard_disk.rb'
autoload :RunCommandInputParameter, 'generated/azure_mgmt_compute/models/run_command_input_parameter.rb'
+ autoload :DiskList, 'generated/azure_mgmt_compute/models/disk_list.rb'
autoload :DataDisk, 'generated/azure_mgmt_compute/models/data_disk.rb'
- autoload :ContainerServiceAgentPoolProfile, 'generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb'
autoload :AdditionalUnattendContent, 'generated/azure_mgmt_compute/models/additional_unattend_content.rb'
- autoload :ContainerServiceMasterProfile, 'generated/azure_mgmt_compute/models/container_service_master_profile.rb'
+ autoload :ContainerServiceListResult, 'generated/azure_mgmt_compute/models/container_service_list_result.rb'
autoload :WinRMConfiguration, 'generated/azure_mgmt_compute/models/win_rmconfiguration.rb'
autoload :VirtualMachineScaleSetNetworkConfigurationDnsSettings, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb'
autoload :SshPublicKey, 'generated/azure_mgmt_compute/models/ssh_public_key.rb'
- autoload :ContainerServiceOrchestratorProfile, 'generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb'
+ autoload :ContainerServiceDiagnosticsProfile, 'generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb'
autoload :LinuxConfiguration, 'generated/azure_mgmt_compute/models/linux_configuration.rb'
- autoload :VirtualMachineScaleSetNetworkProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb'
+ autoload :ContainerServiceVMDiagnostics, 'generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb'
autoload :VaultSecretGroup, 'generated/azure_mgmt_compute/models/vault_secret_group.rb'
- autoload :ContainerServiceServicePrincipalProfile, 'generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb'
- autoload :ContainerServiceSshConfiguration, 'generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb'
- autoload :VirtualMachineScaleSetExtensionListResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb'
+ autoload :VirtualMachineScaleSetNetworkProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb'
+ autoload :SnapshotList, 'generated/azure_mgmt_compute/models/snapshot_list.rb'
+ autoload :VirtualMachineScaleSetUpdateNetworkProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb'
autoload :BootDiagnostics, 'generated/azure_mgmt_compute/models/boot_diagnostics.rb'
- autoload :VirtualMachineScaleSetExtensionProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb'
+ autoload :ContainerServiceLinuxProfile, 'generated/azure_mgmt_compute/models/container_service_linux_profile.rb'
autoload :VirtualMachineExtensionHandlerInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb'
- autoload :VirtualMachineScaleSetVMProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb'
+ autoload :VirtualMachineScaleSetExtensionListResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb'
autoload :DiskInstanceView, 'generated/azure_mgmt_compute/models/disk_instance_view.rb'
- autoload :ContainerServiceCustomProfile, 'generated/azure_mgmt_compute/models/container_service_custom_profile.rb'
+ autoload :VirtualMachineScaleSetExtensionProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb'
autoload :VirtualMachineIdentity, 'generated/azure_mgmt_compute/models/virtual_machine_identity.rb'
- autoload :VirtualMachineScaleSetVMInstanceIDs, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb'
+ autoload :VirtualMachineScaleSetVMProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb'
autoload :VirtualMachineInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb'
- autoload :VirtualMachineScaleSetVMInstanceRequiredIDs, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb'
+ autoload :VirtualMachineScaleSetUpdateVMProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb'
autoload :VirtualMachineListResult, 'generated/azure_mgmt_compute/models/virtual_machine_list_result.rb'
+ autoload :ContainerServiceSshConfiguration, 'generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb'
+ autoload :UpgradePolicy, 'generated/azure_mgmt_compute/models/upgrade_policy.rb'
+ autoload :ContainerServiceSshPublicKey, 'generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb'
+ autoload :ImageDataDisk, 'generated/azure_mgmt_compute/models/image_data_disk.rb'
+ autoload :VirtualMachineScaleSetVMInstanceIDs, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb'
+ autoload :ContainerServiceServicePrincipalProfile, 'generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb'
+ autoload :VirtualMachineScaleSetVMInstanceRequiredIDs, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb'
+ autoload :VirtualMachineScaleSetIdentity, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb'
autoload :VirtualMachineStatusCodeCount, 'generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb'
- autoload :RecoveryPolicy, 'generated/azure_mgmt_compute/models/recovery_policy.rb'
+ autoload :ResourceSkuCosts, 'generated/azure_mgmt_compute/models/resource_sku_costs.rb'
autoload :VirtualMachineScaleSetInstanceViewStatusesSummary, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb'
- autoload :ImageDataDisk, 'generated/azure_mgmt_compute/models/image_data_disk.rb'
+ autoload :ResourceSkuRestrictions, 'generated/azure_mgmt_compute/models/resource_sku_restrictions.rb'
autoload :VirtualMachineScaleSetVMExtensionsSummary, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb'
- autoload :ContainerServiceWindowsProfile, 'generated/azure_mgmt_compute/models/container_service_windows_profile.rb'
+ autoload :ResourceSkusResult, 'generated/azure_mgmt_compute/models/resource_skus_result.rb'
autoload :VirtualMachineScaleSetInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb'
- autoload :VirtualMachineScaleSetIdentity, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb'
+ autoload :VirtualMachineScaleSetUpdateOSProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb'
autoload :VirtualMachineScaleSetListResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb'
- autoload :ResourceSkuCosts, 'generated/azure_mgmt_compute/models/resource_sku_costs.rb'
+ autoload :OSDiskImage, 'generated/azure_mgmt_compute/models/osdisk_image.rb'
autoload :VirtualMachineScaleSetListWithLinkResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb'
+ autoload :ListUsagesResult, 'generated/azure_mgmt_compute/models/list_usages_result.rb'
autoload :VirtualMachineScaleSetSkuCapacity, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb'
- autoload :ContainerServiceListResult, 'generated/azure_mgmt_compute/models/container_service_list_result.rb'
+ autoload :HardwareProfile, 'generated/azure_mgmt_compute/models/hardware_profile.rb'
autoload :VirtualMachineScaleSetSku, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb'
- autoload :VirtualMachineCaptureParameters, 'generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb'
+ autoload :DiskEncryptionSettings, 'generated/azure_mgmt_compute/models/disk_encryption_settings.rb'
autoload :VirtualMachineScaleSetListSkusResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb'
- autoload :KeyVaultKeyReference, 'generated/azure_mgmt_compute/models/key_vault_key_reference.rb'
- autoload :RunCommandListResult, 'generated/azure_mgmt_compute/models/run_command_list_result.rb'
- autoload :OSDisk, 'generated/azure_mgmt_compute/models/osdisk.rb'
+ autoload :StorageProfile, 'generated/azure_mgmt_compute/models/storage_profile.rb'
+ autoload :ContainerServiceWindowsProfile, 'generated/azure_mgmt_compute/models/container_service_windows_profile.rb'
+ autoload :WindowsConfiguration, 'generated/azure_mgmt_compute/models/windows_configuration.rb'
+ autoload :VirtualMachineHealthStatus, 'generated/azure_mgmt_compute/models/virtual_machine_health_status.rb'
+ autoload :VaultCertificate, 'generated/azure_mgmt_compute/models/vault_certificate.rb'
autoload :VirtualMachineScaleSetVMInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb'
- autoload :WinRMListener, 'generated/azure_mgmt_compute/models/win_rmlistener.rb'
+ autoload :NetworkProfile, 'generated/azure_mgmt_compute/models/network_profile.rb'
autoload :VirtualMachineScaleSetVMListResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb'
- autoload :SshConfiguration, 'generated/azure_mgmt_compute/models/ssh_configuration.rb'
+ autoload :VirtualMachineAgentInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
+ autoload :RollingUpgradeRunningStatus, 'generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb'
+ autoload :MaintenanceRedeployStatus, 'generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb'
+ autoload :RollingUpgradeProgressInfo, 'generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb'
+ autoload :RollingUpgradePolicy, 'generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb'
autoload :ApiErrorBase, 'generated/azure_mgmt_compute/models/api_error_base.rb'
- autoload :OSProfile, 'generated/azure_mgmt_compute/models/osprofile.rb'
+ autoload :ImageStorageProfile, 'generated/azure_mgmt_compute/models/image_storage_profile.rb'
autoload :InnerError, 'generated/azure_mgmt_compute/models/inner_error.rb'
- autoload :DiagnosticsProfile, 'generated/azure_mgmt_compute/models/diagnostics_profile.rb'
+ autoload :ResourceSkuCapacity, 'generated/azure_mgmt_compute/models/resource_sku_capacity.rb'
autoload :ApiError, 'generated/azure_mgmt_compute/models/api_error.rb'
- autoload :BootDiagnosticsInstanceView, 'generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb'
+ autoload :ResourceSku, 'generated/azure_mgmt_compute/models/resource_sku.rb'
+ autoload :ContainerServiceAgentPoolProfile, 'generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb'
+ autoload :RunCommandListResult, 'generated/azure_mgmt_compute/models/run_command_list_result.rb'
autoload :ComputeLongRunningOperationProperties, 'generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb'
- autoload :ContainerServiceSshPublicKey, 'generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb'
- autoload :ImageOSDisk, 'generated/azure_mgmt_compute/models/image_osdisk.rb'
+ autoload :RunCommandParameterDefinition, 'generated/azure_mgmt_compute/models/run_command_parameter_definition.rb'
+ autoload :Resource, 'generated/azure_mgmt_compute/models/resource.rb'
+ autoload :OSDisk, 'generated/azure_mgmt_compute/models/osdisk.rb'
+ autoload :UpdateResource, 'generated/azure_mgmt_compute/models/update_resource.rb'
+ autoload :SshConfiguration, 'generated/azure_mgmt_compute/models/ssh_configuration.rb'
autoload :SubResourceReadOnly, 'generated/azure_mgmt_compute/models/sub_resource_read_only.rb'
- autoload :ImageListResult, 'generated/azure_mgmt_compute/models/image_list_result.rb'
+ autoload :DiagnosticsProfile, 'generated/azure_mgmt_compute/models/diagnostics_profile.rb'
autoload :OperationStatusResponse, 'generated/azure_mgmt_compute/models/operation_status_response.rb'
- autoload :ResourceSkuCapabilities, 'generated/azure_mgmt_compute/models/resource_sku_capabilities.rb'
+ autoload :ContainerServiceCustomProfile, 'generated/azure_mgmt_compute/models/container_service_custom_profile.rb'
autoload :DiskSku, 'generated/azure_mgmt_compute/models/disk_sku.rb'
- autoload :Usage, 'generated/azure_mgmt_compute/models/usage.rb'
+ autoload :ImageListResult, 'generated/azure_mgmt_compute/models/image_list_result.rb'
autoload :ResourceUpdate, 'generated/azure_mgmt_compute/models/resource_update.rb'
- autoload :VirtualHardDisk, 'generated/azure_mgmt_compute/models/virtual_hard_disk.rb'
+ autoload :VirtualMachineScaleSetOSProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb'
autoload :ImageDiskReference, 'generated/azure_mgmt_compute/models/image_disk_reference.rb'
- autoload :WindowsConfiguration, 'generated/azure_mgmt_compute/models/windows_configuration.rb'
+ autoload :KeyVaultSecretReference, 'generated/azure_mgmt_compute/models/key_vault_secret_reference.rb'
autoload :CreationData, 'generated/azure_mgmt_compute/models/creation_data.rb'
- autoload :NetworkProfile, 'generated/azure_mgmt_compute/models/network_profile.rb'
+ autoload :OSProfile, 'generated/azure_mgmt_compute/models/osprofile.rb'
autoload :SourceVault, 'generated/azure_mgmt_compute/models/source_vault.rb'
- autoload :MaintenanceRedeployStatus, 'generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb'
+ autoload :ImageOSDisk, 'generated/azure_mgmt_compute/models/image_osdisk.rb'
autoload :KeyVaultAndSecretReference, 'generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb'
- autoload :ImageStorageProfile, 'generated/azure_mgmt_compute/models/image_storage_profile.rb'
+ autoload :UsageName, 'generated/azure_mgmt_compute/models/usage_name.rb'
autoload :KeyVaultAndKeyReference, 'generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb'
- autoload :OSDiskImage, 'generated/azure_mgmt_compute/models/osdisk_image.rb'
+ autoload :BootDiagnosticsInstanceView, 'generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb'
autoload :EncryptionSettings, 'generated/azure_mgmt_compute/models/encryption_settings.rb'
- autoload :StorageProfile, 'generated/azure_mgmt_compute/models/storage_profile.rb'
- autoload :RunCommandDocumentBase, 'generated/azure_mgmt_compute/models/run_command_document_base.rb'
- autoload :VirtualMachineAgentInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
- autoload :RunCommandParameterDefinition, 'generated/azure_mgmt_compute/models/run_command_parameter_definition.rb'
- autoload :ResourceSkuCapacity, 'generated/azure_mgmt_compute/models/resource_sku_capacity.rb'
- autoload :DiskList, 'generated/azure_mgmt_compute/models/disk_list.rb'
- autoload :VaultCertificate, 'generated/azure_mgmt_compute/models/vault_certificate.rb'
- autoload :GrantAccessData, 'generated/azure_mgmt_compute/models/grant_access_data.rb'
- autoload :Plan, 'generated/azure_mgmt_compute/models/plan.rb'
- autoload :AccessUri, 'generated/azure_mgmt_compute/models/access_uri.rb'
- autoload :UpgradePolicy, 'generated/azure_mgmt_compute/models/upgrade_policy.rb'
- autoload :RunCommandInput, 'generated/azure_mgmt_compute/models/run_command_input.rb'
+ autoload :WinRMListener, 'generated/azure_mgmt_compute/models/win_rmlistener.rb'
+ autoload :ContainerServiceMasterProfile, 'generated/azure_mgmt_compute/models/container_service_master_profile.rb'
+ autoload :ResourceSkuCapabilities, 'generated/azure_mgmt_compute/models/resource_sku_capabilities.rb'
+ autoload :ContainerServiceOrchestratorProfile, 'generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb'
autoload :AvailabilitySet, 'generated/azure_mgmt_compute/models/availability_set.rb'
autoload :VirtualMachineExtensionImage, 'generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb'
autoload :VirtualMachineImageResource, 'generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb'
@@ -168,10 +181,14 @@ module Models
autoload :VirtualMachine, 'generated/azure_mgmt_compute/models/virtual_machine.rb'
autoload :Image, 'generated/azure_mgmt_compute/models/image.rb'
autoload :VirtualMachineScaleSetIPConfiguration, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb'
+ autoload :VirtualMachineScaleSetUpdateIPConfiguration, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb'
autoload :VirtualMachineScaleSetNetworkConfiguration, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb'
+ autoload :VirtualMachineScaleSetUpdateNetworkConfiguration, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb'
autoload :VirtualMachineScaleSetExtension, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb'
autoload :VirtualMachineScaleSet, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb'
+ autoload :VirtualMachineScaleSetUpdate, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb'
autoload :VirtualMachineScaleSetVM, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb'
+ autoload :RollingUpgradeStatusInfo, 'generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb'
autoload :Disk, 'generated/azure_mgmt_compute/models/disk.rb'
autoload :DiskUpdate, 'generated/azure_mgmt_compute/models/disk_update.rb'
autoload :Snapshot, 'generated/azure_mgmt_compute/models/snapshot.rb'
@@ -192,13 +209,14 @@ module Models
autoload :ResourceIdentityType, 'generated/azure_mgmt_compute/models/resource_identity_type.rb'
autoload :MaintenanceOperationResultCodeTypes, 'generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb'
autoload :UpgradeMode, 'generated/azure_mgmt_compute/models/upgrade_mode.rb'
- autoload :RecoveryMode, 'generated/azure_mgmt_compute/models/recovery_mode.rb'
autoload :OperatingSystemStateTypes, 'generated/azure_mgmt_compute/models/operating_system_state_types.rb'
autoload :ResourceSkuCapacityScaleType, 'generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb'
autoload :ResourceSkuRestrictionsType, 'generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb'
autoload :ResourceSkuRestrictionsReasonCode, 'generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb'
autoload :IPVersion, 'generated/azure_mgmt_compute/models/ipversion.rb'
autoload :VirtualMachineScaleSetSkuScaleType, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb'
+ autoload :RollingUpgradeStatusCode, 'generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb'
+ autoload :RollingUpgradeActionType, 'generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb'
autoload :DiskCreateOption, 'generated/azure_mgmt_compute/models/disk_create_option.rb'
autoload :AccessLevel, 'generated/azure_mgmt_compute/models/access_level.rb'
autoload :ContainerServiceOrchestratorTypes, 'generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb'
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/availability_sets.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/availability_sets.rb
old mode 100755
new mode 100644
index 6374234d0d..3eb591a0e4
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/availability_sets.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/availability_sets.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/compute_management_client.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/compute_management_client.rb
old mode 100755
new mode 100644
index e138e2dfb4..a79b683619
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/compute_management_client.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/compute_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -67,6 +67,10 @@ class ComputeManagementClient < MsRestAzure::AzureServiceClient
# virtual_machine_scale_set_extensions
attr_reader :virtual_machine_scale_set_extensions
+ # @return [VirtualMachineScaleSetRollingUpgrades]
+ # virtual_machine_scale_set_rolling_upgrades
+ attr_reader :virtual_machine_scale_set_rolling_upgrades
+
# @return [VirtualMachineScaleSetVMs] virtual_machine_scale_set_vms
attr_reader :virtual_machine_scale_set_vms
@@ -106,6 +110,7 @@ def initialize(credentials = nil, base_url = nil, options = nil)
@virtual_machines = VirtualMachines.new(self)
@virtual_machine_scale_sets = VirtualMachineScaleSets.new(self)
@virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensions.new(self)
+ @virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgrades.new(self)
@virtual_machine_scale_set_vms = VirtualMachineScaleSetVMs.new(self)
@disks = Disks.new(self)
@snapshots = Snapshots.new(self)
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/container_services.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/container_services.rb
old mode 100755
new mode 100644
index f074c5489c..7fa1703372
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/container_services.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/container_services.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/disks.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/disks.rb
old mode 100755
new mode 100644
index 31c98ba052..01a2a6293d
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/disks.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/disks.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/images.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/images.rb
old mode 100755
new mode 100644
index f787490a7d..7927a99e06
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/images.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/images.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/access_level.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/access_level.rb
old mode 100755
new mode 100644
index d368883085..974125fd17
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/access_level.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/access_level.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/access_uri.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/access_uri.rb
old mode 100755
new mode 100644
index 0cae5554ea..fdc706bcc9
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/access_uri.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/access_uri.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AccessUri
include MsRestAzure
- include MsRest::JSONable
# @return [String] A SAS uri for accessing a disk.
attr_accessor :access_sas
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb
old mode 100755
new mode 100644
index e152f34929..5ac43a2530
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb
@@ -1,23 +1,22 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Additional XML formatted information that can be included in the
- # Unattend.xml file, which is used by Windows Setup. Contents are defined
- # by setting name, component name, and the pass in which the content is a
- # applied.
+ # Specifies additional XML formatted information that can be included in
+ # the Unattend.xml file, which is used by Windows Setup. Contents are
+ # defined by setting name, component name, and the pass in which the
+ # content is applied.
#
class AdditionalUnattendContent
include MsRestAzure
- include MsRest::JSONable
# @return [PassNames] The pass name. Currently, the only allowable value
- # is oobeSystem. Possible values include: 'oobeSystem'
+ # is oobeSystem. Possible values include: 'OobeSystem'
attr_accessor :pass_name
# @return [ComponentNames] The component name. Currently, the only
@@ -25,14 +24,15 @@ class AdditionalUnattendContent
# include: 'Microsoft-Windows-Shell-Setup'
attr_accessor :component_name
- # @return [SettingNames] Setting name (e.g. FirstLogonCommands, AutoLogon
- # ). Possible values include: 'AutoLogon', 'FirstLogonCommands'
+ # @return [SettingNames] Specifies the name of the setting to which the
+ # content applies. Possible values are: FirstLogonCommands and AutoLogon.
+ # Possible values include: 'AutoLogon', 'FirstLogonCommands'
attr_accessor :setting_name
- # @return [String] XML formatted content that is added to the
- # unattend.xml file in the specified pass and component. The XML must be
- # less than 4 KB and must include the root element for the setting or
- # feature that is being inserted.
+ # @return [String] Specifies the XML formatted content that is added to
+ # the unattend.xml file for the specified path and component. The XML
+ # must be less than 4KB and must include the root element for the setting
+ # or feature that is being inserted.
attr_accessor :content
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb
old mode 100755
new mode 100644
index 8fbd745ccf..377c0c8125
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApiEntityReference
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ARM resource id in the form of
# /subscriptions/{SubcriptionId}/resourceGroups/{ResourceGroupName}/...
attr_accessor :id
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_error.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_error.rb
old mode 100755
new mode 100644
index 4b4ae92beb..e1d3bad012
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_error.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_error.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApiError
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The Api error details
attr_accessor :details
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_error_base.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_error_base.rb
old mode 100755
new mode 100644
index e09ed1e5f9..b60c00458f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_error_base.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/api_error_base.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApiErrorBase
include MsRestAzure
- include MsRest::JSONable
# @return [String] The error code.
attr_accessor :code
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/availability_set.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/availability_set.rb
old mode 100755
new mode 100644
index 47f41327c2..69c50a3950
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/availability_set.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/availability_set.rb
@@ -1,18 +1,27 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Create or update availability set parameters.
+ # Specifies information about the availability set that the virtual machine
+ # should be assigned to. Virtual machines specified in the same
+ # availability set are allocated to different nodes to maximize
+ # availability. For more information about availability sets, see [Manage
+ # the availability of virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ #
For more information on Azure planned maintainance, see [Planned
+ # maintenance for virtual machines in
+ # Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ #
Currently, a VM can only be added to availability set at
+ # creation time. An existing VM cannot be added to an availability set.
#
- class AvailabilitySet < MsRestAzure::Resource
+ class AvailabilitySet < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Update Domain count.
attr_accessor :platform_update_domain_count
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb
old mode 100755
new mode 100644
index 7c70d0878e..c5aea27299
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AvailabilitySetListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of availability sets
attr_accessor :value
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb
old mode 100755
new mode 100644
index 35f3b62859..9346049cc7
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb
@@ -1,23 +1,26 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes Boot Diagnostics.
+ # Boot Diagnostics is a debugging feature which allows you to view Console
+ # Output and Screenshot to diagnose VM status.
For Linux Virtual
+ # Machines, you can easily view the output of your console log.
+ # For both Windows and Linux virtual machines, Azure also enables you to
+ # see a screenshot of the VM from the hypervisor.
#
class BootDiagnostics
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Whether boot diagnostics should be enabled on the
# Virtual Machine.
attr_accessor :enabled
- # @return [String] URI of the storage account to use for placing the
+ # @return [String] Uri of the storage account to use for placing the
# console output and screenshot.
attr_accessor :storage_uri
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb
old mode 100755
new mode 100644
index 2728f326e5..2a4b74528f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BootDiagnosticsInstanceView
include MsRestAzure
- include MsRest::JSONable
# @return [String] The console screenshot blob URI.
attr_accessor :console_screenshot_blob_uri
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/caching_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/caching_types.rb
old mode 100755
new mode 100644
index c068f89988..4c7a582b68
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/caching_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/caching_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/component_names.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/component_names.rb
old mode 100755
new mode 100644
index 505ff13bad..039458fba7
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/component_names.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/component_names.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb
old mode 100755
new mode 100644
index 78619ddf8f..85b50ced68
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputeLongRunningOperationProperties
include MsRestAzure
- include MsRest::JSONable
# @return Operation output data (raw JSON)
attr_accessor :output
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service.rb
old mode 100755
new mode 100644
index 6a98bda6a5..c0525004fa
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Container service.
#
- class ContainerService < MsRestAzure::Resource
+ class ContainerService < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] the current deployment or provisioning state, which
# only appears in the response.
attr_accessor :provisioning_state
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb
old mode 100755
new mode 100644
index eaf7ecd4c1..65ecc505ed
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContainerServiceAgentPoolProfile
include MsRestAzure
- include MsRest::JSONable
# @return [String] Unique name of the agent pool profile in the context
# of the subscription and resource group.
attr_accessor :name
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_custom_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_custom_profile.rb
old mode 100755
new mode 100644
index 3ea6bb5e0b..8a335c8a03
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_custom_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_custom_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContainerServiceCustomProfile
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the custom orchestrator to use.
attr_accessor :orchestrator
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb
old mode 100755
new mode 100644
index bf1fdeee90..b3049ffb38
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ContainerServiceDiagnosticsProfile
include MsRestAzure
- include MsRest::JSONable
# @return [ContainerServiceVMDiagnostics] Profile for the container
# service VM diagnostic agent.
attr_accessor :vm_diagnostics
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb
old mode 100755
new mode 100644
index 383e144df2..3102b850e1
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContainerServiceLinuxProfile
include MsRestAzure
- include MsRest::JSONable
# @return [String] The administrator username to use for Linux VMs.
attr_accessor :admin_username
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb
old mode 100755
new mode 100644
index be3172154e..71008ee57a
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb
old mode 100755
new mode 100644
index 6e85e20335..8f4e0f1b45
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContainerServiceMasterProfile
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Number of masters (VMs) in the container service
# cluster. Allowed values are 1, 3, and 5. The default value is 1.
# Default value: 1 .
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb
old mode 100755
new mode 100644
index e56925f02d..a115afee81
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContainerServiceOrchestratorProfile
include MsRestAzure
- include MsRest::JSONable
# @return [ContainerServiceOrchestratorTypes] The orchestrator to use to
# manage container service cluster resources. Valid values are Swarm,
# DCOS, and Custom. Possible values include: 'Swarm', 'DCOS', 'Custom',
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb
old mode 100755
new mode 100644
index 04ac682fda..c13231dffe
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb
old mode 100755
new mode 100644
index acd5e771e9..4f1461030b
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ContainerServiceServicePrincipalProfile
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ID for the service principal.
attr_accessor :client_id
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb
old mode 100755
new mode 100644
index fad776faf1..7f4a549b59
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContainerServiceSshConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [Array] the list of SSH public
# keys used to authenticate with Linux-based VMs.
attr_accessor :public_keys
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb
old mode 100755
new mode 100644
index 4855d4cc79..e46e4460e9
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContainerServiceSshPublicKey
include MsRestAzure
- include MsRest::JSONable
# @return [String] Certificate public key used to authenticate with VMs
# through SSH. The certificate must be in PEM format with or without
# headers.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb
old mode 100755
new mode 100644
index 4ab61db1cc..63cc4cddda
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContainerServiceVMDiagnostics
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Whether the VM diagnostic agent is provisioned on the
# VM.
attr_accessor :enabled
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_vmsize_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_vmsize_types.rb
old mode 100755
new mode 100644
index c50e401923..264f0bd56a
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_vmsize_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_vmsize_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb
old mode 100755
new mode 100644
index 594c8ec4c5..b154a19b3e
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContainerServiceWindowsProfile
include MsRestAzure
- include MsRest::JSONable
# @return [String] The administrator username to use for Windows VMs.
attr_accessor :admin_username
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/creation_data.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/creation_data.rb
old mode 100755
new mode 100644
index cf35a65dab..0f128d6581
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/creation_data.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/creation_data.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CreationData
include MsRestAzure
- include MsRest::JSONable
# @return [DiskCreateOption] This enumerates the possible sources of a
# disk's creation. Possible values include: 'Empty', 'Attach',
# 'FromImage', 'Import', 'Copy'
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/data_disk.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/data_disk.rb
old mode 100755
new mode 100644
index b4f8d5a87f..f6ad2246e4
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/data_disk.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/data_disk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,8 +12,9 @@ class DataDisk
include MsRestAzure
- include MsRest::JSONable
- # @return [Integer] The logical unit number.
+ # @return [Integer] Specifies the logical unit number of the data disk.
+ # This value is used to identify data disks within the VM and therefore
+ # must be unique for each data disk attached to a VM.
attr_accessor :lun
# @return [String] The disk name.
@@ -22,22 +23,34 @@ class DataDisk
# @return [VirtualHardDisk] The virtual hard disk.
attr_accessor :vhd
- # @return [VirtualHardDisk] The source user image virtual hard disk. This
- # virtual hard disk will be copied before using it to attach to the
- # virtual machine. If SourceImage is provided, the destination virtual
- # hard disk must not exist.
+ # @return [VirtualHardDisk] The source user image virtual hard disk. The
+ # virtual hard disk will be copied before being attached to the virtual
+ # machine. If SourceImage is provided, the destination virtual hard drive
+ # must not exist.
attr_accessor :image
- # @return [CachingTypes] The caching type. Possible values include:
- # 'None', 'ReadOnly', 'ReadWrite'
+ # @return [CachingTypes] Specifies the caching requirements.
+ # Possible values are:
**None**
**ReadOnly**
+ # **ReadWrite**
Default: **None for Standard storage. ReadOnly
+ # for Premium storage**. Possible values include: 'None', 'ReadOnly',
+ # 'ReadWrite'
attr_accessor :caching
- # @return [DiskCreateOptionTypes] The create option. Possible values
- # include: 'fromImage', 'empty', 'attach'
+ # @return [DiskCreateOptionTypes] Specifies how the virtual machine
+ # should be created.
Possible values are:
**Attach**
+ # \u2013 This value is used when you are using a specialized disk to
+ # create the virtual machine.
**FromImage** \u2013 This value is
+ # used when you are using an image to create the virtual machine. If you
+ # are using a platform image, you also use the imageReference element
+ # described above. If you are using a marketplace image, you also use
+ # the plan element previously described. Possible values include:
+ # 'FromImage', 'Empty', 'Attach'
attr_accessor :create_option
- # @return [Integer] The initial disk size in GB for blank data disks, and
- # the new desired size for resizing existing OS and data disks.
+ # @return [Integer] Specifies the size of an empty data disk in
+ # gigabytes. This element can be used to overwrite the name of the disk
+ # in a virtual machine image.
This value cannot be larger than
+ # 1023 GB
attr_accessor :disk_size_gb
# @return [ManagedDiskParameters] The managed disk parameters.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/data_disk_image.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/data_disk_image.rb
old mode 100755
new mode 100644
index 185b468fd2..68fa96448c
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/data_disk_image.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/data_disk_image.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,10 +12,9 @@ class DataDiskImage
include MsRestAzure
- include MsRest::JSONable
- # @return [Integer] The LUN number for a data disk. This value is used to
- # identify data disk image inside the VMImage and therefore it must be
- # unique for each data disk.
+ # @return [Integer] Specifies the logical unit number of the data disk.
+ # This value is used to identify data disks within the VM and therefore
+ # must be unique for each data disk attached to a VM.
attr_accessor :lun
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb
old mode 100755
new mode 100644
index 2341caf085..7e20e62647
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb
@@ -1,21 +1,24 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes a diagnostics profile.
+ # Specifies the boot diagnostic settings state.
Minimum
+ # api-version: 2015-06-15.
#
class DiagnosticsProfile
include MsRestAzure
- include MsRest::JSONable
# @return [BootDiagnostics] Boot Diagnostics is a debugging feature which
- # allows the user to view console output and/or a screenshot of the
- # virtual machine from the hypervisor.
+ # allows you to view Console Output and Screenshot to diagnose VM status.
+ #
For Linux Virtual Machines, you can easily view the output of
+ # your console log.
For both Windows and Linux virtual machines,
+ # Azure also enables you to see a screenshot of the VM from the
+ # hypervisor.
attr_accessor :boot_diagnostics
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk.rb
old mode 100755
new mode 100644
index 92c3f965fc..c96fcf9676
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Disk resource.
#
- class Disk < MsRestAzure::Resource
+ class Disk < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] A relative URI containing the ID of the VM that has
# the disk attached.
attr_accessor :managed_by
@@ -20,6 +19,9 @@ class Disk < MsRestAzure::Resource
# @return [DiskSku]
attr_accessor :sku
+ # @return [Array] The Logical zone list for Disk.
+ attr_accessor :zones
+
# @return [DateTime] The time when the disk was created.
attr_accessor :time_created
@@ -118,6 +120,20 @@ def self.mapper()
class_name: 'DiskSku'
}
},
+ zones: {
+ required: false,
+ serialized_name: 'zones',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
time_created: {
required: false,
read_only: true,
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_create_option.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_create_option.rb
old mode 100755
new mode 100644
index 0568172569..fe3ed119ba
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_create_option.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_create_option.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_create_option_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_create_option_types.rb
old mode 100755
new mode 100644
index 3fbb30c94e..6b145b2ad5
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_create_option_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_create_option_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,9 +9,9 @@ module Models
# Defines values for DiskCreateOptionTypes
#
module DiskCreateOptionTypes
- FromImage = "fromImage"
- Empty = "empty"
- Attach = "attach"
+ FromImage = "FromImage"
+ Empty = "Empty"
+ Attach = "Attach"
end
end
end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb
old mode 100755
new mode 100644
index ffb5952bc6..dbf0c9d1f1
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,13 +12,12 @@ class DiskEncryptionSettings
include MsRestAzure
- include MsRest::JSONable
- # @return [KeyVaultSecretReference] The disk encryption key which is a
- # Key Vault Secret.
+ # @return [KeyVaultSecretReference] Specifies the location of the disk
+ # encryption key, which is a Key Vault Secret.
attr_accessor :disk_encryption_key
- # @return [KeyVaultKeyReference] The key encryption key which is Key
- # Vault Key.
+ # @return [KeyVaultKeyReference] Specifies the location of the key
+ # encryption key in Key Vault.
attr_accessor :key_encryption_key
# @return [Boolean] Specifies whether disk encryption should be enabled
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb
old mode 100755
new mode 100644
index 2da1bb20d7..607de6048f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,12 +12,11 @@ class DiskInstanceView
include MsRestAzure
- include MsRest::JSONable
# @return [String] The disk name.
attr_accessor :name
- # @return [Array] The encryption settings of the
- # disk.
+ # @return [Array] Specifies the encryption
+ # settings for the OS Disk.
Minimum api-version: 2015-06-15
attr_accessor :encryption_settings
# @return [Array] The resource status information.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_list.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_list.rb
old mode 100755
new mode 100644
index 074b208b17..f291db72e2
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_list.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_list.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_sku.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_sku.rb
old mode 100755
new mode 100644
index deda76c3bd..4cd10c4ee5
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_sku.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DiskSku
include MsRestAzure
- include MsRest::JSONable
# @return [StorageAccountTypes] The sku name. Possible values include:
# 'Standard_LRS', 'Premium_LRS'
attr_accessor :name
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_update.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_update.rb
old mode 100755
new mode 100644
index 3a8b3bdacf..31da7c9a08
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_update.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/disk_update.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Disk update resource.
#
- class DiskUpdate < MsRestAzure::ResourceUpdate
+ class DiskUpdate < ResourceUpdate
include MsRestAzure
- include MsRest::JSONable
# @return [OperatingSystemTypes] the Operating System type. Possible
# values include: 'Windows', 'Linux'
attr_accessor :os_type
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/encryption_settings.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/encryption_settings.rb
old mode 100755
new mode 100644
index e41426e960..6961158fed
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/encryption_settings.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/encryption_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EncryptionSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Set this flag to true and provide DiskEncryptionKey
# and optional KeyEncryptionKey to enable encryption. Set this flag to
# false and remove DiskEncryptionKey and KeyEncryptionKey to disable
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/grant_access_data.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/grant_access_data.rb
old mode 100755
new mode 100644
index fc7dc63792..3ad39209ac
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/grant_access_data.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/grant_access_data.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GrantAccessData
include MsRestAzure
- include MsRest::JSONable
# @return [AccessLevel] Possible values include: 'None', 'Read'
attr_accessor :access
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/hardware_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/hardware_profile.rb
old mode 100755
new mode 100644
index 0746b5d715..070814f2fc
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/hardware_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/hardware_profile.rb
@@ -1,33 +1,42 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes a hardware profile.
+ # Specifies the hardware settings for the virtual machine.
#
class HardwareProfile
include MsRestAzure
- include MsRest::JSONable
- # @return [VirtualMachineSizeTypes] The virtual machine size name.
- # Possible values include: 'Basic_A0', 'Basic_A1', 'Basic_A2',
- # 'Basic_A3', 'Basic_A4', 'Standard_A0', 'Standard_A1', 'Standard_A2',
- # 'Standard_A3', 'Standard_A4', 'Standard_A5', 'Standard_A6',
- # 'Standard_A7', 'Standard_A8', 'Standard_A9', 'Standard_A10',
- # 'Standard_A11', 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2',
- # 'Standard_A8_v2', 'Standard_A2m_v2', 'Standard_A4m_v2',
- # 'Standard_A8m_v2', 'Standard_D1', 'Standard_D2', 'Standard_D3',
- # 'Standard_D4', 'Standard_D11', 'Standard_D12', 'Standard_D13',
- # 'Standard_D14', 'Standard_D1_v2', 'Standard_D2_v2', 'Standard_D3_v2',
- # 'Standard_D4_v2', 'Standard_D5_v2', 'Standard_D11_v2',
- # 'Standard_D12_v2', 'Standard_D13_v2', 'Standard_D14_v2',
- # 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2', 'Standard_DS3',
- # 'Standard_DS4', 'Standard_DS11', 'Standard_DS12', 'Standard_DS13',
- # 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2',
+ # @return [VirtualMachineSizeTypes] Specifies the size of the virtual
+ # machine. For more information about virtual machine sizes, see [Sizes
+ # for virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-sizes?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ #
The available VM sizes depend on region and availability set.
+ # For a list of available sizes use these APIs:
[List all
+ # available virtual machine sizes in an availability
+ # set](virtualmachines-list-sizes-availability-set.md)
[List all
+ # available virtual machine sizes in a
+ # region](virtualmachines-list-sizes-region.md)
[List all
+ # available virtual machine sizes for
+ # resizing](virtualmachines-list-sizes-for-resizing.md). Possible values
+ # include: 'Basic_A0', 'Basic_A1', 'Basic_A2', 'Basic_A3', 'Basic_A4',
+ # 'Standard_A0', 'Standard_A1', 'Standard_A2', 'Standard_A3',
+ # 'Standard_A4', 'Standard_A5', 'Standard_A6', 'Standard_A7',
+ # 'Standard_A8', 'Standard_A9', 'Standard_A10', 'Standard_A11',
+ # 'Standard_A1_v2', 'Standard_A2_v2', 'Standard_A4_v2', 'Standard_A8_v2',
+ # 'Standard_A2m_v2', 'Standard_A4m_v2', 'Standard_A8m_v2', 'Standard_D1',
+ # 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11',
+ # 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2',
+ # 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2',
+ # 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2',
+ # 'Standard_D14_v2', 'Standard_D15_v2', 'Standard_DS1', 'Standard_DS2',
+ # 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12',
+ # 'Standard_DS13', 'Standard_DS14', 'Standard_DS1_v2', 'Standard_DS2_v2',
# 'Standard_DS3_v2', 'Standard_DS4_v2', 'Standard_DS5_v2',
# 'Standard_DS11_v2', 'Standard_DS12_v2', 'Standard_DS13_v2',
# 'Standard_DS14_v2', 'Standard_DS15_v2', 'Standard_F1', 'Standard_F2',
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image.rb
old mode 100755
new mode 100644
index c87e023bb6..03b9d09605
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image.rb
@@ -1,23 +1,25 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes an Image.
+ # The source user image virtual hard disk. The virtual hard disk will be
+ # copied before being attached to the virtual machine. If SourceImage is
+ # provided, the destination virtual hard drive must not exist.
#
- class Image < MsRestAzure::Resource
+ class Image < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] The source virtual machine from which Image is
# created.
attr_accessor :source_virtual_machine
- # @return [ImageStorageProfile] The storage profile.
+ # @return [ImageStorageProfile] Specifies the storage settings for the
+ # virtual machine disks.
attr_accessor :storage_profile
# @return [String] The provisioning state.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_data_disk.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_data_disk.rb
old mode 100755
new mode 100644
index a4118877df..12888b0346
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_data_disk.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_data_disk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,8 +12,9 @@ class ImageDataDisk
include MsRestAzure
- include MsRest::JSONable
- # @return [Integer] The logical unit number.
+ # @return [Integer] Specifies the logical unit number of the data disk.
+ # This value is used to identify data disks within the VM and therefore
+ # must be unique for each data disk attached to a VM.
attr_accessor :lun
# @return [SubResource] The snapshot.
@@ -25,16 +26,21 @@ class ImageDataDisk
# @return [String] The Virtual Hard Disk.
attr_accessor :blob_uri
- # @return [CachingTypes] The caching type. Possible values include:
- # 'None', 'ReadOnly', 'ReadWrite'
+ # @return [CachingTypes] Specifies the caching requirements.
+ # Possible values are:
**None**
**ReadOnly**
+ # **ReadWrite**
Default: **None for Standard storage. ReadOnly
+ # for Premium storage**. Possible values include: 'None', 'ReadOnly',
+ # 'ReadWrite'
attr_accessor :caching
- # @return [Integer] The initial disk size in GB for blank data disks, and
- # the new desired size for existing OS and Data disks.
+ # @return [Integer] Specifies the size of empty data disks in gigabytes.
+ # This element can be used to overwrite the name of the disk in a virtual
+ # machine image.
This value cannot be larger than 1023 GB
attr_accessor :disk_size_gb
- # @return [StorageAccountTypes] The Storage Account type. Possible values
- # include: 'Standard_LRS', 'Premium_LRS'
+ # @return [StorageAccountTypes] Specifies the storage account type for
+ # the managed disk. Possible values are: Standard_LRS or Premium_LRS.
+ # Possible values include: 'Standard_LRS', 'Premium_LRS'
attr_accessor :storage_account_type
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_disk_reference.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_disk_reference.rb
old mode 100755
new mode 100644
index a9b440b2c6..9862b4cc71
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_disk_reference.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_disk_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ImageDiskReference
include MsRestAzure
- include MsRest::JSONable
# @return [String] A relative uri containing either a Platform Imgage
# Repository or user image reference.
attr_accessor :id
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_list_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_list_result.rb
old mode 100755
new mode 100644
index b028fcb69c..e0194807b3
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_list_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_osdisk.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_osdisk.rb
old mode 100755
new mode 100644
index bad1ffc629..918e15355f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_osdisk.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_osdisk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,9 +12,10 @@ class ImageOSDisk
include MsRestAzure
- include MsRest::JSONable
- # @return [OperatingSystemTypes] The Operating System type. Possible
- # values include: 'Windows', 'Linux'
+ # @return [OperatingSystemTypes] This property allows you to specify the
+ # type of the OS that is included in the disk if creating a VM from a
+ # custom image.
Possible values are:
**Windows**
+ #
**Linux**. Possible values include: 'Windows', 'Linux'
attr_accessor :os_type
# @return [OperatingSystemStateTypes] The OS State. Possible values
@@ -30,16 +31,21 @@ class ImageOSDisk
# @return [String] The Virtual Hard Disk.
attr_accessor :blob_uri
- # @return [CachingTypes] The caching type. Possible values include:
- # 'None', 'ReadOnly', 'ReadWrite'
+ # @return [CachingTypes] Specifies the caching requirements.
+ # Possible values are:
**None**
**ReadOnly**
+ # **ReadWrite**
Default: **None for Standard storage. ReadOnly
+ # for Premium storage**. Possible values include: 'None', 'ReadOnly',
+ # 'ReadWrite'
attr_accessor :caching
- # @return [Integer] The initial managed disk size in GB for blank data
- # disks, and the new desired size for existing OS and Data disks.
+ # @return [Integer] Specifies the size of empty data disks in gigabytes.
+ # This element can be used to overwrite the name of the disk in a virtual
+ # machine image.
This value cannot be larger than 1023 GB
attr_accessor :disk_size_gb
- # @return [StorageAccountTypes] The Storage Account type. Possible values
- # include: 'Standard_LRS', 'Premium_LRS'
+ # @return [StorageAccountTypes] Specifies the storage account type for
+ # the managed disk. Possible values are: Standard_LRS or Premium_LRS.
+ # Possible values include: 'Standard_LRS', 'Premium_LRS'
attr_accessor :storage_account_type
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_reference.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_reference.rb
old mode 100755
new mode 100644
index 8f5cf1dfac..e926345fa8
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_reference.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_reference.rb
@@ -1,30 +1,38 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # The image reference.
+ # Specifies information about the image to use. You can specify information
+ # about platform images, marketplace images, or virtual machine images.
+ # This element is required when you want to use a platform image,
+ # marketplace image, or virtual machine image, but is not used in other
+ # creation operations.
#
- class ImageReference < MsRestAzure::SubResource
+ class ImageReference < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The image publisher.
attr_accessor :publisher
- # @return [String] The image offer.
+ # @return [String] Specifies the offer of the platform image or
+ # marketplace image used to create the virtual machine.
attr_accessor :offer
# @return [String] The image SKU.
attr_accessor :sku
- # @return [String] The image version. The allowed formats are
- # Major.Minor.Build or 'latest'. Major, Minor and Build are decimal
- # numbers. Specify 'latest' to use the latest version of the image.
+ # @return [String] Specifies the version of the platform image or
+ # marketplace image used to create the virtual machine. The allowed
+ # formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are
+ # decimal numbers. Specify 'latest' to use the latest version of an image
+ # available at deploy time. Even if you use 'latest', the VM image will
+ # not automatically update after deploy time even if a new version
+ # becomes available.
attr_accessor :version
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_storage_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_storage_profile.rb
old mode 100755
new mode 100644
index 0a87c18f78..a556ffd897
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_storage_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/image_storage_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,11 +12,16 @@ class ImageStorageProfile
include MsRestAzure
- include MsRest::JSONable
- # @return [ImageOSDisk] The OS disk.
+ # @return [ImageOSDisk] Specifies information about the operating system
+ # disk used by the virtual machine.
For more information about
+ # disks, see [About disks and VHDs for Azure virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
attr_accessor :os_disk
- # @return [Array] The data disks.
+ # @return [Array] Specifies the parameters that are used
+ # to add a data disk to a virtual machine.
For more information
+ # about disks, see [About disks and VHDs for Azure virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
attr_accessor :data_disks
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/inner_error.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/inner_error.rb
old mode 100755
new mode 100644
index 882526a557..bacc4b7956
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/inner_error.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/inner_error.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class InnerError
include MsRestAzure
- include MsRest::JSONable
# @return [String] The exception type.
attr_accessor :exceptiontype
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/instance_view_status.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/instance_view_status.rb
old mode 100755
new mode 100644
index fffc6a06e7..cd71d772a9
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/instance_view_status.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/instance_view_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class InstanceViewStatus
include MsRestAzure
- include MsRest::JSONable
# @return [String] The status code.
attr_accessor :code
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/instance_view_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/instance_view_types.rb
old mode 100755
new mode 100644
index 5cda646377..5d72f67680
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/instance_view_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/instance_view_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ipversion.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ipversion.rb
old mode 100755
new mode 100644
index 41c1b574ee..28ab54ca5c
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ipversion.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ipversion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb
old mode 100755
new mode 100644
index da32c72fe6..26da739250
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class KeyVaultAndKeyReference
include MsRestAzure
- include MsRest::JSONable
# @return [SourceVault] Resource id of the KeyVault containing the key or
# secret
attr_accessor :source_vault
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb
old mode 100755
new mode 100644
index 9fe81b22d7..4dc2fea87f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class KeyVaultAndSecretReference
include MsRestAzure
- include MsRest::JSONable
# @return [SourceVault] Resource id of the KeyVault containing the key or
# secret
attr_accessor :source_vault
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb
old mode 100755
new mode 100644
index 73bddad75e..fc60777b25
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,8 +12,7 @@ class KeyVaultKeyReference
include MsRestAzure
- include MsRest::JSONable
- # @return [String] The URL referencing a key in a Key Vault.
+ # @return [String] The URL referencing a key encryption key in Key Vault.
attr_accessor :key_url
# @return [SubResource] The relative URL of the Key Vault containing the
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb
old mode 100755
new mode 100644
index 1027ca1755..4dd6b5aeb3
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class KeyVaultSecretReference
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URL referencing a secret in a Key Vault.
attr_accessor :secret_url
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/linux_configuration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/linux_configuration.rb
old mode 100755
new mode 100644
index 1367af2fd0..ee14776c20
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/linux_configuration.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/linux_configuration.rb
@@ -1,23 +1,29 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes Windows configuration of the OS Profile.
+ # Specifies the Linux operating system settings on the virtual machine.
+ #
For a list of supported Linux distributions, see [Linux on
+ # Azure-Endorsed
+ # Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ #
For running non-endorsed distributions, see [Information for
+ # Non-Endorsed
+ # Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
#
class LinuxConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Specifies whether password authentication should be
# disabled.
attr_accessor :disable_password_authentication
- # @return [SshConfiguration] The SSH configuration for linux VMs.
+ # @return [SshConfiguration] Specifies the ssh key configuration for a
+ # Linux OS.
attr_accessor :ssh
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/list_usages_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/list_usages_result.rb
old mode 100755
new mode 100644
index b606498c46..8ce3485efa
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/list_usages_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/list_usages_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb
old mode 100755
new mode 100644
index ba4e511a05..0604a2ef17
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb
old mode 100755
new mode 100644
index 7ef9a805ab..a669288fd0
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class MaintenanceRedeployStatus
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] True, if customer is allowed to perform Maintenance.
attr_accessor :is_customer_initiated_maintenance_allowed
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/managed_disk_parameters.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/managed_disk_parameters.rb
old mode 100755
new mode 100644
index 39a8e7fa97..5b7c85df63
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/managed_disk_parameters.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/managed_disk_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,13 +8,13 @@ module Models
#
# The parameters of a managed disk.
#
- class ManagedDiskParameters < MsRestAzure::SubResource
+ class ManagedDiskParameters < SubResource
include MsRestAzure
- include MsRest::JSONable
- # @return [StorageAccountTypes] The Storage Account type. Possible values
- # include: 'Standard_LRS', 'Premium_LRS'
+ # @return [StorageAccountTypes] Specifies the storage account type for
+ # the managed disk. Possible values are: Standard_LRS or Premium_LRS.
+ # Possible values include: 'Standard_LRS', 'Premium_LRS'
attr_accessor :storage_account_type
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb
old mode 100755
new mode 100644
index 4892112452..c92dcb1ecd
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Describes a network interface reference.
#
- class NetworkInterfaceReference < MsRestAzure::SubResource
+ class NetworkInterfaceReference < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Specifies the primary network interface in case the
# virtual machine has more than 1 network interface.
attr_accessor :primary
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/network_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/network_profile.rb
old mode 100755
new mode 100644
index 8fb7c181cd..530c1ead12
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/network_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/network_profile.rb
@@ -1,20 +1,19 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes a network profile.
+ # Specifies the network interfaces of the virtual machine.
#
class NetworkProfile
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Specifies the list of
- # resource IDs for the network interfaces associated with the virtual
+ # resource Ids for the network interfaces associated with the virtual
# machine.
attr_accessor :network_interfaces
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operating_system_state_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operating_system_state_types.rb
old mode 100755
new mode 100644
index 88b6fa6c70..c25a716c74
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operating_system_state_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operating_system_state_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operating_system_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operating_system_types.rb
old mode 100755
new mode 100644
index 3b8401d90d..23b798ac26
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operating_system_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operating_system_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operation_status_response.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operation_status_response.rb
old mode 100755
new mode 100644
index f7601859fa..1d9bea0afd
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operation_status_response.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/operation_status_response.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OperationStatusResponse
include MsRestAzure
- include MsRest::JSONable
# @return [String] Operation ID
attr_accessor :name
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osdisk.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osdisk.rb
old mode 100755
new mode 100644
index 64e9371be3..125f27ba23
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osdisk.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osdisk.rb
@@ -1,23 +1,29 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes an Operating System disk.
+ # Specifies information about the operating system disk used by the virtual
+ # machine.
For more information about disks, see [About disks and
+ # VHDs for Azure virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
#
class OSDisk
include MsRestAzure
- include MsRest::JSONable
- # @return [OperatingSystemTypes] The Operating System type. Possible
- # values include: 'Windows', 'Linux'
+ # @return [OperatingSystemTypes] This property allows you to specify the
+ # type of the OS that is included in the disk if creating a VM from
+ # user-image or a specialized VHD.
Possible values are:
+ # **Windows**
**Linux**. Possible values include: 'Windows',
+ # 'Linux'
attr_accessor :os_type
- # @return [DiskEncryptionSettings] The disk encryption settings.
+ # @return [DiskEncryptionSettings] Specifies the encryption settings for
+ # the OS Disk.
Minimum api-version: 2015-06-15
attr_accessor :encryption_settings
# @return [String] The disk name.
@@ -27,21 +33,33 @@ class OSDisk
attr_accessor :vhd
# @return [VirtualHardDisk] The source user image virtual hard disk. The
- # virtual hard disk will be copied before using it to attach to the
- # virtual machine. If SourceImage is provided, the destination virtual
- # hard disk must not exist.
+ # virtual hard disk will be copied before being attached to the virtual
+ # machine. If SourceImage is provided, the destination virtual hard drive
+ # must not exist.
attr_accessor :image
- # @return [CachingTypes] The caching type. Possible values include:
- # 'None', 'ReadOnly', 'ReadWrite'
+ # @return [CachingTypes] Specifies the caching requirements.
+ # Possible values are:
**None**
**ReadOnly**
+ # **ReadWrite**
Default: **None for Standard storage. ReadOnly
+ # for Premium storage**. Possible values include: 'None', 'ReadOnly',
+ # 'ReadWrite'
attr_accessor :caching
- # @return [DiskCreateOptionTypes] The create option. Possible values
- # include: 'fromImage', 'empty', 'attach'
+ # @return [DiskCreateOptionTypes] Specifies how the virtual machine
+ # should be created.
Possible values are:
**Attach**
+ # \u2013 This value is used when you are using a specialized disk to
+ # create the virtual machine.
**FromImage** \u2013 This value is
+ # used when you are using an image to create the virtual machine. If you
+ # are using a platform image, you also use the imageReference element
+ # described above. If you are using a marketplace image, you also use
+ # the plan element previously described. Possible values include:
+ # 'FromImage', 'Empty', 'Attach'
attr_accessor :create_option
- # @return [Integer] The initial disk size, in GB, for blank data disks,
- # and the new desired size for resizing existing OS and data disks.
+ # @return [Integer] Specifies the size of an empty data disk in
+ # gigabytes. This element can be used to overwrite the name of the disk
+ # in a virtual machine image.
This value cannot be larger than
+ # 1023 GB
attr_accessor :disk_size_gb
# @return [ManagedDiskParameters] The managed disk parameters.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osdisk_image.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osdisk_image.rb
old mode 100755
new mode 100644
index 5184b1a72a..b1621433e7
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osdisk_image.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osdisk_image.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OSDiskImage
include MsRestAzure
- include MsRest::JSONable
# @return [OperatingSystemTypes] The operating system of the osDiskImage.
# Possible values include: 'Windows', 'Linux'
attr_accessor :operating_system
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osprofile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osprofile.rb
old mode 100755
new mode 100644
index 4f5c2b474f..9136475b01
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osprofile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/osprofile.rb
@@ -1,42 +1,82 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes an OS profile.
+ # Specifies the operating system settings for the virtual machine.
#
class OSProfile
include MsRestAzure
- include MsRest::JSONable
# @return [String] Specifies the host OS name of the virtual machine.
+ #
**Max-length (Windows):** 15 characters
**Max-length
+ # (Linux):** 64 characters.
For naming conventions and
+ # restrictions see [Azure infrastructure services implementation
+ # guidelines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-infrastructure-subscription-accounts-guidelines?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#1-naming-conventions).
attr_accessor :computer_name
# @return [String] Specifies the name of the administrator account.
+ #
**Windows-only restriction:** Cannot end in "."
+ # **Disallowed values:** "administrator", "admin", "user", "user1",
+ # "test", "user2", "test1", "user3", "admin1", "1", "123", "a",
+ # "actuser", "adm", "admin2", "aspnet", "backup", "console", "david",
+ # "guest", "john", "owner", "root", "server", "sql", "support",
+ # "support_388945a0", "sys", "test2", "test3", "user4", "user5".
+ # **Minimum-length (Linux):** 1 character
**Max-length
+ # (Linux):** 64 characters
**Max-length (Windows):** 20
+ # characters
For root access to the Linux VM, see [Using
+ # root privileges on Linux virtual machines in
+ # Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ # For a list of built-in system users on Linux that should not be used in
+ # this field, see [Selecting User Names for Linux on
+ # Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
attr_accessor :admin_username
# @return [String] Specifies the password of the administrator account.
+ #
**Minimum-length (Windows):** 8 characters
+ # **Minimum-length (Linux):** 6 characters
**Max-length
+ # (Windows):** 123 characters
**Max-length (Linux):** 72
+ # characters
**Complexity requirements:** 3 out of 4 conditions
+ # below need to be fulfilled
Has lower characters
Has upper
+ # characters
Has a digit
Has a special character (Regex match
+ # [\W_])
**Disallowed values:** "abc@123", "P@$$w0rd",
+ # "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!",
+ # "Password1", "Password22", "iloveyou!"
For resetting the
+ # password, see [How to reset the Remote Desktop service or its login
+ # password in a Windows
+ # VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ #
For resetting root password, see [Manage users, SSH, and check
+ # or repair disks on Azure Linux VMs using the VMAccess
+ # Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
attr_accessor :admin_password
# @return [String] Specifies a base-64 encoded string of custom data. The
# base-64 encoded string is decoded to a binary array that is saved as a
# file on the Virtual Machine. The maximum length of the binary array is
- # 65535 bytes
+ # 65535 bytes.
For using cloud-init for your VM, see [Using
+ # cloud-init to customize a Linux VM during
+ # creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
attr_accessor :custom_data
- # @return [WindowsConfiguration] The Windows configuration of the OS
- # profile.
+ # @return [WindowsConfiguration] Specifies Windows operating system
+ # settings on the virtual machine.
attr_accessor :windows_configuration
- # @return [LinuxConfiguration] The Linux configuration of the OS profile.
+ # @return [LinuxConfiguration] Specifies the Linux operating system
+ # settings on the virtual machine.
For a list of supported Linux
+ # distributions, see [Linux on Azure-Endorsed
+ # Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ #
For running non-endorsed distributions, see [Information for
+ # Non-Endorsed
+ # Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
attr_accessor :linux_configuration
- # @return [Array] The list of certificates for addition
- # to the VM.
+ # @return [Array] Specifies set of certificates that
+ # should be installed onto the virtual machine.
attr_accessor :secrets
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/pass_names.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/pass_names.rb
old mode 100755
new mode 100644
index a864f03f77..fb2de196e1
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/pass_names.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/pass_names.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,7 +9,7 @@ module Models
# Defines values for PassNames
#
module PassNames
- OobeSystem = "oobeSystem"
+ OobeSystem = "OobeSystem"
end
end
end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/plan.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/plan.rb
old mode 100755
new mode 100644
index 4b6a843f19..5ec082e0f9
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/plan.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/plan.rb
@@ -1,25 +1,31 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Plan for the resource.
+ # Specifies information about the marketplace image used to create the
+ # virtual machine. This element is only used for marketplace images. Before
+ # you can use a marketplace image from an API, you must enable the image
+ # for programmatic use. In the Azure portal, find the marketplace image
+ # that you want to use and then click **Want to deploy programmatically,
+ # Get Started ->**. Enter any required information and then click **Save**.
#
class Plan
include MsRestAzure
- include MsRest::JSONable
# @return [String] The plan ID.
attr_accessor :name
# @return [String] The publisher ID.
attr_accessor :publisher
- # @return [String] The offer ID.
+ # @return [String] Specifies the product of the image from the
+ # marketplace. This is the same value as Offer under the imageReference
+ # element.
attr_accessor :product
# @return [String] The promotion code.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/protocol_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/protocol_types.rb
old mode 100755
new mode 100644
index d7c1ff7079..67ca7b3e50
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/protocol_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/protocol_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/purchase_plan.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/purchase_plan.rb
old mode 100755
new mode 100644
index 6f01511ecb..a3285e063d
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/purchase_plan.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/purchase_plan.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,14 +13,15 @@ class PurchasePlan
include MsRestAzure
- include MsRest::JSONable
# @return [String] The publisher ID.
attr_accessor :publisher
# @return [String] The plan ID.
attr_accessor :name
- # @return [String] The product ID.
+ # @return [String] Specifies the product of the image from the
+ # marketplace. This is the same value as Offer under the imageReference
+ # element.
attr_accessor :product
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/recovery_mode.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/recovery_mode.rb
deleted file mode 100755
index bf2ecc0e5c..0000000000
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/recovery_mode.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
-# Changes may cause incorrect behavior and will be lost if the code is
-# regenerated.
-
-module Azure::ARM::Compute
- module Models
- #
- # Defines values for RecoveryMode
- #
- module RecoveryMode
- None = "None"
- OverProvision = "OverProvision"
- Reprovision = "Reprovision"
- end
- end
-end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/recovery_policy.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/recovery_policy.rb
deleted file mode 100755
index 95ea33ef35..0000000000
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/recovery_policy.rb
+++ /dev/null
@@ -1,47 +0,0 @@
-# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
-# Changes may cause incorrect behavior and will be lost if the code is
-# regenerated.
-
-module Azure::ARM::Compute
- module Models
- #
- # Describes the recovery policy.
- #
- class RecoveryPolicy
-
- include MsRestAzure
-
- include MsRest::JSONable
- # @return [RecoveryMode] The recovery mode. Possible values include:
- # 'None', 'OverProvision', 'Reprovision'
- attr_accessor :mode
-
-
- #
- # Mapper for RecoveryPolicy class as Ruby Hash.
- # This will be used for serialization/deserialization.
- #
- def self.mapper()
- {
- required: false,
- serialized_name: 'RecoveryPolicy',
- type: {
- name: 'Composite',
- class_name: 'RecoveryPolicy',
- model_properties: {
- mode: {
- required: false,
- serialized_name: 'mode',
- type: {
- name: 'Enum',
- module: 'RecoveryMode'
- }
- }
- }
- }
- }
- end
- end
- end
-end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource.rb
new file mode 100644
index 0000000000..6937452b18
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource.rb
@@ -0,0 +1,94 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # The Resource model definition.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] Resource Id
+ attr_accessor :id
+
+ # @return [String] Resource name
+ attr_accessor :name
+
+ # @return [String] Resource type
+ attr_accessor :type
+
+ # @return [String] Resource location
+ attr_accessor :location
+
+ # @return [Hash{String => String}] Resource tags
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_identity_type.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_identity_type.rb
old mode 100755
new mode 100644
index 9ed81e6910..5a158297c0
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_identity_type.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_identity_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku.rb
old mode 100755
new mode 100644
index 1d9bd28efa..bd747f47ea
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,14 +12,15 @@ class ResourceSku
include MsRestAzure
- include MsRest::JSONable
# @return [String] The type of resource the SKU applies to.
attr_accessor :resource_type
# @return [String] The name of SKU.
attr_accessor :name
- # @return [String] The tier of this particular SKU.
+ # @return [String] Specifies the tier of virtual machines in a scale
+ # set.
Possible Values:
**Standard**
+ # **Basic**
attr_accessor :tier
# @return [String] The Size of the SKU.
@@ -31,7 +32,8 @@ class ResourceSku
# @return [String] The Kind of resources that are supported in this SKU.
attr_accessor :kind
- # @return [ResourceSkuCapacity] Available scaling information.
+ # @return [ResourceSkuCapacity] Specifies the number of virtual machines
+ # in the scale set.
attr_accessor :capacity
# @return [Array] The set of locations that the SKU is available.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb
old mode 100755
new mode 100644
index fa48209761..64b4910f8c
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ResourceSkuCapabilities
include MsRestAzure
- include MsRest::JSONable
# @return [String] An invariant to describe the feature.
attr_accessor :name
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capacity.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capacity.rb
old mode 100755
new mode 100644
index cc2b7a7d1f..ecf3c3b958
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capacity.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capacity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ResourceSkuCapacity
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The minimum capacity.
attr_accessor :minimum
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb
old mode 100755
new mode 100644
index ae4da79ec6..c2338fd78b
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_costs.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_costs.rb
old mode 100755
new mode 100644
index 04aff3f0c8..f39c3202a4
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_costs.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_costs.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ResourceSkuCosts
include MsRestAzure
- include MsRest::JSONable
# @return [String] Used for querying price from commerce.
attr_accessor :meter_id
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb
old mode 100755
new mode 100644
index 0551294f86..68b8ec23b0
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,9 +12,8 @@ class ResourceSkuRestrictions
include MsRestAzure
- include MsRest::JSONable
# @return [ResourceSkuRestrictionsType] The type of restrictions.
- # Possible values include: 'location'
+ # Possible values include: 'Location'
attr_accessor :type
# @return [Array] The value of restrictions. If the restriction
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb
old mode 100755
new mode 100644
index f6f192954d..e84b4e57ba
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb
old mode 100755
new mode 100644
index 8a57c4c580..f5c1106359
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,7 +9,7 @@ module Models
# Defines values for ResourceSkuRestrictionsType
#
module ResourceSkuRestrictionsType
- Location = "location"
+ Location = "Location"
end
end
end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_skus_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_skus_result.rb
old mode 100755
new mode 100644
index 0c1fb63262..e2f1c6ed3e
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_skus_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_skus_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_update.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_update.rb
old mode 100755
new mode 100644
index 578c7beb62..59d33f7834
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_update.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/resource_update.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ResourceUpdate
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] Resource tags
attr_accessor :tags
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb
new file mode 100644
index 0000000000..cc34d72cc1
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb
@@ -0,0 +1,16 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Defines values for RollingUpgradeActionType
+ #
+ module RollingUpgradeActionType
+ Start = "Start"
+ Cancel = "Cancel"
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb
new file mode 100644
index 0000000000..d33a6d2e1a
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb
@@ -0,0 +1,103 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # The configuration parameters used while performing a rolling upgrade.
+ #
+ class RollingUpgradePolicy
+
+ include MsRestAzure
+
+ # @return [Integer] The maximum percent of total virtual machine
+ # instances that will be upgraded simultaneously by the rolling upgrade
+ # in one batch. As this is a maximum, unhealthy instances in previous or
+ # future batches can cause the percentage of instances in a batch to
+ # decrease to ensure higher reliability. The default value for this
+ # parameter is 20%.
+ attr_accessor :max_batch_instance_percent
+
+ # @return [Integer] The maximum percentage of the total virtual machine
+ # instances in the scale set that can be simultaneously unhealthy, either
+ # as a result of being upgraded, or by being found in an unhealthy state
+ # by the virtual machine health checks before the rolling upgrade aborts.
+ # This constraint will be checked prior to starting any batch. The
+ # default value for this parameter is 20%.
+ attr_accessor :max_unhealthy_instance_percent
+
+ # @return [Integer] The maximum percentage of upgraded virtual machine
+ # instances that can be found to be in an unhealthy state. This check
+ # will happen after each batch is upgraded. If this percentage is ever
+ # exceeded, the rolling update aborts. The default value for this
+ # parameter is 20%.
+ attr_accessor :max_unhealthy_upgraded_instance_percent
+
+ # @return [String] The wait time between completing the update for all
+ # virtual machines in one batch and starting the next batch. The time
+ # duration should be specified in ISO 8601 format. The default value is 0
+ # seconds (PT0S).
+ attr_accessor :pause_time_between_batches
+
+
+ #
+ # Mapper for RollingUpgradePolicy class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RollingUpgradePolicy',
+ type: {
+ name: 'Composite',
+ class_name: 'RollingUpgradePolicy',
+ model_properties: {
+ max_batch_instance_percent: {
+ required: false,
+ serialized_name: 'maxBatchInstancePercent',
+ constraints: {
+ InclusiveMaximum: 100,
+ InclusiveMinimum: 5
+ },
+ type: {
+ name: 'Number'
+ }
+ },
+ max_unhealthy_instance_percent: {
+ required: false,
+ serialized_name: 'maxUnhealthyInstancePercent',
+ constraints: {
+ InclusiveMaximum: 100,
+ InclusiveMinimum: 5
+ },
+ type: {
+ name: 'Number'
+ }
+ },
+ max_unhealthy_upgraded_instance_percent: {
+ required: false,
+ serialized_name: 'maxUnhealthyUpgradedInstancePercent',
+ constraints: {
+ InclusiveMaximum: 100,
+ InclusiveMinimum: 0
+ },
+ type: {
+ name: 'Number'
+ }
+ },
+ pause_time_between_batches: {
+ required: false,
+ serialized_name: 'pauseTimeBetweenBatches',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb
new file mode 100644
index 0000000000..2f4a952c6c
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb
@@ -0,0 +1,83 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Information about the number of virtual machine instances in each upgrade
+ # state.
+ #
+ class RollingUpgradeProgressInfo
+
+ include MsRestAzure
+
+ # @return [Integer] The number of instances that have been successfully
+ # upgraded.
+ attr_accessor :successful_instance_count
+
+ # @return [Integer] The number of instances that have failed to be
+ # upgraded successfully.
+ attr_accessor :failed_instance_count
+
+ # @return [Integer] The number of instances that are currently being
+ # upgraded.
+ attr_accessor :in_progress_instance_count
+
+ # @return [Integer] The number of instances that have not yet begun to be
+ # upgraded.
+ attr_accessor :pending_instance_count
+
+
+ #
+ # Mapper for RollingUpgradeProgressInfo class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RollingUpgradeProgressInfo',
+ type: {
+ name: 'Composite',
+ class_name: 'RollingUpgradeProgressInfo',
+ model_properties: {
+ successful_instance_count: {
+ required: false,
+ read_only: true,
+ serialized_name: 'successfulInstanceCount',
+ type: {
+ name: 'Number'
+ }
+ },
+ failed_instance_count: {
+ required: false,
+ read_only: true,
+ serialized_name: 'failedInstanceCount',
+ type: {
+ name: 'Number'
+ }
+ },
+ in_progress_instance_count: {
+ required: false,
+ read_only: true,
+ serialized_name: 'inProgressInstanceCount',
+ type: {
+ name: 'Number'
+ }
+ },
+ pending_instance_count: {
+ required: false,
+ read_only: true,
+ serialized_name: 'pendingInstanceCount',
+ type: {
+ name: 'Number'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb
new file mode 100644
index 0000000000..72335eb1af
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb
@@ -0,0 +1,83 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Information about the current running state of the overall upgrade.
+ #
+ class RollingUpgradeRunningStatus
+
+ include MsRestAzure
+
+ # @return [RollingUpgradeStatusCode] Code indicating the current status
+ # of the upgrade. Possible values include: 'RollingForward', 'Cancelled',
+ # 'Completed', 'Faulted'
+ attr_accessor :code
+
+ # @return [DateTime] Start time of the upgrade.
+ attr_accessor :start_time
+
+ # @return [RollingUpgradeActionType] The last action performed on the
+ # rolling upgrade. Possible values include: 'Start', 'Cancel'
+ attr_accessor :last_action
+
+ # @return [DateTime] Last action time of the upgrade.
+ attr_accessor :last_action_time
+
+
+ #
+ # Mapper for RollingUpgradeRunningStatus class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RollingUpgradeRunningStatus',
+ type: {
+ name: 'Composite',
+ class_name: 'RollingUpgradeRunningStatus',
+ model_properties: {
+ code: {
+ required: false,
+ read_only: true,
+ serialized_name: 'code',
+ type: {
+ name: 'Enum',
+ module: 'RollingUpgradeStatusCode'
+ }
+ },
+ start_time: {
+ required: false,
+ read_only: true,
+ serialized_name: 'startTime',
+ type: {
+ name: 'DateTime'
+ }
+ },
+ last_action: {
+ required: false,
+ read_only: true,
+ serialized_name: 'lastAction',
+ type: {
+ name: 'Enum',
+ module: 'RollingUpgradeActionType'
+ }
+ },
+ last_action_time: {
+ required: false,
+ read_only: true,
+ serialized_name: 'lastActionTime',
+ type: {
+ name: 'DateTime'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb
new file mode 100644
index 0000000000..cc8471f9b6
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb
@@ -0,0 +1,18 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Defines values for RollingUpgradeStatusCode
+ #
+ module RollingUpgradeStatusCode
+ RollingForward = "RollingForward"
+ Cancelled = "Cancelled"
+ Completed = "Completed"
+ Faulted = "Faulted"
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb
new file mode 100644
index 0000000000..045ebd0c13
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb
@@ -0,0 +1,130 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # The status of the latest virtual machine scale set rolling upgrade.
+ #
+ class RollingUpgradeStatusInfo < Resource
+
+ include MsRestAzure
+
+ # @return [RollingUpgradePolicy] The rolling upgrade policies applied for
+ # this upgrade.
+ attr_accessor :policy
+
+ # @return [RollingUpgradeRunningStatus] Information about the current
+ # running state of the overall upgrade.
+ attr_accessor :running_status
+
+ # @return [RollingUpgradeProgressInfo] Information about the number of
+ # virtual machine instances in each upgrade state.
+ attr_accessor :progress
+
+ # @return [ApiError] Error details for this upgrade, if there are any.
+ attr_accessor :error
+
+
+ #
+ # Mapper for RollingUpgradeStatusInfo class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RollingUpgradeStatusInfo',
+ type: {
+ name: 'Composite',
+ class_name: 'RollingUpgradeStatusInfo',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ policy: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.policy',
+ type: {
+ name: 'Composite',
+ class_name: 'RollingUpgradePolicy'
+ }
+ },
+ running_status: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.runningStatus',
+ type: {
+ name: 'Composite',
+ class_name: 'RollingUpgradeRunningStatus'
+ }
+ },
+ progress: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.progress',
+ type: {
+ name: 'Composite',
+ class_name: 'RollingUpgradeProgressInfo'
+ }
+ },
+ error: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.error',
+ type: {
+ name: 'Composite',
+ class_name: 'ApiError'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_document.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_document.rb
old mode 100755
new mode 100644
index 8fa422f683..d4902cd99a
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_document.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_document.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RunCommandDocument < RunCommandDocumentBase
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The script to be executed.
attr_accessor :script
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_document_base.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_document_base.rb
old mode 100755
new mode 100644
index 90b13498c3..4a7cbe0988
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_document_base.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_document_base.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RunCommandDocumentBase
include MsRestAzure
- include MsRest::JSONable
# @return [String] The VM run command schema.
attr_accessor :schema
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_input.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_input.rb
old mode 100755
new mode 100644
index c5e1f1d189..940482e8dd
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_input.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_input.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RunCommandInput
include MsRestAzure
- include MsRest::JSONable
# @return [String] The run command id.
attr_accessor :command_id
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_input_parameter.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_input_parameter.rb
old mode 100755
new mode 100644
index 7b57467bc4..4bdea411b8
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_input_parameter.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_input_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RunCommandInputParameter
include MsRestAzure
- include MsRest::JSONable
# @return [String] The run command parameter name.
attr_accessor :name
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_list_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_list_result.rb
old mode 100755
new mode 100644
index 2a756cc69e..75c2bf629c
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_list_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb
old mode 100755
new mode 100644
index 3132b48297..d319ba9e2c
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RunCommandParameterDefinition
include MsRestAzure
- include MsRest::JSONable
# @return [String] The run command parameter name.
attr_accessor :name
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_result.rb
old mode 100755
new mode 100644
index 400930a40a..245fb2d7c5
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/run_command_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RunCommandResult < OperationStatusResponse
include MsRestAzure
- include MsRest::JSONable
# @return Operation output data (raw JSON)
attr_accessor :output
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/setting_names.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/setting_names.rb
old mode 100755
new mode 100644
index fefecdbff2..e24d9f5def
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/setting_names.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/setting_names.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sku.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sku.rb
old mode 100755
new mode 100644
index 508d2a67df..8beaca661b
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sku.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,14 +12,16 @@ class Sku
include MsRestAzure
- include MsRest::JSONable
# @return [String] The sku name.
attr_accessor :name
- # @return [String] The sku tier.
+ # @return [String] Specifies the tier of virtual machines in a scale
+ # set.
Possible Values:
**Standard**
+ # **Basic**
attr_accessor :tier
- # @return [Integer] The sku capacity.
+ # @return [Integer] Specifies the number of virtual machines in the scale
+ # set.
attr_accessor :capacity
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot.rb
old mode 100755
new mode 100644
index 484d9d275f..5a1444f9e7
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,13 +8,11 @@ module Models
#
# Snapshot resource.
#
- class Snapshot < MsRestAzure::Resource
+ class Snapshot < Resource
include MsRestAzure
- include MsRest::JSONable
- # @return [String] A relative URI containing the ID of the VM that has
- # the disk attached.
+ # @return [String] Unused. Always Null.
attr_accessor :managed_by
# @return [DiskSku]
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot_list.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot_list.rb
old mode 100755
new mode 100644
index e51fe95317..e698b1ce5f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot_list.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot_list.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot_update.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot_update.rb
old mode 100755
new mode 100644
index 532bde09a7..63076a314d
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot_update.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/snapshot_update.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Snapshot update resource.
#
- class SnapshotUpdate < MsRestAzure::ResourceUpdate
+ class SnapshotUpdate < ResourceUpdate
include MsRestAzure
- include MsRest::JSONable
# @return [OperatingSystemTypes] the Operating System type. Possible
# values include: 'Windows', 'Linux'
attr_accessor :os_type
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/source_vault.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/source_vault.rb
old mode 100755
new mode 100644
index 9593209ba9..af97882f2c
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/source_vault.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/source_vault.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class SourceVault
include MsRestAzure
- include MsRest::JSONable
# @return [String] Resource Id
attr_accessor :id
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb
old mode 100755
new mode 100644
index 7ce7a446c2..e3966ba24a
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SshConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of SSH public keys used to
# authenticate with linux based VMs.
attr_accessor :public_keys
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb
old mode 100755
new mode 100644
index 49c3f6e725..29dc87f13d
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,15 +13,16 @@ class SshPublicKey
include MsRestAzure
- include MsRest::JSONable
- # @return [String] Specifies the full path on the created VM where SSH
+ # @return [String] Specifies the full path on the created VM where ssh
# public key is stored. If the file already exists, the specified key is
- # appended to the file.
+ # appended to the file. Example: /home/user/.ssh/authorized_keys
attr_accessor :path
- # @return [String] Certificate public key used to authenticate to the VM
- # through SSH. The certificate must be in Pem format with or without
- # headers.
+ # @return [String] SSH public key certificate used to authenticate with
+ # the VM through ssh. The key needs to be at least 2048-bit and in
+ # ssh-rsa format.
For creating ssh keys, see [Create SSH keys on
+ # Linux and Mac for Linux VMs in
+ # Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
attr_accessor :key_data
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/status_level_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/status_level_types.rb
old mode 100755
new mode 100644
index 60569b367d..b4aac00298
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/status_level_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/status_level_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/storage_account_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/storage_account_types.rb
old mode 100755
new mode 100644
index 1a1cbc57b2..1fd7032fe9
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/storage_account_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/storage_account_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/storage_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/storage_profile.rb
old mode 100755
new mode 100644
index 6bf966c89f..bbdcd8ce17
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/storage_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/storage_profile.rb
@@ -1,25 +1,34 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes a storage profile.
+ # Specifies the storage settings for the virtual machine disks.
#
class StorageProfile
include MsRestAzure
- include MsRest::JSONable
- # @return [ImageReference] The image reference.
+ # @return [ImageReference] Specifies information about the image to use.
+ # You can specify information about platform images, marketplace images,
+ # or virtual machine images. This element is required when you want to
+ # use a platform image, marketplace image, or virtual machine image, but
+ # is not used in other creation operations.
attr_accessor :image_reference
- # @return [OSDisk] The OS disk.
+ # @return [OSDisk] Specifies information about the operating system disk
+ # used by the virtual machine.
For more information about disks,
+ # see [About disks and VHDs for Azure virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
attr_accessor :os_disk
- # @return [Array] The data disks.
+ # @return [Array] Specifies the parameters that are used to add
+ # a data disk to a virtual machine.
For more information about
+ # disks, see [About disks and VHDs for Azure virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
attr_accessor :data_disks
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sub_resource.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sub_resource.rb
new file mode 100644
index 0000000000..b686dcd212
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sub_resource.rb
@@ -0,0 +1,45 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Model object.
+ #
+ #
+ class SubResource
+
+ include MsRestAzure
+
+ # @return [String] Resource Id
+ attr_accessor :id
+
+
+ #
+ # Mapper for SubResource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'SubResource',
+ type: {
+ name: 'Composite',
+ class_name: 'SubResource',
+ model_properties: {
+ id: {
+ required: false,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sub_resource_read_only.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sub_resource_read_only.rb
old mode 100755
new mode 100644
index 20aead2a5d..7153847f7f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sub_resource_read_only.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/sub_resource_read_only.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class SubResourceReadOnly
include MsRestAzure
- include MsRest::JSONable
# @return [String] Resource Id
attr_accessor :id
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/update_resource.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/update_resource.rb
new file mode 100644
index 0000000000..cd503944e9
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/update_resource.rb
@@ -0,0 +1,51 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # The Update Resource model definition.
+ #
+ class UpdateResource
+
+ include MsRestAzure
+
+ # @return [Hash{String => String}] Resource tags
+ attr_accessor :tags
+
+
+ #
+ # Mapper for UpdateResource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'UpdateResource',
+ type: {
+ name: 'Composite',
+ class_name: 'UpdateResource',
+ model_properties: {
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/upgrade_mode.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/upgrade_mode.rb
old mode 100755
new mode 100644
index f9d9593b10..296446ab53
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/upgrade_mode.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/upgrade_mode.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -11,6 +11,7 @@ module Models
module UpgradeMode
Automatic = "Automatic"
Manual = "Manual"
+ Rolling = "Rolling"
end
end
end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb
old mode 100755
new mode 100644
index e8134d5605..88a8c073db
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb
@@ -1,22 +1,35 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes an upgrade policy - automatic or manual.
+ # Describes an upgrade policy - automatic, manual, or rolling.
#
class UpgradePolicy
include MsRestAzure
- include MsRest::JSONable
- # @return [UpgradeMode] The upgrade mode. Possible values include:
- # 'Automatic', 'Manual'
+ # @return [UpgradeMode] Specifies the mode of an upgrade to virtual
+ # machines in the scale set.
Possible values are:
+ # **Manual** - You control the application of updates to virtual
+ # machines in the scale set. You do this by using the manualUpgrade
+ # action.
**Automatic** - All virtual machines in the scale
+ # set are automatically updated at the same time. Possible values
+ # include: 'Automatic', 'Manual', 'Rolling'
attr_accessor :mode
+ # @return [RollingUpgradePolicy] The configuration parameters used while
+ # performing a rolling upgrade.
+ attr_accessor :rolling_upgrade_policy
+
+ # @return [Boolean] Whether OS upgrades should automatically be applied
+ # to scale set instances in a rolling fashion when a newer version of the
+ # image becomes available.
+ attr_accessor :automatic_osupgrade
+
#
# Mapper for UpgradePolicy class as Ruby Hash.
@@ -37,6 +50,21 @@ def self.mapper()
name: 'Enum',
module: 'UpgradeMode'
}
+ },
+ rolling_upgrade_policy: {
+ required: false,
+ serialized_name: 'rollingUpgradePolicy',
+ type: {
+ name: 'Composite',
+ class_name: 'RollingUpgradePolicy'
+ }
+ },
+ automatic_osupgrade: {
+ required: false,
+ serialized_name: 'automaticOSUpgrade',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/usage.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/usage.rb
old mode 100755
new mode 100644
index 58fbb191e0..a42dc1667f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/usage.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/usage.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Usage
include MsRestAzure
- include MsRest::JSONable
# @return [String] An enum describing the unit of usage measurement.
# Default value: 'Count' .
attr_accessor :unit
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/usage_name.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/usage_name.rb
old mode 100755
new mode 100644
index 1fb05f1485..653b379c55
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/usage_name.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/usage_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UsageName
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the resource.
attr_accessor :value
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/vault_certificate.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/vault_certificate.rb
old mode 100755
new mode 100644
index 4d92277cb8..abb44523f3
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/vault_certificate.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/vault_certificate.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,13 +13,24 @@ class VaultCertificate
include MsRestAzure
- include MsRest::JSONable
- # @return [String] The URL referencing a secret in a Key Vault which
- # contains a properly formatted certificate.
+ # @return [String] This is the URL of a certificate that has been
+ # uploaded to Key Vault as a secret. For adding a secret to the Key
+ # Vault, see [Add a key or secret to the key
+ # vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add).
+ # In this case, your certificate needs to be It is the Base64 encoding of
+ # the following JSON Object which is encoded in UTF-8:
{
+ # "data":"",
"dataType":"pfx",
+ # "password":""
}
attr_accessor :certificate_url
- # @return [String] The Certificate store in LocalMachine to add the
- # certificate to on Windows, leave empty on Linux.
+ # @return [String] For Windows VMs, specifies the certificate store on
+ # the Virtual Machine to which the certificate should be added. The
+ # specified certificate store is implicitly in the LocalMachine account.
+ #
For Linux VMs, the certificate file is placed under the
+ # /var/lib/waagent directory, with the file name
+ # .crt for the X509 certificate file and
+ # .prv for private key. Both of these files are .pem
+ # formatted.
attr_accessor :certificate_store
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb
old mode 100755
new mode 100644
index 6734b7b488..97cb6f9f47
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,8 +12,7 @@ class VaultSecretGroup
include MsRestAzure
- include MsRest::JSONable
- # @return [SubResource] The Relative URL of the Key Vault containing all
+ # @return [SubResource] The relative URL of the Key Vault containing all
# of the certificates in VaultCertificates.
attr_accessor :source_vault
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb
old mode 100755
new mode 100644
index f20b9feabc..1484c0b7c8
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,9 +12,7 @@ class VirtualHardDisk
include MsRestAzure
- include MsRest::JSONable
- # @return [String] The virtual hard disk's URI. Must be a valid URI to a
- # virtual hard disk.
+ # @return [String] Specifies the virtual hard disk's uri.
attr_accessor :uri
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine.rb
old mode 100755
new mode 100644
index cae020abde..2797674e7f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,32 +8,50 @@ module Models
#
# Describes a Virtual Machine.
#
- class VirtualMachine < MsRestAzure::Resource
+ class VirtualMachine < Resource
include MsRestAzure
- include MsRest::JSONable
- # @return [Plan] The purchase plan when deploying virtual machine from VM
- # Marketplace images.
+ # @return [Plan] Specifies information about the marketplace image used
+ # to create the virtual machine. This element is only used for
+ # marketplace images. Before you can use a marketplace image from an API,
+ # you must enable the image for programmatic use. In the Azure portal,
+ # find the marketplace image that you want to use and then click **Want
+ # to deploy programmatically, Get Started ->**. Enter any required
+ # information and then click **Save**.
attr_accessor :plan
- # @return [HardwareProfile] The hardware profile.
+ # @return [HardwareProfile] Specifies the hardware settings for the
+ # virtual machine.
attr_accessor :hardware_profile
- # @return [StorageProfile] The storage profile.
+ # @return [StorageProfile] Specifies the storage settings for the virtual
+ # machine disks.
attr_accessor :storage_profile
- # @return [OSProfile] The OS profile.
+ # @return [OSProfile] Specifies the operating system settings for the
+ # virtual machine.
attr_accessor :os_profile
- # @return [NetworkProfile] The network profile.
+ # @return [NetworkProfile] Specifies the network interfaces of the
+ # virtual machine.
attr_accessor :network_profile
- # @return [DiagnosticsProfile] The diagnostics profile.
+ # @return [DiagnosticsProfile] Specifies the boot diagnostic settings
+ # state.
Minimum api-version: 2015-06-15.
attr_accessor :diagnostics_profile
- # @return [SubResource] The reference Id of the availability set to which
- # the virtual machine belongs.
+ # @return [SubResource] Specifies information about the availability set
+ # that the virtual machine should be assigned to. Virtual machines
+ # specified in the same availability set are allocated to different nodes
+ # to maximize availability. For more information about availability sets,
+ # see [Manage the availability of virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ #
For more information on Azure planned maintainance, see
+ # [Planned maintenance for virtual machines in
+ # Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ #
Currently, a VM can only be added to availability set at
+ # creation time. An existing VM cannot be added to an availability set.
attr_accessor :availability_set
# @return [String] The provisioning state, which only appears in the
@@ -45,7 +63,13 @@ class VirtualMachine < MsRestAzure::Resource
# @return [String] Specifies that the image or disk that is being used
# was licensed on-premises. This element is only used for images that
- # contain the Windows Server operating system.
+ # contain the Windows Server operating system.
Possible values
+ # are:
Windows_Client
Windows_Server
If this
+ # element is included in a request for an update, the value must match
+ # the initial value. This value cannot be updated.
For more
+ # information, see [Azure Hybrid Use Benefit for Windows
+ # Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ #
Minimum api-version: 2015-06-15
attr_accessor :license_type
# @return [String] Specifies the VM unique ID which is a 128-bits
@@ -61,6 +85,9 @@ class VirtualMachine < MsRestAzure::Resource
# if configured.
attr_accessor :identity
+ # @return [Array] The virtual machine zones.
+ attr_accessor :zones
+
#
# Mapper for VirtualMachine class as Ruby Hash.
@@ -230,6 +257,20 @@ def self.mapper()
name: 'Composite',
class_name: 'VirtualMachineIdentity'
}
+ },
+ zones: {
+ required: false,
+ serialized_name: 'zones',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
}
}
}
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb
old mode 100755
new mode 100644
index 139100e0a5..82de103c19
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineAgentInstanceView
include MsRestAzure
- include MsRest::JSONable
# @return [String] The VM Agent full version.
attr_accessor :vm_agent_version
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb
old mode 100755
new mode 100644
index 85e02e5c2c..48f9c970cd
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineCaptureParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The captured virtual hard disk's name prefix.
attr_accessor :vhd_prefix
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb
old mode 100755
new mode 100644
index d7a9775a48..398c6ee388
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Resource Id.
#
- class VirtualMachineCaptureResult < MsRestAzure::SubResource
+ class VirtualMachineCaptureResult < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return Operation output data (raw JSON)
attr_accessor :output
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb
old mode 100755
new mode 100644
index 01c25c1da8..0fefeba3c6
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Describes a Virtual Machine Extension.
#
- class VirtualMachineExtension < MsRestAzure::Resource
+ class VirtualMachineExtension < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] How the extension handler should be forced to update
# even if the extension configuration has not changed.
attr_accessor :force_update_tag
@@ -20,20 +19,24 @@ class VirtualMachineExtension < MsRestAzure::Resource
# @return [String] The name of the extension handler publisher.
attr_accessor :publisher
- # @return [String] The type of the extension handler.
+ # @return [String] Specifies the type of the extension; an example is
+ # "CustomScriptExtension".
attr_accessor :virtual_machine_extension_type
- # @return [String] The type version of the extension handler.
+ # @return [String] Specifies the version of the script handler.
attr_accessor :type_handler_version
- # @return [Boolean] Whether the extension handler should be automatically
- # upgraded across minor versions.
+ # @return [Boolean] Indicates whether the extension should use a newer
+ # minor version if one is available at deployment time. Once deployed,
+ # however, the extension will not upgrade minor versions unless
+ # redeployed, even with this property set to true.
attr_accessor :auto_upgrade_minor_version
# @return Json formatted public settings for the extension.
attr_accessor :settings
- # @return Json formatted protected settings for the extension.
+ # @return The extension can contain either protectedSettings or
+ # protectedSettingsFromKeyVault or no protected settings at all.
attr_accessor :protected_settings
# @return [String] The provisioning state, which only appears in the
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb
old mode 100755
new mode 100644
index aef9f94057..e2c1020815
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,12 +12,11 @@ class VirtualMachineExtensionHandlerInstanceView
include MsRestAzure
- include MsRest::JSONable
- # @return [String] Full type of the extension handler which includes both
- # publisher and type.
+ # @return [String] Specifies the type of the extension; an example is
+ # "CustomScriptExtension".
attr_accessor :type
- # @return [String] The type version of the extension handler.
+ # @return [String] Specifies the version of the script handler.
attr_accessor :type_handler_version
# @return [InstanceViewStatus] The extension handler status.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb
old mode 100755
new mode 100644
index d85fb381a0..39e1a4dc5a
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Describes a Virtual Machine Extension Image.
#
- class VirtualMachineExtensionImage < MsRestAzure::Resource
+ class VirtualMachineExtensionImage < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The operating system this extension supports.
attr_accessor :operating_system
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb
old mode 100755
new mode 100644
index 16368db32f..c9c0650336
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,15 +12,14 @@ class VirtualMachineExtensionInstanceView
include MsRestAzure
- include MsRest::JSONable
# @return [String] The virtual machine extension name.
attr_accessor :name
- # @return [String] The full type of the extension handler which includes
- # both publisher and type.
+ # @return [String] Specifies the type of the extension; an example is
+ # "CustomScriptExtension".
attr_accessor :type
- # @return [String] The type version of the extension handler.
+ # @return [String] Specifies the version of the script handler.
attr_accessor :type_handler_version
# @return [Array] The resource status information.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb
new file mode 100644
index 0000000000..ad3fe2c922
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb
@@ -0,0 +1,46 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # The health status of the VM.
+ #
+ class VirtualMachineHealthStatus
+
+ include MsRestAzure
+
+ # @return [InstanceViewStatus] The health status information for the VM.
+ attr_accessor :status
+
+
+ #
+ # Mapper for VirtualMachineHealthStatus class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineHealthStatus',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineHealthStatus',
+ model_properties: {
+ status: {
+ required: false,
+ read_only: true,
+ serialized_name: 'status',
+ type: {
+ name: 'Composite',
+ class_name: 'InstanceViewStatus'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_identity.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_identity.rb
old mode 100755
new mode 100644
index 5b28fd9bae..1347a81230
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_identity.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_identity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineIdentity
include MsRestAzure
- include MsRest::JSONable
# @return [String] The principal id of virtual machine identity.
attr_accessor :principal_id
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb
old mode 100755
new mode 100644
index 0b65770c82..17d59d1e5e
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineImage < VirtualMachineImageResource
include MsRestAzure
- include MsRest::JSONable
# @return [PurchasePlan]
attr_accessor :plan
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb
old mode 100755
new mode 100644
index 84e3078228..2a44109128
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,18 +8,20 @@ module Models
#
# Virtual machine image resource information.
#
- class VirtualMachineImageResource < MsRestAzure::SubResource
+ class VirtualMachineImageResource < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the resource.
attr_accessor :name
# @return [String] The supported Azure location of the resource.
attr_accessor :location
- # @return [Hash{String => String}] The tags attached to the resource.
+ # @return [Hash{String => String}] Specifies the tags that are assigned
+ # to the virtual machine. For more information about using tags, see
+ # [Using tags to organize your Azure
+ # resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).
attr_accessor :tags
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb
old mode 100755
new mode 100644
index fc855c7edd..c33b0cce31
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineInstanceView
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Specifies the update domain of the virtual machine.
attr_accessor :platform_update_domain
@@ -37,7 +36,12 @@ class VirtualMachineInstanceView
# information.
attr_accessor :extensions
- # @return [BootDiagnosticsInstanceView] The boot diagnostics.
+ # @return [BootDiagnosticsInstanceView] Boot Diagnostics is a debugging
+ # feature which allows you to view Console Output and Screenshot to
+ # diagnose VM status.
For Linux Virtual Machines, you can easily
+ # view the output of your console log.
For both Windows and
+ # Linux virtual machines, Azure also enables you to see a screenshot of
+ # the VM from the hypervisor.
attr_accessor :boot_diagnostics
# @return [Array] The resource status information.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb
old mode 100755
new mode 100644
index 9f5b0bb8c7..928423b2e3
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb
old mode 100755
new mode 100644
index cd414b99d5..2fa402771c
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,24 +8,25 @@ module Models
#
# Describes a Virtual Machine Scale Set.
#
- class VirtualMachineScaleSet < MsRestAzure::Resource
+ class VirtualMachineScaleSet < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Sku] The virtual machine scale set sku.
attr_accessor :sku
- # @return [Plan] The purchase plan when deploying a virtual machine scale
- # set from VM Marketplace images.
+ # @return [Plan] Specifies information about the marketplace image used
+ # to create the virtual machine. This element is only used for
+ # marketplace images. Before you can use a marketplace image from an API,
+ # you must enable the image for programmatic use. In the Azure portal,
+ # find the marketplace image that you want to use and then click **Want
+ # to deploy programmatically, Get Started ->**. Enter any required
+ # information and then click **Save**.
attr_accessor :plan
# @return [UpgradePolicy] The upgrade policy.
attr_accessor :upgrade_policy
- # @return [RecoveryPolicy] The recovery policy.
- attr_accessor :recovery_policy
-
# @return [VirtualMachineScaleSetVMProfile] The virtual machine profile.
attr_accessor :virtual_machine_profile
@@ -49,6 +50,9 @@ class VirtualMachineScaleSet < MsRestAzure::Resource
# machine scale set, if configured.
attr_accessor :identity
+ # @return [Array] The virtual machine scale set zones.
+ attr_accessor :zones
+
#
# Mapper for VirtualMachineScaleSet class as Ruby Hash.
@@ -131,14 +135,6 @@ def self.mapper()
class_name: 'UpgradePolicy'
}
},
- recovery_policy: {
- required: false,
- serialized_name: 'properties.recoveryPolicy',
- type: {
- name: 'Composite',
- class_name: 'RecoveryPolicy'
- }
- },
virtual_machine_profile: {
required: false,
serialized_name: 'properties.virtualMachineProfile',
@@ -184,6 +180,20 @@ def self.mapper()
name: 'Composite',
class_name: 'VirtualMachineScaleSetIdentity'
}
+ },
+ zones: {
+ required: false,
+ serialized_name: 'zones',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
}
}
}
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb
old mode 100755
new mode 100644
index 0d260e05cf..5149026014
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,23 +12,29 @@ class VirtualMachineScaleSetDataDisk
include MsRestAzure
- include MsRest::JSONable
# @return [String] The disk name.
attr_accessor :name
- # @return [Integer] The logical unit number.
+ # @return [Integer] Specifies the logical unit number of the data disk.
+ # This value is used to identify data disks within the VM and therefore
+ # must be unique for each data disk attached to a VM.
attr_accessor :lun
- # @return [CachingTypes] The caching type. Possible values include:
- # 'None', 'ReadOnly', 'ReadWrite'
+ # @return [CachingTypes] Specifies the caching requirements.
+ # Possible values are:
**None**
**ReadOnly**
+ # **ReadWrite**
Default: **None for Standard storage. ReadOnly
+ # for Premium storage**. Possible values include: 'None', 'ReadOnly',
+ # 'ReadWrite'
attr_accessor :caching
# @return [DiskCreateOptionTypes] The create option. Possible values
- # include: 'fromImage', 'empty', 'attach'
+ # include: 'FromImage', 'Empty', 'Attach'
attr_accessor :create_option
- # @return [Integer] The initial disk size in GB for blank data disks, and
- # the new desired size for existing OS and Data disks.
+ # @return [Integer] Specifies the size of an empty data disk in
+ # gigabytes. This element can be used to overwrite the name of the disk
+ # in a virtual machine image.
This value cannot be larger than
+ # 1023 GB
attr_accessor :disk_size_gb
# @return [VirtualMachineScaleSetManagedDiskParameters] The managed disk
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb
old mode 100755
new mode 100644
index 1e0424ef2b..d9c9fe5534
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Describes a Virtual Machine Scale Set Extension.
#
- class VirtualMachineScaleSetExtension < MsRestAzure::SubResourceReadOnly
+ class VirtualMachineScaleSetExtension < SubResourceReadOnly
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the extension.
attr_accessor :name
@@ -24,20 +23,24 @@ class VirtualMachineScaleSetExtension < MsRestAzure::SubResourceReadOnly
# @return [String] The name of the extension handler publisher.
attr_accessor :publisher
- # @return [String] The type of the extension handler.
+ # @return [String] Specifies the type of the extension; an example is
+ # "CustomScriptExtension".
attr_accessor :type
- # @return [String] The type version of the extension handler.
+ # @return [String] Specifies the version of the script handler.
attr_accessor :type_handler_version
- # @return [Boolean] Whether the extension handler should be automatically
- # upgraded across minor versions.
+ # @return [Boolean] Indicates whether the extension should use a newer
+ # minor version if one is available at deployment time. Once deployed,
+ # however, the extension will not upgrade minor versions unless
+ # redeployed, even with this property set to true.
attr_accessor :auto_upgrade_minor_version
# @return Json formatted public settings for the extension.
attr_accessor :settings
- # @return Json formatted protected settings for the extension.
+ # @return The extension can contain either protectedSettings or
+ # protectedSettingsFromKeyVault or no protected settings at all.
attr_accessor :protected_settings
# @return [String] The provisioning state, which only appears in the
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb
old mode 100755
new mode 100644
index a16eee2722..2c6023cff2
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb
old mode 100755
new mode 100644
index 426e8dc95b..0e92e31ac5
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineScaleSetExtensionProfile
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The virtual machine
# scale set child extension resources.
attr_accessor :extensions
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb
old mode 100755
new mode 100644
index f96a5e2bcc..d4c639a244
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineScaleSetIdentity
include MsRestAzure
- include MsRest::JSONable
# @return [String] The principal id of virtual machine scale set
# identity.
attr_accessor :principal_id
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb
old mode 100755
new mode 100644
index a97361adc0..7005ec416b
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineScaleSetInstanceView
include MsRestAzure
- include MsRest::JSONable
# @return [VirtualMachineScaleSetInstanceViewStatusesSummary] The
# instance view status summary for the virtual machine scale set.
attr_accessor :virtual_machine
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb
old mode 100755
new mode 100644
index e3e797e3dc..fc5fffd3d6
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class VirtualMachineScaleSetInstanceViewStatusesSummary
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The extensions
# information.
attr_accessor :statuses_summary
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb
old mode 100755
new mode 100644
index c36bcb901a..f965c1e988
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,19 +8,18 @@ module Models
#
# Describes a virtual machine scale set network profile's IP configuration.
#
- class VirtualMachineScaleSetIPConfiguration < MsRestAzure::SubResource
+ class VirtualMachineScaleSetIPConfiguration < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The IP configuration name.
attr_accessor :name
- # @return [ApiEntityReference] The subnet.
+ # @return [ApiEntityReference] Specifies the identifier of the subnet.
attr_accessor :subnet
- # @return [Boolean] Specifies the primary IP Configuration in case the
- # network interface has more than one IP Configuration.
+ # @return [Boolean] Specifies the primary network interface in case the
+ # virtual machine has more than 1 network interface.
attr_accessor :primary
# @return [VirtualMachineScaleSetPublicIPAddressConfiguration] The
@@ -33,14 +32,22 @@ class VirtualMachineScaleSetIPConfiguration < MsRestAzure::SubResource
# Possible values include: 'IPv4', 'IPv6'
attr_accessor :private_ipaddress_version
- # @return [Array] The application gateway backend address
- # pools.
+ # @return [Array] Specifies an array of references to
+ # backend address pools of application gateways. A scale set can
+ # reference backend address pools of multiple application gateways.
+ # Multiple scale sets cannot use the same application gateway.
attr_accessor :application_gateway_backend_address_pools
- # @return [Array] The load balancer backend address pools.
+ # @return [Array] Specifies an array of references to
+ # backend address pools of load balancers. A scale set can reference
+ # backend address pools of one public and one internal load balancer.
+ # Multiple scale sets cannot use the same load balancer.
attr_accessor :load_balancer_backend_address_pools
- # @return [Array] The load balancer inbound nat pools.
+ # @return [Array] Specifies an array of references to
+ # inbound Nat pools of the load balancers. A scale set can reference
+ # inbound nat pools of one public and one internal load balancer.
+ # Multiple scale sets cannot use the same load balancer
attr_accessor :load_balancer_inbound_nat_pools
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb
old mode 100755
new mode 100644
index 1fb5390f2f..5e6072d9dc
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb
old mode 100755
new mode 100644
index 554b8d4298..c4d97c85e7
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb
old mode 100755
new mode 100644
index ca110e0a9b..e85df6ffee
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb
old mode 100755
new mode 100644
index 789e52deac..4ffa8eb9b9
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,9 +12,9 @@ class VirtualMachineScaleSetManagedDiskParameters
include MsRestAzure
- include MsRest::JSONable
- # @return [StorageAccountTypes] The Storage Account type. Possible values
- # include: 'Standard_LRS', 'Premium_LRS'
+ # @return [StorageAccountTypes] Specifies the storage account type for
+ # the managed disk. Possible values are: Standard_LRS or Premium_LRS.
+ # Possible values include: 'Standard_LRS', 'Premium_LRS'
attr_accessor :storage_account_type
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb
old mode 100755
new mode 100644
index c170f4da87..f70c99490b
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,15 +9,15 @@ module Models
# Describes a virtual machine scale set network profile's network
# configurations.
#
- class VirtualMachineScaleSetNetworkConfiguration < MsRestAzure::SubResource
+ class VirtualMachineScaleSetNetworkConfiguration < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The network configuration name.
attr_accessor :name
- # @return [Boolean] Whether this is a primary NIC on a virtual machine.
+ # @return [Boolean] Specifies the primary network interface in case the
+ # virtual machine has more than 1 network interface.
attr_accessor :primary
# @return [Boolean] Specifies whether the network interface is
@@ -31,8 +31,8 @@ class VirtualMachineScaleSetNetworkConfiguration < MsRestAzure::SubResource
# settings to be applied on the network interfaces.
attr_accessor :dns_settings
- # @return [Array] The virtual
- # machine scale set IP Configuration.
+ # @return [Array] Specifies the IP
+ # configurations of the network interface.
attr_accessor :ip_configurations
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb
old mode 100755
new mode 100644
index e6ad57787c..fe6b3e3fb9
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class VirtualMachineScaleSetNetworkConfigurationDnsSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Array] List of DNS servers IP addresses
attr_accessor :dns_servers
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb
old mode 100755
new mode 100644
index f5b6025bf0..1b18ee77f6
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,12 @@ class VirtualMachineScaleSetNetworkProfile
include MsRestAzure
- include MsRest::JSONable
+ # @return [ApiEntityReference] A reference to a load balancer probe used
+ # to determine the health of an instance in the virtual machine scale
+ # set. The reference will be in the form:
+ # '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
+ attr_accessor :health_probe
+
# @return [Array] The list of
# network configurations.
attr_accessor :network_interface_configurations
@@ -30,6 +35,14 @@ def self.mapper()
name: 'Composite',
class_name: 'VirtualMachineScaleSetNetworkProfile',
model_properties: {
+ health_probe: {
+ required: false,
+ serialized_name: 'healthProbe',
+ type: {
+ name: 'Composite',
+ class_name: 'ApiEntityReference'
+ }
+ },
network_interface_configurations: {
required: false,
serialized_name: 'networkInterfaceConfigurations',
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb
old mode 100755
new mode 100644
index ab08a1a88c..2d6ab71ca8
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,29 +12,38 @@ class VirtualMachineScaleSetOSDisk
include MsRestAzure
- include MsRest::JSONable
# @return [String] The disk name.
attr_accessor :name
- # @return [CachingTypes] The caching type. Possible values include:
- # 'None', 'ReadOnly', 'ReadWrite'
+ # @return [CachingTypes] Specifies the caching requirements.
+ # Possible values are:
**None**
**ReadOnly**
+ # **ReadWrite**
Default: **None for Standard storage. ReadOnly
+ # for Premium storage**. Possible values include: 'None', 'ReadOnly',
+ # 'ReadWrite'
attr_accessor :caching
- # @return [DiskCreateOptionTypes] The create option. Possible values
- # include: 'fromImage', 'empty', 'attach'
+ # @return [DiskCreateOptionTypes] Specifies how the virtual machines in
+ # the scale set should be created.
The only allowed value is:
+ # **FromImage** \u2013 This value is used when you are using an image to
+ # create the virtual machine. If you are using a platform image, you also
+ # use the imageReference element described above. If you are using a
+ # marketplace image, you also use the plan element previously described.
+ # Possible values include: 'FromImage', 'Empty', 'Attach'
attr_accessor :create_option
- # @return [OperatingSystemTypes] The Operating System type. Possible
- # values include: 'Windows', 'Linux'
+ # @return [OperatingSystemTypes] This property allows you to specify the
+ # type of the OS that is included in the disk if creating a VM from
+ # user-image or a specialized VHD.
Possible values are:
+ # **Windows**
**Linux**. Possible values include: 'Windows',
+ # 'Linux'
attr_accessor :os_type
- # @return [VirtualHardDisk] The Source User Image VirtualHardDisk. This
- # VirtualHardDisk will be copied before using it to attach to the Virtual
- # Machine. If SourceImage is provided, the destination VirtualHardDisk
- # should not exist.
+ # @return [VirtualHardDisk] Specifies information about the unmanaged
+ # user image to base the scale set on.
attr_accessor :image
- # @return [Array] The list of virtual hard disk container uris.
+ # @return [Array] Specifies the container urls that are used to
+ # store operating system disks for the scale set.
attr_accessor :vhd_containers
# @return [VirtualMachineScaleSetManagedDiskParameters] The managed disk
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb
old mode 100755
new mode 100644
index c3392d2a51..fd3e55f74a
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,28 +12,69 @@ class VirtualMachineScaleSetOSProfile
include MsRestAzure
- include MsRest::JSONable
- # @return [String] The computer name prefix.
+ # @return [String] Specifies the computer name prefix for all of the
+ # virtual machines in the scale set. Computer name prefixes must be 1 to
+ # 15 characters long.
attr_accessor :computer_name_prefix
- # @return [String] The admin user name.
+ # @return [String] Specifies the name of the administrator account.
+ #
**Windows-only restriction:** Cannot end in "."
+ # **Disallowed values:** "administrator", "admin", "user", "user1",
+ # "test", "user2", "test1", "user3", "admin1", "1", "123", "a",
+ # "actuser", "adm", "admin2", "aspnet", "backup", "console", "david",
+ # "guest", "john", "owner", "root", "server", "sql", "support",
+ # "support_388945a0", "sys", "test2", "test3", "user4", "user5".
+ # **Minimum-length (Linux):** 1 character
**Max-length
+ # (Linux):** 64 characters
**Max-length (Windows):** 20
+ # characters
For root access to the Linux VM, see [Using
+ # root privileges on Linux virtual machines in
+ # Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ # For a list of built-in system users on Linux that should not be used in
+ # this field, see [Selecting User Names for Linux on
+ # Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
attr_accessor :admin_username
- # @return [String] The admin user password.
+ # @return [String] Specifies the password of the administrator account.
+ #
**Minimum-length (Windows):** 8 characters
+ # **Minimum-length (Linux):** 6 characters
**Max-length
+ # (Windows):** 123 characters
**Max-length (Linux):** 72
+ # characters
**Complexity requirements:** 3 out of 4 conditions
+ # below need to be fulfilled
Has lower characters
Has upper
+ # characters
Has a digit
Has a special character (Regex match
+ # [\W_])
**Disallowed values:** "abc@123", "P@$$w0rd",
+ # "P@ssw0rd", "P@ssword123", "Pa$$word", "pass@word1", "Password!",
+ # "Password1", "Password22", "iloveyou!"
For resetting the
+ # password, see [How to reset the Remote Desktop service or its login
+ # password in a Windows
+ # VM](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-reset-rdp?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ #
For resetting root password, see [Manage users, SSH, and check
+ # or repair disks on Azure Linux VMs using the VMAccess
+ # Extension](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-vmaccess-extension?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#reset-root-password)
attr_accessor :admin_password
- # @return [String] A base-64 encoded string of custom data.
+ # @return [String] Specifies a base-64 encoded string of custom data. The
+ # base-64 encoded string is decoded to a binary array that is saved as a
+ # file on the Virtual Machine. The maximum length of the binary array is
+ # 65535 bytes.
For using cloud-init for your VM, see [Using
+ # cloud-init to customize a Linux VM during
+ # creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
attr_accessor :custom_data
- # @return [WindowsConfiguration] The Windows Configuration of the OS
- # profile.
+ # @return [WindowsConfiguration] Specifies Windows operating system
+ # settings on the virtual machine.
attr_accessor :windows_configuration
- # @return [LinuxConfiguration] The Linux Configuration of the OS profile.
+ # @return [LinuxConfiguration] Specifies the Linux operating system
+ # settings on the virtual machine.
For a list of supported Linux
+ # distributions, see [Linux on Azure-Endorsed
+ # Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ #
For running non-endorsed distributions, see [Information for
+ # Non-Endorsed
+ # Distributions](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
attr_accessor :linux_configuration
- # @return [Array] The List of certificates for addition
- # to the VM.
+ # @return [Array] Specifies set of certificates that
+ # should be installed onto the virtual machines in the scale set.
attr_accessor :secrets
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb
old mode 100755
new mode 100644
index ec0b9da3ac..8b68c06a1a
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class VirtualMachineScaleSetPublicIPAddressConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [String] The publicIP address configuration name.
attr_accessor :name
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb
old mode 100755
new mode 100644
index 1291a4a7ac..19c9fca2ed
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings
include MsRestAzure
- include MsRest::JSONable
# @return [String] The Domain name label.The concatenation of the domain
# name label and vm index will be the domain name labels of the
# PublicIPAddress resources that will be created
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb
old mode 100755
new mode 100644
index 60ac4a4d34..46e456d10e
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,15 +12,14 @@ class VirtualMachineScaleSetSku
include MsRestAzure
- include MsRest::JSONable
# @return [String] The type of resource the sku applies to.
attr_accessor :resource_type
# @return [Sku] The Sku.
attr_accessor :sku
- # @return [VirtualMachineScaleSetSkuCapacity] Available scaling
- # information.
+ # @return [VirtualMachineScaleSetSkuCapacity] Specifies the number of
+ # virtual machines in the scale set.
attr_accessor :capacity
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb
old mode 100755
new mode 100644
index 1e55ca4603..30e71937fb
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineScaleSetSkuCapacity
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The minimum capacity.
attr_accessor :minimum
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb
old mode 100755
new mode 100644
index 1229fa5601..7015137576
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb
old mode 100755
new mode 100644
index 94e6b9d8a7..60e1336b78
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,14 +12,25 @@ class VirtualMachineScaleSetStorageProfile
include MsRestAzure
- include MsRest::JSONable
- # @return [ImageReference] The image reference.
+ # @return [ImageReference] Specifies information about the image to use.
+ # You can specify information about platform images, marketplace images,
+ # or virtual machine images. This element is required when you want to
+ # use a platform image, marketplace image, or virtual machine image, but
+ # is not used in other creation operations.
attr_accessor :image_reference
- # @return [VirtualMachineScaleSetOSDisk] The OS disk.
+ # @return [VirtualMachineScaleSetOSDisk] Specifies information about the
+ # operating system disk used by the virtual machines in the scale set.
+ #
For more information about disks, see [About disks and VHDs
+ # for Azure virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
attr_accessor :os_disk
- # @return [Array] The data disks.
+ # @return [Array] Specifies the
+ # parameters that are used to add data disks to the virtual machines in
+ # the scale set.
For more information about disks, see [About
+ # disks and VHDs for Azure virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
attr_accessor :data_disks
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb
new file mode 100644
index 0000000000..24d6118243
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb
@@ -0,0 +1,128 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Describes a Virtual Machine Scale Set.
+ #
+ class VirtualMachineScaleSetUpdate < UpdateResource
+
+ include MsRestAzure
+
+ # @return [Sku] The virtual machine scale set sku.
+ attr_accessor :sku
+
+ # @return [Plan] The purchase plan when deploying a virtual machine scale
+ # set from VM Marketplace images.
+ attr_accessor :plan
+
+ # @return [UpgradePolicy] The upgrade policy.
+ attr_accessor :upgrade_policy
+
+ # @return [VirtualMachineScaleSetUpdateVMProfile] The virtual machine
+ # profile.
+ attr_accessor :virtual_machine_profile
+
+ # @return [Boolean] Specifies whether the Virtual Machine Scale Set
+ # should be overprovisioned.
+ attr_accessor :overprovision
+
+ # @return [Boolean] When true this limits the scale set to a single
+ # placement group, of max size 100 virtual machines.
+ attr_accessor :single_placement_group
+
+ # @return [VirtualMachineScaleSetIdentity] The identity of the virtual
+ # machine scale set, if configured.
+ attr_accessor :identity
+
+
+ #
+ # Mapper for VirtualMachineScaleSetUpdate class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdate',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdate',
+ model_properties: {
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ sku: {
+ required: false,
+ serialized_name: 'sku',
+ type: {
+ name: 'Composite',
+ class_name: 'Sku'
+ }
+ },
+ plan: {
+ required: false,
+ serialized_name: 'plan',
+ type: {
+ name: 'Composite',
+ class_name: 'Plan'
+ }
+ },
+ upgrade_policy: {
+ required: false,
+ serialized_name: 'properties.upgradePolicy',
+ type: {
+ name: 'Composite',
+ class_name: 'UpgradePolicy'
+ }
+ },
+ virtual_machine_profile: {
+ required: false,
+ serialized_name: 'properties.virtualMachineProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateVMProfile'
+ }
+ },
+ overprovision: {
+ required: false,
+ serialized_name: 'properties.overprovision',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ single_placement_group: {
+ required: false,
+ serialized_name: 'properties.singlePlacementGroup',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ identity: {
+ required: false,
+ serialized_name: 'identity',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetIdentity'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb
new file mode 100644
index 0000000000..9add94d99a
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb
@@ -0,0 +1,154 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Describes a virtual machine scale set network profile's IP configuration.
+ #
+ class VirtualMachineScaleSetUpdateIPConfiguration < SubResource
+
+ include MsRestAzure
+
+ # @return [String] The IP configuration name.
+ attr_accessor :name
+
+ # @return [ApiEntityReference] The subnet.
+ attr_accessor :subnet
+
+ # @return [Boolean] Specifies the primary IP Configuration in case the
+ # network interface has more than one IP Configuration.
+ attr_accessor :primary
+
+ # @return [VirtualMachineScaleSetUpdatePublicIPAddressConfiguration] The
+ # publicIPAddressConfiguration.
+ attr_accessor :public_ipaddress_configuration
+
+ # @return [IPVersion] Available from Api-Version 2017-03-30 onwards, it
+ # represents whether the specific ipconfiguration is IPv4 or IPv6.
+ # Default is taken as IPv4. Possible values are: 'IPv4' and 'IPv6'.
+ # Possible values include: 'IPv4', 'IPv6'
+ attr_accessor :private_ipaddress_version
+
+ # @return [Array] The application gateway backend address
+ # pools.
+ attr_accessor :application_gateway_backend_address_pools
+
+ # @return [Array] The load balancer backend address pools.
+ attr_accessor :load_balancer_backend_address_pools
+
+ # @return [Array] The load balancer inbound nat pools.
+ attr_accessor :load_balancer_inbound_nat_pools
+
+
+ #
+ # Mapper for VirtualMachineScaleSetUpdateIPConfiguration class as Ruby
+ # Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdateIPConfiguration',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateIPConfiguration',
+ model_properties: {
+ id: {
+ required: false,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ subnet: {
+ required: false,
+ serialized_name: 'properties.subnet',
+ type: {
+ name: 'Composite',
+ class_name: 'ApiEntityReference'
+ }
+ },
+ primary: {
+ required: false,
+ serialized_name: 'properties.primary',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ public_ipaddress_configuration: {
+ required: false,
+ serialized_name: 'properties.publicIPAddressConfiguration',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdatePublicIPAddressConfiguration'
+ }
+ },
+ private_ipaddress_version: {
+ required: false,
+ serialized_name: 'properties.privateIPAddressVersion',
+ type: {
+ name: 'String'
+ }
+ },
+ application_gateway_backend_address_pools: {
+ required: false,
+ serialized_name: 'properties.applicationGatewayBackendAddressPools',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'SubResourceElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'SubResource'
+ }
+ }
+ }
+ },
+ load_balancer_backend_address_pools: {
+ required: false,
+ serialized_name: 'properties.loadBalancerBackendAddressPools',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'SubResourceElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'SubResource'
+ }
+ }
+ }
+ },
+ load_balancer_inbound_nat_pools: {
+ required: false,
+ serialized_name: 'properties.loadBalancerInboundNatPools',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'SubResourceElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'SubResource'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb
new file mode 100644
index 0000000000..3838338d84
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb
@@ -0,0 +1,116 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Describes a virtual machine scale set network profile's network
+ # configurations.
+ #
+ class VirtualMachineScaleSetUpdateNetworkConfiguration < SubResource
+
+ include MsRestAzure
+
+ # @return [String] The network configuration name.
+ attr_accessor :name
+
+ # @return [Boolean] Whether this is a primary NIC on a virtual machine.
+ attr_accessor :primary
+
+ # @return [Boolean] Specifies whether the network interface is
+ # accelerated networking-enabled.
+ attr_accessor :enable_accelerated_networking
+
+ # @return [SubResource] The network security group.
+ attr_accessor :network_security_group
+
+ # @return [VirtualMachineScaleSetNetworkConfigurationDnsSettings] The dns
+ # settings to be applied on the network interfaces.
+ attr_accessor :dns_settings
+
+ # @return [Array] The
+ # virtual machine scale set IP Configuration.
+ attr_accessor :ip_configurations
+
+
+ #
+ # Mapper for VirtualMachineScaleSetUpdateNetworkConfiguration class as
+ # Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdateNetworkConfiguration',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateNetworkConfiguration',
+ model_properties: {
+ id: {
+ required: false,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ primary: {
+ required: false,
+ serialized_name: 'properties.primary',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ enable_accelerated_networking: {
+ required: false,
+ serialized_name: 'properties.enableAcceleratedNetworking',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ network_security_group: {
+ required: false,
+ serialized_name: 'properties.networkSecurityGroup',
+ type: {
+ name: 'Composite',
+ class_name: 'SubResource'
+ }
+ },
+ dns_settings: {
+ required: false,
+ serialized_name: 'properties.dnsSettings',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetNetworkConfigurationDnsSettings'
+ }
+ },
+ ip_configurations: {
+ required: false,
+ serialized_name: 'properties.ipConfigurations',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdateIPConfigurationElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateIPConfiguration'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb
new file mode 100644
index 0000000000..0ecc1a0dc5
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb
@@ -0,0 +1,54 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Describes a virtual machine scale set network profile.
+ #
+ class VirtualMachineScaleSetUpdateNetworkProfile
+
+ include MsRestAzure
+
+ # @return [Array] The
+ # list of network configurations.
+ attr_accessor :network_interface_configurations
+
+
+ #
+ # Mapper for VirtualMachineScaleSetUpdateNetworkProfile class as Ruby
+ # Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdateNetworkProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateNetworkProfile',
+ model_properties: {
+ network_interface_configurations: {
+ required: false,
+ serialized_name: 'networkInterfaceConfigurations',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdateNetworkConfigurationElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateNetworkConfiguration'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb
new file mode 100644
index 0000000000..7410824a05
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb
@@ -0,0 +1,90 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Describes virtual machine scale set operating system disk Update Object.
+ # This should be used for Updating VMSS OS Disk.
+ #
+ class VirtualMachineScaleSetUpdateOSDisk
+
+ include MsRestAzure
+
+ # @return [CachingTypes] The caching type. Possible values include:
+ # 'None', 'ReadOnly', 'ReadWrite'
+ attr_accessor :caching
+
+ # @return [VirtualHardDisk] The Source User Image VirtualHardDisk. This
+ # VirtualHardDisk will be copied before using it to attach to the Virtual
+ # Machine. If SourceImage is provided, the destination VirtualHardDisk
+ # should not exist.
+ attr_accessor :image
+
+ # @return [Array] The list of virtual hard disk container uris.
+ attr_accessor :vhd_containers
+
+ # @return [VirtualMachineScaleSetManagedDiskParameters] The managed disk
+ # parameters.
+ attr_accessor :managed_disk
+
+
+ #
+ # Mapper for VirtualMachineScaleSetUpdateOSDisk class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdateOSDisk',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateOSDisk',
+ model_properties: {
+ caching: {
+ required: false,
+ serialized_name: 'caching',
+ type: {
+ name: 'Enum',
+ module: 'CachingTypes'
+ }
+ },
+ image: {
+ required: false,
+ serialized_name: 'image',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualHardDisk'
+ }
+ },
+ vhd_containers: {
+ required: false,
+ serialized_name: 'vhdContainers',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ managed_disk: {
+ required: false,
+ serialized_name: 'managedDisk',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetManagedDiskParameters'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb
new file mode 100644
index 0000000000..a231ea1453
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb
@@ -0,0 +1,86 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Describes a virtual machine scale set OS profile.
+ #
+ class VirtualMachineScaleSetUpdateOSProfile
+
+ include MsRestAzure
+
+ # @return [String] A base-64 encoded string of custom data.
+ attr_accessor :custom_data
+
+ # @return [WindowsConfiguration] The Windows Configuration of the OS
+ # profile.
+ attr_accessor :windows_configuration
+
+ # @return [LinuxConfiguration] The Linux Configuration of the OS profile.
+ attr_accessor :linux_configuration
+
+ # @return [Array] The List of certificates for addition
+ # to the VM.
+ attr_accessor :secrets
+
+
+ #
+ # Mapper for VirtualMachineScaleSetUpdateOSProfile class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdateOSProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateOSProfile',
+ model_properties: {
+ custom_data: {
+ required: false,
+ serialized_name: 'customData',
+ type: {
+ name: 'String'
+ }
+ },
+ windows_configuration: {
+ required: false,
+ serialized_name: 'windowsConfiguration',
+ type: {
+ name: 'Composite',
+ class_name: 'WindowsConfiguration'
+ }
+ },
+ linux_configuration: {
+ required: false,
+ serialized_name: 'linuxConfiguration',
+ type: {
+ name: 'Composite',
+ class_name: 'LinuxConfiguration'
+ }
+ },
+ secrets: {
+ required: false,
+ serialized_name: 'secrets',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'VaultSecretGroupElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'VaultSecretGroup'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb
new file mode 100644
index 0000000000..2f1994d06e
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb
@@ -0,0 +1,68 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Describes a virtual machines scale set IP Configuration's PublicIPAddress
+ # configuration
+ #
+ class VirtualMachineScaleSetUpdatePublicIPAddressConfiguration
+
+ include MsRestAzure
+
+ # @return [String] The publicIP address configuration name.
+ attr_accessor :name
+
+ # @return [Integer] The idle timeout of the public IP address.
+ attr_accessor :idle_timeout_in_minutes
+
+ # @return [VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings]
+ # The dns settings to be applied on the publicIP addresses .
+ attr_accessor :dns_settings
+
+
+ #
+ # Mapper for VirtualMachineScaleSetUpdatePublicIPAddressConfiguration
+ # class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdatePublicIPAddressConfiguration',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdatePublicIPAddressConfiguration',
+ model_properties: {
+ name: {
+ required: false,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ idle_timeout_in_minutes: {
+ required: false,
+ serialized_name: 'properties.idleTimeoutInMinutes',
+ type: {
+ name: 'Number'
+ }
+ },
+ dns_settings: {
+ required: false,
+ serialized_name: 'properties.dnsSettings',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb
new file mode 100644
index 0000000000..22f03a98ea
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb
@@ -0,0 +1,75 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Describes a virtual machine scale set storage profile.
+ #
+ class VirtualMachineScaleSetUpdateStorageProfile
+
+ include MsRestAzure
+
+ # @return [ImageReference] The image reference.
+ attr_accessor :image_reference
+
+ # @return [VirtualMachineScaleSetUpdateOSDisk] The OS disk.
+ attr_accessor :os_disk
+
+ # @return [Array] The data disks.
+ attr_accessor :data_disks
+
+
+ #
+ # Mapper for VirtualMachineScaleSetUpdateStorageProfile class as Ruby
+ # Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdateStorageProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateStorageProfile',
+ model_properties: {
+ image_reference: {
+ required: false,
+ serialized_name: 'imageReference',
+ type: {
+ name: 'Composite',
+ class_name: 'ImageReference'
+ }
+ },
+ os_disk: {
+ required: false,
+ serialized_name: 'osDisk',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateOSDisk'
+ }
+ },
+ data_disks: {
+ required: false,
+ serialized_name: 'dataDisks',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetDataDiskElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetDataDisk'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb
new file mode 100644
index 0000000000..82ee089250
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb
@@ -0,0 +1,105 @@
+# 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::ARM::Compute
+ module Models
+ #
+ # Describes a virtual machine scale set virtual machine profile.
+ #
+ class VirtualMachineScaleSetUpdateVMProfile
+
+ include MsRestAzure
+
+ # @return [VirtualMachineScaleSetUpdateOSProfile] The virtual machine
+ # scale set OS profile.
+ attr_accessor :os_profile
+
+ # @return [VirtualMachineScaleSetUpdateStorageProfile] The virtual
+ # machine scale set storage profile.
+ attr_accessor :storage_profile
+
+ # @return [VirtualMachineScaleSetUpdateNetworkProfile] The virtual
+ # machine scale set network profile.
+ attr_accessor :network_profile
+
+ # @return [DiagnosticsProfile] The virtual machine scale set diagnostics
+ # profile.
+ attr_accessor :diagnostics_profile
+
+ # @return [VirtualMachineScaleSetExtensionProfile] The virtual machine
+ # scale set extension profile.
+ attr_accessor :extension_profile
+
+ # @return [String] The license type, which is for bring your own license
+ # scenario.
+ attr_accessor :license_type
+
+
+ #
+ # Mapper for VirtualMachineScaleSetUpdateVMProfile class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'VirtualMachineScaleSetUpdateVMProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateVMProfile',
+ model_properties: {
+ os_profile: {
+ required: false,
+ serialized_name: 'osProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateOSProfile'
+ }
+ },
+ storage_profile: {
+ required: false,
+ serialized_name: 'storageProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateStorageProfile'
+ }
+ },
+ network_profile: {
+ required: false,
+ serialized_name: 'networkProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetUpdateNetworkProfile'
+ }
+ },
+ diagnostics_profile: {
+ required: false,
+ serialized_name: 'diagnosticsProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'DiagnosticsProfile'
+ }
+ },
+ extension_profile: {
+ required: false,
+ serialized_name: 'extensionProfile',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineScaleSetExtensionProfile'
+ }
+ },
+ license_type: {
+ required: false,
+ serialized_name: 'licenseType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb
old mode 100755
new mode 100644
index 170c426641..f338c49c28
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Describes a virtual machine scale set virtual machine.
#
- class VirtualMachineScaleSetVM < MsRestAzure::Resource
+ class VirtualMachineScaleSetVM < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The virtual machine instance ID.
attr_accessor :instance_id
@@ -29,35 +28,61 @@ class VirtualMachineScaleSetVM < MsRestAzure::Resource
# @return [VirtualMachineInstanceView] The virtual machine instance view.
attr_accessor :instance_view
- # @return [HardwareProfile] The hardware profile.
+ # @return [HardwareProfile] Specifies the hardware settings for the
+ # virtual machine.
attr_accessor :hardware_profile
- # @return [StorageProfile] The storage profile.
+ # @return [StorageProfile] Specifies the storage settings for the virtual
+ # machine disks.
attr_accessor :storage_profile
- # @return [OSProfile] The OS profile.
+ # @return [OSProfile] Specifies the operating system settings for the
+ # virtual machine.
attr_accessor :os_profile
- # @return [NetworkProfile] The network profile.
+ # @return [NetworkProfile] Specifies the network interfaces of the
+ # virtual machine.
attr_accessor :network_profile
- # @return [DiagnosticsProfile] The diagnostics profile.
+ # @return [DiagnosticsProfile] Specifies the boot diagnostic settings
+ # state.
Minimum api-version: 2015-06-15.
attr_accessor :diagnostics_profile
- # @return [SubResource] The reference Id of the availability set to which
- # this virtual machine belongs.
+ # @return [SubResource] Specifies information about the availability set
+ # that the virtual machine should be assigned to. Virtual machines
+ # specified in the same availability set are allocated to different nodes
+ # to maximize availability. For more information about availability sets,
+ # see [Manage the availability of virtual
+ # machines](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-manage-availability?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).
+ #
For more information on Azure planned maintainance, see
+ # [Planned maintenance for virtual machines in
+ # Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-planned-maintenance?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ #
Currently, a VM can only be added to availability set at
+ # creation time. An existing VM cannot be added to an availability set.
attr_accessor :availability_set
# @return [String] The provisioning state, which only appears in the
# response.
attr_accessor :provisioning_state
- # @return [String] The license type, which is for bring your own license
- # scenario.
+ # @return [String] Specifies that the image or disk that is being used
+ # was licensed on-premises. This element is only used for images that
+ # contain the Windows Server operating system.
Possible values
+ # are:
Windows_Client
Windows_Server
If this
+ # element is included in a request for an update, the value must match
+ # the initial value. This value cannot be updated.
For more
+ # information, see [Azure Hybrid Use Benefit for Windows
+ # Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ #
Minimum api-version: 2015-06-15
attr_accessor :license_type
- # @return [Plan] The purchase plan when deploying virtual machine from VM
- # Marketplace images.
+ # @return [Plan] Specifies information about the marketplace image used
+ # to create the virtual machine. This element is only used for
+ # marketplace images. Before you can use a marketplace image from an API,
+ # you must enable the image for programmatic use. In the Azure portal,
+ # find the marketplace image that you want to use and then click **Want
+ # to deploy programmatically, Get Started ->**. Enter any required
+ # information and then click **Save**.
attr_accessor :plan
# @return [Array] The virtual machine child
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb
old mode 100755
new mode 100644
index dca596dedd..bae44b7426
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineScaleSetVMExtensionsSummary
include MsRestAzure
- include MsRest::JSONable
# @return [String] The extension name.
attr_accessor :name
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb
old mode 100755
new mode 100644
index afe6ca1cad..f94b84a88e
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineScaleSetVMInstanceIDs
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The virtual machine scale set instance ids.
# Omitting the virtual machine scale set instance ids will result in the
# operation being performed on all virtual machines in the virtual
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb
old mode 100755
new mode 100644
index a003b1947d..d0e4e6277e
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineScaleSetVMInstanceRequiredIDs
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The virtual machine scale set instance ids.
attr_accessor :instance_ids
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb
old mode 100755
new mode 100644
index 0316fb7189..17434b0594
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineScaleSetVMInstanceView
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The Update Domain count.
attr_accessor :platform_update_domain
@@ -33,7 +32,15 @@ class VirtualMachineScaleSetVMInstanceView
# information.
attr_accessor :extensions
- # @return [BootDiagnosticsInstanceView] The boot diagnostics.
+ # @return [VirtualMachineHealthStatus] The health status for the VM.
+ attr_accessor :vm_health
+
+ # @return [BootDiagnosticsInstanceView] Boot Diagnostics is a debugging
+ # feature which allows you to view Console Output and Screenshot to
+ # diagnose VM status.
For Linux Virtual Machines, you can easily
+ # view the output of your console log.
For both Windows and
+ # Linux virtual machines, Azure also enables you to see a screenshot of
+ # the VM from the hypervisor.
attr_accessor :boot_diagnostics
# @return [Array] The resource status information.
@@ -115,6 +122,15 @@ def self.mapper()
}
}
},
+ vm_health: {
+ required: false,
+ read_only: true,
+ serialized_name: 'vmHealth',
+ type: {
+ name: 'Composite',
+ class_name: 'VirtualMachineHealthStatus'
+ }
+ },
boot_diagnostics: {
required: false,
serialized_name: 'bootDiagnostics',
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb
old mode 100755
new mode 100644
index aea6f27c0f..e62c3e75c9
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb
old mode 100755
new mode 100644
index bfbcd65381..7fd12b9258
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,29 +12,36 @@ class VirtualMachineScaleSetVMProfile
include MsRestAzure
- include MsRest::JSONable
- # @return [VirtualMachineScaleSetOSProfile] The virtual machine scale set
- # OS profile.
+ # @return [VirtualMachineScaleSetOSProfile] Specifies the operating
+ # system settings for the virtual machines in the scale set.
attr_accessor :os_profile
- # @return [VirtualMachineScaleSetStorageProfile] The virtual machine
- # scale set storage profile.
+ # @return [VirtualMachineScaleSetStorageProfile] Specifies the storage
+ # settings for the virtual machine disks.
attr_accessor :storage_profile
- # @return [VirtualMachineScaleSetNetworkProfile] The virtual machine
- # scale set network profile.
+ # @return [VirtualMachineScaleSetNetworkProfile] Specifies properties of
+ # the network interfaces of the virtual machines in the scale set.
attr_accessor :network_profile
- # @return [DiagnosticsProfile] The virtual machine scale set diagnostics
- # profile.
+ # @return [DiagnosticsProfile] Specifies the boot diagnostic settings
+ # state.
Minimum api-version: 2015-06-15.
attr_accessor :diagnostics_profile
- # @return [VirtualMachineScaleSetExtensionProfile] The virtual machine
- # scale set extension profile.
+ # @return [VirtualMachineScaleSetExtensionProfile] Specifies a collection
+ # of settings for extensions installed on virtual machines in the scale
+ # set.
attr_accessor :extension_profile
- # @return [String] The license type, which is for bring your own license
- # scenario.
+ # @return [String] Specifies that the image or disk that is being used
+ # was licensed on-premises. This element is only used for images that
+ # contain the Windows Server operating system.
Possible values
+ # are:
Windows_Client
Windows_Server
If this
+ # element is included in a request for an update, the value must match
+ # the initial value. This value cannot be updated.
For more
+ # information, see [Azure Hybrid Use Benefit for Windows
+ # Server](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-hybrid-use-benefit-licensing?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json)
+ #
Minimum api-version: 2015-06-15
attr_accessor :license_type
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb
old mode 100755
new mode 100644
index 6387843e19..4b8087d72b
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineSize
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the virtual machine size.
attr_accessor :name
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb
old mode 100755
new mode 100644
index fde9516584..9b6bbee8e4
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VirtualMachineSizeListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of virtual machine sizes.
attr_accessor :value
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb
old mode 100755
new mode 100644
index c5198b0072..70e75cdcc5
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb
old mode 100755
new mode 100644
index f18d8530d0..22ed6e83d2
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class VirtualMachineStatusCodeCount
include MsRestAzure
- include MsRest::JSONable
# @return [String] The instance view status code.
attr_accessor :code
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb
old mode 100755
new mode 100644
index 2f89926d63..bd4037ba7f
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WinRMConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of Windows Remote Management
# listeners
attr_accessor :listeners
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb
old mode 100755
new mode 100644
index 3a07dff854..d290ed443d
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,13 +12,19 @@ class WinRMListener
include MsRestAzure
- include MsRest::JSONable
- # @return [ProtocolTypes] The Protocol used by the WinRM listener. Http
- # and Https are supported. Possible values include: 'Http', 'Https'
+ # @return [ProtocolTypes] Specifies the protocol of listener.
+ # Possible values are:
**http**
**https**. Possible values
+ # include: 'Http', 'Https'
attr_accessor :protocol
- # @return [String] The Certificate URL in KMS for Https listeners. Should
- # be null for Http listeners.
+ # @return [String] This is the URL of a certificate that has been
+ # uploaded to Key Vault as a secret. For adding a secret to the Key
+ # Vault, see [Add a key or secret to the key
+ # vault](https://docs.microsoft.com/azure/key-vault/key-vault-get-started/#add).
+ # In this case, your certificate needs to be It is the Base64 encoding of
+ # the following JSON Object which is encoded in UTF-8:
{
+ # "data":"",
"dataType":"pfx",
+ # "password":""
}
attr_accessor :certificate_url
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/windows_configuration.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/windows_configuration.rb
old mode 100755
new mode 100644
index 9e0ea6e883..2d209466a8
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/windows_configuration.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/models/windows_configuration.rb
@@ -1,37 +1,39 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
module Models
#
- # Describes Windows Configuration of the OS Profile.
+ # Specifies Windows operating system settings on the virtual machine.
#
class WindowsConfiguration
include MsRestAzure
- include MsRest::JSONable
- # @return [Boolean] Indicates whether the virtual machine agent should be
- # provisioned on the Virtual Machine. If not specified, then the default
- # behavior is to set it to true.
+ # @return [Boolean] Indicates whether virtual machine agent should be
+ # provisioned on the virtual machine.
When this property is not
+ # specified in the request body, default behavior is to set it to true.
+ # This will ensure that VM Agent is installed on the VM so that
+ # extensions can be added to the VM later.
attr_accessor :provision_vmagent
- # @return [Boolean] Indicates whether Windows updates are automatically
- # installed on the VM.
+ # @return [Boolean] Indicates whether virtual machine is enabled for
+ # automatic updates.
attr_accessor :enable_automatic_updates
- # @return [String] The time zone of the VM
+ # @return [String] Specifies the time zone of the virtual machine. e.g.
+ # "Pacific Standard Time"
attr_accessor :time_zone
- # @return [Array] Additional base-64 encoded
- # XML formatted information that can be included in the Unattend.xml
- # file.
+ # @return [Array] Specifies additional base-64
+ # encoded XML formatted information that can be included in the
+ # Unattend.xml file, which is used by Windows Setup.
attr_accessor :additional_unattend_content
- # @return [WinRMConfiguration] The Windows Remote Management
- # configuration of the VM
+ # @return [WinRMConfiguration] Specifies the Windows Remote Management
+ # listeners. This enables remote Windows PowerShell.
attr_accessor :win_rm
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/module_definition.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/module_definition.rb
old mode 100755
new mode 100644
index 4a5fbc49e5..6c40a5ec65
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/module_definition.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/resource_skus.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/resource_skus.rb
old mode 100755
new mode 100644
index 58b1b67bf6..5688eab5ce
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/resource_skus.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/resource_skus.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/snapshots.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/snapshots.rb
old mode 100755
new mode 100644
index 58dd75f6a0..e3545f8a07
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/snapshots.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/snapshots.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/usage_operations.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/usage_operations.rb
old mode 100755
new mode 100644
index ff522ef436..0dccfd8582
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/usage_operations.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/usage_operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/version.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/version.rb
old mode 100755
new mode 100644
index 42f478373e..0fca5dc5af
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/version.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Compute
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb
old mode 100755
new mode 100644
index 7c67025fe3..03324c031b
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb
old mode 100755
new mode 100644
index ae472d3b50..dff7e0a929
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_images.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_images.rb
old mode 100755
new mode 100644
index 86e4de3e85..af3d4de261
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_images.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_images.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_run_commands.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_run_commands.rb
old mode 100755
new mode 100644
index 0a0ca00dfc..f13c59d82a
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_run_commands.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_run_commands.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb
old mode 100755
new mode 100644
index 02f4ec1866..64e37bb6a0
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb
new file mode 100644
index 0000000000..a3558f6ede
--- /dev/null
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb
@@ -0,0 +1,390 @@
+# 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::ARM::Compute
+ #
+ # Compute Client
+ #
+ class VirtualMachineScaleSetRollingUpgrades
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the VirtualMachineScaleSetRollingUpgrades class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [ComputeManagementClient] reference to the ComputeManagementClient
+ attr_reader :client
+
+ #
+ # Cancels the current virtual machine scale set rolling upgrade.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationStatusResponse] operation results.
+ #
+ def cancel(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ response = cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def cancel_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ # Send request
+ promise = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Starts a rolling upgrade to move all virtual machine scale set instances to
+ # the latest available Platform Image OS version. Instances which are already
+ # running the latest available OS version are not affected.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationStatusResponse] operation results.
+ #
+ def start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ response = start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ # Send request
+ promise = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Gets the status of the latest virtual machine scale set rolling upgrade.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [RollingUpgradeStatusInfo] operation results.
+ #
+ def get_latest(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ response = get_latest_async(resource_group_name, vm_scale_set_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the status of the latest virtual machine scale set rolling upgrade.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_latest_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ get_latest_async(resource_group_name, vm_scale_set_name, custom_headers).value!
+ end
+
+ #
+ # Gets the status of the latest virtual machine scale set rolling upgrade.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_latest_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
+ api_version = '2017-03-30'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Compute::Models::RollingUpgradeStatusInfo.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Cancels the current virtual machine scale set rolling upgrade.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationStatusResponse] operation results.
+ #
+ def begin_cancel(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ response = begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Cancels the current virtual machine scale set rolling upgrade.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_cancel_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers).value!
+ end
+
+ #
+ # Cancels the current virtual machine scale set rolling upgrade.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_cancel_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
+ api_version = '2017-03-30'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 202
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Starts a rolling upgrade to move all virtual machine scale set instances to
+ # the latest available Platform Image OS version. Instances which are already
+ # running the latest available OS version are not affected.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationStatusResponse] operation results.
+ #
+ def begin_start_osupgrade(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ response = begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Starts a rolling upgrade to move all virtual machine scale set instances to
+ # the latest available Platform Image OS version. Instances which are already
+ # running the latest available OS version are not affected.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_start_osupgrade_with_http_info(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers).value!
+ end
+
+ #
+ # Starts a rolling upgrade to move all virtual machine scale set instances to
+ # the latest available Platform Image OS version. Instances which are already
+ # running the latest available OS version are not affected.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_start_osupgrade_async(resource_group_name, vm_scale_set_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
+ api_version = '2017-03-30'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 202
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Compute::Models::OperationStatusResponse.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb
old mode 100755
new mode 100644
index c11e7eca80..1792e4af7d
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb
old mode 100755
new mode 100644
index 003572f3df..d0a56cd020
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -67,6 +67,52 @@ def create_or_update_async(resource_group_name, vm_scale_set_name, parameters, c
promise
end
+ #
+ # Update a VM scale set.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
+ # update.
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [VirtualMachineScaleSet] operation results.
+ #
+ def update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
+ response = update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
+ # update.
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
+ # Send request
+ promise = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::Compute::Models::VirtualMachineScaleSet.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
#
# Deletes a VM scale set.
#
@@ -1056,6 +1102,113 @@ def begin_create_or_update_async(resource_group_name, vm_scale_set_name, paramet
promise.execute
end
+ #
+ # Update a VM scale set.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
+ # update.
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [VirtualMachineScaleSet] operation results.
+ #
+ def begin_update(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
+ response = begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Update a VM scale set.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
+ # update.
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_update_with_http_info(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
+ begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers).value!
+ end
+
+ #
+ # Update a VM scale set.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_scale_set_name [String] The name of the VM scale set to create or
+ # update.
+ # @param parameters [VirtualMachineScaleSetUpdate] The scale set object.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_update_async(resource_group_name, vm_scale_set_name, parameters, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'vm_scale_set_name is nil' if vm_scale_set_name.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
+ api_version = '2017-03-30'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::Compute::Models::VirtualMachineScaleSetUpdate.mapper()
+ request_content = @client.serialize(request_mapper, parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'vmScaleSetName' => vm_scale_set_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:patch, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Compute::Models::VirtualMachineScaleSet.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
#
# Deletes a VM scale set.
#
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb
old mode 100755
new mode 100644
index 1ef6cd8ff2..bfb41287b6
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machines.rb b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machines.rb
old mode 100755
new mode 100644
index 8176788977..a6252e6c2a
--- a/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machines.rb
+++ b/management/azure_mgmt_compute/lib/generated/azure_mgmt_compute/virtual_machines.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -256,6 +256,97 @@ def get_async(resource_group_name, vm_name, expand = nil, custom_headers = nil)
promise.execute
end
+ #
+ # Retrieves information about the run-time state of a virtual machine.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_name [String] The name of the virtual machine.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [VirtualMachineInstanceView] operation results.
+ #
+ def instance_view(resource_group_name, vm_name, custom_headers = nil)
+ response = instance_view_async(resource_group_name, vm_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Retrieves information about the run-time state of a virtual machine.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_name [String] The name of the virtual machine.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def instance_view_with_http_info(resource_group_name, vm_name, custom_headers = nil)
+ instance_view_async(resource_group_name, vm_name, custom_headers).value!
+ end
+
+ #
+ # Retrieves information about the run-time state of a virtual machine.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param vm_name [String] The name of the virtual machine.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def instance_view_async(resource_group_name, vm_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'vm_name is nil' if vm_name.nil?
+ api_version = '2017-03-30'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Compute/virtualMachines/{vmName}/instanceView'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'vmName' => vm_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Compute::Models::VirtualMachineInstanceView.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
#
# Converts virtual machine disks from blob-based to managed disks. Virtual
# machine must be stop-deallocated before invoking this operation.
diff --git a/management/azure_mgmt_compute/spec/virtual_machines_spec.rb b/management/azure_mgmt_compute/spec/virtual_machines_spec.rb
index 9aa90e0f7f..6505583e1f 100644
--- a/management/azure_mgmt_compute/spec/virtual_machines_spec.rb
+++ b/management/azure_mgmt_compute/spec/virtual_machines_spec.rb
@@ -113,11 +113,11 @@
ni = network_client.make_request(:get, ni_path, options)
expect(ni).not_to be_nil
# user NetworkInterface mapper to deserialize object
- ni_instance = NetworkInterface.new.from_json(ni)
+ ni_instance = network_client.deserialize(NetworkInterface.mapper(), ni)
# retrieve first IP address for first IP configuration
ip_address_path = ni_instance.ip_configurations[0].public_ipaddress.id
ip_address = network_client.make_request(:get, ip_address_path, options)
- ip_address_instance = PublicIPAddress.new.from_json(ip_address)
+ ip_address_instance = network_client.deserialize(PublicIPAddress.mapper(), ip_address)
expect(ip_address_instance.dns_settings.fqdn).to eq("testdomain53464.westus.cloudapp.azure.com")
end
@@ -135,7 +135,8 @@
result = @resource_helper.network_client.network_interfaces.list_all
result.each do |network_interface|
- expect(network_interface.virtual_machine).to be_an_instance_of(MsRestAzure::SubResource)
+ #Refer specification: https://github.com/Azure/azure-rest-api-specs/blob/ec9a03762fc8fd58fbee71cdbd18d1f4b28f168f/specification/network/resource-manager/Microsoft.Network/2017-09-01/networkInterface.json#L624
+ expect(network_interface.virtual_machine).to be_an_instance_of(Azure::ARM::Network::Models::SubResource)
end
end
diff --git a/management/azure_mgmt_container_registry/.rspec b/management/azure_mgmt_container_registry/.rspec
new file mode 100644
index 0000000000..f6f85f5be0
--- /dev/null
+++ b/management/azure_mgmt_container_registry/.rspec
@@ -0,0 +1,3 @@
+--require spec_helper
+--color
+--format documentation
\ No newline at end of file
diff --git a/management/azure_mgmt_container_registry/LICENSE.txt b/management/azure_mgmt_container_registry/LICENSE.txt
new file mode 100644
index 0000000000..d5b09a3830
--- /dev/null
+++ b/management/azure_mgmt_container_registry/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Microsoft Corporation
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
\ No newline at end of file
diff --git a/management/azure_mgmt_container_registry/Rakefile b/management/azure_mgmt_container_registry/Rakefile
new file mode 100644
index 0000000000..ccbf835904
--- /dev/null
+++ b/management/azure_mgmt_container_registry/Rakefile
@@ -0,0 +1,5 @@
+# encoding: utf-8
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+
+require "bundler/gem_tasks"
diff --git a/management/azure_mgmt_container_registry/azure_mgmt_container_registry.gemspec b/management/azure_mgmt_container_registry/azure_mgmt_container_registry.gemspec
new file mode 100644
index 0000000000..e10021b500
--- /dev/null
+++ b/management/azure_mgmt_container_registry/azure_mgmt_container_registry.gemspec
@@ -0,0 +1,34 @@
+# encoding: utf-8
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+
+require 'generated/azure_mgmt_container_registry/module_definition'
+require 'generated/azure_mgmt_container_registry/version'
+
+Gem::Specification.new do |spec|
+ spec.name = 'azure_mgmt_container_registry'
+ spec.version = Azure::ARM::ContainerRegistry::VERSION
+ spec.authors = 'Microsoft Corporation'
+ spec.email = 'azrubyteam@microsoft.com'
+ spec.description = 'Microsoft Azure Container Registry Management Client Library for Ruby'
+ spec.summary = 'Official Ruby client library to consume Microsoft Azure Container Registry Management services.'
+ spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
+ spec.license = 'MIT'
+
+ spec.files = Dir["LICENSE.txt", "lib/**/*"]
+ spec.bindir = 'bin'
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
+ spec.require_paths = ['lib']
+
+ spec.required_ruby_version = '>= 2.0.0'
+
+ spec.add_development_dependency 'bundler', '~> 1.9'
+ spec.add_development_dependency 'rake', '~> 10'
+ spec.add_development_dependency 'rspec', '~> 3'
+ spec.add_development_dependency 'dotenv', '~> 2'
+
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
+end
diff --git a/management/azure_mgmt_container_registry/lib/azure_mgmt_container_registry.rb b/management/azure_mgmt_container_registry/lib/azure_mgmt_container_registry.rb
new file mode 100644
index 0000000000..6676217f74
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/azure_mgmt_container_registry.rb
@@ -0,0 +1,5 @@
+# encoding: utf-8
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+
+require 'generated/azure_mgmt_container_registry'
\ No newline at end of file
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry.rb
new file mode 100644
index 0000000000..60c8868494
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry.rb
@@ -0,0 +1,73 @@
+# 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.
+
+require 'uri'
+require 'cgi'
+require 'date'
+require 'json'
+require 'base64'
+require 'erb'
+require 'securerandom'
+require 'time'
+require 'timeliness'
+require 'faraday'
+require 'faraday-cookie_jar'
+require 'concurrent'
+require 'ms_rest'
+require 'generated/azure_mgmt_container_registry/module_definition'
+require 'ms_rest_azure'
+
+module Azure::ARM::ContainerRegistry
+ autoload :Registries, 'generated/azure_mgmt_container_registry/registries.rb'
+ autoload :Operations, 'generated/azure_mgmt_container_registry/operations.rb'
+ autoload :Replications, 'generated/azure_mgmt_container_registry/replications.rb'
+ autoload :Webhooks, 'generated/azure_mgmt_container_registry/webhooks.rb'
+ autoload :ContainerRegistryManagementClient, 'generated/azure_mgmt_container_registry/container_registry_management_client.rb'
+
+ module Models
+ autoload :ReplicationUpdateParameters, 'generated/azure_mgmt_container_registry/models/replication_update_parameters.rb'
+ autoload :ReplicationListResult, 'generated/azure_mgmt_container_registry/models/replication_list_result.rb'
+ autoload :RegistryNameStatus, 'generated/azure_mgmt_container_registry/models/registry_name_status.rb'
+ autoload :OperationDisplayDefinition, 'generated/azure_mgmt_container_registry/models/operation_display_definition.rb'
+ autoload :OperationDefinition, 'generated/azure_mgmt_container_registry/models/operation_definition.rb'
+ autoload :Sku, 'generated/azure_mgmt_container_registry/models/sku.rb'
+ autoload :WebhookCreateParameters, 'generated/azure_mgmt_container_registry/models/webhook_create_parameters.rb'
+ autoload :StorageAccountProperties, 'generated/azure_mgmt_container_registry/models/storage_account_properties.rb'
+ autoload :WebhookUpdateParameters, 'generated/azure_mgmt_container_registry/models/webhook_update_parameters.rb'
+ autoload :RegistryUpdateParameters, 'generated/azure_mgmt_container_registry/models/registry_update_parameters.rb'
+ autoload :WebhookListResult, 'generated/azure_mgmt_container_registry/models/webhook_list_result.rb'
+ autoload :RegistryPassword, 'generated/azure_mgmt_container_registry/models/registry_password.rb'
+ autoload :EventInfo, 'generated/azure_mgmt_container_registry/models/event_info.rb'
+ autoload :RegenerateCredentialParameters, 'generated/azure_mgmt_container_registry/models/regenerate_credential_parameters.rb'
+ autoload :CallbackConfig, 'generated/azure_mgmt_container_registry/models/callback_config.rb'
+ autoload :RegistryUsageListResult, 'generated/azure_mgmt_container_registry/models/registry_usage_list_result.rb'
+ autoload :Target, 'generated/azure_mgmt_container_registry/models/target.rb'
+ autoload :RegistryNameCheckRequest, 'generated/azure_mgmt_container_registry/models/registry_name_check_request.rb'
+ autoload :Request, 'generated/azure_mgmt_container_registry/models/request.rb'
+ autoload :Status, 'generated/azure_mgmt_container_registry/models/status.rb'
+ autoload :Actor, 'generated/azure_mgmt_container_registry/models/actor.rb'
+ autoload :RegistryListResult, 'generated/azure_mgmt_container_registry/models/registry_list_result.rb'
+ autoload :Source, 'generated/azure_mgmt_container_registry/models/source.rb'
+ autoload :RegistryUsage, 'generated/azure_mgmt_container_registry/models/registry_usage.rb'
+ autoload :EventContent, 'generated/azure_mgmt_container_registry/models/event_content.rb'
+ autoload :OperationListResult, 'generated/azure_mgmt_container_registry/models/operation_list_result.rb'
+ autoload :EventRequestMessage, 'generated/azure_mgmt_container_registry/models/event_request_message.rb'
+ autoload :RegistryListCredentialsResult, 'generated/azure_mgmt_container_registry/models/registry_list_credentials_result.rb'
+ autoload :EventResponseMessage, 'generated/azure_mgmt_container_registry/models/event_response_message.rb'
+ autoload :EventListResult, 'generated/azure_mgmt_container_registry/models/event_list_result.rb'
+ autoload :Resource, 'generated/azure_mgmt_container_registry/models/resource.rb'
+ autoload :Registry, 'generated/azure_mgmt_container_registry/models/registry.rb'
+ autoload :Replication, 'generated/azure_mgmt_container_registry/models/replication.rb'
+ autoload :Webhook, 'generated/azure_mgmt_container_registry/models/webhook.rb'
+ autoload :Event, 'generated/azure_mgmt_container_registry/models/event.rb'
+ autoload :SkuName, 'generated/azure_mgmt_container_registry/models/sku_name.rb'
+ autoload :SkuTier, 'generated/azure_mgmt_container_registry/models/sku_tier.rb'
+ autoload :ProvisioningState, 'generated/azure_mgmt_container_registry/models/provisioning_state.rb'
+ autoload :PasswordName, 'generated/azure_mgmt_container_registry/models/password_name.rb'
+ autoload :RegistryUsageUnit, 'generated/azure_mgmt_container_registry/models/registry_usage_unit.rb'
+ autoload :WebhookStatus, 'generated/azure_mgmt_container_registry/models/webhook_status.rb'
+ autoload :WebhookAction, 'generated/azure_mgmt_container_registry/models/webhook_action.rb'
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/container_registry_management_client.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/container_registry_management_client.rb
new file mode 100644
index 0000000000..8e88fa8ce6
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/container_registry_management_client.rb
@@ -0,0 +1,141 @@
+# 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::ARM::ContainerRegistry
+ #
+ # A service client - single point of access to the REST API.
+ #
+ class ContainerRegistryManagementClient < MsRestAzure::AzureServiceClient
+ include MsRestAzure
+ include MsRestAzure::Serialization
+
+ # @return [String] the base URI of the service.
+ attr_accessor :base_url
+
+ # @return Credentials needed for the client to connect to Azure.
+ attr_reader :credentials
+
+ # @return [String] The Microsoft Azure subscription ID.
+ attr_accessor :subscription_id
+
+ # @return [String] The client API version.
+ attr_reader :api_version
+
+ # @return [String] Gets or sets the preferred language for the response.
+ attr_accessor :accept_language
+
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
+ # Running Operations. Default value is 30.
+ attr_accessor :long_running_operation_retry_timeout
+
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
+ # is generated and included in each request. Default is true.
+ attr_accessor :generate_client_request_id
+
+ # @return [Registries] registries
+ attr_reader :registries
+
+ # @return [Operations] operations
+ attr_reader :operations
+
+ # @return [Replications] replications
+ attr_reader :replications
+
+ # @return [Webhooks] webhooks
+ attr_reader :webhooks
+
+ #
+ # Creates initializes a new instance of the ContainerRegistryManagementClient class.
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
+ # @param base_url [String] the base URI of the service.
+ # @param options [Array] filters to be applied to the HTTP requests.
+ #
+ def initialize(credentials = nil, base_url = nil, options = nil)
+ super(credentials, options)
+ @base_url = base_url || 'https://management.azure.com'
+
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
+ @credentials = credentials
+
+ @registries = Registries.new(self)
+ @operations = Operations.new(self)
+ @replications = Replications.new(self)
+ @webhooks = Webhooks.new(self)
+ @api_version = '2017-10-01'
+ @accept_language = 'en-US'
+ @long_running_operation_retry_timeout = 30
+ @generate_client_request_id = true
+ add_telemetry
+ end
+
+ #
+ # Makes a request and returns the body of the response.
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
+ # @param path [String] the path, relative to {base_url}.
+ # @param options [Hash{String=>String}] specifying any request options like :body.
+ # @return [Hash{String=>String}] containing the body of the response.
+ # Example:
+ #
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
+ # path = "/path"
+ # options = {
+ # body: request_content,
+ # query_params: {'api-version' => '2016-02-01'}
+ # }
+ # result = @client.make_request(:put, path, options)
+ #
+ def make_request(method, path, options = {})
+ result = make_request_with_http_info(method, path, options)
+ result.body unless result.nil?
+ end
+
+ #
+ # Makes a request and returns the operation response.
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
+ # @param path [String] the path, relative to {base_url}.
+ # @param options [Hash{String=>String}] specifying any request options like :body.
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
+ #
+ def make_request_with_http_info(method, path, options = {})
+ result = make_request_async(method, path, options).value!
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
+ result
+ end
+
+ #
+ # Makes a request asynchronously.
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
+ # @param path [String] the path, relative to {base_url}.
+ # @param options [Hash{String=>String}] specifying any request options like :body.
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def make_request_async(method, path, options = {})
+ fail ArgumentError, 'method is nil' if method.nil?
+ fail ArgumentError, 'path is nil' if path.nil?
+
+ request_url = options[:base_url] || @base_url
+
+ request_headers = @request_headers
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
+
+ super(request_url, method, path, options)
+ end
+
+
+ private
+ #
+ # Adds telemetry information.
+ #
+ def add_telemetry
+ sdk_information = 'azure_mgmt_container_registry'
+ if defined? Azure::ARM::ContainerRegistry::VERSION
+ sdk_information = "#{sdk_information}/#{Azure::ARM::ContainerRegistry::VERSION}"
+ end
+ add_user_agent_information(sdk_information)
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/actor.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/actor.rb
new file mode 100644
index 0000000000..f164a4a457
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/actor.rb
@@ -0,0 +1,46 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The agent that initiated the event. For most situations, this could be
+ # from the authorization context of the request.
+ #
+ class Actor
+
+ include MsRestAzure
+
+ # @return [String] The subject or username associated with the request
+ # context that generated the event.
+ attr_accessor :name
+
+
+ #
+ # Mapper for Actor class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Actor',
+ type: {
+ name: 'Composite',
+ class_name: 'Actor',
+ model_properties: {
+ name: {
+ required: false,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/callback_config.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/callback_config.rb
new file mode 100644
index 0000000000..bfaf01c1a6
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/callback_config.rb
@@ -0,0 +1,62 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The configuration of service URI and custom headers for the webhook.
+ #
+ class CallbackConfig
+
+ include MsRestAzure
+
+ # @return [String] The service URI for the webhook to post notifications.
+ attr_accessor :service_uri
+
+ # @return [Hash{String => String}] Custom headers that will be added to
+ # the webhook notifications.
+ attr_accessor :custom_headers
+
+
+ #
+ # Mapper for CallbackConfig class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CallbackConfig',
+ type: {
+ name: 'Composite',
+ class_name: 'CallbackConfig',
+ model_properties: {
+ service_uri: {
+ required: true,
+ serialized_name: 'serviceUri',
+ type: {
+ name: 'String'
+ }
+ },
+ custom_headers: {
+ required: false,
+ serialized_name: 'customHeaders',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event.rb
new file mode 100644
index 0000000000..7507e65748
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event.rb
@@ -0,0 +1,65 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The event for a webhook.
+ #
+ class Event < EventInfo
+
+ include MsRestAzure
+
+ # @return [EventRequestMessage] The event request message sent to the
+ # service URI.
+ attr_accessor :event_request_message
+
+ # @return [EventResponseMessage] The event response message received from
+ # the service URI.
+ attr_accessor :event_response_message
+
+
+ #
+ # Mapper for Event class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Event',
+ type: {
+ name: 'Composite',
+ class_name: 'Event',
+ model_properties: {
+ id: {
+ required: false,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ event_request_message: {
+ required: false,
+ serialized_name: 'eventRequestMessage',
+ type: {
+ name: 'Composite',
+ class_name: 'EventRequestMessage'
+ }
+ },
+ event_response_message: {
+ required: false,
+ serialized_name: 'eventResponseMessage',
+ type: {
+ name: 'Composite',
+ class_name: 'EventResponseMessage'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_content.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_content.rb
new file mode 100644
index 0000000000..f1c94ac020
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_content.rb
@@ -0,0 +1,112 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The content of the event request message.
+ #
+ class EventContent
+
+ include MsRestAzure
+
+ # @return [String] The event ID.
+ attr_accessor :id
+
+ # @return [DateTime] The time at which the event occurred.
+ attr_accessor :timestamp
+
+ # @return [String] The action that encompasses the provided event.
+ attr_accessor :action
+
+ # @return [Target] The target of the event.
+ attr_accessor :target
+
+ # @return [Request] The request that generated the event.
+ attr_accessor :request
+
+ # @return [Actor] The agent that initiated the event. For most
+ # situations, this could be from the authorization context of the
+ # request.
+ attr_accessor :actor
+
+ # @return [Source] The registry node that generated the event. Put
+ # differently, while the actor initiates the event, the source generates
+ # it.
+ attr_accessor :source
+
+
+ #
+ # Mapper for EventContent class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'EventContent',
+ type: {
+ name: 'Composite',
+ class_name: 'EventContent',
+ model_properties: {
+ id: {
+ required: false,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ timestamp: {
+ required: false,
+ serialized_name: 'timestamp',
+ type: {
+ name: 'DateTime'
+ }
+ },
+ action: {
+ required: false,
+ serialized_name: 'action',
+ type: {
+ name: 'String'
+ }
+ },
+ target: {
+ required: false,
+ serialized_name: 'target',
+ type: {
+ name: 'Composite',
+ class_name: 'Target'
+ }
+ },
+ request: {
+ required: false,
+ serialized_name: 'request',
+ type: {
+ name: 'Composite',
+ class_name: 'Request'
+ }
+ },
+ actor: {
+ required: false,
+ serialized_name: 'actor',
+ type: {
+ name: 'Composite',
+ class_name: 'Actor'
+ }
+ },
+ source: {
+ required: false,
+ serialized_name: 'source',
+ type: {
+ name: 'Composite',
+ class_name: 'Source'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_info.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_info.rb
new file mode 100644
index 0000000000..db8f3b2ffb
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_info.rb
@@ -0,0 +1,44 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The basic information of an event.
+ #
+ class EventInfo
+
+ include MsRestAzure
+
+ # @return [String] The event ID.
+ attr_accessor :id
+
+
+ #
+ # Mapper for EventInfo class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'EventInfo',
+ type: {
+ name: 'Composite',
+ class_name: 'EventInfo',
+ model_properties: {
+ id: {
+ required: false,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_list_result.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_list_result.rb
new file mode 100644
index 0000000000..a38292458f
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_list_result.rb
@@ -0,0 +1,97 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The result of a request to list events for a webhook.
+ #
+ class EventListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] The list of events. Since this list may be
+ # incomplete, the nextLink field should be used to request the next list
+ # of events.
+ attr_accessor :value
+
+ # @return [String] The URI that can be used to request the next list of
+ # events.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [EventListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for EventListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'EventListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'EventListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'EventElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'Event'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_request_message.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_request_message.rb
new file mode 100644
index 0000000000..42fa1e4db9
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_request_message.rb
@@ -0,0 +1,94 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The event request message sent to the service URI.
+ #
+ class EventRequestMessage
+
+ include MsRestAzure
+
+ # @return [EventContent] The content of the event request message.
+ attr_accessor :content
+
+ # @return [Hash{String => String}] The headers of the event request
+ # message.
+ attr_accessor :headers
+
+ # @return [String] The HTTP method used to send the event request
+ # message.
+ attr_accessor :method
+
+ # @return [String] The URI used to send the event request message.
+ attr_accessor :request_uri
+
+ # @return [String] The HTTP message version.
+ attr_accessor :version
+
+
+ #
+ # Mapper for EventRequestMessage class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'EventRequestMessage',
+ type: {
+ name: 'Composite',
+ class_name: 'EventRequestMessage',
+ model_properties: {
+ content: {
+ required: false,
+ serialized_name: 'content',
+ type: {
+ name: 'Composite',
+ class_name: 'EventContent'
+ }
+ },
+ headers: {
+ required: false,
+ serialized_name: 'headers',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ method: {
+ required: false,
+ serialized_name: 'method',
+ type: {
+ name: 'String'
+ }
+ },
+ request_uri: {
+ required: false,
+ serialized_name: 'requestUri',
+ type: {
+ name: 'String'
+ }
+ },
+ version: {
+ required: false,
+ serialized_name: 'version',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_response_message.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_response_message.rb
new file mode 100644
index 0000000000..165aa4bb3b
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/event_response_message.rb
@@ -0,0 +1,92 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The event response message received from the service URI.
+ #
+ class EventResponseMessage
+
+ include MsRestAzure
+
+ # @return [String] The content of the event response message.
+ attr_accessor :content
+
+ # @return [Hash{String => String}] The headers of the event response
+ # message.
+ attr_accessor :headers
+
+ # @return [String] The reason phrase of the event response message.
+ attr_accessor :reason_phrase
+
+ # @return [String] The status code of the event response message.
+ attr_accessor :status_code
+
+ # @return [String] The HTTP message version.
+ attr_accessor :version
+
+
+ #
+ # Mapper for EventResponseMessage class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'EventResponseMessage',
+ type: {
+ name: 'Composite',
+ class_name: 'EventResponseMessage',
+ model_properties: {
+ content: {
+ required: false,
+ serialized_name: 'content',
+ type: {
+ name: 'String'
+ }
+ },
+ headers: {
+ required: false,
+ serialized_name: 'headers',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ reason_phrase: {
+ required: false,
+ serialized_name: 'reasonPhrase',
+ type: {
+ name: 'String'
+ }
+ },
+ status_code: {
+ required: false,
+ serialized_name: 'statusCode',
+ type: {
+ name: 'String'
+ }
+ },
+ version: {
+ required: false,
+ serialized_name: 'version',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/operation_definition.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/operation_definition.rb
new file mode 100644
index 0000000000..9c082fdaac
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/operation_definition.rb
@@ -0,0 +1,56 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The definition of a container registry operation.
+ #
+ class OperationDefinition
+
+ include MsRestAzure
+
+ # @return [String] Operation name: {provider}/{resource}/{operation}.
+ attr_accessor :name
+
+ # @return [OperationDisplayDefinition] The display information for the
+ # container registry operation.
+ attr_accessor :display
+
+
+ #
+ # Mapper for OperationDefinition class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'OperationDefinition',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDefinition',
+ model_properties: {
+ name: {
+ required: false,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ display: {
+ required: false,
+ serialized_name: 'display',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplayDefinition'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/operation_display_definition.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/operation_display_definition.rb
new file mode 100644
index 0000000000..4a6b018558
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/operation_display_definition.rb
@@ -0,0 +1,75 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The display information for a container registry operation.
+ #
+ class OperationDisplayDefinition
+
+ include MsRestAzure
+
+ # @return [String] The resource provider name:
+ # Microsoft.ContainerRegistry.
+ attr_accessor :provider
+
+ # @return [String] The resource on which the operation is performed.
+ attr_accessor :resource
+
+ # @return [String] The operation that users can perform.
+ attr_accessor :operation
+
+ # @return [String] The description for the operation.
+ attr_accessor :description
+
+
+ #
+ # Mapper for OperationDisplayDefinition class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'OperationDisplayDefinition',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplayDefinition',
+ model_properties: {
+ provider: {
+ required: false,
+ serialized_name: 'provider',
+ type: {
+ name: 'String'
+ }
+ },
+ resource: {
+ required: false,
+ serialized_name: 'resource',
+ type: {
+ name: 'String'
+ }
+ },
+ operation: {
+ required: false,
+ serialized_name: 'operation',
+ type: {
+ name: 'String'
+ }
+ },
+ description: {
+ required: false,
+ serialized_name: 'description',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/operation_list_result.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/operation_list_result.rb
new file mode 100644
index 0000000000..85c87d5427
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/operation_list_result.rb
@@ -0,0 +1,97 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The result of a request to list container registry operations.
+ #
+ class OperationListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] The list of container registry
+ # operations. Since this list may be incomplete, the nextLink field
+ # should be used to request the next list of operations.
+ attr_accessor :value
+
+ # @return [String] The URI that can be used to request the next list of
+ # container registry operations.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [OperationListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for OperationListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'OperationListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'OperationDefinitionElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDefinition'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/password_name.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/password_name.rb
new file mode 100644
index 0000000000..352697d16c
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/password_name.rb
@@ -0,0 +1,16 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # Defines values for PasswordName
+ #
+ module PasswordName
+ Password = "password"
+ Password2 = "password2"
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/provisioning_state.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/provisioning_state.rb
new file mode 100644
index 0000000000..1eaa85ff8a
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/provisioning_state.rb
@@ -0,0 +1,20 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # Defines values for ProvisioningState
+ #
+ module ProvisioningState
+ Creating = "Creating"
+ Updating = "Updating"
+ Deleting = "Deleting"
+ Succeeded = "Succeeded"
+ Failed = "Failed"
+ Canceled = "Canceled"
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/regenerate_credential_parameters.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/regenerate_credential_parameters.rb
new file mode 100644
index 0000000000..6842b40fe1
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/regenerate_credential_parameters.rb
@@ -0,0 +1,47 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The parameters used to regenerate the login credential.
+ #
+ class RegenerateCredentialParameters
+
+ include MsRestAzure
+
+ # @return [PasswordName] Specifies name of the password which should be
+ # regenerated -- password or password2. Possible values include:
+ # 'password', 'password2'
+ attr_accessor :name
+
+
+ #
+ # Mapper for RegenerateCredentialParameters class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RegenerateCredentialParameters',
+ type: {
+ name: 'Composite',
+ class_name: 'RegenerateCredentialParameters',
+ model_properties: {
+ name: {
+ required: true,
+ serialized_name: 'name',
+ type: {
+ name: 'Enum',
+ module: 'PasswordName'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry.rb
new file mode 100644
index 0000000000..fecc091154
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry.rb
@@ -0,0 +1,164 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # An object that represents a container registry.
+ #
+ class Registry < Resource
+
+ include MsRestAzure
+
+ # @return [Sku] The SKU of the container registry.
+ attr_accessor :sku
+
+ # @return [String] The URL that can be used to log into the container
+ # registry.
+ attr_accessor :login_server
+
+ # @return [DateTime] The creation date of the container registry in
+ # ISO8601 format.
+ attr_accessor :creation_date
+
+ # @return [ProvisioningState] The provisioning state of the container
+ # registry at the time the operation was called. Possible values include:
+ # 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
+ attr_accessor :provisioning_state
+
+ # @return [Status] The status of the container registry at the time the
+ # operation was called.
+ attr_accessor :status
+
+ # @return [Boolean] The value that indicates whether the admin user is
+ # enabled. Default value: false .
+ attr_accessor :admin_user_enabled
+
+ # @return [StorageAccountProperties] The properties of the storage
+ # account for the container registry. Only applicable to Classic SKU.
+ attr_accessor :storage_account
+
+
+ #
+ # Mapper for Registry class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Registry',
+ type: {
+ name: 'Composite',
+ class_name: 'Registry',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ sku: {
+ required: true,
+ serialized_name: 'sku',
+ type: {
+ name: 'Composite',
+ class_name: 'Sku'
+ }
+ },
+ login_server: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.loginServer',
+ type: {
+ name: 'String'
+ }
+ },
+ creation_date: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.creationDate',
+ type: {
+ name: 'DateTime'
+ }
+ },
+ provisioning_state: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.provisioningState',
+ type: {
+ name: 'String'
+ }
+ },
+ status: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.status',
+ type: {
+ name: 'Composite',
+ class_name: 'Status'
+ }
+ },
+ admin_user_enabled: {
+ required: false,
+ serialized_name: 'properties.adminUserEnabled',
+ default_value: false,
+ type: {
+ name: 'Boolean'
+ }
+ },
+ storage_account: {
+ required: false,
+ serialized_name: 'properties.storageAccount',
+ type: {
+ name: 'Composite',
+ class_name: 'StorageAccountProperties'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_list_credentials_result.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_list_credentials_result.rb
new file mode 100644
index 0000000000..b2fcad05fc
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_list_credentials_result.rb
@@ -0,0 +1,63 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The response from the ListCredentials operation.
+ #
+ class RegistryListCredentialsResult
+
+ include MsRestAzure
+
+ # @return [String] The username for a container registry.
+ attr_accessor :username
+
+ # @return [Array] The list of passwords for a container
+ # registry.
+ attr_accessor :passwords
+
+
+ #
+ # Mapper for RegistryListCredentialsResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RegistryListCredentialsResult',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryListCredentialsResult',
+ model_properties: {
+ username: {
+ required: false,
+ serialized_name: 'username',
+ type: {
+ name: 'String'
+ }
+ },
+ passwords: {
+ required: false,
+ serialized_name: 'passwords',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'RegistryPasswordElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryPassword'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_list_result.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_list_result.rb
new file mode 100644
index 0000000000..b12c43d741
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_list_result.rb
@@ -0,0 +1,97 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The result of a request to list container registries.
+ #
+ class RegistryListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] The list of container registries. Since this
+ # list may be incomplete, the nextLink field should be used to request
+ # the next list of container registries.
+ attr_accessor :value
+
+ # @return [String] The URI that can be used to request the next list of
+ # container registries.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [RegistryListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for RegistryListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RegistryListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'RegistryElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'Registry'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_name_check_request.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_name_check_request.rb
new file mode 100644
index 0000000000..d0fe632b58
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_name_check_request.rb
@@ -0,0 +1,63 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # A request to check whether a container registry name is available.
+ #
+ class RegistryNameCheckRequest
+
+ include MsRestAzure
+
+ # @return [String] The name of the container registry.
+ attr_accessor :name
+
+ # @return [String] The resource type of the container registry. This
+ # field must be set to 'Microsoft.ContainerRegistry/registries'. Default
+ # value: 'Microsoft.ContainerRegistry/registries' .
+ attr_accessor :type
+
+
+ #
+ # Mapper for RegistryNameCheckRequest class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RegistryNameCheckRequest',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryNameCheckRequest',
+ model_properties: {
+ name: {
+ required: true,
+ serialized_name: 'name',
+ constraints: {
+ MaxLength: 50,
+ MinLength: 5,
+ Pattern: '^[a-zA-Z0-9]*$'
+ },
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: true,
+ is_constant: true,
+ serialized_name: 'type',
+ default_value: 'Microsoft.ContainerRegistry/registries',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_name_status.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_name_status.rb
new file mode 100644
index 0000000000..ba7c0a6d26
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_name_status.rb
@@ -0,0 +1,67 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The result of a request to check the availability of a container registry
+ # name.
+ #
+ class RegistryNameStatus
+
+ include MsRestAzure
+
+ # @return [Boolean] The value that indicates whether the name is
+ # available.
+ attr_accessor :name_available
+
+ # @return [String] If any, the reason that the name is not available.
+ attr_accessor :reason
+
+ # @return [String] If any, the error message that provides more detail
+ # for the reason that the name is not available.
+ attr_accessor :message
+
+
+ #
+ # Mapper for RegistryNameStatus class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RegistryNameStatus',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryNameStatus',
+ model_properties: {
+ name_available: {
+ required: false,
+ serialized_name: 'nameAvailable',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ reason: {
+ required: false,
+ serialized_name: 'reason',
+ type: {
+ name: 'String'
+ }
+ },
+ message: {
+ required: false,
+ serialized_name: 'message',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_password.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_password.rb
new file mode 100644
index 0000000000..62857e9515
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_password.rb
@@ -0,0 +1,56 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The login password for the container registry.
+ #
+ class RegistryPassword
+
+ include MsRestAzure
+
+ # @return [PasswordName] The password name. Possible values include:
+ # 'password', 'password2'
+ attr_accessor :name
+
+ # @return [String] The password value.
+ attr_accessor :value
+
+
+ #
+ # Mapper for RegistryPassword class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RegistryPassword',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryPassword',
+ model_properties: {
+ name: {
+ required: false,
+ serialized_name: 'name',
+ type: {
+ name: 'Enum',
+ module: 'PasswordName'
+ }
+ },
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_update_parameters.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_update_parameters.rb
new file mode 100644
index 0000000000..df9f86a3ca
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_update_parameters.rb
@@ -0,0 +1,87 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The parameters for updating a container registry.
+ #
+ class RegistryUpdateParameters
+
+ include MsRestAzure
+
+ # @return [Hash{String => String}] The tags for the container registry.
+ attr_accessor :tags
+
+ # @return [Sku] The SKU of the container registry.
+ attr_accessor :sku
+
+ # @return [Boolean] The value that indicates whether the admin user is
+ # enabled.
+ attr_accessor :admin_user_enabled
+
+ # @return [StorageAccountProperties] The parameters of a storage account
+ # for the container registry. Only applicable to Classic SKU. If
+ # specified, the storage account must be in the same physical location as
+ # the container registry.
+ attr_accessor :storage_account
+
+
+ #
+ # Mapper for RegistryUpdateParameters class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RegistryUpdateParameters',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryUpdateParameters',
+ model_properties: {
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ sku: {
+ required: false,
+ serialized_name: 'sku',
+ type: {
+ name: 'Composite',
+ class_name: 'Sku'
+ }
+ },
+ admin_user_enabled: {
+ required: false,
+ serialized_name: 'properties.adminUserEnabled',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ storage_account: {
+ required: false,
+ serialized_name: 'properties.storageAccount',
+ type: {
+ name: 'Composite',
+ class_name: 'StorageAccountProperties'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_usage.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_usage.rb
new file mode 100644
index 0000000000..fda93a78b0
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_usage.rb
@@ -0,0 +1,75 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The quota usage for a container registry.
+ #
+ class RegistryUsage
+
+ include MsRestAzure
+
+ # @return [String] The name of the usage.
+ attr_accessor :name
+
+ # @return [Integer] The limit of the usage.
+ attr_accessor :limit
+
+ # @return [Integer] The current value of the usage.
+ attr_accessor :current_value
+
+ # @return [RegistryUsageUnit] The unit of measurement. Possible values
+ # include: 'Count', 'Bytes'
+ attr_accessor :unit
+
+
+ #
+ # Mapper for RegistryUsage class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RegistryUsage',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryUsage',
+ model_properties: {
+ name: {
+ required: false,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ limit: {
+ required: false,
+ serialized_name: 'limit',
+ type: {
+ name: 'Number'
+ }
+ },
+ current_value: {
+ required: false,
+ serialized_name: 'currentValue',
+ type: {
+ name: 'Number'
+ }
+ },
+ unit: {
+ required: false,
+ serialized_name: 'unit',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_usage_list_result.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_usage_list_result.rb
new file mode 100644
index 0000000000..9cdedc4092
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_usage_list_result.rb
@@ -0,0 +1,53 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The result of a request to get container registry quota usages.
+ #
+ class RegistryUsageListResult
+
+ include MsRestAzure
+
+ # @return [Array] The list of container registry quota
+ # usages.
+ attr_accessor :value
+
+
+ #
+ # Mapper for RegistryUsageListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RegistryUsageListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryUsageListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'RegistryUsageElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'RegistryUsage'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_usage_unit.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_usage_unit.rb
new file mode 100644
index 0000000000..3178e94e67
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/registry_usage_unit.rb
@@ -0,0 +1,16 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # Defines values for RegistryUsageUnit
+ #
+ module RegistryUsageUnit
+ Count = "Count"
+ Bytes = "Bytes"
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/replication.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/replication.rb
new file mode 100644
index 0000000000..ae4a1f29d3
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/replication.rb
@@ -0,0 +1,105 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # An object that represents a replication for a container registry.
+ #
+ class Replication < Resource
+
+ include MsRestAzure
+
+ # @return [ProvisioningState] The provisioning state of the replication
+ # at the time the operation was called. Possible values include:
+ # 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
+ attr_accessor :provisioning_state
+
+ # @return [Status] The status of the replication at the time the
+ # operation was called.
+ attr_accessor :status
+
+
+ #
+ # Mapper for Replication class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Replication',
+ type: {
+ name: 'Composite',
+ class_name: 'Replication',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ provisioning_state: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.provisioningState',
+ type: {
+ name: 'String'
+ }
+ },
+ status: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.status',
+ type: {
+ name: 'Composite',
+ class_name: 'Status'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/replication_list_result.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/replication_list_result.rb
new file mode 100644
index 0000000000..bfa2ae2d73
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/replication_list_result.rb
@@ -0,0 +1,97 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The result of a request to list replications for a container registry.
+ #
+ class ReplicationListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] The list of replications. Since this list
+ # may be incomplete, the nextLink field should be used to request the
+ # next list of replications.
+ attr_accessor :value
+
+ # @return [String] The URI that can be used to request the next list of
+ # replications.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [ReplicationListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for ReplicationListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'ReplicationListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'ReplicationListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'ReplicationElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'Replication'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/replication_update_parameters.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/replication_update_parameters.rb
new file mode 100644
index 0000000000..bbf1e52e49
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/replication_update_parameters.rb
@@ -0,0 +1,51 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The parameters for updating a replication.
+ #
+ class ReplicationUpdateParameters
+
+ include MsRestAzure
+
+ # @return [Hash{String => String}] The tags for the replication.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for ReplicationUpdateParameters class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'ReplicationUpdateParameters',
+ type: {
+ name: 'Composite',
+ class_name: 'ReplicationUpdateParameters',
+ model_properties: {
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/request.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/request.rb
new file mode 100644
index 0000000000..0cdba70a7f
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/request.rb
@@ -0,0 +1,87 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The request that generated the event.
+ #
+ class Request
+
+ include MsRestAzure
+
+ # @return [String] The ID of the request that initiated the event.
+ attr_accessor :id
+
+ # @return [String] The IP or hostname and possibly port of the client
+ # connection that initiated the event. This is the RemoteAddr from the
+ # standard http request.
+ attr_accessor :addr
+
+ # @return [String] The externally accessible hostname of the registry
+ # instance, as specified by the http host header on incoming requests.
+ attr_accessor :host
+
+ # @return [String] The request method that generated the event.
+ attr_accessor :method
+
+ # @return [String] The user agent header of the request.
+ attr_accessor :useragent
+
+
+ #
+ # Mapper for Request class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Request',
+ type: {
+ name: 'Composite',
+ class_name: 'Request',
+ model_properties: {
+ id: {
+ required: false,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ addr: {
+ required: false,
+ serialized_name: 'addr',
+ type: {
+ name: 'String'
+ }
+ },
+ host: {
+ required: false,
+ serialized_name: 'host',
+ type: {
+ name: 'String'
+ }
+ },
+ method: {
+ required: false,
+ serialized_name: 'method',
+ type: {
+ name: 'String'
+ }
+ },
+ useragent: {
+ required: false,
+ serialized_name: 'useragent',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/resource.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/resource.rb
new file mode 100644
index 0000000000..cecfbd3efa
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/resource.rb
@@ -0,0 +1,95 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # An Azure resource.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] The resource ID.
+ attr_accessor :id
+
+ # @return [String] The name of the resource.
+ attr_accessor :name
+
+ # @return [String] The type of the resource.
+ attr_accessor :type
+
+ # @return [String] The location of the resource. This cannot be changed
+ # after the resource is created.
+ attr_accessor :location
+
+ # @return [Hash{String => String}] The tags of the resource.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/sku.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/sku.rb
new file mode 100644
index 0000000000..34d0673f18
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/sku.rb
@@ -0,0 +1,58 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The SKU of a container registry.
+ #
+ class Sku
+
+ include MsRestAzure
+
+ # @return [SkuName] The SKU name of the container registry. Required for
+ # registry creation. Possible values include: 'Classic', 'Basic',
+ # 'Standard', 'Premium'
+ attr_accessor :name
+
+ # @return [SkuTier] The SKU tier based on the SKU name. Possible values
+ # include: 'Classic', 'Basic', 'Standard', 'Premium'
+ attr_accessor :tier
+
+
+ #
+ # Mapper for Sku class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Sku',
+ type: {
+ name: 'Composite',
+ class_name: 'Sku',
+ model_properties: {
+ name: {
+ required: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ tier: {
+ required: false,
+ read_only: true,
+ serialized_name: 'tier',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/sku_name.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/sku_name.rb
new file mode 100644
index 0000000000..3292b9d1a3
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/sku_name.rb
@@ -0,0 +1,18 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # Defines values for SkuName
+ #
+ module SkuName
+ Classic = "Classic"
+ Basic = "Basic"
+ Standard = "Standard"
+ Premium = "Premium"
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/sku_tier.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/sku_tier.rb
new file mode 100644
index 0000000000..09e9810ee2
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/sku_tier.rb
@@ -0,0 +1,18 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # Defines values for SkuTier
+ #
+ module SkuTier
+ Classic = "Classic"
+ Basic = "Basic"
+ Standard = "Standard"
+ Premium = "Premium"
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/source.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/source.rb
new file mode 100644
index 0000000000..9657613954
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/source.rb
@@ -0,0 +1,58 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The registry node that generated the event. Put differently, while the
+ # actor initiates the event, the source generates it.
+ #
+ class Source
+
+ include MsRestAzure
+
+ # @return [String] The IP or hostname and the port of the registry node
+ # that generated the event. Generally, this will be resolved by
+ # os.Hostname() along with the running port.
+ attr_accessor :addr
+
+ # @return [String] The running instance of an application. Changes after
+ # each restart.
+ attr_accessor :instance_id
+
+
+ #
+ # Mapper for Source class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Source',
+ type: {
+ name: 'Composite',
+ class_name: 'Source',
+ model_properties: {
+ addr: {
+ required: false,
+ serialized_name: 'addr',
+ type: {
+ name: 'String'
+ }
+ },
+ instance_id: {
+ required: false,
+ serialized_name: 'instanceID',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/status.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/status.rb
new file mode 100644
index 0000000000..812880473c
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/status.rb
@@ -0,0 +1,69 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The status of an Azure resource at the time the operation was called.
+ #
+ class Status
+
+ include MsRestAzure
+
+ # @return [String] The short label for the status.
+ attr_accessor :display_status
+
+ # @return [String] The detailed message for the status, including alerts
+ # and error messages.
+ attr_accessor :message
+
+ # @return [DateTime] The timestamp when the status was changed to the
+ # current value.
+ attr_accessor :timestamp
+
+
+ #
+ # Mapper for Status class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Status',
+ type: {
+ name: 'Composite',
+ class_name: 'Status',
+ model_properties: {
+ display_status: {
+ required: false,
+ read_only: true,
+ serialized_name: 'displayStatus',
+ type: {
+ name: 'String'
+ }
+ },
+ message: {
+ required: false,
+ read_only: true,
+ serialized_name: 'message',
+ type: {
+ name: 'String'
+ }
+ },
+ timestamp: {
+ required: false,
+ read_only: true,
+ serialized_name: 'timestamp',
+ type: {
+ name: 'DateTime'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/storage_account_properties.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/storage_account_properties.rb
new file mode 100644
index 0000000000..ebb2d77a40
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/storage_account_properties.rb
@@ -0,0 +1,45 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The properties of a storage account for a container registry. Only
+ # applicable to Classic SKU.
+ #
+ class StorageAccountProperties
+
+ include MsRestAzure
+
+ # @return [String] The resource ID of the storage account.
+ attr_accessor :id
+
+
+ #
+ # Mapper for StorageAccountProperties class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'StorageAccountProperties',
+ type: {
+ name: 'Composite',
+ class_name: 'StorageAccountProperties',
+ model_properties: {
+ id: {
+ required: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/target.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/target.rb
new file mode 100644
index 0000000000..b152714736
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/target.rb
@@ -0,0 +1,107 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The target of the event.
+ #
+ class Target
+
+ include MsRestAzure
+
+ # @return [String] The MIME type of the referenced object.
+ attr_accessor :media_type
+
+ # @return [Integer] The number of bytes of the content. Same as Length
+ # field.
+ attr_accessor :size
+
+ # @return [String] The digest of the content, as defined by the Registry
+ # V2 HTTP API Specificiation.
+ attr_accessor :digest
+
+ # @return [Integer] The number of bytes of the content. Same as Size
+ # field.
+ attr_accessor :length
+
+ # @return [String] The repository name.
+ attr_accessor :repository
+
+ # @return [String] The direct URL to the content.
+ attr_accessor :url
+
+ # @return [String] The tag name.
+ attr_accessor :tag
+
+
+ #
+ # Mapper for Target class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Target',
+ type: {
+ name: 'Composite',
+ class_name: 'Target',
+ model_properties: {
+ media_type: {
+ required: false,
+ serialized_name: 'mediaType',
+ type: {
+ name: 'String'
+ }
+ },
+ size: {
+ required: false,
+ serialized_name: 'size',
+ type: {
+ name: 'Number'
+ }
+ },
+ digest: {
+ required: false,
+ serialized_name: 'digest',
+ type: {
+ name: 'String'
+ }
+ },
+ length: {
+ required: false,
+ serialized_name: 'length',
+ type: {
+ name: 'Number'
+ }
+ },
+ repository: {
+ required: false,
+ serialized_name: 'repository',
+ type: {
+ name: 'String'
+ }
+ },
+ url: {
+ required: false,
+ serialized_name: 'url',
+ type: {
+ name: 'String'
+ }
+ },
+ tag: {
+ required: false,
+ serialized_name: 'tag',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook.rb
new file mode 100644
index 0000000000..8fda06e76c
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook.rb
@@ -0,0 +1,134 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # An object that represents a webhook for a container registry.
+ #
+ class Webhook < Resource
+
+ include MsRestAzure
+
+ # @return [WebhookStatus] The status of the webhook at the time the
+ # operation was called. Possible values include: 'enabled', 'disabled'
+ attr_accessor :status
+
+ # @return [String] The scope of repositories where the event can be
+ # triggered. For example, 'foo:*' means events for all tags under
+ # repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is
+ # equivalent to 'foo:latest'. Empty means all events.
+ attr_accessor :scope
+
+ # @return [Array] The list of actions that trigger the
+ # webhook to post notifications.
+ attr_accessor :actions
+
+ # @return [ProvisioningState] The provisioning state of the webhook at
+ # the time the operation was called. Possible values include: 'Creating',
+ # 'Updating', 'Deleting', 'Succeeded', 'Failed', 'Canceled'
+ attr_accessor :provisioning_state
+
+
+ #
+ # Mapper for Webhook class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Webhook',
+ type: {
+ name: 'Composite',
+ class_name: 'Webhook',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ status: {
+ required: false,
+ serialized_name: 'properties.status',
+ type: {
+ name: 'String'
+ }
+ },
+ scope: {
+ required: false,
+ serialized_name: 'properties.scope',
+ type: {
+ name: 'String'
+ }
+ },
+ actions: {
+ required: true,
+ serialized_name: 'properties.actions',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'WebhookActionElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ provisioning_state: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.provisioningState',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_action.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_action.rb
new file mode 100644
index 0000000000..389708d7a7
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_action.rb
@@ -0,0 +1,16 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # Defines values for WebhookAction
+ #
+ module WebhookAction
+ Push = "push"
+ Delete = "delete"
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_create_parameters.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_create_parameters.rb
new file mode 100644
index 0000000000..76a2e2ff08
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_create_parameters.rb
@@ -0,0 +1,132 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The parameters for creating a webhook.
+ #
+ class WebhookCreateParameters
+
+ include MsRestAzure
+
+ # @return [Hash{String => String}] The tags for the webhook.
+ attr_accessor :tags
+
+ # @return [String] The location of the webhook. This cannot be changed
+ # after the resource is created.
+ attr_accessor :location
+
+ # @return [String] The service URI for the webhook to post notifications.
+ attr_accessor :service_uri
+
+ # @return [Hash{String => String}] Custom headers that will be added to
+ # the webhook notifications.
+ attr_accessor :custom_headers
+
+ # @return [WebhookStatus] The status of the webhook at the time the
+ # operation was called. Possible values include: 'enabled', 'disabled'
+ attr_accessor :status
+
+ # @return [String] The scope of repositories where the event can be
+ # triggered. For example, 'foo:*' means events for all tags under
+ # repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is
+ # equivalent to 'foo:latest'. Empty means all events.
+ attr_accessor :scope
+
+ # @return [Array] The list of actions that trigger the
+ # webhook to post notifications.
+ attr_accessor :actions
+
+
+ #
+ # Mapper for WebhookCreateParameters class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'WebhookCreateParameters',
+ type: {
+ name: 'Composite',
+ class_name: 'WebhookCreateParameters',
+ model_properties: {
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ service_uri: {
+ required: true,
+ serialized_name: 'properties.serviceUri',
+ type: {
+ name: 'String'
+ }
+ },
+ custom_headers: {
+ required: false,
+ serialized_name: 'properties.customHeaders',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ status: {
+ required: false,
+ serialized_name: 'properties.status',
+ type: {
+ name: 'String'
+ }
+ },
+ scope: {
+ required: false,
+ serialized_name: 'properties.scope',
+ type: {
+ name: 'String'
+ }
+ },
+ actions: {
+ required: true,
+ serialized_name: 'properties.actions',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'WebhookActionElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_list_result.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_list_result.rb
new file mode 100644
index 0000000000..f8dfddfab8
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_list_result.rb
@@ -0,0 +1,97 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The result of a request to list webhooks for a container registry.
+ #
+ class WebhookListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] The list of webhooks. Since this list may be
+ # incomplete, the nextLink field should be used to request the next list
+ # of webhooks.
+ attr_accessor :value
+
+ # @return [String] The URI that can be used to request the next list of
+ # webhooks.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [WebhookListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for WebhookListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'WebhookListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'WebhookListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'WebhookElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'Webhook'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_status.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_status.rb
new file mode 100644
index 0000000000..ca86429fd2
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_status.rb
@@ -0,0 +1,16 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # Defines values for WebhookStatus
+ #
+ module WebhookStatus
+ Enabled = "enabled"
+ Disabled = "disabled"
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_update_parameters.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_update_parameters.rb
new file mode 100644
index 0000000000..a1d152e07b
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/models/webhook_update_parameters.rb
@@ -0,0 +1,121 @@
+# 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::ARM::ContainerRegistry
+ module Models
+ #
+ # The parameters for updating a webhook.
+ #
+ class WebhookUpdateParameters
+
+ include MsRestAzure
+
+ # @return [Hash{String => String}] The tags for the webhook.
+ attr_accessor :tags
+
+ # @return [String] The service URI for the webhook to post notifications.
+ attr_accessor :service_uri
+
+ # @return [Hash{String => String}] Custom headers that will be added to
+ # the webhook notifications.
+ attr_accessor :custom_headers
+
+ # @return [WebhookStatus] The status of the webhook at the time the
+ # operation was called. Possible values include: 'enabled', 'disabled'
+ attr_accessor :status
+
+ # @return [String] The scope of repositories where the event can be
+ # triggered. For example, 'foo:*' means events for all tags under
+ # repository 'foo'. 'foo:bar' means events for 'foo:bar' only. 'foo' is
+ # equivalent to 'foo:latest'. Empty means all events.
+ attr_accessor :scope
+
+ # @return [Array] The list of actions that trigger the
+ # webhook to post notifications.
+ attr_accessor :actions
+
+
+ #
+ # Mapper for WebhookUpdateParameters class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'WebhookUpdateParameters',
+ type: {
+ name: 'Composite',
+ class_name: 'WebhookUpdateParameters',
+ model_properties: {
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ service_uri: {
+ required: false,
+ serialized_name: 'properties.serviceUri',
+ type: {
+ name: 'String'
+ }
+ },
+ custom_headers: {
+ required: false,
+ serialized_name: 'properties.customHeaders',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ status: {
+ required: false,
+ serialized_name: 'properties.status',
+ type: {
+ name: 'String'
+ }
+ },
+ scope: {
+ required: false,
+ serialized_name: 'properties.scope',
+ type: {
+ name: 'String'
+ }
+ },
+ actions: {
+ required: false,
+ serialized_name: 'properties.actions',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'WebhookActionElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/module_definition.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/module_definition.rb
new file mode 100644
index 0000000000..d9cd502f1d
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/module_definition.rb
@@ -0,0 +1,8 @@
+# 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 end
+module Azure::ARM end
+module Azure::ARM::ContainerRegistry end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/operations.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/operations.rb
new file mode 100644
index 0000000000..024187bc53
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/operations.rb
@@ -0,0 +1,213 @@
+# 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::ARM::ContainerRegistry
+ #
+ # Operations
+ #
+ class Operations
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Operations class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [ContainerRegistryManagementClient] reference to the ContainerRegistryManagementClient
+ attr_reader :client
+
+ #
+ # Lists all of the available Azure Container Registry REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(custom_headers = nil)
+ first_page = list_as_lazy(custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Lists all of the available Azure Container Registry REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(custom_headers = nil)
+ list_async(custom_headers).value!
+ end
+
+ #
+ # Lists all of the available Azure Container Registry REST API operations.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+
+
+ request_headers = {}
+
+ # 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 = 'providers/Microsoft.ContainerRegistry/operations'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::OperationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all of the available Azure Container Registry REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all of the available Azure Container Registry REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Lists all of the available Azure Container Registry REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::OperationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all of the available Azure Container Registry REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(custom_headers = nil)
+ response = list_async(custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/registries.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/registries.rb
new file mode 100644
index 0000000000..fe2cb7ed15
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/registries.rb
@@ -0,0 +1,1371 @@
+# 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::ARM::ContainerRegistry
+ #
+ # Registries
+ #
+ class Registries
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Registries class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [ContainerRegistryManagementClient] reference to the ContainerRegistryManagementClient
+ attr_reader :client
+
+ #
+ # Checks whether the container registry name is available for use. The name
+ # must contain only alphanumeric characters, be globally unique, and between 5
+ # and 50 characters in length.
+ #
+ # @param registry_name_check_request [RegistryNameCheckRequest] The object
+ # containing information for the availability request.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [RegistryNameStatus] operation results.
+ #
+ def check_name_availability(registry_name_check_request, custom_headers = nil)
+ response = check_name_availability_async(registry_name_check_request, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Checks whether the container registry name is available for use. The name
+ # must contain only alphanumeric characters, be globally unique, and between 5
+ # and 50 characters in length.
+ #
+ # @param registry_name_check_request [RegistryNameCheckRequest] The object
+ # containing information for the availability request.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def check_name_availability_with_http_info(registry_name_check_request, custom_headers = nil)
+ check_name_availability_async(registry_name_check_request, custom_headers).value!
+ end
+
+ #
+ # Checks whether the container registry name is available for use. The name
+ # must contain only alphanumeric characters, be globally unique, and between 5
+ # and 50 characters in length.
+ #
+ # @param registry_name_check_request [RegistryNameCheckRequest] The object
+ # containing information for the availability request.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def check_name_availability_async(registry_name_check_request, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'registry_name_check_request is nil' if registry_name_check_request.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::ContainerRegistry::Models::RegistryNameCheckRequest.mapper()
+ request_content = @client.serialize(request_mapper, registry_name_check_request)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/checkNameAvailability'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::RegistryNameStatus.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets the properties of the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Registry] operation results.
+ #
+ def get(resource_group_name, registry_name, custom_headers = nil)
+ response = get_async(resource_group_name, registry_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the properties of the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, registry_name, custom_headers = nil)
+ get_async(resource_group_name, registry_name, custom_headers).value!
+ end
+
+ #
+ # Gets the properties of the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, registry_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Registry.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Creates a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry [Registry] The parameters for creating a container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Registry] operation results.
+ #
+ def create(resource_group_name, registry_name, registry, custom_headers = nil)
+ response = create_async(resource_group_name, registry_name, registry, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry [Registry] The parameters for creating a container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def create_async(resource_group_name, registry_name, registry, custom_headers = nil)
+ # Send request
+ promise = begin_create_async(resource_group_name, registry_name, registry, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Registry.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Deletes a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ def delete(resource_group_name, registry_name, custom_headers = nil)
+ response = delete_async(resource_group_name, registry_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def delete_async(resource_group_name, registry_name, custom_headers = nil)
+ # Send request
+ promise = begin_delete_async(resource_group_name, registry_name, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Updates a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry_update_parameters [RegistryUpdateParameters] The parameters
+ # for updating a container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Registry] operation results.
+ #
+ def update(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil)
+ response = update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry_update_parameters [RegistryUpdateParameters] The parameters
+ # for updating a container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil)
+ # Send request
+ promise = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Registry.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Lists all the container registries under the specified resource group.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list_by_resource_group(resource_group_name, custom_headers = nil)
+ first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Lists all the container registries under the specified resource group.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
+ list_by_resource_group_async(resource_group_name, custom_headers).value!
+ end
+
+ #
+ # Lists all the container registries under the specified resource group.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_by_resource_group_async(resource_group_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::RegistryListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all the container registries under the specified subscription.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(custom_headers = nil)
+ first_page = list_as_lazy(custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Lists all the container registries under the specified subscription.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(custom_headers = nil)
+ list_async(custom_headers).value!
+ end
+
+ #
+ # Lists all the container registries under the specified subscription.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::RegistryListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists the login credentials for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [RegistryListCredentialsResult] operation results.
+ #
+ def list_credentials(resource_group_name, registry_name, custom_headers = nil)
+ response = list_credentials_async(resource_group_name, registry_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists the login credentials for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_credentials_with_http_info(resource_group_name, registry_name, custom_headers = nil)
+ list_credentials_async(resource_group_name, registry_name, custom_headers).value!
+ end
+
+ #
+ # Lists the login credentials for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_credentials_async(resource_group_name, registry_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/listCredentials'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::RegistryListCredentialsResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Regenerates one of the login credentials for the specified container
+ # registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param regenerate_credential_parameters [RegenerateCredentialParameters]
+ # Specifies name of the password which should be regenerated -- password or
+ # password2.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [RegistryListCredentialsResult] operation results.
+ #
+ def regenerate_credential(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil)
+ response = regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Regenerates one of the login credentials for the specified container
+ # registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param regenerate_credential_parameters [RegenerateCredentialParameters]
+ # Specifies name of the password which should be regenerated -- password or
+ # password2.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def regenerate_credential_with_http_info(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil)
+ regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers).value!
+ end
+
+ #
+ # Regenerates one of the login credentials for the specified container
+ # registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param regenerate_credential_parameters [RegenerateCredentialParameters]
+ # Specifies name of the password which should be regenerated -- password or
+ # password2.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def regenerate_credential_async(resource_group_name, registry_name, regenerate_credential_parameters, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'regenerate_credential_parameters is nil' if regenerate_credential_parameters.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::ContainerRegistry::Models::RegenerateCredentialParameters.mapper()
+ request_content = @client.serialize(request_mapper, regenerate_credential_parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::RegistryListCredentialsResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets the quota usages for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [RegistryUsageListResult] operation results.
+ #
+ def list_usages(resource_group_name, registry_name, custom_headers = nil)
+ response = list_usages_async(resource_group_name, registry_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the quota usages for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_usages_with_http_info(resource_group_name, registry_name, custom_headers = nil)
+ list_usages_async(resource_group_name, registry_name, custom_headers).value!
+ end
+
+ #
+ # Gets the quota usages for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_usages_async(resource_group_name, registry_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/listUsages'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::RegistryUsageListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Creates a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry [Registry] The parameters for creating a container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Registry] operation results.
+ #
+ def begin_create(resource_group_name, registry_name, registry, custom_headers = nil)
+ response = begin_create_async(resource_group_name, registry_name, registry, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Creates a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry [Registry] The parameters for creating a container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_create_with_http_info(resource_group_name, registry_name, registry, custom_headers = nil)
+ begin_create_async(resource_group_name, registry_name, registry, custom_headers).value!
+ end
+
+ #
+ # Creates a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry [Registry] The parameters for creating a container registry.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_create_async(resource_group_name, registry_name, registry, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'registry is nil' if registry.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::ContainerRegistry::Models::Registry.mapper()
+ request_content = @client.serialize(request_mapper, registry)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:put, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 201
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Registry.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Registry.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Deletes a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def begin_delete(resource_group_name, registry_name, custom_headers = nil)
+ response = begin_delete_async(resource_group_name, registry_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # Deletes a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_delete_with_http_info(resource_group_name, registry_name, custom_headers = nil)
+ begin_delete_async(resource_group_name, registry_name, custom_headers).value!
+ end
+
+ #
+ # Deletes a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_delete_async(resource_group_name, registry_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:delete, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 202 || status_code == 204
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Updates a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry_update_parameters [RegistryUpdateParameters] The parameters
+ # for updating a container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Registry] operation results.
+ #
+ def begin_update(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil)
+ response = begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Updates a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry_update_parameters [RegistryUpdateParameters] The parameters
+ # for updating a container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_update_with_http_info(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil)
+ begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers).value!
+ end
+
+ #
+ # Updates a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param registry_update_parameters [RegistryUpdateParameters] The parameters
+ # for updating a container registry.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_update_async(resource_group_name, registry_name, registry_update_parameters, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'registry_update_parameters is nil' if registry_update_parameters.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::ContainerRegistry::Models::RegistryUpdateParameters.mapper()
+ request_content = @client.serialize(request_mapper, registry_update_parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:patch, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 201
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Registry.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Registry.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all the container registries under the specified resource group.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [RegistryListResult] operation results.
+ #
+ def list_by_resource_group_next(next_page_link, custom_headers = nil)
+ response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all the container registries under the specified resource group.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
+ list_by_resource_group_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Lists all the container registries under the specified resource group.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::RegistryListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all the container registries under the specified subscription.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [RegistryListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all the container registries under the specified subscription.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Lists all the container registries under the specified subscription.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::RegistryListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all the container registries under the specified resource group.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [RegistryListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
+ response = list_by_resource_group_async(resource_group_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_by_resource_group_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ #
+ # Lists all the container registries under the specified subscription.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [RegistryListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(custom_headers = nil)
+ response = list_async(custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/replications.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/replications.rb
new file mode 100644
index 0000000000..bbed7c308d
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/replications.rb
@@ -0,0 +1,799 @@
+# 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::ARM::ContainerRegistry
+ #
+ # Replications
+ #
+ class Replications
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Replications class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [ContainerRegistryManagementClient] reference to the ContainerRegistryManagementClient
+ attr_reader :client
+
+ #
+ # Gets the properties of the specified replication.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Replication] operation results.
+ #
+ def get(resource_group_name, registry_name, replication_name, custom_headers = nil)
+ response = get_async(resource_group_name, registry_name, replication_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the properties of the specified replication.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, registry_name, replication_name, custom_headers = nil)
+ get_async(resource_group_name, registry_name, replication_name, custom_headers).value!
+ end
+
+ #
+ # Gets the properties of the specified replication.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, registry_name, replication_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'replication_name is nil' if replication_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/replications/{replicationName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'replicationName' => replication_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Replication.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Creates a replication for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication [Replication] The parameters for creating a replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Replication] operation results.
+ #
+ def create(resource_group_name, registry_name, replication_name, replication, custom_headers = nil)
+ response = create_async(resource_group_name, registry_name, replication_name, replication, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication [Replication] The parameters for creating a replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def create_async(resource_group_name, registry_name, replication_name, replication, custom_headers = nil)
+ # Send request
+ promise = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Replication.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Deletes a replication from a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ def delete(resource_group_name, registry_name, replication_name, custom_headers = nil)
+ response = delete_async(resource_group_name, registry_name, replication_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def delete_async(resource_group_name, registry_name, replication_name, custom_headers = nil)
+ # Send request
+ promise = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Updates a replication for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication_update_parameters [ReplicationUpdateParameters] The
+ # parameters for updating a replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Replication] operation results.
+ #
+ def update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil)
+ response = update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication_update_parameters [ReplicationUpdateParameters] The
+ # parameters for updating a replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil)
+ # Send request
+ promise = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Replication.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Lists all the replications for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, registry_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, registry_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Lists all the replications for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, registry_name, custom_headers = nil)
+ list_async(resource_group_name, registry_name, custom_headers).value!
+ end
+
+ #
+ # Lists all the replications for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, registry_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/replications'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::ReplicationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Creates a replication for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication [Replication] The parameters for creating a replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Replication] operation results.
+ #
+ def begin_create(resource_group_name, registry_name, replication_name, replication, custom_headers = nil)
+ response = begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Creates a replication for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication [Replication] The parameters for creating a replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_create_with_http_info(resource_group_name, registry_name, replication_name, replication, custom_headers = nil)
+ begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers).value!
+ end
+
+ #
+ # Creates a replication for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication [Replication] The parameters for creating a replication.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_create_async(resource_group_name, registry_name, replication_name, replication, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'replication_name is nil' if replication_name.nil?
+ fail ArgumentError, 'replication is nil' if replication.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::ContainerRegistry::Models::Replication.mapper()
+ request_content = @client.serialize(request_mapper, replication)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'replicationName' => replication_name},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:put, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 201
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Replication.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Replication.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Deletes a replication from a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def begin_delete(resource_group_name, registry_name, replication_name, custom_headers = nil)
+ response = begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # Deletes a replication from a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_delete_with_http_info(resource_group_name, registry_name, replication_name, custom_headers = nil)
+ begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers).value!
+ end
+
+ #
+ # Deletes a replication from a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_delete_async(resource_group_name, registry_name, replication_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'replication_name is nil' if replication_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/replications/{replicationName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'replicationName' => replication_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:delete, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 202 || status_code == 204
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Updates a replication for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication_update_parameters [ReplicationUpdateParameters] The
+ # parameters for updating a replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Replication] operation results.
+ #
+ def begin_update(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil)
+ response = begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Updates a replication for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication_update_parameters [ReplicationUpdateParameters] The
+ # parameters for updating a replication.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_update_with_http_info(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil)
+ begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers).value!
+ end
+
+ #
+ # Updates a replication for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param replication_name [String] The name of the replication.
+ # @param replication_update_parameters [ReplicationUpdateParameters] The
+ # parameters for updating a replication.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_update_async(resource_group_name, registry_name, replication_name, replication_update_parameters, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'replication_name is nil' if replication_name.nil?
+ fail ArgumentError, 'replication_update_parameters is nil' if replication_update_parameters.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::ContainerRegistry::Models::ReplicationUpdateParameters.mapper()
+ request_content = @client.serialize(request_mapper, replication_update_parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'replicationName' => replication_name},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:patch, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 201
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Replication.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Replication.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all the replications for the specified container registry.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ReplicationListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all the replications for the specified container registry.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Lists all the replications for the specified container registry.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::ReplicationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all the replications for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ReplicationListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(resource_group_name, registry_name, custom_headers = nil)
+ response = list_async(resource_group_name, registry_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/version.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/version.rb
new file mode 100644
index 0000000000..788f8b1903
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/version.rb
@@ -0,0 +1,8 @@
+# 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::ARM::ContainerRegistry
+ VERSION = '0.13.0'
+end
diff --git a/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/webhooks.rb b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/webhooks.rb
new file mode 100644
index 0000000000..0d075ff359
--- /dev/null
+++ b/management/azure_mgmt_container_registry/lib/generated/azure_mgmt_container_registry/webhooks.rb
@@ -0,0 +1,1208 @@
+# 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::ARM::ContainerRegistry
+ #
+ # Webhooks
+ #
+ class Webhooks
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Webhooks class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [ContainerRegistryManagementClient] reference to the ContainerRegistryManagementClient
+ attr_reader :client
+
+ #
+ # Gets the properties of the specified webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Webhook] operation results.
+ #
+ def get(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ response = get_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the properties of the specified webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ get_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ end
+
+ #
+ # Gets the properties of the specified webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'webhookName' => webhook_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Webhook.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Creates a webhook for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_create_parameters [WebhookCreateParameters] The parameters for
+ # creating a webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Webhook] operation results.
+ #
+ def create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil)
+ response = create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_create_parameters [WebhookCreateParameters] The parameters for
+ # creating a webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil)
+ # Send request
+ promise = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Webhook.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Deletes a webhook from a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ def delete(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ response = delete_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def delete_async(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ # Send request
+ promise = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Updates a webhook with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_update_parameters [WebhookUpdateParameters] The parameters for
+ # updating a webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Webhook] operation results.
+ #
+ def update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil)
+ response = update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_update_parameters [WebhookUpdateParameters] The parameters for
+ # updating a webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil)
+ # Send request
+ promise = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Webhook.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Lists all the webhooks for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, registry_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, registry_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Lists all the webhooks for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, registry_name, custom_headers = nil)
+ list_async(resource_group_name, registry_name, custom_headers).value!
+ end
+
+ #
+ # Lists all the webhooks for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, registry_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/webhooks'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::WebhookListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Triggers a ping event to be sent to the webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [EventInfo] operation results.
+ #
+ def ping(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ response = ping_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Triggers a ping event to be sent to the webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def ping_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ ping_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ end
+
+ #
+ # Triggers a ping event to be sent to the webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def ping_async(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/ping'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'webhookName' => webhook_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::EventInfo.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets the configuration of service URI and custom headers for the webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CallbackConfig] operation results.
+ #
+ def get_callback_config(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ response = get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the configuration of service URI and custom headers for the webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_callback_config_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ end
+
+ #
+ # Gets the configuration of service URI and custom headers for the webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_callback_config_async(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/getCallbackConfig'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'webhookName' => webhook_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::CallbackConfig.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists recent events for the specified webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list_events(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ first_page = list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Lists recent events for the specified webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_events_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ list_events_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ end
+
+ #
+ # Lists recent events for the specified webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_events_async(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/listEvents'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'webhookName' => webhook_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::EventListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Creates a webhook for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_create_parameters [WebhookCreateParameters] The parameters for
+ # creating a webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Webhook] operation results.
+ #
+ def begin_create(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil)
+ response = begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Creates a webhook for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_create_parameters [WebhookCreateParameters] The parameters for
+ # creating a webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_create_with_http_info(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil)
+ begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers).value!
+ end
+
+ #
+ # Creates a webhook for a container registry with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_create_parameters [WebhookCreateParameters] The parameters for
+ # creating a webhook.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_create_async(resource_group_name, registry_name, webhook_name, webhook_create_parameters, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
+ fail ArgumentError, 'webhook_create_parameters is nil' if webhook_create_parameters.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::ContainerRegistry::Models::WebhookCreateParameters.mapper()
+ request_content = @client.serialize(request_mapper, webhook_create_parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'webhookName' => webhook_name},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:put, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 201
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Webhook.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Webhook.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Deletes a webhook from a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def begin_delete(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ response = begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # Deletes a webhook from a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_delete_with_http_info(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ end
+
+ #
+ # Deletes a webhook from a container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_delete_async(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
+
+
+ request_headers = {}
+
+ # 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.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'webhookName' => webhook_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:delete, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 202 || status_code == 204
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Updates a webhook with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_update_parameters [WebhookUpdateParameters] The parameters for
+ # updating a webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Webhook] operation results.
+ #
+ def begin_update(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil)
+ response = begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Updates a webhook with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_update_parameters [WebhookUpdateParameters] The parameters for
+ # updating a webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_update_with_http_info(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil)
+ begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers).value!
+ end
+
+ #
+ # Updates a webhook with the specified parameters.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param webhook_update_parameters [WebhookUpdateParameters] The parameters for
+ # updating a webhook.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_update_async(resource_group_name, registry_name, webhook_name, webhook_update_parameters, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'registry_name is nil' if registry_name.nil?
+ fail ArgumentError, 'webhook_name is nil' if webhook_name.nil?
+ fail ArgumentError, 'webhook_update_parameters is nil' if webhook_update_parameters.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::ContainerRegistry::Models::WebhookUpdateParameters.mapper()
+ request_content = @client.serialize(request_mapper, webhook_update_parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'registryName' => registry_name,'webhookName' => webhook_name},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:patch, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 201
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Webhook.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::Webhook.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all the webhooks for the specified container registry.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [WebhookListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all the webhooks for the specified container registry.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Lists all the webhooks for the specified container registry.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::WebhookListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists recent events for the specified webhook.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [EventListResult] operation results.
+ #
+ def list_events_next(next_page_link, custom_headers = nil)
+ response = list_events_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists recent events for the specified webhook.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_events_next_with_http_info(next_page_link, custom_headers = nil)
+ list_events_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Lists recent events for the specified webhook.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_events_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::ContainerRegistry::Models::EventListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all the webhooks for the specified container registry.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [WebhookListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(resource_group_name, registry_name, custom_headers = nil)
+ response = list_async(resource_group_name, registry_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ #
+ # Lists recent events for the specified webhook.
+ #
+ # @param resource_group_name [String] The name of the resource group to which
+ # the container registry belongs.
+ # @param registry_name [String] The name of the container registry.
+ # @param webhook_name [String] The name of the webhook.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [EventListResult] which provide lazy access to pages of the response.
+ #
+ def list_events_as_lazy(resource_group_name, registry_name, webhook_name, custom_headers = nil)
+ response = list_events_async(resource_group_name, registry_name, webhook_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_events_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_container_registry/spec/spec_helper.rb b/management/azure_mgmt_container_registry/spec/spec_helper.rb
new file mode 100644
index 0000000000..069c2dde5c
--- /dev/null
+++ b/management/azure_mgmt_container_registry/spec/spec_helper.rb
@@ -0,0 +1,6 @@
+# encoding: utf-8
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the MIT License. See License.txt in the project root for license information.
+
+require 'dotenv'
+Dotenv.load(File.join(File.dirname(__FILE__), '../../../.env'))
diff --git a/management/azure_mgmt_datalake_analytics/azure_mgmt_datalake_analytics.gemspec b/management/azure_mgmt_datalake_analytics/azure_mgmt_datalake_analytics.gemspec
index 4555f34865..e9228a337e 100644
--- a/management/azure_mgmt_datalake_analytics/azure_mgmt_datalake_analytics.gemspec
+++ b/management/azure_mgmt_datalake_analytics/azure_mgmt_datalake_analytics.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics.rb
old mode 100755
new mode 100644
index e548070e4e..d24ccf27ad
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -42,6 +42,7 @@ module Models
autoload :ListStorageContainersResult, 'generated/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb'
autoload :DataLakeAnalyticsAccountPropertiesBasic, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties_basic.rb'
autoload :DataLakeAnalyticsAccountListStorageAccountsResult, 'generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb'
+ autoload :Resource, 'generated/azure_mgmt_datalake_analytics/models/resource.rb'
autoload :ComputePolicy, 'generated/azure_mgmt_datalake_analytics/models/compute_policy.rb'
autoload :UpdateFirewallRuleParameters, 'generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb'
autoload :SubResource, 'generated/azure_mgmt_datalake_analytics/models/sub_resource.rb'
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/account.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/account.rb
old mode 100755
new mode 100644
index 54bc955677..db3792903b
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/account.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/account.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -619,14 +619,14 @@ def begin_create_async(resource_group_name, account_name, parameters, custom_hea
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 201 || status_code == 200
+ unless status_code == 200 || status_code == 201
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
# Deserialize Response
- if status_code == 201
+ if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::ARM::DataLakeAnalytics::Models::DataLakeAnalyticsAccount.mapper()
@@ -636,7 +636,7 @@ def begin_create_async(resource_group_name, account_name, parameters, custom_hea
end
end
# Deserialize Response
- if status_code == 200
+ if status_code == 201
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::ARM::DataLakeAnalytics::Models::DataLakeAnalyticsAccount.mapper()
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/compute_policies.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/compute_policies.rb
index 27a294b640..624ca1b54e 100644
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/compute_policies.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/compute_policies.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb
old mode 100755
new mode 100644
index fe8d612cb3..60b79af665
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/data_lake_analytics_account_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb
old mode 100755
new mode 100644
index 257f9404be..c9994e4426
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/data_lake_store_accounts.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/firewall_rules.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/firewall_rules.rb
old mode 100755
new mode 100644
index 5e7bf31c51..289e43c1ab
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/firewall_rules.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/firewall_rules.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/aadobject_type.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/aadobject_type.rb
old mode 100755
new mode 100644
index 8d62db82f9..34c1fcd00d
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/aadobject_type.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/aadobject_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb
old mode 100755
new mode 100644
index 3230f508ae..5bda7b1b29
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/add_data_lake_store_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AddDataLakeStoreParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] the optional suffix for the Data Lake Store account.
attr_accessor :suffix
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb
old mode 100755
new mode 100644
index c25467c70a..c6a546d630
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/add_storage_account_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class AddStorageAccountParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] the access key associated with this Azure Storage
# account that will be used to connect to it.
attr_accessor :access_key
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy.rb
old mode 100755
new mode 100644
index 750a0e63e5..a9c720791f
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputePolicy
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the compute policy
attr_accessor :name
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_account_create_parameters.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_account_create_parameters.rb
old mode 100755
new mode 100644
index eb48dd895d..b777f49775
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_account_create_parameters.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_account_create_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputePolicyAccountCreateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The unique name of the policy to create
attr_accessor :name
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_create_or_update_parameters.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_create_or_update_parameters.rb
old mode 100755
new mode 100644
index af1ba692bb..c41887faf1
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_create_or_update_parameters.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_create_or_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputePolicyCreateOrUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return The AAD object identifier for the entity to create a policy
# for.
attr_accessor :object_id
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_list_result.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_list_result.rb
old mode 100755
new mode 100644
index e61353371c..c3731d029d
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_list_result.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/compute_policy_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb
old mode 100755
new mode 100644
index 6a43971ed6..8912b023b6
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,15 +9,14 @@ module Models
# A Data Lake Analytics account object, containing all information
# associated with the named Data Lake Analytics account.
#
- class DataLakeAnalyticsAccount < MsRestAzure::Resource
+ class DataLakeAnalyticsAccount < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [DataLakeAnalyticsAccountStatus] the provisioning status of the
# Data Lake Analytics account. Possible values include: 'Failed',
# 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending',
- # 'Resuming', 'Deleting', 'Deleted'
+ # 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled'
attr_accessor :provisioning_state
# @return [DataLakeAnalyticsAccountState] the state of the Data Lake
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_basic.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_basic.rb
index 71f2941535..edd1428a7c 100644
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_basic.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_basic.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,15 +9,14 @@ module Models
# A Data Lake Analytics account object, containing all information
# associated with the named Data Lake Analytics account.
#
- class DataLakeAnalyticsAccountBasic < MsRestAzure::Resource
+ class DataLakeAnalyticsAccountBasic < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [DataLakeAnalyticsAccountStatus] the provisioning status of the
# Data Lake Analytics account. Possible values include: 'Failed',
# 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending',
- # 'Resuming', 'Deleting', 'Deleted'
+ # 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled'
attr_accessor :provisioning_state
# @return [DataLakeAnalyticsAccountState] the state of the Data Lake
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb
old mode 100755
new mode 100644
index 046e8ab9cb..f62c782b4b
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_data_lake_store_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb
old mode 100755
new mode 100644
index 21cc04223d..c15dce2044
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb
old mode 100755
new mode 100644
index 7b0dedaa66..5c1c164334
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_list_storage_accounts_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties_basic.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties_basic.rb
index c8bbeaa302..329bd98c4c 100644
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties_basic.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_properties_basic.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,11 +13,10 @@ class DataLakeAnalyticsAccountPropertiesBasic
include MsRestAzure
- include MsRest::JSONable
# @return [DataLakeAnalyticsAccountStatus] the provisioning status of the
# Data Lake Analytics account. Possible values include: 'Failed',
# 'Creating', 'Running', 'Succeeded', 'Patching', 'Suspending',
- # 'Resuming', 'Deleting', 'Deleted'
+ # 'Resuming', 'Deleting', 'Deleted', 'Undeleting', 'Canceled'
attr_accessor :provisioning_state
# @return [DataLakeAnalyticsAccountState] the state of the Data Lake
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb
old mode 100755
new mode 100644
index e98716b5cc..2e483cc95e
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb
old mode 100755
new mode 100644
index a416c9dd07..7607f338fe
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -18,6 +18,8 @@ module DataLakeAnalyticsAccountStatus
Resuming = "Resuming"
Deleting = "Deleting"
Deleted = "Deleted"
+ Undeleting = "Undeleting"
+ Canceled = "Canceled"
end
end
end
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb
old mode 100755
new mode 100644
index 01023b911a..27b0299542
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_account_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class DataLakeAnalyticsAccountUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] Resource tags
attr_accessor :tags
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_firewall_rule_list_result.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_firewall_rule_list_result.rb
old mode 100755
new mode 100644
index f75bad4a18..4c7d006bbb
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_firewall_rule_list_result.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_analytics_firewall_rule_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb
old mode 100755
new mode 100644
index fb44ae4612..16b3f76a47
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/data_lake_store_account_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DataLakeStoreAccountInfo < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] the optional suffix for the Data Lake Store account.
attr_accessor :suffix
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_allow_azure_ips_state.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_allow_azure_ips_state.rb
old mode 100755
new mode 100644
index 38ea7c7382..47ab71be87
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_allow_azure_ips_state.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_allow_azure_ips_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_rule.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_rule.rb
old mode 100755
new mode 100644
index 9f03553573..9360878d5c
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_rule.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class FirewallRule < OptionalSubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] the start IP address for the firewall rule. This can
# be either ipv4 or ipv6. Start and End should be in the same protocol.
attr_accessor :start_ip_address
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_state.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_state.rb
old mode 100755
new mode 100644
index 916f28df2f..d37387f384
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_state.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/firewall_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb
old mode 100755
new mode 100644
index ecf7336350..96b941dd38
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/list_sas_tokens_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb
old mode 100755
new mode 100644
index ddcbe0d505..ba0e295497
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/list_storage_containers_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/optional_sub_resource.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/optional_sub_resource.rb
old mode 100755
new mode 100644
index 7b1e5c48da..607576ae99
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/optional_sub_resource.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/optional_sub_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class OptionalSubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] Resource Id
attr_accessor :id
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/resource.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/resource.rb
new file mode 100644
index 0000000000..35da5cddae
--- /dev/null
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/resource.rb
@@ -0,0 +1,94 @@
+# 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::ARM::DataLakeAnalytics
+ module Models
+ #
+ # The Resource model definition.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] Resource Id
+ attr_accessor :id
+
+ # @return [String] Resource name
+ attr_accessor :name
+
+ # @return [String] Resource type
+ attr_accessor :type
+
+ # @return [String] Resource location
+ attr_accessor :location
+
+ # @return [Hash{String => String}] Resource tags
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb
old mode 100755
new mode 100644
index 116672c1f3..7428d49bb3
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/sas_token_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SasTokenInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] the access token for the associated Azure Storage
# Container.
attr_accessor :access_token
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb
old mode 100755
new mode 100644
index 2ab6fa4a2b..b1de2a16c2
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/storage_account_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class StorageAccountInfo < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] the access key associated with this Azure Storage
# account that will be used to connect to it.
attr_accessor :access_key
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/storage_container.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/storage_container.rb
old mode 100755
new mode 100644
index ddf72c6567..8cbdd4860a
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/storage_container.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/storage_container.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class StorageContainer
include MsRestAzure
- include MsRest::JSONable
# @return [String] the unique identifier of the blob container.
attr_accessor :id
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/sub_resource.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/sub_resource.rb
old mode 100755
new mode 100644
index 713572415d..a6294d5e08
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/sub_resource.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/sub_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,13 @@ module Models
#
# The Sub Resource model definition.
#
- class SubResource < MsRestAzure::SubResource
+ class SubResource
include MsRestAzure
- include MsRest::JSONable
+ # @return [String] Resource Id
+ attr_accessor :id
+
# @return [String] Resource name
attr_accessor :name
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/tier_type.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/tier_type.rb
old mode 100755
new mode 100644
index f9b734421b..401a377063
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/tier_type.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/tier_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb
old mode 100755
new mode 100644
index dc767f2476..ae722cae19
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/update_firewall_rule_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UpdateFirewallRuleParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] the start IP address for the firewall rule. This can
# be either ipv4 or ipv6. Start and End should be in the same protocol.
attr_accessor :start_ip_address
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb
old mode 100755
new mode 100644
index 5454fe4492..5e9c69dc58
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/models/update_storage_account_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class UpdateStorageAccountParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] the updated access key associated with this Azure
# Storage account that will be used to connect to it.
attr_accessor :access_key
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/module_definition.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/module_definition.rb
old mode 100755
new mode 100644
index e5b35d2fda..c12d8ddc1a
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/module_definition.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/storage_accounts.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/storage_accounts.rb
old mode 100755
new mode 100644
index 169d31349e..5599acd54c
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/storage_accounts.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/storage_accounts.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/version.rb b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/version.rb
old mode 100755
new mode 100644
index faeeb0bd49..faffb56091
--- a/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/version.rb
+++ b/management/azure_mgmt_datalake_analytics/lib/generated/azure_mgmt_datalake_analytics/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::DataLakeAnalytics
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_datalake_store/azure_mgmt_datalake_store.gemspec b/management/azure_mgmt_datalake_store/azure_mgmt_datalake_store.gemspec
index 764ea42ad3..78efd373e2 100644
--- a/management/azure_mgmt_datalake_store/azure_mgmt_datalake_store.gemspec
+++ b/management/azure_mgmt_datalake_store/azure_mgmt_datalake_store.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store.rb
old mode 100755
new mode 100644
index 612c2b80e6..0c51b25b7a
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -36,6 +36,7 @@ module Models
autoload :EncryptionIdentity, 'generated/azure_mgmt_datalake_store/models/encryption_identity.rb'
autoload :EncryptionConfig, 'generated/azure_mgmt_datalake_store/models/encryption_config.rb'
autoload :SubResource, 'generated/azure_mgmt_datalake_store/models/sub_resource.rb'
+ autoload :Resource, 'generated/azure_mgmt_datalake_store/models/resource.rb'
autoload :KeyVaultMetaInfo, 'generated/azure_mgmt_datalake_store/models/key_vault_meta_info.rb'
autoload :DataLakeStoreAccountListResult, 'generated/azure_mgmt_datalake_store/models/data_lake_store_account_list_result.rb'
autoload :ErrorDetails, 'generated/azure_mgmt_datalake_store/models/error_details.rb'
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/account.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/account.rb
old mode 100755
new mode 100644
index 6641f9e895..7f56c61a0f
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/account.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/account.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -690,14 +690,14 @@ def begin_create_async(resource_group_name, name, parameters, custom_headers = n
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 201 || status_code == 200
+ unless status_code == 200 || status_code == 201
error_model = JSON.load(response_content)
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
# Deserialize Response
- if status_code == 201
+ if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::ARM::DataLakeStore::Models::DataLakeStoreAccount.mapper()
@@ -707,7 +707,7 @@ def begin_create_async(resource_group_name, name, parameters, custom_headers = n
end
end
# Deserialize Response
- if status_code == 200
+ if status_code == 201
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
result_mapper = Azure::ARM::DataLakeStore::Models::DataLakeStoreAccount.mapper()
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/data_lake_store_account_management_client.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/data_lake_store_account_management_client.rb
old mode 100755
new mode 100644
index a905495e29..7254d01c09
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/data_lake_store_account_management_client.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/data_lake_store_account_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/firewall_rules.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/firewall_rules.rb
old mode 100755
new mode 100644
index c2add56c96..2ca7237cff
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/firewall_rules.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/firewall_rules.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account.rb
old mode 100755
new mode 100644
index 79f8670c6c..026a4101c5
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,18 +8,17 @@ module Models
#
# Data Lake Store account information
#
- class DataLakeStoreAccount < MsRestAzure::Resource
+ class DataLakeStoreAccount < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [EncryptionIdentity] The Key Vault encryption identity, if any.
attr_accessor :identity
# @return [DataLakeStoreAccountStatus] the provisioning status of the
# Data Lake Store account. Possible values include: 'Failed', 'Creating',
# 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming',
- # 'Deleting', 'Deleted'
+ # 'Deleting', 'Deleted', 'Undeleting', 'Canceled'
attr_accessor :provisioning_state
# @return [DataLakeStoreAccountState] the state of the Data Lake Store
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_basic.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_basic.rb
index a66ec6ec40..8995173032 100644
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_basic.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_basic.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,15 +8,14 @@ module Models
#
# Basic Data Lake Store account information, returned on list calls.
#
- class DataLakeStoreAccountBasic < MsRestAzure::Resource
+ class DataLakeStoreAccountBasic < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [DataLakeStoreAccountStatus] the provisioning status of the
# Data Lake Store account. Possible values include: 'Failed', 'Creating',
# 'Running', 'Succeeded', 'Patching', 'Suspending', 'Resuming',
- # 'Deleting', 'Deleted'
+ # 'Deleting', 'Deleted', 'Undeleting', 'Canceled'
attr_accessor :provisioning_state
# @return [DataLakeStoreAccountState] the state of the Data Lake Store
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_list_result.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_list_result.rb
old mode 100755
new mode 100644
index 6951b244a4..2176d3f101
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_list_result.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_state.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_state.rb
old mode 100755
new mode 100644
index 37ae734c15..5944fd7c3b
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_state.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_status.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_status.rb
old mode 100755
new mode 100644
index da87192971..9006e5704f
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_status.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -18,6 +18,8 @@ module DataLakeStoreAccountStatus
Resuming = "Resuming"
Deleting = "Deleting"
Deleted = "Deleted"
+ Undeleting = "Undeleting"
+ Canceled = "Canceled"
end
end
end
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_update_parameters.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_update_parameters.rb
old mode 100755
new mode 100644
index 33c067b3d0..5a5837b312
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_update_parameters.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_account_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DataLakeStoreAccountUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] Resource tags
attr_accessor :tags
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_firewall_rule_list_result.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_firewall_rule_list_result.rb
old mode 100755
new mode 100644
index 597649790d..0aaf273924
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_firewall_rule_list_result.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_firewall_rule_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_trusted_id_provider_list_result.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_trusted_id_provider_list_result.rb
old mode 100755
new mode 100644
index 88d54248f5..e2b91534dc
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_trusted_id_provider_list_result.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/data_lake_store_trusted_id_provider_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_config.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_config.rb
old mode 100755
new mode 100644
index fef14f7e3e..5915ae210b
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_config.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_config.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EncryptionConfig
include MsRestAzure
- include MsRest::JSONable
# @return [EncryptionConfigType] The type of encryption configuration
# being used. Currently the only supported types are 'UserManaged' and
# 'ServiceManaged'. Possible values include: 'UserManaged',
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_config_type.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_config_type.rb
old mode 100755
new mode 100644
index 6d36b8c217..a3b764f5ae
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_config_type.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_config_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_identity.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_identity.rb
old mode 100755
new mode 100644
index 18e545c5f7..d12c2f7b3f
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_identity.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_identity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EncryptionIdentity
include MsRestAzure
- include MsRest::JSONable
# @return [String] The type of encryption being used. Currently the only
# supported type is 'SystemAssigned'. Default value: 'SystemAssigned' .
attr_accessor :type
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_provisioning_state.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_provisioning_state.rb
old mode 100755
new mode 100644
index b1c6f10f83..2e822084ac
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_provisioning_state.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_provisioning_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_state.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_state.rb
old mode 100755
new mode 100644
index 69ae33bbae..6864f4772d
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_state.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/encryption_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/error_details.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/error_details.rb
old mode 100755
new mode 100644
index edad98ac45..d9d7569799
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/error_details.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/error_details.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ErrorDetails
include MsRestAzure
- include MsRest::JSONable
# @return [String] the HTTP status code or error code associated with
# this error
attr_accessor :code
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_allow_azure_ips_state.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_allow_azure_ips_state.rb
old mode 100755
new mode 100644
index f30330ffc0..a36c547c6a
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_allow_azure_ips_state.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_allow_azure_ips_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_rule.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_rule.rb
old mode 100755
new mode 100644
index c52e4aacc1..9dd7f3984d
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_rule.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class FirewallRule < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] the start IP address for the firewall rule. This can
# be either ipv4 or ipv6. Start and End should be in the same protocol.
attr_accessor :start_ip_address
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_state.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_state.rb
old mode 100755
new mode 100644
index b624e92514..fd08d153e0
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_state.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/firewall_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/key_vault_meta_info.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/key_vault_meta_info.rb
old mode 100755
new mode 100644
index ab178e303a..efc6fc66ea
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/key_vault_meta_info.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/key_vault_meta_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class KeyVaultMetaInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource identifier for the user managed Key Vault
# being used to encrypt.
attr_accessor :key_vault_resource_id
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/resource.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/resource.rb
new file mode 100644
index 0000000000..25a71c3266
--- /dev/null
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/resource.rb
@@ -0,0 +1,94 @@
+# 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::ARM::DataLakeStore
+ module Models
+ #
+ # The Resource model definition.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] Resource Id
+ attr_accessor :id
+
+ # @return [String] Resource name
+ attr_accessor :name
+
+ # @return [String] Resource type
+ attr_accessor :type
+
+ # @return [String] Resource location
+ attr_accessor :location
+
+ # @return [Hash{String => String}] Resource tags
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/sub_resource.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/sub_resource.rb
old mode 100755
new mode 100644
index d08f4047b8..dfc11e9be8
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/sub_resource.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/sub_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,13 @@ module Models
#
# The Resource model definition for a nested resource.
#
- class SubResource < MsRestAzure::SubResource
+ class SubResource
include MsRestAzure
- include MsRest::JSONable
+ # @return [String] Resource Id
+ attr_accessor :id
+
# @return [String] Resource name
attr_accessor :name
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/tier_type.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/tier_type.rb
old mode 100755
new mode 100644
index 45fe3543a7..c33e4c88bb
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/tier_type.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/tier_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider.rb
old mode 100755
new mode 100644
index 8b375779a0..1a0ccce378
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class TrustedIdProvider < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URL of this trusted identity provider
attr_accessor :id_provider
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider_state.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider_state.rb
old mode 100755
new mode 100644
index e952673344..aa85ffeb0a
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider_state.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/trusted_id_provider_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_encryption_config.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_encryption_config.rb
old mode 100755
new mode 100644
index 8c7a9323be..9aeea03ec5
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_encryption_config.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_encryption_config.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UpdateEncryptionConfig
include MsRestAzure
- include MsRest::JSONable
# @return [UpdateKeyVaultMetaInfo] The updated Key Vault key to use in
# user managed key rotation.
attr_accessor :key_vault_meta_info
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_firewall_rule_parameters.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_firewall_rule_parameters.rb
old mode 100755
new mode 100644
index 4238a3a2ee..5067bbd327
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_firewall_rule_parameters.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_firewall_rule_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UpdateFirewallRuleParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] the start IP address for the firewall rule. This can
# be either ipv4 or ipv6. Start and End should be in the same protocol.
attr_accessor :start_ip_address
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_key_vault_meta_info.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_key_vault_meta_info.rb
old mode 100755
new mode 100644
index 0e12cebfd0..589f7f1b8f
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_key_vault_meta_info.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_key_vault_meta_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UpdateKeyVaultMetaInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] The version of the user managed encryption key to
# update through a key rotation.
attr_accessor :encryption_key_version
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_trusted_id_provider_parameters.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_trusted_id_provider_parameters.rb
old mode 100755
new mode 100644
index dc7d50ddbe..efd99c399c
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_trusted_id_provider_parameters.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/models/update_trusted_id_provider_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UpdateTrustedIdProviderParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URL of this trusted identity provider
attr_accessor :id_provider
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/module_definition.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/module_definition.rb
old mode 100755
new mode 100644
index 53b83079f7..13842e9c95
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/module_definition.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/trusted_id_providers.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/trusted_id_providers.rb
old mode 100755
new mode 100644
index 459aa2dba2..7ae4a572f7
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/trusted_id_providers.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/trusted_id_providers.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/version.rb b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/version.rb
old mode 100755
new mode 100644
index d72b6dafdf..a3644d16d9
--- a/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/version.rb
+++ b/management/azure_mgmt_datalake_store/lib/generated/azure_mgmt_datalake_store/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::DataLakeStore
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_devtestlabs/azure_mgmt_devtestlabs.gemspec b/management/azure_mgmt_devtestlabs/azure_mgmt_devtestlabs.gemspec
index b547dea523..954338b417 100644
--- a/management/azure_mgmt_devtestlabs/azure_mgmt_devtestlabs.gemspec
+++ b/management/azure_mgmt_devtestlabs/azure_mgmt_devtestlabs.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs.rb
old mode 100755
new mode 100644
index 5e149bbcbc..b0da14ed37
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -129,6 +129,7 @@ module Models
autoload :ResponseWithContinuationSchedule, 'generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb'
autoload :PortFragment, 'generated/azure_mgmt_devtestlabs/models/port_fragment.rb'
autoload :ComputeVmInstanceViewStatus, 'generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb'
+ autoload :Resource, 'generated/azure_mgmt_devtestlabs/models/resource.rb'
autoload :CustomImagePropertiesFromVm, 'generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb'
autoload :ResponseWithContinuationArmTemplate, 'generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb'
autoload :ResponseWithContinuationLabVirtualMachine, 'generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb'
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/arm_templates.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/arm_templates.rb
old mode 100755
new mode 100644
index aaf5ea770c..086775cee7
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/arm_templates.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/arm_templates.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/artifact_sources.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/artifact_sources.rb
old mode 100755
new mode 100644
index e41a4fe3b5..dd5b1b1597
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/artifact_sources.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/artifact_sources.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/artifacts.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/artifacts.rb
old mode 100755
new mode 100644
index 6beb88106d..90e0825b76
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/artifacts.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/artifacts.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/costs.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/costs.rb
old mode 100755
new mode 100644
index ae5cdf9411..43d2e1155d
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/costs.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/costs.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/custom_images.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/custom_images.rb
old mode 100755
new mode 100644
index 89da978808..ed342adbe8
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/custom_images.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/custom_images.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb
old mode 100755
new mode 100644
index 4b665c145c..7619980a36
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/disks.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/disks.rb
old mode 100755
new mode 100644
index 7279561011..0f7e8e27ab
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/disks.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/disks.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/environments.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/environments.rb
old mode 100755
new mode 100644
index dfed90a0ea..4beb3f1bed
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/environments.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/environments.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/formulas.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/formulas.rb
old mode 100755
new mode 100644
index 649843e640..30c0681c72
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/formulas.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/formulas.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/gallery_images.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/gallery_images.rb
old mode 100755
new mode 100644
index b0ac8148a4..3979807695
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/gallery_images.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/gallery_images.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/global_schedules.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/global_schedules.rb
old mode 100755
new mode 100644
index 17def14254..48ea36d373
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/global_schedules.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/global_schedules.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/labs.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/labs.rb
old mode 100755
new mode 100644
index 739b251d04..b1d9fdcd84
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/labs.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/labs.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb
old mode 100755
new mode 100644
index 2fdd656bac..1fb3bb48db
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,11 +9,10 @@ module Models
# Schedules applicable to a virtual machine. The schedules may have been
# defined on a VM or on lab level.
#
- class ApplicableSchedule < MsRestAzure::Resource
+ class ApplicableSchedule < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Schedule] The auto-shutdown schedule, if one has been set at
# the lab or lab resource level.
attr_accessor :lab_vms_shutdown
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb
old mode 100755
new mode 100644
index 2b2cbf5267..de302939a0
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,11 +9,10 @@ module Models
# Schedules applicable to a virtual machine. The schedules may have been
# defined on a VM or on lab level.
#
- class ApplicableScheduleFragment < MsRestAzure::Resource
+ class ApplicableScheduleFragment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [ScheduleFragment] The auto-shutdown schedule, if one has been
# set at the lab or lab resource level.
attr_accessor :lab_vms_shutdown
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb
old mode 100755
new mode 100644
index c32d9ffa51..414a25db9b
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplyArtifactsRequest
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of artifacts to
# apply.
attr_accessor :artifacts
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template.rb
old mode 100755
new mode 100644
index d5e7430844..10fe19ccf8
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# An Azure Resource Manager template.
#
- class ArmTemplate < MsRestAzure::Resource
+ class ArmTemplate < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The display name of the ARM template.
attr_accessor :display_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb
old mode 100755
new mode 100644
index b39b095d7f..35d95ae517
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ArmTemplateInfo
include MsRestAzure
- include MsRest::JSONable
# @return The template's contents.
attr_accessor :template
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb
old mode 100755
new mode 100644
index 3d55bbacdf..9ac12c27eb
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ArmTemplateParameterProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the template parameter.
attr_accessor :name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact.rb
old mode 100755
new mode 100644
index 486323b3df..e1c3518577
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# An artifact.
#
- class Artifact < MsRestAzure::Resource
+ class Artifact < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The artifact's title.
attr_accessor :title
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb
old mode 100755
new mode 100644
index c7121c0e7e..6ed1bb68b9
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ArtifactDeploymentStatusProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The deployment status of the artifact.
attr_accessor :deployment_status
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb
old mode 100755
new mode 100644
index 349fe32517..152f940881
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ArtifactDeploymentStatusPropertiesFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The deployment status of the artifact.
attr_accessor :deployment_status
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb
old mode 100755
new mode 100644
index 882a591a1c..125877d0f3
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ArtifactInstallProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The artifact's identifier.
attr_accessor :artifact_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb
old mode 100755
new mode 100644
index 95d9fa0e14..94be3b7e95
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ArtifactInstallPropertiesFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The artifact's identifier.
attr_accessor :artifact_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb
old mode 100755
new mode 100644
index 8f553b00d9..f46654acf5
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ArtifactParameterProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the artifact parameter.
attr_accessor :name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb
old mode 100755
new mode 100644
index 482e4b44a3..0d84078167
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ArtifactParameterPropertiesFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the artifact parameter.
attr_accessor :name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_source.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_source.rb
old mode 100755
new mode 100644
index 4465aa5dcd..51a8f8a9bc
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_source.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Properties of an artifact source.
#
- class ArtifactSource < MsRestAzure::Resource
+ class ArtifactSource < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The artifact source's display name.
attr_accessor :display_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb
old mode 100755
new mode 100644
index 9e84a29e23..43d39464e5
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Properties of an artifact source.
#
- class ArtifactSourceFragment < MsRestAzure::Resource
+ class ArtifactSourceFragment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The artifact source's display name.
attr_accessor :display_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb
old mode 100755
new mode 100644
index 255b7dae19..f9d61e1688
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AttachDiskProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the Lab virtual machine to which
# the disk is attached.
attr_accessor :leased_by_lab_vm_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb
old mode 100755
new mode 100644
index 6091aa6b9b..ee84c879a9
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AttachNewDataDiskOptions
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Size of the disk to be attached in GibiBytes.
attr_accessor :disk_size_gi_b
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb
old mode 100755
new mode 100644
index c6aae84426..d69a7426e0
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BulkCreationParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The number of virtual machine instances to create.
attr_accessor :instance_count
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb
old mode 100755
new mode 100644
index 8576e55c5f..c0908e8d95
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputeDataDisk
include MsRestAzure
- include MsRest::JSONable
# @return [String] Gets data disk name.
attr_accessor :name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb
old mode 100755
new mode 100644
index 38bfdeda6a..1ac082d738
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputeDataDiskFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] Gets data disk name.
attr_accessor :name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb
old mode 100755
new mode 100644
index a16cece2c0..9a38bdeea1
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputeVmInstanceViewStatus
include MsRestAzure
- include MsRest::JSONable
# @return [String] Gets the status Code.
attr_accessor :code
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb
old mode 100755
new mode 100644
index 44a82fd5ca..69dd12acab
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputeVmInstanceViewStatusFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] Gets the status Code.
attr_accessor :code
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb
old mode 100755
new mode 100644
index 7c0e13fe78..10c0df0436
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputeVmProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Gets the statuses of the
# virtual machine.
attr_accessor :statuses
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb
old mode 100755
new mode 100644
index 4a6048de31..73230b0a36
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ComputeVmPropertiesFragment
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Gets the statuses
# of the virtual machine.
attr_accessor :statuses
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb
old mode 100755
new mode 100644
index 04d6aba517..4324811396
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CostThresholdProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ID of the cost threshold item.
attr_accessor :threshold_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb
old mode 100755
new mode 100644
index 64369d9f57..cade1c8f28
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_type.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_type.rb
old mode 100755
new mode 100644
index 9a7bf911ad..799908ecab
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_type.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/cost_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image.rb
old mode 100755
new mode 100644
index 608567284f..506792e837
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A custom image.
#
- class CustomImage < MsRestAzure::Resource
+ class CustomImage < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [CustomImagePropertiesFromVm] The virtual machine from which
# the image is to be created.
attr_accessor :vm
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb
old mode 100755
new mode 100644
index 4d9789b9e4..fdc4ae7a76
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb
old mode 100755
new mode 100644
index 99cdde45aa..36191c9271
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CustomImagePropertiesCustom
include MsRestAzure
- include MsRest::JSONable
# @return [String] The image name.
attr_accessor :image_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb
old mode 100755
new mode 100644
index 2658d8707f..336bf423a4
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CustomImagePropertiesFromVm
include MsRestAzure
- include MsRest::JSONable
# @return [String] The source vm identifier.
attr_accessor :source_vm_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb
old mode 100755
new mode 100644
index 73f9fcecfc..c7648a9b2d
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DataDiskProperties
include MsRestAzure
- include MsRest::JSONable
# @return [AttachNewDataDiskOptions] Specifies options to attach a new
# disk to the virtual machine.
attr_accessor :attach_new_data_disk_options
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/day_details.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/day_details.rb
old mode 100755
new mode 100644
index 4fb25ce5f6..0b4272aabf
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/day_details.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/day_details.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DayDetails
include MsRestAzure
- include MsRest::JSONable
# @return [String] The time of day the schedule will occur.
attr_accessor :time
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb
old mode 100755
new mode 100644
index 9105246463..7cfc545da9
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DayDetailsFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The time of day the schedule will occur.
attr_accessor :time
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb
old mode 100755
new mode 100644
index 15c3154b9b..daba42e908
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DetachDataDiskProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] Specifies the disk resource ID to detach from virtual
# machine.
attr_accessor :existing_lab_disk_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb
old mode 100755
new mode 100644
index 36cc237b4b..8041fd28cc
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DetachDiskProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the Lab VM to which the disk is
# attached.
attr_accessor :leased_by_lab_vm_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/disk.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/disk.rb
old mode 100755
new mode 100644
index 2b83aa1dfa..cf9bbc9fec
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/disk.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/disk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A Disk.
#
- class Disk < MsRestAzure::Resource
+ class Disk < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [StorageType] The storage type for the disk (i.e. Standard,
# Premium). Possible values include: 'Standard', 'Premium'
attr_accessor :disk_type
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb
old mode 100755
new mode 100644
index 6ba643bb3e..cc8ae53363
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# An environment, which is essentially an ARM template deployment.
#
- class DtlEnvironment < MsRestAzure::Resource
+ class DtlEnvironment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [EnvironmentDeploymentProperties] The deployment properties of
# the environment.
attr_accessor :deployment_properties
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/enable_status.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/enable_status.rb
old mode 100755
new mode 100644
index e4ea81b58e..d52ed488b1
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/enable_status.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/enable_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb
old mode 100755
new mode 100644
index 9124c66bd9..20df197172
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EnvironmentDeploymentProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The Azure Resource Manager template's identifier.
attr_accessor :arm_template_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb
old mode 100755
new mode 100644
index 812bd5aa7f..cf46d18026
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EvaluatePoliciesProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The fact name.
attr_accessor :fact_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb
old mode 100755
new mode 100644
index a2f8841241..1d30d39a10
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EvaluatePoliciesRequest
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Policies to evaluate.
attr_accessor :policies
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb
old mode 100755
new mode 100644
index 64eb91e8f1..9555a1311a
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EvaluatePoliciesResponse
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Results of evaluating a policy set.
attr_accessor :results
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/event.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/event.rb
old mode 100755
new mode 100644
index d1793cecc3..472ac187ce
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/event.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/event.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Event
include MsRestAzure
- include MsRest::JSONable
# @return [NotificationChannelEventType] The event type for which this
# notification is enabled (i.e. AutoShutdown, Cost). Possible values
# include: 'AutoShutdown', 'Cost'
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/event_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/event_fragment.rb
old mode 100755
new mode 100644
index 17e84f6f86..af3bed9b6c
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/event_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/event_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EventFragment
include MsRestAzure
- include MsRest::JSONable
# @return [NotificationChannelEventType] The event type for which this
# notification is enabled (i.e. AutoShutdown, Cost). Possible values
# include: 'AutoShutdown', 'Cost'
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb
old mode 100755
new mode 100644
index e3a174c887..ca848b6479
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExportResourceUsageParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The blob storage absolute sas uri with write
# permission to the container which the usage data needs to be uploaded
# to.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/external_subnet.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/external_subnet.rb
old mode 100755
new mode 100644
index 38bad89f09..cfb31f64ec
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/external_subnet.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/external_subnet.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExternalSubnet
include MsRestAzure
- include MsRest::JSONable
# @return [String] Gets or sets the identifier.
attr_accessor :id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb
old mode 100755
new mode 100644
index a842caf82b..9eb0576a5c
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExternalSubnetFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] Gets or sets the identifier.
attr_accessor :id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb
old mode 100755
new mode 100644
index faa6cdab5c..dc3991ab64
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/formula.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/formula.rb
old mode 100755
new mode 100644
index 185ce2be7e..573cd277ef
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/formula.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/formula.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,11 +9,10 @@ module Models
# A formula for creating a VM, specifying an image base and other
# parameters
#
- class Formula < MsRestAzure::Resource
+ class Formula < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The description of the formula.
attr_accessor :description
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb
old mode 100755
new mode 100644
index cb5a8bec16..3059ea4545
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class FormulaPropertiesFromVm
include MsRestAzure
- include MsRest::JSONable
# @return [String] The identifier of the VM from which a formula is to be
# created.
attr_accessor :lab_vm_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image.rb
old mode 100755
new mode 100644
index 0bf46a004a..5a5abc1fb3
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A gallery image.
#
- class GalleryImage < MsRestAzure::Resource
+ class GalleryImage < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The author of the gallery image.
attr_accessor :author
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb
old mode 100755
new mode 100644
index a26f2e92c3..7b3149e735
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GalleryImageReference
include MsRestAzure
- include MsRest::JSONable
# @return [String] The offer of the gallery image.
attr_accessor :offer
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb
old mode 100755
new mode 100644
index c0b8e48059..26878184ad
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GalleryImageReferenceFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The offer of the gallery image.
attr_accessor :offer
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb
old mode 100755
new mode 100644
index 8b39768c73..1a17eb0ea4
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GenerateArmTemplateRequest
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource name of the virtual machine.
attr_accessor :virtual_machine_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb
old mode 100755
new mode 100644
index c3fd9eac77..55fcc92c50
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GenerateUploadUriParameter
include MsRestAzure
- include MsRest::JSONable
# @return [String] The blob name of the upload URI.
attr_accessor :blob_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb
old mode 100755
new mode 100644
index 5a82367347..233f4c44f2
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GenerateUploadUriResponse
include MsRestAzure
- include MsRest::JSONable
# @return [String] The upload URI for the VHD.
attr_accessor :upload_uri
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb
old mode 100755
new mode 100644
index 6ed82ad00a..4d36f2b5b4
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/hour_details.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/hour_details.rb
old mode 100755
new mode 100644
index cb7f5948f1..ba82ae9c22
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/hour_details.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/hour_details.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class HourDetails
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Minutes of the hour the schedule will run.
attr_accessor :minute
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb
old mode 100755
new mode 100644
index 1abbac20d7..a9034f73ee
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class HourDetailsFragment
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Minutes of the hour the schedule will run.
attr_accessor :minute
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/identity_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/identity_properties.rb
old mode 100755
new mode 100644
index ac5f9ac172..cda2d1ad31
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/identity_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/identity_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IdentityProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] Managed identity.
attr_accessor :type
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb
old mode 100755
new mode 100644
index 508f4f726c..260d59451a
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class InboundNatRule
include MsRestAzure
- include MsRest::JSONable
# @return [TransportProtocol] The transport protocol for the endpoint.
# Possible values include: 'Tcp', 'Udp'
attr_accessor :transport_protocol
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb
old mode 100755
new mode 100644
index 6d66502c40..2598d7d0e0
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class InboundNatRuleFragment
include MsRestAzure
- include MsRest::JSONable
# @return [TransportProtocol] The transport protocol for the endpoint.
# Possible values include: 'Tcp', 'Udp'
attr_accessor :transport_protocol
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab.rb
old mode 100755
new mode 100644
index 502669442f..86a83eae2e
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A lab.
#
- class Lab < MsRestAzure::Resource
+ class Lab < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The lab's default storage account.
attr_accessor :default_storage_account
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost.rb
old mode 100755
new mode 100644
index 9eaf8fe8d6..08188ab817
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A cost item.
#
- class LabCost < MsRestAzure::Resource
+ class LabCost < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [TargetCostProperties] The target cost properties
attr_accessor :target_cost
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb
old mode 100755
new mode 100644
index 0aa14195ea..26995503ed
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LabCostDetailsProperties
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] The date of the cost item.
attr_accessor :date
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb
old mode 100755
new mode 100644
index b145892ff0..3ba163ecf5
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LabCostSummaryProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Float] The cost component of the cost item.
attr_accessor :estimated_lab_cost
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb
old mode 100755
new mode 100644
index 92ede6e0d2..d9f4f36c65
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A lab.
#
- class LabFragment < MsRestAzure::Resource
+ class LabFragment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [StorageType] Type of storage used by the lab. It can be either
# Premium or Standard. Default is Premium. Possible values include:
# 'Standard', 'Premium'
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb
old mode 100755
new mode 100644
index 465df1f8e2..5ef15134d3
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LabResourceCostProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the resource.
attr_accessor :resourcename
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb
old mode 100755
new mode 100644
index 05c6f91028..ef5993fdd9
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LabVhd
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URI to the VHD.
attr_accessor :id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb
old mode 100755
new mode 100644
index a343ca0c84..7c2e227ec7
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A virtual machine.
#
- class LabVirtualMachine < MsRestAzure::Resource
+ class LabVirtualMachine < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The notes of the virtual machine.
attr_accessor :notes
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb
old mode 100755
new mode 100644
index b7bd78928d..061930cb3e
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LabVirtualMachineCreationParameter
include MsRestAzure
- include MsRest::JSONable
# @return [BulkCreationParameters] The number of virtual machine
# instances to create.
attr_accessor :bulk_creation_parameters
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb
old mode 100755
new mode 100644
index 7bc782dcfc..e121f42cbd
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A virtual machine.
#
- class LabVirtualMachineFragment < MsRestAzure::Resource
+ class LabVirtualMachineFragment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The notes of the virtual machine.
attr_accessor :notes
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb
old mode 100755
new mode 100644
index 7ac0c94ee4..568a54caf1
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LinuxOsInfo
include MsRestAzure
- include MsRest::JSONable
# @return [LinuxOsState] The state of the Linux OS (i.e.
# NonDeprovisioned, DeprovisionRequested, DeprovisionApplied). Possible
# values include: 'NonDeprovisioned', 'DeprovisionRequested',
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb
old mode 100755
new mode 100644
index 7a4d780d53..75e0b009ea
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb
old mode 100755
new mode 100644
index 3c2bf285ef..5aa4a89814
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NetworkInterfaceProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the virtual network.
attr_accessor :virtual_network_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb
old mode 100755
new mode 100644
index 57d0750a45..95bbe2ba58
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NetworkInterfacePropertiesFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the virtual network.
attr_accessor :virtual_network_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel.rb
old mode 100755
new mode 100644
index 95fb50c80f..43e92fcee5
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A notification.
#
- class NotificationChannel < MsRestAzure::Resource
+ class NotificationChannel < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The webhook URL to send notifications to.
attr_accessor :web_hook_url
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb
old mode 100755
new mode 100644
index e4ee3c7668..fb3f58ac6a
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb
old mode 100755
new mode 100644
index b5a3031739..5c4c201e24
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A notification.
#
- class NotificationChannelFragment < MsRestAzure::Resource
+ class NotificationChannelFragment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The webhook URL to send notifications to.
attr_accessor :web_hook_url
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_settings.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_settings.rb
old mode 100755
new mode 100644
index cc35838cab..c0ab016ae6
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_settings.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NotificationSettings
include MsRestAzure
- include MsRest::JSONable
# @return [NotificationStatus] If notifications are enabled for this
# schedule (i.e. Enabled, Disabled). Possible values include: 'Disabled',
# 'Enabled'
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb
old mode 100755
new mode 100644
index aaec4efa0c..edf00d2bb3
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NotificationSettingsFragment
include MsRestAzure
- include MsRest::JSONable
# @return [NotificationStatus] If notifications are enabled for this
# schedule (i.e. Enabled, Disabled). Possible values include: 'Disabled',
# 'Enabled'
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_status.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_status.rb
old mode 100755
new mode 100644
index 149855c43c..eadb9fa673
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_status.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notification_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb
old mode 100755
new mode 100644
index 7b28dfbae5..9abcb3cdf7
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NotifyParameters
include MsRestAzure
- include MsRest::JSONable
# @return [NotificationChannelEventType] The type of event (i.e.
# AutoShutdown, Cost). Possible values include: 'AutoShutdown', 'Cost'
attr_accessor :event_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/parameter_info.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/parameter_info.rb
old mode 100755
new mode 100644
index 5467ff2533..46977aef8f
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/parameter_info.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/parameter_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ParameterInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the artifact parameter.
attr_accessor :name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb
old mode 100755
new mode 100644
index 2d72ee1a43..067faffeee
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ParametersValueFileInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] File name.
attr_accessor :file_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb
old mode 100755
new mode 100644
index 2761147ef3..f9d54deea9
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PercentageCostThresholdProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Float] The cost threshold value.
attr_accessor :threshold_value
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy.rb
old mode 100755
new mode 100644
index a95101b51c..c47fddee3f
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A Policy.
#
- class Policy < MsRestAzure::Resource
+ class Policy < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The description of the policy.
attr_accessor :description
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb
old mode 100755
new mode 100644
index afcc628296..14f67731d2
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb
old mode 100755
new mode 100644
index a1df073478..644c56f9d9
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb
old mode 100755
new mode 100644
index 83f39a7b65..543ee78f9f
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A Policy.
#
- class PolicyFragment < MsRestAzure::Resource
+ class PolicyFragment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The description of the policy.
attr_accessor :description
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb
old mode 100755
new mode 100644
index c955d0773a..37636ea9d9
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PolicySetResult
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] A value indicating whether this policy set evaluation
# has discovered violations.
attr_accessor :has_error
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_status.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_status.rb
old mode 100755
new mode 100644
index 36d8e8eb39..2750d046bc
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_status.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_violation.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_violation.rb
old mode 100755
new mode 100644
index 99008c5d9f..a3615091f0
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_violation.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/policy_violation.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PolicyViolation
include MsRestAzure
- include MsRest::JSONable
# @return [String] The code of the policy violation.
attr_accessor :code
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/port.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/port.rb
old mode 100755
new mode 100644
index 298d6e065b..98111cd4b0
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/port.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/port.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Port
include MsRestAzure
- include MsRest::JSONable
# @return [TransportProtocol] Protocol type of the port. Possible values
# include: 'Tcp', 'Udp'
attr_accessor :transport_protocol
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/port_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/port_fragment.rb
old mode 100755
new mode 100644
index a30fc131d1..e0569105cc
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/port_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/port_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PortFragment
include MsRestAzure
- include MsRest::JSONable
# @return [TransportProtocol] Protocol type of the port. Possible values
# include: 'Tcp', 'Udp'
attr_accessor :transport_protocol
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb
old mode 100755
new mode 100644
index 56e4a1a249..3ef0c8acd7
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb
old mode 100755
new mode 100644
index d59ef046d3..302dd2369d
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/resource.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/resource.rb
new file mode 100644
index 0000000000..0d23706917
--- /dev/null
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/resource.rb
@@ -0,0 +1,94 @@
+# 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::ARM::DevTestLabs
+ module Models
+ #
+ # An Azure resource.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] The identifier of the resource.
+ attr_accessor :id
+
+ # @return [String] The name of the resource.
+ attr_accessor :name
+
+ # @return [String] The type of the resource.
+ attr_accessor :type
+
+ # @return [String] The location of the resource.
+ attr_accessor :location
+
+ # @return [Hash{String => String}] The tags of the resource.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: false,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb
old mode 100755
new mode 100644
index fabb328282..604a3b6a86
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb
old mode 100755
new mode 100644
index ad6af2ecbf..0fd3fb6017
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb
old mode 100755
new mode 100644
index ee5dc2b3dd..4668d72d9d
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb
old mode 100755
new mode 100644
index e68d4115a4..0587ec1510
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb
old mode 100755
new mode 100644
index d45ecba460..111c3f53ca
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb
old mode 100755
new mode 100644
index 7f328f814d..e3664c8c71
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb
old mode 100755
new mode 100644
index 8ef520258e..dc0c8ec831
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb
old mode 100755
new mode 100644
index 60bba90f3a..d074f24690
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb
old mode 100755
new mode 100644
index 3a76e6f12d..cb15e26ace
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb
old mode 100755
new mode 100644
index a153cea986..25083ec0ea
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb
old mode 100755
new mode 100644
index 1ecc61c3a6..f621dfb765
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb
old mode 100755
new mode 100644
index 778ee2e6a4..9970e5b6f9
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb
old mode 100755
new mode 100644
index d0b95bffdc..965ecdf886
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb
old mode 100755
new mode 100644
index 37b99b08dd..c768908ed8
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb
old mode 100755
new mode 100644
index 296af25562..6c5909105d
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb
old mode 100755
new mode 100644
index 8599687f42..609e1d44bd
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb
old mode 100755
new mode 100644
index a6d7c2dd61..c33984a557
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb
old mode 100755
new mode 100644
index 8bfa202aab..8bc479b75d
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb
old mode 100755
new mode 100644
index e1ed753479..0c2d47370a
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RetargetScheduleProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource Id of the virtual machine on which the
# schedule operates
attr_accessor :current_resource_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/schedule.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/schedule.rb
old mode 100755
new mode 100644
index 44613180d7..3d4aac355a
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/schedule.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/schedule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A schedule.
#
- class Schedule < MsRestAzure::Resource
+ class Schedule < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [EnableStatus] The status of the schedule (i.e. Enabled,
# Disabled). Possible values include: 'Enabled', 'Disabled'
attr_accessor :status
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb
old mode 100755
new mode 100644
index 8d7445f038..bb0659e255
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A schedule.
#
- class ScheduleFragment < MsRestAzure::Resource
+ class ScheduleFragment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [EnableStatus] The status of the schedule (i.e. Enabled,
# Disabled). Possible values include: 'Enabled', 'Disabled'
attr_accessor :status
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/secret.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/secret.rb
old mode 100755
new mode 100644
index 597b485ead..c4a60714d1
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/secret.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/secret.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A secret.
#
- class Secret < MsRestAzure::Resource
+ class Secret < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The value of the secret for secret creation.
attr_accessor :value
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/service_runner.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/service_runner.rb
old mode 100755
new mode 100644
index bbddff7d1f..14796a4624
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/service_runner.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/service_runner.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A container for a managed identity to execute DevTest lab services.
#
- class ServiceRunner < MsRestAzure::Resource
+ class ServiceRunner < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [IdentityProperties] The identity of the resource.
attr_accessor :identity
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb
old mode 100755
new mode 100644
index a6a7ea1ced..22a3f0c5c6
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class SharedPublicIpAddressConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The incoming NAT rules
attr_accessor :inbound_nat_rules
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb
old mode 100755
new mode 100644
index 4c73bed523..29104c6a5d
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class SharedPublicIpAddressConfigurationFragment
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The incoming NAT rules
attr_accessor :inbound_nat_rules
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb
old mode 100755
new mode 100644
index e6e71ae6ee..774ef1e69f
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -14,7 +14,6 @@ class ShutdownNotificationContent
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URL to skip auto-shutdown.
attr_accessor :skip_url
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/source_control_type.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/source_control_type.rb
old mode 100755
new mode 100644
index 7e771e89fd..7b3326c968
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/source_control_type.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/source_control_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/storage_type.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/storage_type.rb
old mode 100755
new mode 100644
index fbd5fedcc6..abe4440abd
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/storage_type.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/storage_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet.rb
old mode 100755
new mode 100644
index 685b198140..db8216a2f8
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Subnet
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the subnet.
attr_accessor :resource_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb
old mode 100755
new mode 100644
index 64e311a5fe..3265c7b1c0
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SubnetFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the subnet.
attr_accessor :resource_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_override.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_override.rb
old mode 100755
new mode 100644
index ef142f94ef..9175bb2f51
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_override.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_override.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SubnetOverride
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the subnet.
attr_accessor :resource_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb
old mode 100755
new mode 100644
index 7bcc9caba4..1be29d7e5c
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SubnetOverrideFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the subnet.
attr_accessor :resource_id
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb
old mode 100755
new mode 100644
index 609d6b1e42..ccd7a861e5
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SubnetSharedPublicIpAddressConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Backend ports that virtual machines on this
# subnet are allowed to expose
attr_accessor :allowed_ports
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb
old mode 100755
new mode 100644
index 44740ac36a..760ffb4d44
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SubnetSharedPublicIpAddressConfigurationFragment
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Backend ports that virtual machines on
# this subnet are allowed to expose
attr_accessor :allowed_ports
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb
old mode 100755
new mode 100644
index 56f87e36ad..0f90cdae42
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class TargetCostProperties
include MsRestAzure
- include MsRest::JSONable
# @return [TargetCostStatus] Target cost status. Possible values include:
# 'Enabled', 'Disabled'
attr_accessor :status
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb
old mode 100755
new mode 100644
index 5d056fae9f..41854eae85
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb
old mode 100755
new mode 100644
index e3190675a2..e3434dc7e8
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb
old mode 100755
new mode 100644
index c3f5f9682e..e54d3d84e6
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user.rb
old mode 100755
new mode 100644
index cff63a2ca2..0d4ec6e69f
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Profile of a lab user.
#
- class User < MsRestAzure::Resource
+ class User < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [UserIdentity] The identity of the user.
attr_accessor :identity
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_fragment.rb
old mode 100755
new mode 100644
index 99b40a7bb0..cfdfeb4e3b
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Profile of a lab user.
#
- class UserFragment < MsRestAzure::Resource
+ class UserFragment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [UserIdentityFragment] The identity of the user.
attr_accessor :identity
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_identity.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_identity.rb
old mode 100755
new mode 100644
index ae67608d89..4b88c4e410
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_identity.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_identity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UserIdentity
include MsRestAzure
- include MsRest::JSONable
# @return [String] Set to the principal name / UPN of the client JWT
# making the request.
attr_accessor :principal_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb
old mode 100755
new mode 100644
index 15f3f2bf9f..8d4c664085
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UserIdentityFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] Set to the principal name / UPN of the client JWT
# making the request.
attr_accessor :principal_name
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb
old mode 100755
new mode 100644
index 05b2f5b653..474a9a9146
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UserSecretStore
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URI of the user's Key vault.
attr_accessor :key_vault_uri
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb
old mode 100755
new mode 100644
index 26bbb28b26..44bcd2a8ef
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UserSecretStoreFragment
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URI of the user's Key vault.
attr_accessor :key_vault_uri
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb
old mode 100755
new mode 100644
index 410e90f4c8..d6e6746373
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_network.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_network.rb
old mode 100755
new mode 100644
index 2fcc69c0c6..4d5c2863a7
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_network.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_network.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A virtual network.
#
- class VirtualNetwork < MsRestAzure::Resource
+ class VirtualNetwork < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The allowed subnets of the virtual network.
attr_accessor :allowed_subnets
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb
old mode 100755
new mode 100644
index 5352ed253f..86c6fdf81d
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A virtual network.
#
- class VirtualNetworkFragment < MsRestAzure::Resource
+ class VirtualNetworkFragment < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The allowed subnets of the virtual
# network.
attr_accessor :allowed_subnets
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/week_details.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/week_details.rb
old mode 100755
new mode 100644
index 602d089a82..771516b9c5
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/week_details.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/week_details.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WeekDetails
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The days of the week for which the schedule is
# set (e.g. Sunday, Monday, Tuesday, etc.).
attr_accessor :weekdays
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb
old mode 100755
new mode 100644
index 804e61226d..a8a31ba3fb
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WeekDetailsFragment
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The days of the week for which the schedule is
# set (e.g. Sunday, Monday, Tuesday, etc.).
attr_accessor :weekdays
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb
old mode 100755
new mode 100644
index 99e12342f4..b6d17d0afd
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WindowsOsInfo
include MsRestAzure
- include MsRest::JSONable
# @return [WindowsOsState] The state of the Windows OS (i.e.
# NonSysprepped, SysprepRequested, SysprepApplied). Possible values
# include: 'NonSysprepped', 'SysprepRequested', 'SysprepApplied'
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb
old mode 100755
new mode 100644
index 6696b6548d..1461baf97b
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/module_definition.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/module_definition.rb
old mode 100755
new mode 100644
index dd15a510b5..4ee0add0fe
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/module_definition.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/notification_channels.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/notification_channels.rb
old mode 100755
new mode 100644
index 71a1194308..15dfba38e7
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/notification_channels.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/notification_channels.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/policies.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/policies.rb
old mode 100755
new mode 100644
index 12fbb505cd..a7f158b006
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/policies.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/policies.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/policy_sets.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/policy_sets.rb
old mode 100755
new mode 100644
index 275603653f..f5b108b2d0
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/policy_sets.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/policy_sets.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/schedules.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/schedules.rb
old mode 100755
new mode 100644
index 5b9655de23..31a850b7f7
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/schedules.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/schedules.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/secrets.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/secrets.rb
old mode 100755
new mode 100644
index 7104b58fe1..3b3bb002b8
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/secrets.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/secrets.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/service_runners.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/service_runners.rb
old mode 100755
new mode 100644
index fd2f7da4fe..95701dfff3
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/service_runners.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/service_runners.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/users.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/users.rb
old mode 100755
new mode 100644
index ddea7e5b50..98e8f897ce
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/users.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/users.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/version.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/version.rb
old mode 100755
new mode 100644
index cb3989e37b..3641b5ff8a
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/version.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::DevTestLabs
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb
old mode 100755
new mode 100644
index 690202aeb0..f48d1e85bd
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_machines.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_machines.rb
old mode 100755
new mode 100644
index 78db84cff1..0f310f0059
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_machines.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_machines.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_networks.rb b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_networks.rb
old mode 100755
new mode 100644
index e482bf124c..bbc5bc8103
--- a/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_networks.rb
+++ b/management/azure_mgmt_devtestlabs/lib/generated/azure_mgmt_devtestlabs/virtual_networks.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_dns/azure_mgmt_dns.gemspec b/management/azure_mgmt_dns/azure_mgmt_dns.gemspec
index 329ded050f..583c1e87b9 100644
--- a/management/azure_mgmt_dns/azure_mgmt_dns.gemspec
+++ b/management/azure_mgmt_dns/azure_mgmt_dns.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns.rb
old mode 100755
new mode 100644
index 4b66859345..ffb6fecfc8
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -37,6 +37,7 @@ module Models
autoload :AaaaRecord, 'generated/azure_mgmt_dns/models/aaaa_record.rb'
autoload :ZoneListResult, 'generated/azure_mgmt_dns/models/zone_list_result.rb'
autoload :TxtRecord, 'generated/azure_mgmt_dns/models/txt_record.rb'
+ autoload :Resource, 'generated/azure_mgmt_dns/models/resource.rb'
autoload :NsRecord, 'generated/azure_mgmt_dns/models/ns_record.rb'
autoload :SoaRecord, 'generated/azure_mgmt_dns/models/soa_record.rb'
autoload :Zone, 'generated/azure_mgmt_dns/models/zone.rb'
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/dns_management_client.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/dns_management_client.rb
old mode 100755
new mode 100644
index 44dbd4c9e4..85419e0e23
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/dns_management_client.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/dns_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/aaaa_record.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/aaaa_record.rb
old mode 100755
new mode 100644
index 600fc80170..ab972ad39d
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/aaaa_record.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/aaaa_record.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AaaaRecord
include MsRestAzure
- include MsRest::JSONable
# @return [String] The IPv6 address of this AAAA record.
attr_accessor :ipv6address
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/arecord.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/arecord.rb
old mode 100755
new mode 100644
index d54f3c0f16..e5436eee56
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/arecord.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/arecord.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ARecord
include MsRestAzure
- include MsRest::JSONable
# @return [String] The IPv4 address of this A record.
attr_accessor :ipv4address
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/cname_record.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/cname_record.rb
old mode 100755
new mode 100644
index ebb1c2c095..226b100129
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/cname_record.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/cname_record.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CnameRecord
include MsRestAzure
- include MsRest::JSONable
# @return [String] The canonical name for this CNAME record.
attr_accessor :cname
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/http_status_code.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/http_status_code.rb
old mode 100755
new mode 100644
index 0af5b66e6b..c5916d4d27
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/http_status_code.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/http_status_code.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/mx_record.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/mx_record.rb
old mode 100755
new mode 100644
index fa4fc96ca0..5ecf455d6c
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/mx_record.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/mx_record.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class MxRecord
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The preference value for this MX record.
attr_accessor :preference
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/ns_record.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/ns_record.rb
old mode 100755
new mode 100644
index d7bf35f737..e2db628747
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/ns_record.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/ns_record.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NsRecord
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name server name for this NS record.
attr_accessor :nsdname
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/operation_status.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/operation_status.rb
old mode 100755
new mode 100644
index 336fd68de8..2b120b63bc
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/operation_status.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/operation_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/ptr_record.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/ptr_record.rb
old mode 100755
new mode 100644
index 9f7d95ff91..663095e5bb
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/ptr_record.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/ptr_record.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PtrRecord
include MsRestAzure
- include MsRest::JSONable
# @return [String] The PTR target domain name for this PTR record.
attr_accessor :ptrdname
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set.rb
old mode 100755
new mode 100644
index 718dafa0b0..6c249ed419
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RecordSet
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ID of the record set.
attr_accessor :id
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set_list_result.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set_list_result.rb
old mode 100755
new mode 100644
index 993c6be04f..63127366ad
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set_list_result.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set_update_parameters.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set_update_parameters.rb
old mode 100755
new mode 100644
index d4cd8880e3..c08f7cbdf9
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set_update_parameters.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_set_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RecordSetUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [RecordSet] Specifies information about the record set being
# updated.
attr_accessor :record_set
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_type.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_type.rb
old mode 100755
new mode 100644
index 3171575a80..89a9c6ca67
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_type.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/record_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/resource.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/resource.rb
new file mode 100644
index 0000000000..b18f75057f
--- /dev/null
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/resource.rb
@@ -0,0 +1,95 @@
+# 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::ARM::Dns
+ module Models
+ #
+ # Model object.
+ #
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] Resource ID.
+ attr_accessor :id
+
+ # @return [String] Resource name.
+ attr_accessor :name
+
+ # @return [String] Resource type.
+ attr_accessor :type
+
+ # @return [String] Resource location.
+ attr_accessor :location
+
+ # @return [Hash{String => String}] Resource tags.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/soa_record.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/soa_record.rb
old mode 100755
new mode 100644
index 39b7e3c8b1..3c6958024e
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/soa_record.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/soa_record.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SoaRecord
include MsRestAzure
- include MsRest::JSONable
# @return [String] The domain name of the authoritative name server for
# this SOA record.
attr_accessor :host
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/srv_record.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/srv_record.rb
old mode 100755
new mode 100644
index f6f73e1adc..6f6c9f51f7
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/srv_record.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/srv_record.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SrvRecord
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The priority value for this SRV record.
attr_accessor :priority
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/txt_record.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/txt_record.rb
old mode 100755
new mode 100644
index e727cfb743..9e8a8b7b4f
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/txt_record.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/txt_record.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class TxtRecord
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The text value of this TXT record.
attr_accessor :value
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone.rb
old mode 100755
new mode 100644
index 4fddbfb1de..1fb7bb1c67
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Describes a DNS zone.
#
- class Zone < MsRestAzure::Resource
+ class Zone < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The etag of the zone.
attr_accessor :etag
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone_delete_result.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone_delete_result.rb
old mode 100755
new mode 100644
index 579b8abcc6..8fa7b1db1f
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone_delete_result.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone_delete_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ZoneDeleteResult
include MsRestAzure
- include MsRest::JSONable
# @return [String] Users can perform a Get on Azure-AsyncOperation to get
# the status of their delete Zone operations.
attr_accessor :azure_async_operation
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone_list_result.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone_list_result.rb
old mode 100755
new mode 100644
index 4abf3cd8d9..647b1e7751
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone_list_result.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/models/zone_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/module_definition.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/module_definition.rb
old mode 100755
new mode 100644
index 70d99d2243..f830d92548
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/module_definition.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/record_sets.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/record_sets.rb
old mode 100755
new mode 100644
index 9b0eae3eaa..ce76debf46
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/record_sets.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/record_sets.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/version.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/version.rb
old mode 100755
new mode 100644
index ead779d8ca..13d9fc7e45
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/version.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Dns
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/zones.rb b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/zones.rb
old mode 100755
new mode 100644
index 34dde1b68d..a7515431c8
--- a/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/zones.rb
+++ b/management/azure_mgmt_dns/lib/generated/azure_mgmt_dns/zones.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/azure_mgmt_event_hub.gemspec b/management/azure_mgmt_event_hub/azure_mgmt_event_hub.gemspec
index 3c7daddce2..dd2f506136 100644
--- a/management/azure_mgmt_event_hub/azure_mgmt_event_hub.gemspec
+++ b/management/azure_mgmt_event_hub/azure_mgmt_event_hub.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub.rb
old mode 100755
new mode 100644
index bfa05de230..bf111882fa
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -22,31 +22,35 @@
module Azure::ARM::EventHub
autoload :Operations, 'generated/azure_mgmt_event_hub/operations.rb'
autoload :Namespaces, 'generated/azure_mgmt_event_hub/namespaces.rb'
+ autoload :DisasterRecoveryConfigs, 'generated/azure_mgmt_event_hub/disaster_recovery_configs.rb'
autoload :EventHubs, 'generated/azure_mgmt_event_hub/event_hubs.rb'
autoload :ConsumerGroups, 'generated/azure_mgmt_event_hub/consumer_groups.rb'
autoload :EventHubManagementClient, 'generated/azure_mgmt_event_hub/event_hub_management_client.rb'
module Models
autoload :CaptureDescription, 'generated/azure_mgmt_event_hub/models/capture_description.rb'
- autoload :RegenerateAccessKeyParameters, 'generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb'
autoload :Destination, 'generated/azure_mgmt_event_hub/models/destination.rb'
- autoload :Sku, 'generated/azure_mgmt_event_hub/models/sku.rb'
- autoload :OperationDisplay, 'generated/azure_mgmt_event_hub/models/operation_display.rb'
- autoload :EHNamespaceListResult, 'generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb'
- autoload :AuthorizationRuleListResult, 'generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb'
- autoload :EventHubListResult, 'generated/azure_mgmt_event_hub/models/event_hub_list_result.rb'
- autoload :ErrorResponse, 'generated/azure_mgmt_event_hub/models/error_response.rb'
+ autoload :Resource, 'generated/azure_mgmt_event_hub/models/resource.rb'
autoload :Operation, 'generated/azure_mgmt_event_hub/models/operation.rb'
- autoload :ConsumerGroupListResult, 'generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb'
+ autoload :ErrorResponse, 'generated/azure_mgmt_event_hub/models/error_response.rb'
autoload :OperationListResult, 'generated/azure_mgmt_event_hub/models/operation_list_result.rb'
- autoload :CheckNameAvailabilityParameter, 'generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb'
+ autoload :EventHubListResult, 'generated/azure_mgmt_event_hub/models/event_hub_list_result.rb'
autoload :AccessKeys, 'generated/azure_mgmt_event_hub/models/access_keys.rb'
+ autoload :ArmDisasterRecoveryListResult, 'generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb'
+ autoload :Sku, 'generated/azure_mgmt_event_hub/models/sku.rb'
+ autoload :ConsumerGroupListResult, 'generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb'
+ autoload :AuthorizationRuleListResult, 'generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb'
+ autoload :CheckNameAvailabilityParameter, 'generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb'
+ autoload :EHNamespaceListResult, 'generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb'
autoload :CheckNameAvailabilityResult, 'generated/azure_mgmt_event_hub/models/check_name_availability_result.rb'
+ autoload :RegenerateAccessKeyParameters, 'generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb'
+ autoload :OperationDisplay, 'generated/azure_mgmt_event_hub/models/operation_display.rb'
autoload :TrackedResource, 'generated/azure_mgmt_event_hub/models/tracked_resource.rb'
autoload :EHNamespace, 'generated/azure_mgmt_event_hub/models/ehnamespace.rb'
autoload :AuthorizationRule, 'generated/azure_mgmt_event_hub/models/authorization_rule.rb'
autoload :Eventhub, 'generated/azure_mgmt_event_hub/models/eventhub.rb'
autoload :ConsumerGroup, 'generated/azure_mgmt_event_hub/models/consumer_group.rb'
+ autoload :ArmDisasterRecovery, 'generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb'
autoload :SkuName, 'generated/azure_mgmt_event_hub/models/sku_name.rb'
autoload :SkuTier, 'generated/azure_mgmt_event_hub/models/sku_tier.rb'
autoload :AccessRights, 'generated/azure_mgmt_event_hub/models/access_rights.rb'
@@ -54,5 +58,7 @@ module Models
autoload :EntityStatus, 'generated/azure_mgmt_event_hub/models/entity_status.rb'
autoload :EncodingCaptureDescription, 'generated/azure_mgmt_event_hub/models/encoding_capture_description.rb'
autoload :UnavailableReason, 'generated/azure_mgmt_event_hub/models/unavailable_reason.rb'
+ autoload :ProvisioningStateDR, 'generated/azure_mgmt_event_hub/models/provisioning_state_dr.rb'
+ autoload :RoleDisasterRecovery, 'generated/azure_mgmt_event_hub/models/role_disaster_recovery.rb'
end
end
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/consumer_groups.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/consumer_groups.rb
old mode 100755
new mode 100644
index 24173bba22..f2036b76a1
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/consumer_groups.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/consumer_groups.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb
new file mode 100644
index 0000000000..ea2401a76d
--- /dev/null
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/disaster_recovery_configs.rb
@@ -0,0 +1,711 @@
+# 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::ARM::EventHub
+ #
+ # Azure Event Hubs client
+ #
+ class DisasterRecoveryConfigs
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the DisasterRecoveryConfigs class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [EventHubManagementClient] reference to the EventHubManagementClient
+ attr_reader :client
+
+ #
+ # Gets all Alias(Disaster Recovery configurations)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, namespace_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, namespace_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Gets all Alias(Disaster Recovery configurations)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, namespace_name, custom_headers = nil)
+ list_async(resource_group_name, namespace_name, custom_headers).value!
+ end
+
+ #
+ # Gets all Alias(Disaster Recovery configurations)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, namespace_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecoveryListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Creates or updates a new Alias(Disaster Recovery configuration)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param parameters [ArmDisasterRecovery] Parameters required to create an
+ # Alias(Disaster Recovery configuration)
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ArmDisasterRecovery] operation results.
+ #
+ def create_or_update(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers = nil)
+ response = create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Creates or updates a new Alias(Disaster Recovery configuration)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param parameters [ArmDisasterRecovery] Parameters required to create an
+ # Alias(Disaster Recovery configuration)
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def create_or_update_with_http_info(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers = nil)
+ create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers).value!
+ end
+
+ #
+ # Creates or updates a new Alias(Disaster Recovery configuration)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param parameters [ArmDisasterRecovery] Parameters required to create an
+ # Alias(Disaster Recovery configuration)
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def create_or_update_async(resource_group_name, namespace_name, alias_parameter, parameters, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
+ fail ArgumentError, 'alias_parameter is nil' if alias_parameter.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecovery.mapper()
+ request_content = @client.serialize(request_mapper, parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'alias' => alias_parameter,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:put, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 201
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecovery.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Deletes an Alias(Disaster Recovery configuration)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def delete(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ response = delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value!
+ nil
+ end
+
+ #
+ # Deletes an Alias(Disaster Recovery configuration)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def delete_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value!
+ end
+
+ #
+ # Deletes an Alias(Disaster Recovery configuration)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def delete_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
+ fail ArgumentError, 'alias_parameter is nil' if alias_parameter.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'alias' => alias_parameter,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:delete, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Retrieves Alias(Disaster Recovery configuration) for primary or secondary
+ # namespace
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ArmDisasterRecovery] operation results.
+ #
+ def get(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ response = get_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Retrieves Alias(Disaster Recovery configuration) for primary or secondary
+ # namespace
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ get_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value!
+ end
+
+ #
+ # Retrieves Alias(Disaster Recovery configuration) for primary or secondary
+ # namespace
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
+ fail ArgumentError, 'alias_parameter is nil' if alias_parameter.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'alias' => alias_parameter,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecovery.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # This operation disables the Disaster Recovery and stops replicating changes
+ # from primary to secondary namespaces
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def break_pairing(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ response = break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value!
+ nil
+ end
+
+ #
+ # This operation disables the Disaster Recovery and stops replicating changes
+ # from primary to secondary namespaces
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def break_pairing_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value!
+ end
+
+ #
+ # This operation disables the Disaster Recovery and stops replicating changes
+ # from primary to secondary namespaces
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def break_pairing_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
+ fail ArgumentError, 'alias_parameter is nil' if alias_parameter.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'alias' => alias_parameter,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # envokes GEO DR failover and reconfigure the alias to point to the secondary
+ # namespace
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def fail_over(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ response = fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value!
+ nil
+ end
+
+ #
+ # envokes GEO DR failover and reconfigure the alias to point to the secondary
+ # namespace
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def fail_over_with_http_info(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers).value!
+ end
+
+ #
+ # envokes GEO DR failover and reconfigure the alias to point to the secondary
+ # namespace
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param alias_parameter [String] The Disaster Recovery configuration name
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def fail_over_async(resource_group_name, namespace_name, alias_parameter, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'namespace_name is nil' if namespace_name.nil?
+ fail ArgumentError, 'alias_parameter is nil' if alias_parameter.nil?
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'namespaceName' => namespace_name,'alias' => alias_parameter,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all Alias(Disaster Recovery configurations)
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ArmDisasterRecoveryListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets all Alias(Disaster Recovery configurations)
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Gets all Alias(Disaster Recovery configurations)
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::EventHub::Models::ArmDisasterRecoveryListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all Alias(Disaster Recovery configurations)
+ #
+ # @param resource_group_name [String] Name of the resource group within the
+ # azure subscription.
+ # @param namespace_name [String] The Namespace name
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ArmDisasterRecoveryListResult] which provide lazy access to pages of
+ # the response.
+ #
+ def list_as_lazy(resource_group_name, namespace_name, custom_headers = nil)
+ response = list_async(resource_group_name, namespace_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb
old mode 100755
new mode 100644
index 1ee012e8cc..5c800536e1
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hub_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -42,6 +42,9 @@ class EventHubManagementClient < MsRestAzure::AzureServiceClient
# @return [Namespaces] namespaces
attr_reader :namespaces
+ # @return [DisasterRecoveryConfigs] disaster_recovery_configs
+ attr_reader :disaster_recovery_configs
+
# @return [EventHubs] event_hubs
attr_reader :event_hubs
@@ -63,6 +66,7 @@ def initialize(credentials = nil, base_url = nil, options = nil)
@operations = Operations.new(self)
@namespaces = Namespaces.new(self)
+ @disaster_recovery_configs = DisasterRecoveryConfigs.new(self)
@event_hubs = EventHubs.new(self)
@consumer_groups = ConsumerGroups.new(self)
@api_version = '2017-04-01'
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hubs.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hubs.rb
old mode 100755
new mode 100644
index 131b01b4a9..6772f2cb19
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hubs.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/event_hubs.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_keys.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_keys.rb
index 50a5f93f59..7c2c352998 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_keys.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_keys.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AccessKeys
include MsRestAzure
- include MsRest::JSONable
# @return [String] Primary connection string of the created namespace
# AuthorizationRule.
attr_accessor :primary_connection_string
@@ -21,6 +20,14 @@ class AccessKeys
# AuthorizationRule.
attr_accessor :secondary_connection_string
+ # @return [String] Primary connection string of the alias if GEO DR is
+ # enabled
+ attr_accessor :alias_primary_connection_string
+
+ # @return [String] Secondary connection string of the alias if GEO DR is
+ # enabled
+ attr_accessor :alias_secondary_connection_string
+
# @return [String] A base64-encoded 256-bit primary key for signing and
# validating the SAS token.
attr_accessor :primary_key
@@ -61,6 +68,22 @@ def self.mapper()
name: 'String'
}
},
+ alias_primary_connection_string: {
+ required: false,
+ read_only: true,
+ serialized_name: 'aliasPrimaryConnectionString',
+ type: {
+ name: 'String'
+ }
+ },
+ alias_secondary_connection_string: {
+ required: false,
+ read_only: true,
+ serialized_name: 'aliasSecondaryConnectionString',
+ type: {
+ name: 'String'
+ }
+ },
primary_key: {
required: false,
read_only: true,
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_rights.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_rights.rb
old mode 100755
new mode 100644
index 1cc63c7336..ee9e86aed9
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_rights.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/access_rights.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb
new file mode 100644
index 0000000000..a0450095b8
--- /dev/null
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/arm_disaster_recovery.rb
@@ -0,0 +1,98 @@
+# 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::ARM::EventHub
+ module Models
+ #
+ # Single item in List or Get Alias(Disaster Recovery configuration)
+ # operation
+ #
+ class ArmDisasterRecovery < Resource
+
+ include MsRestAzure
+
+ # @return [ProvisioningStateDR] Provisioning state of the Alias(Disaster
+ # Recovery configuration) - possible values 'Accepted' or 'Succeeded' or
+ # 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed'
+ attr_accessor :provisioning_state
+
+ # @return [String] Primary/Secondary eventhub namespace name, which is
+ # part of GEO DR pairning
+ attr_accessor :partner_namespace
+
+ # @return [RoleDisasterRecovery] role of namespace in GEO DR - possible
+ # values 'Primary' or 'PrimaryNotReplicating' or 'Secondary'. Possible
+ # values include: 'Primary', 'PrimaryNotReplicating', 'Secondary'
+ attr_accessor :role
+
+
+ #
+ # Mapper for ArmDisasterRecovery class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'ArmDisasterRecovery',
+ type: {
+ name: 'Composite',
+ class_name: 'ArmDisasterRecovery',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ provisioning_state: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.provisioningState',
+ type: {
+ name: 'Enum',
+ module: 'ProvisioningStateDR'
+ }
+ },
+ partner_namespace: {
+ required: false,
+ serialized_name: 'properties.partnerNamespace',
+ type: {
+ name: 'String'
+ }
+ },
+ role: {
+ required: false,
+ read_only: true,
+ serialized_name: 'properties.role',
+ type: {
+ name: 'Enum',
+ module: 'RoleDisasterRecovery'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb
new file mode 100644
index 0000000000..cc2de03073
--- /dev/null
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/arm_disaster_recovery_list_result.rb
@@ -0,0 +1,97 @@
+# 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::ARM::EventHub
+ module Models
+ #
+ # The result of the List Alias(Disaster Recovery configuration) operation.
+ #
+ class ArmDisasterRecoveryListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] List of Alias(Disaster Recovery
+ # configurations)
+ attr_accessor :value
+
+ # @return [String] Link to the next set of results. Not empty if Value
+ # contains incomplete list of Alias(Disaster Recovery configuration)
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [ArmDisasterRecoveryListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for ArmDisasterRecoveryListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'ArmDisasterRecoveryListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'ArmDisasterRecoveryListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'ArmDisasterRecoveryElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'ArmDisasterRecovery'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/authorization_rule.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/authorization_rule.rb
index 36eb8dd54b..f7c6d440a6 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/authorization_rule.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/authorization_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Single item in a List or Get AuthorizationRule operation
#
- class AuthorizationRule < MsRestAzure::Resource
+ class AuthorizationRule < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The rights associated with the rule.
attr_accessor :rights
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb
index 84f9cc0ba8..4d73668d5f 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/authorization_rule_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/capture_description.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/capture_description.rb
index 8be8b2e2a5..e44436c6ec 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/capture_description.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/capture_description.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CaptureDescription
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] A value that indicates whether capture description is
# enabled.
attr_accessor :enabled
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb
old mode 100755
new mode 100644
index 7026366e91..0fb54d283c
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckNameAvailabilityParameter
include MsRestAzure
- include MsRest::JSONable
# @return [String] Name to check the namespace name availability
attr_accessor :name
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb
old mode 100755
new mode 100644
index 86b82daf46..a0e28955d8
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/check_name_availability_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckNameAvailabilityResult
include MsRestAzure
- include MsRest::JSONable
# @return [String] The detailed info regarding the reason associated with
# the Namespace.
attr_accessor :message
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group.rb
index d2a63775e2..a037edbc34 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Single item in List or Get Consumer group operation
#
- class ConsumerGroup < MsRestAzure::Resource
+ class ConsumerGroup < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] Exact time the message was created.
attr_accessor :created_at
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb
old mode 100755
new mode 100644
index fdec87c676..9ee1262714
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/consumer_group_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/destination.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/destination.rb
index 82c413d26d..192c466485 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/destination.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/destination.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Destination
include MsRestAzure
- include MsRest::JSONable
# @return [String] Name for capture destination
attr_accessor :name
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/ehnamespace.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/ehnamespace.rb
index 54e6d546dd..4f5bf5135b 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/ehnamespace.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/ehnamespace.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EHNamespace < TrackedResource
include MsRestAzure
- include MsRest::JSONable
# @return [Sku] Properties of sku resource
attr_accessor :sku
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb
index b141aed818..1ca2dcbde5 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/ehnamespace_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/encoding_capture_description.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/encoding_capture_description.rb
index a1586a0280..69f4df8e27 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/encoding_capture_description.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/encoding_capture_description.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/entity_status.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/entity_status.rb
old mode 100755
new mode 100644
index 7893827927..318e163ffd
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/entity_status.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/entity_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/error_response.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/error_response.rb
index cc535ceeea..59b84410ba 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/error_response.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/error_response.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ErrorResponse
include MsRestAzure
- include MsRest::JSONable
# @return [String] Error code.
attr_accessor :code
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb
old mode 100755
new mode 100644
index c61b6d9eee..b94fc5a504
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/event_hub_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/eventhub.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/eventhub.rb
index 56d10256c7..bb1b9561bb 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/eventhub.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/eventhub.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Single item in List or Get Event Hub operation
#
- class Eventhub < MsRestAzure::Resource
+ class Eventhub < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Current number of shards on the Event Hub.
attr_accessor :partition_ids
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/key_type.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/key_type.rb
index 20656286e7..daac25b700 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/key_type.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/key_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation.rb
old mode 100755
new mode 100644
index 31629f4cd0..7bac5ba3c6
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Operation
include MsRestAzure
- include MsRest::JSONable
# @return [String] Operation name: {provider}/{resource}/{operation}
attr_accessor :name
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_display.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_display.rb
old mode 100755
new mode 100644
index 464f9bd54b..3508f52721
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_display.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_display.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OperationDisplay
include MsRestAzure
- include MsRest::JSONable
# @return [String] Service provider: Microsoft.EventHub
attr_accessor :provider
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb
old mode 100755
new mode 100644
index 4af54fd894..0460753158
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/operation_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/provisioning_state_dr.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/provisioning_state_dr.rb
new file mode 100644
index 0000000000..cf666eb1a8
--- /dev/null
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/provisioning_state_dr.rb
@@ -0,0 +1,17 @@
+# 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::ARM::EventHub
+ module Models
+ #
+ # Defines values for ProvisioningStateDR
+ #
+ module ProvisioningStateDR
+ Accepted = "Accepted"
+ Succeeded = "Succeeded"
+ Failed = "Failed"
+ end
+ end
+end
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb
index 53ccc8f9b2..78c3ffec47 100644
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/regenerate_access_key_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RegenerateAccessKeyParameters
include MsRestAzure
- include MsRest::JSONable
# @return [KeyType] The access key to regenerate. Possible values
# include: 'PrimaryKey', 'SecondaryKey'
attr_accessor :key_type
diff --git a/management/azure_mgmt_sql/lib/generated/azure_mgmt_sql/models/sql_sub_resource.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/resource.rb
similarity index 64%
rename from management/azure_mgmt_sql/lib/generated/azure_mgmt_sql/models/sql_sub_resource.rb
rename to management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/resource.rb
index da8b01633c..cbd82faf98 100644
--- a/management/azure_mgmt_sql/lib/generated/azure_mgmt_sql/models/sql_sub_resource.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/resource.rb
@@ -1,37 +1,47 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
-module Azure::ARM::SQL
+module Azure::ARM::EventHub
module Models
#
- # Subresource properties
+ # The Resource definition
#
- class SqlSubResource
+ class Resource
include MsRestAzure
- include MsRest::JSONable
+ # @return [String] Resource Id
+ attr_accessor :id
+
# @return [String] Resource name
attr_accessor :name
- # @return [String] Resource Id
- attr_accessor :id
+ # @return [String] Resource type
+ attr_accessor :type
#
- # Mapper for SqlSubResource class as Ruby Hash.
+ # Mapper for Resource class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
- serialized_name: 'SqlSubResource',
+ serialized_name: 'Resource',
type: {
name: 'Composite',
- class_name: 'SqlSubResource',
+ class_name: 'Resource',
model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
name: {
required: false,
read_only: true,
@@ -40,10 +50,10 @@ def self.mapper()
name: 'String'
}
},
- id: {
+ type: {
required: false,
read_only: true,
- serialized_name: 'id',
+ serialized_name: 'type',
type: {
name: 'String'
}
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/role_disaster_recovery.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/role_disaster_recovery.rb
new file mode 100644
index 0000000000..c28bda9ee9
--- /dev/null
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/role_disaster_recovery.rb
@@ -0,0 +1,17 @@
+# 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::ARM::EventHub
+ module Models
+ #
+ # Defines values for RoleDisasterRecovery
+ #
+ module RoleDisasterRecovery
+ Primary = "Primary"
+ PrimaryNotReplicating = "PrimaryNotReplicating"
+ Secondary = "Secondary"
+ end
+ end
+end
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku.rb
old mode 100755
new mode 100644
index 4f88948f57..42d4c5c622
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Sku
include MsRestAzure
- include MsRest::JSONable
# @return [SkuName] Name of this SKU. Possible values include: 'Basic',
# 'Standard'
attr_accessor :name
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_name.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_name.rb
old mode 100755
new mode 100644
index cdf9745a32..017c448e60
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_name.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb
old mode 100755
new mode 100644
index 31d98a2510..337044cc88
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/sku_tier.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/tracked_resource.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/tracked_resource.rb
old mode 100755
new mode 100644
index fe1ea1204c..b9ccd042f1
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/tracked_resource.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/tracked_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Definition of Resource
#
- class TrackedResource < MsRestAzure::Resource
+ class TrackedResource < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] Resource location
attr_accessor :location
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb
old mode 100755
new mode 100644
index 9cfb0f6506..afa946aa14
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/models/unavailable_reason.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/module_definition.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/module_definition.rb
old mode 100755
new mode 100644
index 05e906ba1e..a1a1d07595
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/module_definition.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/namespaces.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/namespaces.rb
old mode 100755
new mode 100644
index 3b2df5bf04..2de90e1818
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/namespaces.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/namespaces.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/operations.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/operations.rb
old mode 100755
new mode 100644
index faa9d9c076..c0711ac3de
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/operations.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/version.rb b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/version.rb
old mode 100755
new mode 100644
index 04e78b118f..0152f399a7
--- a/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/version.rb
+++ b/management/azure_mgmt_event_hub/lib/generated/azure_mgmt_event_hub/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::EventHub
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_features/azure_mgmt_features.gemspec b/management/azure_mgmt_features/azure_mgmt_features.gemspec
index aa04d219a5..f18150b25f 100644
--- a/management/azure_mgmt_features/azure_mgmt_features.gemspec
+++ b/management/azure_mgmt_features/azure_mgmt_features.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_features/lib/generated/azure_mgmt_features.rb b/management/azure_mgmt_features/lib/generated/azure_mgmt_features.rb
index 1303f73f4f..a95f06e872 100644
--- a/management/azure_mgmt_features/lib/generated/azure_mgmt_features.rb
+++ b/management/azure_mgmt_features/lib/generated/azure_mgmt_features.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/feature_client.rb b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/feature_client.rb
index 3f242b1f9c..82d9008ec5 100644
--- a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/feature_client.rb
+++ b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/feature_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/features.rb b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/features.rb
index 42b2bd0c00..e872393299 100644
--- a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/features.rb
+++ b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/features.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_operations_list_result.rb b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_operations_list_result.rb
index 59022385d8..02a562b826 100644
--- a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_operations_list_result.rb
+++ b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_operations_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_properties.rb b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_properties.rb
index 8207d78e7c..07bf967869 100644
--- a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_properties.rb
+++ b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_result.rb b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_result.rb
index 865d614a1d..430a49ec2e 100644
--- a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_result.rb
+++ b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/models/feature_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/module_definition.rb b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/module_definition.rb
index 18b756bc3a..299679ac3c 100644
--- a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/module_definition.rb
+++ b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/version.rb b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/version.rb
index b6bd775448..4fdf34050f 100644
--- a/management/azure_mgmt_features/lib/generated/azure_mgmt_features/version.rb
+++ b/management/azure_mgmt_features/lib/generated/azure_mgmt_features/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Features
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_graph/azure_mgmt_graph.gemspec b/management/azure_mgmt_graph/azure_mgmt_graph.gemspec
index f1425a85ed..d41255d927 100644
--- a/management/azure_mgmt_graph/azure_mgmt_graph.gemspec
+++ b/management/azure_mgmt_graph/azure_mgmt_graph.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph.rb
old mode 100755
new mode 100644
index 9d472b07b8..1db99f7050
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -34,34 +34,39 @@ module Models
autoload :GroupGetMemberGroupsResult, 'generated/azure_mgmt_graph/models/group_get_member_groups_result.rb'
autoload :PasswordCredential, 'generated/azure_mgmt_graph/models/password_credential.rb'
autoload :CheckGroupMembershipParameters, 'generated/azure_mgmt_graph/models/check_group_membership_parameters.rb'
- autoload :ApplicationUpdateParameters, 'generated/azure_mgmt_graph/models/application_update_parameters.rb'
+ autoload :RequiredResourceAccess, 'generated/azure_mgmt_graph/models/required_resource_access.rb'
autoload :CheckGroupMembershipResult, 'generated/azure_mgmt_graph/models/check_group_membership_result.rb'
- autoload :ApplicationListResult, 'generated/azure_mgmt_graph/models/application_list_result.rb'
+ autoload :ApplicationUpdateParameters, 'generated/azure_mgmt_graph/models/application_update_parameters.rb'
autoload :ServicePrincipalCreateParameters, 'generated/azure_mgmt_graph/models/service_principal_create_parameters.rb'
- autoload :KeyCredentialsUpdateParameters, 'generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb'
+ autoload :ApplicationListResult, 'generated/azure_mgmt_graph/models/application_list_result.rb'
autoload :ServicePrincipal, 'generated/azure_mgmt_graph/models/service_principal.rb'
- autoload :PasswordCredentialsUpdateParameters, 'generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb'
+ autoload :KeyCredentialsUpdateParameters, 'generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb'
autoload :ServicePrincipalListResult, 'generated/azure_mgmt_graph/models/service_principal_list_result.rb'
- autoload :GetObjectsResult, 'generated/azure_mgmt_graph/models/get_objects_result.rb'
+ autoload :PasswordCredentialsUpdateParameters, 'generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb'
autoload :PasswordProfile, 'generated/azure_mgmt_graph/models/password_profile.rb'
+ autoload :GetObjectsResult, 'generated/azure_mgmt_graph/models/get_objects_result.rb'
+ autoload :UserBase, 'generated/azure_mgmt_graph/models/user_base.rb'
autoload :GroupCreateParameters, 'generated/azure_mgmt_graph/models/group_create_parameters.rb'
- autoload :UserCreateParameters, 'generated/azure_mgmt_graph/models/user_create_parameters.rb'
- autoload :GroupListResult, 'generated/azure_mgmt_graph/models/group_list_result.rb'
- autoload :UserUpdateParameters, 'generated/azure_mgmt_graph/models/user_update_parameters.rb'
+ autoload :GroupAddMemberParameters, 'generated/azure_mgmt_graph/models/group_add_member_parameters.rb'
+ autoload :ADGroup, 'generated/azure_mgmt_graph/models/adgroup.rb'
+ autoload :KeyCredential, 'generated/azure_mgmt_graph/models/key_credential.rb'
autoload :ApplicationCreateParameters, 'generated/azure_mgmt_graph/models/application_create_parameters.rb'
- autoload :User, 'generated/azure_mgmt_graph/models/user.rb'
+ autoload :DomainListResult, 'generated/azure_mgmt_graph/models/domain_list_result.rb'
autoload :KeyCredentialListResult, 'generated/azure_mgmt_graph/models/key_credential_list_result.rb'
- autoload :UserGetMemberGroupsParameters, 'generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb'
+ autoload :SignInName, 'generated/azure_mgmt_graph/models/sign_in_name.rb'
autoload :AADObject, 'generated/azure_mgmt_graph/models/aadobject.rb'
+ autoload :Domain, 'generated/azure_mgmt_graph/models/domain.rb'
+ autoload :ResourceAccess, 'generated/azure_mgmt_graph/models/resource_access.rb'
+ autoload :UserGetMemberGroupsParameters, 'generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb'
+ autoload :PasswordCredentialListResult, 'generated/azure_mgmt_graph/models/password_credential_list_result.rb'
autoload :UserGetMemberGroupsResult, 'generated/azure_mgmt_graph/models/user_get_member_groups_result.rb'
- autoload :ADGroup, 'generated/azure_mgmt_graph/models/adgroup.rb'
- autoload :UserListResult, 'generated/azure_mgmt_graph/models/user_list_result.rb'
autoload :Application, 'generated/azure_mgmt_graph/models/application.rb'
+ autoload :UserListResult, 'generated/azure_mgmt_graph/models/user_list_result.rb'
+ autoload :GroupListResult, 'generated/azure_mgmt_graph/models/group_list_result.rb'
autoload :GetObjectsParameters, 'generated/azure_mgmt_graph/models/get_objects_parameters.rb'
- autoload :GroupAddMemberParameters, 'generated/azure_mgmt_graph/models/group_add_member_parameters.rb'
- autoload :Domain, 'generated/azure_mgmt_graph/models/domain.rb'
- autoload :PasswordCredentialListResult, 'generated/azure_mgmt_graph/models/password_credential_list_result.rb'
- autoload :DomainListResult, 'generated/azure_mgmt_graph/models/domain_list_result.rb'
- autoload :KeyCredential, 'generated/azure_mgmt_graph/models/key_credential.rb'
+ autoload :UserCreateParameters, 'generated/azure_mgmt_graph/models/user_create_parameters.rb'
+ autoload :UserUpdateParameters, 'generated/azure_mgmt_graph/models/user_update_parameters.rb'
+ autoload :User, 'generated/azure_mgmt_graph/models/user.rb'
+ autoload :UserType, 'generated/azure_mgmt_graph/models/user_type.rb'
end
end
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/applications.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/applications.rb
old mode 100755
new mode 100644
index b217a001b0..905c9f1322
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/applications.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/applications.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/domains.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/domains.rb
index b87d5e9e90..6120764039 100644
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/domains.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/domains.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb
old mode 100755
new mode 100644
index c0926f012b..ece36a9169
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/graph_rbac_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/groups.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/groups.rb
old mode 100755
new mode 100644
index 83935fb045..808c056b3b
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/groups.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/groups.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/aadobject.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/aadobject.rb
old mode 100755
new mode 100644
index f3b0964681..fee523e01a
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/aadobject.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/aadobject.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AADObject
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ID of the object.
attr_accessor :object_id
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/adgroup.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/adgroup.rb
old mode 100755
new mode 100644
index c080f2346b..746e03499e
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/adgroup.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/adgroup.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ADGroup
include MsRestAzure
- include MsRest::JSONable
# @return [String] The object ID.
attr_accessor :object_id
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application.rb
old mode 100755
new mode 100644
index c6c68204ef..095fdb2c48
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Application
include MsRestAzure
- include MsRest::JSONable
# @return [String] The object ID.
attr_accessor :object_id
@@ -41,6 +40,9 @@ class Application
# @return [String] The home page of the application.
attr_accessor :homepage
+ # @return [Boolean] Whether to allow implicit grant flow for OAuth2
+ attr_accessor :oauth2allow_implicit_flow
+
#
# Mapper for Application class as Ruby Hash.
@@ -137,6 +139,13 @@ def self.mapper()
type: {
name: 'String'
}
+ },
+ oauth2allow_implicit_flow: {
+ required: false,
+ serialized_name: 'oauth2AllowImplicitFlow',
+ type: {
+ name: 'Boolean'
+ }
}
}
}
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb
old mode 100755
new mode 100644
index bd58902373..61a1b2d1d1
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_create_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationCreateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Whether the application is available to other
# tenants.
attr_accessor :available_to_other_tenants
@@ -36,6 +35,16 @@ class ApplicationCreateParameters
# objects.
attr_accessor :password_credentials
+ # @return [Boolean] Whether to allow implicit grant flow for OAuth2
+ attr_accessor :oauth2allow_implicit_flow
+
+ # @return [Array] Specifies resources that this
+ # application requires access to and the set of OAuth permission scopes
+ # and application roles that it needs under each of those resources. This
+ # pre-configuration of required resource access drives the consent
+ # experience.
+ attr_accessor :required_resource_access
+
#
# Mapper for ApplicationCreateParameters class as Ruby Hash.
@@ -127,6 +136,28 @@ def self.mapper()
}
}
}
+ },
+ oauth2allow_implicit_flow: {
+ required: false,
+ serialized_name: 'oauth2AllowImplicitFlow',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ required_resource_access: {
+ required: false,
+ serialized_name: 'requiredResourceAccess',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'RequiredResourceAccessElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'RequiredResourceAccess'
+ }
+ }
+ }
}
}
}
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_list_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_list_result.rb
old mode 100755
new mode 100644
index d3471f4b19..32603c9e30
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_list_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb
old mode 100755
new mode 100644
index df8ddd00b1..28900cf5e9
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/application_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Whether the application is available to other tenants
attr_accessor :available_to_other_tenants
@@ -35,6 +34,16 @@ class ApplicationUpdateParameters
# objects.
attr_accessor :password_credentials
+ # @return [Boolean] Whether to allow implicit grant flow for OAuth2
+ attr_accessor :oauth2allow_implicit_flow
+
+ # @return [Array] Specifies resources that this
+ # application requires access to and the set of OAuth permission scopes
+ # and application roles that it needs under each of those resources. This
+ # pre-configuration of required resource access drives the consent
+ # experience.
+ attr_accessor :required_resource_access
+
#
# Mapper for ApplicationUpdateParameters class as Ruby Hash.
@@ -126,6 +135,28 @@ def self.mapper()
}
}
}
+ },
+ oauth2allow_implicit_flow: {
+ required: false,
+ serialized_name: 'oauth2AllowImplicitFlow',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ required_resource_access: {
+ required: false,
+ serialized_name: 'requiredResourceAccess',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'RequiredResourceAccessElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'RequiredResourceAccess'
+ }
+ }
+ }
}
}
}
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/check_group_membership_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/check_group_membership_parameters.rb
old mode 100755
new mode 100644
index bb3dae5b7d..86b985aade
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/check_group_membership_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/check_group_membership_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckGroupMembershipParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The object ID of the group to check.
attr_accessor :group_id
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/check_group_membership_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/check_group_membership_result.rb
old mode 100755
new mode 100644
index 3e460099d2..e47cb4144b
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/check_group_membership_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/check_group_membership_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckGroupMembershipResult
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] True if the specified user, group, contact, or
# service principal has either direct or transitive membership in the
# specified group; otherwise, false.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/domain.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/domain.rb
index 30dfc1999c..c6a573606d 100644
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/domain.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/domain.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Domain
include MsRestAzure
- include MsRest::JSONable
# @return [String] the type of the authentication into the domain.
attr_accessor :authentication_type
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/domain_list_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/domain_list_result.rb
index 8aa1d62597..776a46a798 100644
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/domain_list_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/domain_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DomainListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] the list of domains.
attr_accessor :value
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/get_objects_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/get_objects_parameters.rb
old mode 100755
new mode 100644
index 8269104f9b..e841dce25e
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/get_objects_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/get_objects_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GetObjectsParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The requested object IDs.
attr_accessor :object_ids
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/get_objects_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/get_objects_result.rb
old mode 100755
new mode 100644
index e196ea7d54..4d58c02f90
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/get_objects_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/get_objects_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/graph_error.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/graph_error.rb
old mode 100755
new mode 100644
index b128c4fbf1..e2fe7408d8
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/graph_error.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/graph_error.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GraphError
include MsRestAzure
- include MsRest::JSONable
# @return [String] Error code.
attr_accessor :code
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_add_member_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_add_member_parameters.rb
old mode 100755
new mode 100644
index 4d1489be0e..8c252f66c2
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_add_member_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_add_member_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GroupAddMemberParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] A member object URL, such as
# "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd",
# where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_create_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_create_parameters.rb
old mode 100755
new mode 100644
index e6cb933718..9031af0913
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_create_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_create_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GroupCreateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] Group display name
attr_accessor :display_name
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_get_member_groups_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_get_member_groups_parameters.rb
old mode 100755
new mode 100644
index f7e7c327fb..4185c4da18
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_get_member_groups_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_get_member_groups_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GroupGetMemberGroupsParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] If true, only membership in security-enabled groups
# should be checked. Otherwise, membership in all groups should be
# checked.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_get_member_groups_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_get_member_groups_result.rb
old mode 100755
new mode 100644
index 9635741cc0..1f47633736
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_get_member_groups_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_get_member_groups_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GroupGetMemberGroupsResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A collection of group IDs of which the group is
# a member.
attr_accessor :value
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_list_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_list_result.rb
old mode 100755
new mode 100644
index ce83b3f76f..8da2bc07a4
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_list_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/group_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credential.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credential.rb
old mode 100755
new mode 100644
index 2383739597..5fdbeae708
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credential.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credential.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class KeyCredential
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] Start date.
attr_accessor :start_date
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credential_list_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credential_list_result.rb
old mode 100755
new mode 100644
index 6b3dc7c56c..79ff0fe221
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credential_list_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credential_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class KeyCredentialListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A collection of KeyCredentials.
attr_accessor :value
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb
old mode 100755
new mode 100644
index 64d1a2c19d..4c8aee5f04
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/key_credentials_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class KeyCredentialsUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A collection of KeyCredentials.
attr_accessor :value
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credential.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credential.rb
old mode 100755
new mode 100644
index dc6e463139..4e002a4ac7
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credential.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credential.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PasswordCredential
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] Start date.
attr_accessor :start_date
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credential_list_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credential_list_result.rb
old mode 100755
new mode 100644
index 051943fecd..b1221b58a0
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credential_list_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credential_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PasswordCredentialListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A collection of
# PasswordCredentials.
attr_accessor :value
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb
old mode 100755
new mode 100644
index af66179236..a578075782
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_credentials_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PasswordCredentialsUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A collection of
# PasswordCredentials.
attr_accessor :value
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_profile.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_profile.rb
old mode 100755
new mode 100644
index b365ba1439..6d349b5288
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_profile.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/password_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PasswordProfile
include MsRestAzure
- include MsRest::JSONable
# @return [String] Password
attr_accessor :password
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/required_resource_access.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/required_resource_access.rb
new file mode 100644
index 0000000000..029ee8b23a
--- /dev/null
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/required_resource_access.rb
@@ -0,0 +1,71 @@
+# 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::ARM::Graph
+ module Models
+ #
+ # Specifies the set of OAuth 2.0 permission scopes and app roles under the
+ # specified resource that an application requires access to. The specified
+ # OAuth 2.0 permission scopes may be requested by client applications
+ # (through the requiredResourceAccess collection) when calling a resource
+ # application. The requiredResourceAccess property of the Application
+ # entity is a collection of ReqiredResourceAccess.
+ #
+ class RequiredResourceAccess
+
+ include MsRestAzure
+
+ # @return [Array] The list of OAuth2.0 permission scopes
+ # and app roles that the application requires from the specified
+ # resource.
+ attr_accessor :resource_access
+
+ # @return [String] The unique identifier for the resource that the
+ # application requires access to. This should be equal to the appId
+ # declared on the target resource application.
+ attr_accessor :resource_app_id
+
+
+ #
+ # Mapper for RequiredResourceAccess class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RequiredResourceAccess',
+ type: {
+ name: 'Composite',
+ class_name: 'RequiredResourceAccess',
+ model_properties: {
+ resource_access: {
+ required: true,
+ serialized_name: 'resourceAccess',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'ResourceAccessElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'ResourceAccess'
+ }
+ }
+ }
+ },
+ resource_app_id: {
+ required: false,
+ serialized_name: 'resourceAppId',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/resource_access.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/resource_access.rb
new file mode 100644
index 0000000000..915962c7b5
--- /dev/null
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/resource_access.rb
@@ -0,0 +1,58 @@
+# 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::ARM::Graph
+ module Models
+ #
+ # Specifies an OAuth 2.0 permission scope or an app role that an
+ # application requires. The resourceAccess property of the
+ # RequiredResourceAccess type is a collection of ResourceAccess.
+ #
+ class ResourceAccess
+
+ include MsRestAzure
+
+ # @return [String] The unique identifier for one of the OAuth2Permission
+ # or AppRole instances that the resource application exposes.
+ attr_accessor :id
+
+ # @return [String] Specifies whether the id property references an
+ # OAuth2Permission or an AppRole. Possible values are "scope" or "role".
+ attr_accessor :type
+
+
+ #
+ # Mapper for ResourceAccess class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'ResourceAccess',
+ type: {
+ name: 'Composite',
+ class_name: 'ResourceAccess',
+ model_properties: {
+ id: {
+ required: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal.rb
old mode 100755
new mode 100644
index 7a7129dd44..652a74f515
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ServicePrincipal
include MsRestAzure
- include MsRest::JSONable
# @return [String] The object ID.
attr_accessor :object_id
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb
old mode 100755
new mode 100644
index 92be413443..4174700e2c
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal_create_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ServicePrincipalCreateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] application Id
attr_accessor :app_id
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal_list_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal_list_result.rb
old mode 100755
new mode 100644
index 8f9f7d26f5..b379d7b20a
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal_list_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/service_principal_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/sign_in_name.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/sign_in_name.rb
new file mode 100644
index 0000000000..193d41f229
--- /dev/null
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/sign_in_name.rb
@@ -0,0 +1,57 @@
+# 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::ARM::Graph
+ module Models
+ #
+ # Contains information about a sign-in name of a local account user in an
+ # Azure Active Directory B2C tenant.
+ #
+ class SignInName
+
+ include MsRestAzure
+
+ # @return [String] A string value that can be used to classify user
+ # sign-in types in your directory, such as 'emailAddress' or 'userName'.
+ attr_accessor :type
+
+ # @return [String] The sign-in used by the local account. Must be unique
+ # across the company/tenant. For example, 'johnc@example.com'.
+ attr_accessor :value
+
+
+ #
+ # Mapper for SignInName class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'SignInName',
+ type: {
+ name: 'Composite',
+ class_name: 'SignInName',
+ model_properties: {
+ type: {
+ required: false,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user.rb
old mode 100755
new mode 100644
index 0257271007..182cf303c3
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,37 +8,33 @@ module Models
#
# Active Directory user information.
#
- class User
+ class User < UserBase
include MsRestAzure
- include MsRest::JSONable
- # @return [String] The object ID.
- attr_accessor :object_id
+ # @return [Boolean] Whether the account is enabled.
+ attr_accessor :account_enabled
- # @return [String] The object type.
- attr_accessor :object_type
+ # @return [String] The display name of the user.
+ attr_accessor :display_name
# @return [String] The principal name of the user.
attr_accessor :user_principal_name
- # @return [String] The display name of the user.
- attr_accessor :display_name
-
- # @return [String] The sign-in name of the user.
- attr_accessor :sign_in_name
+ # @return [String] The mail alias for the user.
+ attr_accessor :mail_nickname
# @return [String] The primary email address of the user.
attr_accessor :mail
- # @return [String] The mail alias for the user.
- attr_accessor :mail_nickname
+ # @return [String] The object ID.
+ attr_accessor :object_id
- # @return [String] A two letter country code (ISO standard 3166).
- # Required for users that will be assigned licenses due to legal
- # requirement to check for availability of services in countries.
- # Examples include: "US", "JP", and "GB".
- attr_accessor :usage_location
+ # @return [String] The object type.
+ attr_accessor :object_type
+
+ # @return [Array] The sign-in names of the user.
+ attr_accessor :sign_in_names
#
@@ -53,27 +49,48 @@ def self.mapper()
name: 'Composite',
class_name: 'User',
model_properties: {
- object_id: {
+ immutable_id: {
required: false,
- serialized_name: 'objectId',
+ serialized_name: 'immutableId',
type: {
name: 'String'
}
},
- object_type: {
+ usage_location: {
required: false,
- serialized_name: 'objectType',
+ serialized_name: 'usageLocation',
type: {
name: 'String'
}
},
- user_principal_name: {
+ given_name: {
required: false,
- serialized_name: 'userPrincipalName',
+ serialized_name: 'givenName',
+ type: {
+ name: 'String'
+ }
+ },
+ surname: {
+ required: false,
+ serialized_name: 'surname',
type: {
name: 'String'
}
},
+ user_type: {
+ required: false,
+ serialized_name: 'userType',
+ type: {
+ name: 'String'
+ }
+ },
+ account_enabled: {
+ required: false,
+ serialized_name: 'accountEnabled',
+ type: {
+ name: 'Boolean'
+ }
+ },
display_name: {
required: false,
serialized_name: 'displayName',
@@ -81,9 +98,16 @@ def self.mapper()
name: 'String'
}
},
- sign_in_name: {
+ user_principal_name: {
+ required: false,
+ serialized_name: 'userPrincipalName',
+ type: {
+ name: 'String'
+ }
+ },
+ mail_nickname: {
required: false,
- serialized_name: 'signInName',
+ serialized_name: 'mailNickname',
type: {
name: 'String'
}
@@ -95,19 +119,34 @@ def self.mapper()
name: 'String'
}
},
- mail_nickname: {
+ object_id: {
required: false,
- serialized_name: 'mailNickname',
+ serialized_name: 'objectId',
type: {
name: 'String'
}
},
- usage_location: {
+ object_type: {
required: false,
- serialized_name: 'usageLocation',
+ serialized_name: 'objectType',
type: {
name: 'String'
}
+ },
+ sign_in_names: {
+ required: false,
+ serialized_name: 'signInNames',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'SignInNameElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'SignInName'
+ }
+ }
+ }
}
}
}
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_base.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_base.rb
new file mode 100644
index 0000000000..daf7e3e752
--- /dev/null
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_base.rb
@@ -0,0 +1,93 @@
+# 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::ARM::Graph
+ module Models
+ #
+ # Model object.
+ #
+ #
+ class UserBase
+
+ include MsRestAzure
+
+ # @return [String] This must be specified if you are using a federated
+ # domain for the user's userPrincipalName (UPN) property when creating a
+ # new user account. It is used to associate an on-premises Active
+ # Directory user account with their Azure AD user object.
+ attr_accessor :immutable_id
+
+ # @return [String] A two letter country code (ISO standard 3166).
+ # Required for users that will be assigned licenses due to legal
+ # requirement to check for availability of services in countries.
+ # Examples include: "US", "JP", and "GB".
+ attr_accessor :usage_location
+
+ # @return [String] The given name for the user.
+ attr_accessor :given_name
+
+ # @return [String] The user's surname (family name or last name).
+ attr_accessor :surname
+
+ # @return [UserType] A string value that can be used to classify user
+ # types in your directory, such as 'Member' and 'Guest'. Possible values
+ # include: 'Member', 'Guest'
+ attr_accessor :user_type
+
+
+ #
+ # Mapper for UserBase class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'UserBase',
+ type: {
+ name: 'Composite',
+ class_name: 'UserBase',
+ model_properties: {
+ immutable_id: {
+ required: false,
+ serialized_name: 'immutableId',
+ type: {
+ name: 'String'
+ }
+ },
+ usage_location: {
+ required: false,
+ serialized_name: 'usageLocation',
+ type: {
+ name: 'String'
+ }
+ },
+ given_name: {
+ required: false,
+ serialized_name: 'givenName',
+ type: {
+ name: 'String'
+ }
+ },
+ surname: {
+ required: false,
+ serialized_name: 'surname',
+ type: {
+ name: 'String'
+ }
+ },
+ user_type: {
+ required: false,
+ serialized_name: 'userType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb
old mode 100755
new mode 100644
index 76aec390b3..82e2b8651e
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_create_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Request parameters for creating a new work or school account user.
#
- class UserCreateParameters
+ class UserCreateParameters < UserBase
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Whether the account is enabled.
attr_accessor :account_enabled
@@ -29,17 +28,8 @@ class UserCreateParameters
# @return [String] The mail alias for the user.
attr_accessor :mail_nickname
- # @return [String] This must be specified if you are using a federated
- # domain for the user's userPrincipalName (UPN) property when creating a
- # new user account. It is used to associate an on-premises Active
- # Directory user account with their Azure AD user object.
- attr_accessor :immutable_id
-
- # @return [String] A two letter country code (ISO standard 3166).
- # Required for users that will be assigned licenses due to legal
- # requirement to check for availability of services in countries.
- # Examples include: "US", "JP", and "GB".
- attr_accessor :usage_location
+ # @return [String] The primary email address of the user.
+ attr_accessor :mail
#
@@ -54,6 +44,41 @@ def self.mapper()
name: 'Composite',
class_name: 'UserCreateParameters',
model_properties: {
+ immutable_id: {
+ required: false,
+ serialized_name: 'immutableId',
+ type: {
+ name: 'String'
+ }
+ },
+ usage_location: {
+ required: false,
+ serialized_name: 'usageLocation',
+ type: {
+ name: 'String'
+ }
+ },
+ given_name: {
+ required: false,
+ serialized_name: 'givenName',
+ type: {
+ name: 'String'
+ }
+ },
+ surname: {
+ required: false,
+ serialized_name: 'surname',
+ type: {
+ name: 'String'
+ }
+ },
+ user_type: {
+ required: false,
+ serialized_name: 'userType',
+ type: {
+ name: 'String'
+ }
+ },
account_enabled: {
required: true,
serialized_name: 'accountEnabled',
@@ -90,16 +115,9 @@ def self.mapper()
name: 'String'
}
},
- immutable_id: {
+ mail: {
required: false,
- serialized_name: 'immutableId',
- type: {
- name: 'String'
- }
- },
- usage_location: {
- required: false,
- serialized_name: 'usageLocation',
+ serialized_name: 'mail',
type: {
name: 'String'
}
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb
old mode 100755
new mode 100644
index e00cba11d0..2b62f81559
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_get_member_groups_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UserGetMemberGroupsParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] If true, only membership in security-enabled groups
# should be checked. Otherwise, membership in all groups should be
# checked.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_get_member_groups_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_get_member_groups_result.rb
old mode 100755
new mode 100644
index fb96119295..0bec79f4d0
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_get_member_groups_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_get_member_groups_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class UserGetMemberGroupsResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A collection of group IDs of which the user is
# a member.
attr_accessor :value
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_list_result.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_list_result.rb
old mode 100755
new mode 100644
index 47d0aa422f..d3efa476fe
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_list_result.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_type.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_type.rb
new file mode 100644
index 0000000000..bb960f46b3
--- /dev/null
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_type.rb
@@ -0,0 +1,16 @@
+# 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::ARM::Graph
+ module Models
+ #
+ # Defines values for UserType
+ #
+ module UserType
+ Member = "Member"
+ Guest = "Guest"
+ end
+ end
+end
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb
old mode 100755
new mode 100644
index 67ee87a4fc..3a27afd9d8
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/models/user_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Request parameters for updating an existing work or school account user.
#
- class UserUpdateParameters
+ class UserUpdateParameters < UserBase
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Whether the account is enabled.
attr_accessor :account_enabled
@@ -22,15 +21,13 @@ class UserUpdateParameters
# @return [PasswordProfile] The password profile of the user.
attr_accessor :password_profile
+ # @return [String] The user principal name (someuser@contoso.com). It
+ # must contain one of the verified domains for the tenant.
+ attr_accessor :user_principal_name
+
# @return [String] The mail alias for the user.
attr_accessor :mail_nickname
- # @return [String] A two letter country code (ISO standard 3166).
- # Required for users that will be assigned licenses due to legal
- # requirement to check for availability of services in countries.
- # Examples include: "US", "JP", and "GB".
- attr_accessor :usage_location
-
#
# Mapper for UserUpdateParameters class as Ruby Hash.
@@ -44,6 +41,41 @@ def self.mapper()
name: 'Composite',
class_name: 'UserUpdateParameters',
model_properties: {
+ immutable_id: {
+ required: false,
+ serialized_name: 'immutableId',
+ type: {
+ name: 'String'
+ }
+ },
+ usage_location: {
+ required: false,
+ serialized_name: 'usageLocation',
+ type: {
+ name: 'String'
+ }
+ },
+ given_name: {
+ required: false,
+ serialized_name: 'givenName',
+ type: {
+ name: 'String'
+ }
+ },
+ surname: {
+ required: false,
+ serialized_name: 'surname',
+ type: {
+ name: 'String'
+ }
+ },
+ user_type: {
+ required: false,
+ serialized_name: 'userType',
+ type: {
+ name: 'String'
+ }
+ },
account_enabled: {
required: false,
serialized_name: 'accountEnabled',
@@ -66,16 +98,16 @@ def self.mapper()
class_name: 'PasswordProfile'
}
},
- mail_nickname: {
+ user_principal_name: {
required: false,
- serialized_name: 'mailNickname',
+ serialized_name: 'userPrincipalName',
type: {
name: 'String'
}
},
- usage_location: {
+ mail_nickname: {
required: false,
- serialized_name: 'usageLocation',
+ serialized_name: 'mailNickname',
type: {
name: 'String'
}
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/module_definition.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/module_definition.rb
old mode 100755
new mode 100644
index 95c714f32c..72bf75f03c
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/module_definition.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/objects.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/objects.rb
old mode 100755
new mode 100644
index e7074073cc..13127ada41
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/objects.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/objects.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/service_principals.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/service_principals.rb
old mode 100755
new mode 100644
index a88ea2d394..370167e51a
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/service_principals.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/service_principals.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/users.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/users.rb
old mode 100755
new mode 100644
index a505374f18..66bc704703
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/users.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/users.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/version.rb b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/version.rb
old mode 100755
new mode 100644
index a3300b8c01..80f34f620b
--- a/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/version.rb
+++ b/management/azure_mgmt_graph/lib/generated/azure_mgmt_graph/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Graph
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_iot_hub/azure_mgmt_iot_hub.gemspec b/management/azure_mgmt_iot_hub/azure_mgmt_iot_hub.gemspec
index 69723d1f43..6d8994e7fe 100644
--- a/management/azure_mgmt_iot_hub/azure_mgmt_iot_hub.gemspec
+++ b/management/azure_mgmt_iot_hub/azure_mgmt_iot_hub.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub.rb
old mode 100755
new mode 100644
index bc23d0aa07..24726c170d
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -20,43 +20,57 @@
require 'ms_rest_azure'
module Azure::ARM::IotHub
+ autoload :Operations, 'generated/azure_mgmt_iot_hub/operations.rb'
autoload :IotHubResource, 'generated/azure_mgmt_iot_hub/iot_hub_resource.rb'
+ autoload :Certificates, 'generated/azure_mgmt_iot_hub/certificates.rb'
autoload :IotHubClient, 'generated/azure_mgmt_iot_hub/iot_hub_client.rb'
module Models
- autoload :SharedAccessSignatureAuthorizationRule, 'generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb'
+ autoload :IotHubProperties, 'generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb'
+ autoload :IotHubSkuInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb'
+ autoload :CertificateBodyDescription, 'generated/azure_mgmt_iot_hub/models/certificate_body_description.rb'
+ autoload :CertificateProperties, 'generated/azure_mgmt_iot_hub/models/certificate_properties.rb'
+ autoload :CertificateListDescription, 'generated/azure_mgmt_iot_hub/models/certificate_list_description.rb'
+ autoload :Resource, 'generated/azure_mgmt_iot_hub/models/resource.rb'
+ autoload :CertificateWithNonceDescription, 'generated/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb'
autoload :SharedAccessSignatureAuthorizationRuleListResult, 'generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb'
- autoload :EventHubProperties, 'generated/azure_mgmt_iot_hub/models/event_hub_properties.rb'
+ autoload :IpFilterRule, 'generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb'
+ autoload :OperationDisplay, 'generated/azure_mgmt_iot_hub/models/operation_display.rb'
+ autoload :RoutingServiceBusQueueEndpointProperties, 'generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb'
+ autoload :Operation, 'generated/azure_mgmt_iot_hub/models/operation.rb'
+ autoload :RoutingEventHubProperties, 'generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb'
+ autoload :OperationListResult, 'generated/azure_mgmt_iot_hub/models/operation_list_result.rb'
+ autoload :RoutingEndpoints, 'generated/azure_mgmt_iot_hub/models/routing_endpoints.rb'
autoload :ErrorDetails, 'generated/azure_mgmt_iot_hub/models/error_details.rb'
- autoload :RoutingServiceBusTopicEndpointProperties, 'generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb'
+ autoload :FallbackRouteProperties, 'generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb'
autoload :IotHubQuotaMetricInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb'
- autoload :RoutingEndpoints, 'generated/azure_mgmt_iot_hub/models/routing_endpoints.rb'
+ autoload :StorageEndpointProperties, 'generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb'
autoload :IotHubQuotaMetricInfoListResult, 'generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb'
- autoload :FallbackRouteProperties, 'generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb'
+ autoload :FeedbackProperties, 'generated/azure_mgmt_iot_hub/models/feedback_properties.rb'
autoload :RegistryStatistics, 'generated/azure_mgmt_iot_hub/models/registry_statistics.rb'
- autoload :StorageEndpointProperties, 'generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb'
+ autoload :OperationsMonitoringProperties, 'generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb'
autoload :JobResponse, 'generated/azure_mgmt_iot_hub/models/job_response.rb'
- autoload :FeedbackProperties, 'generated/azure_mgmt_iot_hub/models/feedback_properties.rb'
+ autoload :CertificateDescription, 'generated/azure_mgmt_iot_hub/models/certificate_description.rb'
autoload :JobResponseListResult, 'generated/azure_mgmt_iot_hub/models/job_response_list_result.rb'
- autoload :OperationsMonitoringProperties, 'generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb'
+ autoload :SharedAccessSignatureAuthorizationRule, 'generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb'
autoload :IotHubCapacity, 'generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb'
- autoload :IotHubSkuInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb'
+ autoload :RoutingServiceBusTopicEndpointProperties, 'generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb'
autoload :IotHubSkuDescription, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb'
- autoload :IpFilterRule, 'generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb'
+ autoload :RouteProperties, 'generated/azure_mgmt_iot_hub/models/route_properties.rb'
autoload :EventHubConsumerGroupsListResult, 'generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb'
- autoload :RoutingEventHubProperties, 'generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb'
+ autoload :MessagingEndpointProperties, 'generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb'
autoload :EventHubConsumerGroupInfo, 'generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb'
- autoload :RoutingProperties, 'generated/azure_mgmt_iot_hub/models/routing_properties.rb'
+ autoload :CertificateVerificationDescription, 'generated/azure_mgmt_iot_hub/models/certificate_verification_description.rb'
autoload :IotHubSkuDescriptionListResult, 'generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb'
- autoload :CloudToDeviceProperties, 'generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb'
+ autoload :EventHubProperties, 'generated/azure_mgmt_iot_hub/models/event_hub_properties.rb'
autoload :IotHubDescriptionListResult, 'generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb'
- autoload :RoutingServiceBusQueueEndpointProperties, 'generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb'
+ autoload :RoutingProperties, 'generated/azure_mgmt_iot_hub/models/routing_properties.rb'
autoload :OperationInputs, 'generated/azure_mgmt_iot_hub/models/operation_inputs.rb'
- autoload :MessagingEndpointProperties, 'generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb'
+ autoload :CertificatePropertiesWithNonce, 'generated/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb'
autoload :IotHubNameAvailabilityInfo, 'generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb'
- autoload :RouteProperties, 'generated/azure_mgmt_iot_hub/models/route_properties.rb'
+ autoload :CloudToDeviceProperties, 'generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb'
autoload :ExportDevicesRequest, 'generated/azure_mgmt_iot_hub/models/export_devices_request.rb'
- autoload :IotHubProperties, 'generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb'
+ autoload :RoutingStorageContainerProperties, 'generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb'
autoload :ImportDevicesRequest, 'generated/azure_mgmt_iot_hub/models/import_devices_request.rb'
autoload :IotHubDescription, 'generated/azure_mgmt_iot_hub/models/iot_hub_description.rb'
autoload :AccessRights, 'generated/azure_mgmt_iot_hub/models/access_rights.rb'
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/certificates.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/certificates.rb
new file mode 100644
index 0000000000..7bd48798c1
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/certificates.rb
@@ -0,0 +1,613 @@
+# 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::ARM::IotHub
+ #
+ # Use this API to manage the IoT hubs in your Azure subscription.
+ #
+ class Certificates
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Certificates class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [IotHubClient] reference to the IotHubClient
+ attr_reader :client
+
+ #
+ # Get the certificate list.
+ #
+ # Returns the list of certificates.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CertificateListDescription] operation results.
+ #
+ def list_by_io_thub(custom_headers = nil)
+ response = list_by_io_thub_async(custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Get the certificate list.
+ #
+ # Returns the list of certificates.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_by_io_thub_with_http_info(custom_headers = nil)
+ list_by_io_thub_async(custom_headers).value!
+ end
+
+ #
+ # Get the certificate list.
+ #
+ # Returns the list of certificates.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_by_io_thub_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
+
+
+ request_headers = {}
+
+ # 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.Devices/IotHubs/{resourceName}/certificates'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::IotHub::Models::CertificateListDescription.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Get the certificate.
+ #
+ # Returns the certificate.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CertificateDescription] operation results.
+ #
+ def get(custom_headers = nil)
+ response = get_async(custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Get the certificate.
+ #
+ # Returns the certificate.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(custom_headers = nil)
+ get_async(custom_headers).value!
+ end
+
+ #
+ # Get the certificate.
+ #
+ # Returns the certificate.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
+ fail ArgumentError, '@client.certificate_name is nil' if @client.certificate_name.nil?
+
+
+ request_headers = {}
+
+ # 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.Devices/IotHubs/{resourceName}/certificates/{certificateName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'certificateName' => @client.certificate_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::IotHub::Models::CertificateDescription.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Upload the certificate to the IoT hub.
+ #
+ # Adds new or replaces existing certificate.
+ #
+ # @param certificate_description [CertificateBodyDescription] The certificate
+ # body.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CertificateDescription] operation results.
+ #
+ def create_or_update(certificate_description, custom_headers = nil)
+ response = create_or_update_async(certificate_description, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Upload the certificate to the IoT hub.
+ #
+ # Adds new or replaces existing certificate.
+ #
+ # @param certificate_description [CertificateBodyDescription] The certificate
+ # body.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def create_or_update_with_http_info(certificate_description, custom_headers = nil)
+ create_or_update_async(certificate_description, custom_headers).value!
+ end
+
+ #
+ # Upload the certificate to the IoT hub.
+ #
+ # Adds new or replaces existing certificate.
+ #
+ # @param certificate_description [CertificateBodyDescription] The certificate
+ # body.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def create_or_update_async(certificate_description, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
+ fail ArgumentError, '@client.certificate_name is nil' if @client.certificate_name.nil?
+ fail ArgumentError, 'certificate_description is nil' if certificate_description.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::IotHub::Models::CertificateBodyDescription.mapper()
+ request_content = @client.serialize(request_mapper, certificate_description)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'certificateName' => @client.certificate_name},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:put, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 201 || status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::IotHub::Models::CertificateDescription.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::IotHub::Models::CertificateDescription.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Delete an X509 certificate.
+ #
+ # Deletes an existing X509 certificate or does nothing if it does not exist.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def delete(custom_headers = nil)
+ response = delete_async(custom_headers).value!
+ nil
+ end
+
+ #
+ # Delete an X509 certificate.
+ #
+ # Deletes an existing X509 certificate or does nothing if it does not exist.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def delete_with_http_info(custom_headers = nil)
+ delete_async(custom_headers).value!
+ end
+
+ #
+ # Delete an X509 certificate.
+ #
+ # Deletes an existing X509 certificate or does nothing if it does not exist.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def delete_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
+ fail ArgumentError, '@client.certificate_name is nil' if @client.certificate_name.nil?
+
+
+ request_headers = {}
+
+ # 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.Devices/IotHubs/{resourceName}/certificates/{certificateName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'certificateName' => @client.certificate_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:delete, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 204
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Generate verification code for proof of posession flow.
+ #
+ # Generates verification code for proof of posession flow. The verifification
+ # code will be used to generate a leaf certificate.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CertificateWithNonceDescription] operation results.
+ #
+ def generate_verification_code(custom_headers = nil)
+ response = generate_verification_code_async(custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Generate verification code for proof of posession flow.
+ #
+ # Generates verification code for proof of posession flow. The verifification
+ # code will be used to generate a leaf certificate.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def generate_verification_code_with_http_info(custom_headers = nil)
+ generate_verification_code_async(custom_headers).value!
+ end
+
+ #
+ # Generate verification code for proof of posession flow.
+ #
+ # Generates verification code for proof of posession flow. The verifification
+ # code will be used to generate a leaf certificate.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def generate_verification_code_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
+ fail ArgumentError, '@client.certificate_name is nil' if @client.certificate_name.nil?
+
+
+ request_headers = {}
+
+ # 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.Devices/IotHubs/{resourceName}/certificates/{certificateName}/generateVerificationCode'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'certificateName' => @client.certificate_name},
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::IotHub::Models::CertificateWithNonceDescription.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Verify certificate's private key posession.
+ #
+ # Verifies the certificate's private key posession by providing the leaf cert
+ # issued by the verifying pre uploaded certificate.
+ #
+ # @param certificate_verification_body [CertificateVerificationDescription] The
+ # name of the certificate
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [CertificateDescription] operation results.
+ #
+ def verify(certificate_verification_body, custom_headers = nil)
+ response = verify_async(certificate_verification_body, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Verify certificate's private key posession.
+ #
+ # Verifies the certificate's private key posession by providing the leaf cert
+ # issued by the verifying pre uploaded certificate.
+ #
+ # @param certificate_verification_body [CertificateVerificationDescription] The
+ # name of the certificate
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def verify_with_http_info(certificate_verification_body, custom_headers = nil)
+ verify_async(certificate_verification_body, custom_headers).value!
+ end
+
+ #
+ # Verify certificate's private key posession.
+ #
+ # Verifies the certificate's private key posession by providing the leaf cert
+ # issued by the verifying pre uploaded certificate.
+ #
+ # @param certificate_verification_body [CertificateVerificationDescription] The
+ # name of the certificate
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def verify_async(certificate_verification_body, custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
+ fail ArgumentError, '@client.certificate_name is nil' if @client.certificate_name.nil?
+ fail ArgumentError, 'certificate_verification_body is nil' if certificate_verification_body.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::IotHub::Models::CertificateVerificationDescription.mapper()
+ request_content = @client.serialize(request_mapper, certificate_verification_body)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/IotHubs/{resourceName}/certificates/{certificateName}/verify'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'certificateName' => @client.certificate_name},
+ query_params: {'api-version' => @client.api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:post, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::IotHub::Models::CertificateDescription.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb
old mode 100755
new mode 100644
index dd27c50295..d538b71b12
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/iot_hub_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -23,6 +23,16 @@ class IotHubClient < MsRestAzure::AzureServiceClient
# @return [String] The version of the API.
attr_reader :api_version
+ # @return [String] The name of the resource group that contains the IoT
+ # hub.
+ attr_accessor :resource_group_name
+
+ # @return [String] The name of the IoT hub.
+ attr_accessor :resource_name
+
+ # @return [String] The name of the certificate
+ attr_accessor :certificate_name
+
# @return [String] Gets or sets the preferred language for the response.
attr_accessor :accept_language
@@ -34,9 +44,15 @@ class IotHubClient < MsRestAzure::AzureServiceClient
# is generated and included in each request. Default is true.
attr_accessor :generate_client_request_id
+ # @return [Operations] operations
+ attr_reader :operations
+
# @return [IotHubResource] iot_hub_resource
attr_reader :iot_hub_resource
+ # @return [Certificates] certificates
+ attr_reader :certificates
+
#
# Creates initializes a new instance of the IotHubClient class.
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@@ -50,8 +66,10 @@ def initialize(credentials = nil, base_url = nil, options = nil)
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
@credentials = credentials
+ @operations = Operations.new(self)
@iot_hub_resource = IotHubResource.new(self)
- @api_version = '2017-01-19'
+ @certificates = Certificates.new(self)
+ @api_version = '2017-07-01'
@accept_language = 'en-US'
@long_running_operation_retry_timeout = 30
@generate_client_request_id = true
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb
old mode 100755
new mode 100644
index 2ae70edaca..b995b0af18
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/iot_hub_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -26,16 +26,13 @@ def initialize(client)
#
# Get the non-security related metadata of an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [IotHubDescription] operation results.
#
- def get(resource_group_name, resource_name, custom_headers = nil)
- response = get_async(resource_group_name, resource_name, custom_headers).value!
+ def get(custom_headers = nil)
+ response = get_async(custom_headers).value!
response.body unless response.nil?
end
@@ -44,16 +41,13 @@ def get(resource_group_name, resource_name, custom_headers = nil)
#
# Get the non-security related metadata of an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def get_with_http_info(resource_group_name, resource_name, custom_headers = nil)
- get_async(resource_group_name, resource_name, custom_headers).value!
+ def get_with_http_info(custom_headers = nil)
+ get_async(custom_headers).value!
end
#
@@ -61,19 +55,16 @@ def get_with_http_info(resource_group_name, resource_name, custom_headers = nil)
#
# Get the non-security related metadata of an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def get_async(resource_group_name, resource_name, custom_headers = nil)
+ def get_async(custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
request_headers = {}
@@ -87,7 +78,7 @@ def get_async(resource_group_name, resource_name, custom_headers = nil)
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -128,9 +119,6 @@ def get_async(resource_group_name, resource_name, custom_headers = nil)
# property is to retrieve the IoT hub metadata and security metadata, and then
# combine them with the modified values in a new body to update the IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to create or update.
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
# security metadata.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -138,15 +126,12 @@ def get_async(resource_group_name, resource_name, custom_headers = nil)
#
# @return [IotHubDescription] operation results.
#
- def create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
- response = create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value!
+ def create_or_update(iot_hub_description, custom_headers = nil)
+ response = create_or_update_async(iot_hub_description, custom_headers).value!
response.body unless response.nil?
end
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to create or update.
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
# security metadata.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -155,9 +140,9 @@ def create_or_update(resource_group_name, resource_name, iot_hub_description, cu
# @return [Concurrent::Promise] promise which provides async access to http
# response.
#
- def create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
+ def create_or_update_async(iot_hub_description, custom_headers = nil)
# Send request
- promise = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers)
+ promise = begin_create_or_update_async(iot_hub_description, custom_headers)
promise = promise.then do |response|
# Defining deserialization method.
@@ -178,32 +163,26 @@ def create_or_update_async(resource_group_name, resource_name, iot_hub_descripti
#
# Delete an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to delete.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Object] operation results.
#
- def delete(resource_group_name, resource_name, custom_headers = nil)
- response = delete_async(resource_group_name, resource_name, custom_headers).value!
+ def delete(custom_headers = nil)
+ response = delete_async(custom_headers).value!
response.body unless response.nil?
end
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to delete.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Concurrent::Promise] promise which provides async access to http
# response.
#
- def delete_async(resource_group_name, resource_name, custom_headers = nil)
+ def delete_async(custom_headers = nil)
# Send request
- promise = begin_delete_async(resource_group_name, resource_name, custom_headers)
+ promise = begin_delete_async(custom_headers)
promise = promise.then do |response|
# Defining deserialization method.
@@ -319,15 +298,13 @@ def list_by_subscription_async(custom_headers = nil)
#
# Get all the IoT hubs in a resource group.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hubs.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Array] operation results.
#
- def list_by_resource_group(resource_group_name, custom_headers = nil)
- first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
+ def list_by_resource_group(custom_headers = nil)
+ first_page = list_by_resource_group_as_lazy(custom_headers)
first_page.get_all_items
end
@@ -336,15 +313,13 @@ def list_by_resource_group(resource_group_name, custom_headers = nil)
#
# Get all the IoT hubs in a resource group.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hubs.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
- list_by_resource_group_async(resource_group_name, custom_headers).value!
+ def list_by_resource_group_with_http_info(custom_headers = nil)
+ list_by_resource_group_async(custom_headers).value!
end
#
@@ -352,17 +327,15 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers =
#
# Get all the IoT hubs in a resource group.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hubs.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
+ def list_by_resource_group_async(custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
request_headers = {}
@@ -376,7 +349,7 @@ def list_by_resource_group_async(resource_group_name, custom_headers = nil)
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -415,16 +388,13 @@ def list_by_resource_group_async(resource_group_name, custom_headers = nil)
#
# Get the statistics from an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [RegistryStatistics] operation results.
#
- def get_stats(resource_group_name, resource_name, custom_headers = nil)
- response = get_stats_async(resource_group_name, resource_name, custom_headers).value!
+ def get_stats(custom_headers = nil)
+ response = get_stats_async(custom_headers).value!
response.body unless response.nil?
end
@@ -433,16 +403,13 @@ def get_stats(resource_group_name, resource_name, custom_headers = nil)
#
# Get the statistics from an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def get_stats_with_http_info(resource_group_name, resource_name, custom_headers = nil)
- get_stats_async(resource_group_name, resource_name, custom_headers).value!
+ def get_stats_with_http_info(custom_headers = nil)
+ get_stats_async(custom_headers).value!
end
#
@@ -450,19 +417,16 @@ def get_stats_with_http_info(resource_group_name, resource_name, custom_headers
#
# Get the statistics from an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def get_stats_async(resource_group_name, resource_name, custom_headers = nil)
+ def get_stats_async(custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
request_headers = {}
@@ -476,7 +440,7 @@ def get_stats_async(resource_group_name, resource_name, custom_headers = nil)
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -515,16 +479,13 @@ def get_stats_async(resource_group_name, resource_name, custom_headers = nil)
#
# Get the list of valid SKUs for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Array] operation results.
#
- def get_valid_skus(resource_group_name, resource_name, custom_headers = nil)
- first_page = get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers)
+ def get_valid_skus(custom_headers = nil)
+ first_page = get_valid_skus_as_lazy(custom_headers)
first_page.get_all_items
end
@@ -533,16 +494,13 @@ def get_valid_skus(resource_group_name, resource_name, custom_headers = nil)
#
# Get the list of valid SKUs for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_headers = nil)
- get_valid_skus_async(resource_group_name, resource_name, custom_headers).value!
+ def get_valid_skus_with_http_info(custom_headers = nil)
+ get_valid_skus_async(custom_headers).value!
end
#
@@ -550,19 +508,16 @@ def get_valid_skus_with_http_info(resource_group_name, resource_name, custom_hea
#
# Get the list of valid SKUs for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def get_valid_skus_async(resource_group_name, resource_name, custom_headers = nil)
+ def get_valid_skus_async(custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
request_headers = {}
@@ -576,7 +531,7 @@ def get_valid_skus_async(resource_group_name, resource_name, custom_headers = ni
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -617,9 +572,6 @@ def get_valid_skus_async(resource_group_name, resource_name, custom_headers = ni
# Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
# endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -627,8 +579,8 @@ def get_valid_skus_async(resource_group_name, resource_name, custom_headers = ni
#
# @return [Array] operation results.
#
- def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil)
- first_page = list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers)
+ def list_event_hub_consumer_groups(event_hub_endpoint_name, custom_headers = nil)
+ first_page = list_event_hub_consumer_groups_as_lazy(event_hub_endpoint_name, custom_headers)
first_page.get_all_items
end
@@ -639,9 +591,6 @@ def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub
# Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
# endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -649,8 +598,8 @@ def list_event_hub_consumer_groups(resource_group_name, resource_name, event_hub
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil)
- list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value!
+ def list_event_hub_consumer_groups_with_http_info(event_hub_endpoint_name, custom_headers = nil)
+ list_event_hub_consumer_groups_async(event_hub_endpoint_name, custom_headers).value!
end
#
@@ -660,9 +609,6 @@ def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_
# Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
# endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint.
# @param [Hash{String => String}] A hash of custom headers that will be added
@@ -670,11 +616,11 @@ def list_event_hub_consumer_groups_with_http_info(resource_group_name, resource_
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil)
+ def list_event_hub_consumer_groups_async(event_hub_endpoint_name, custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
fail ArgumentError, 'event_hub_endpoint_name is nil' if event_hub_endpoint_name.nil?
@@ -689,7 +635,7 @@ def list_event_hub_consumer_groups_async(resource_group_name, resource_name, eve
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'eventHubEndpointName' => event_hub_endpoint_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'eventHubEndpointName' => event_hub_endpoint_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -730,9 +676,6 @@ def list_event_hub_consumer_groups_async(resource_group_name, resource_name, eve
# Get a consumer group from the Event Hub-compatible device-to-cloud endpoint
# for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint in the IoT hub.
# @param name [String] The name of the consumer group to retrieve.
@@ -741,8 +684,8 @@ def list_event_hub_consumer_groups_async(resource_group_name, resource_name, eve
#
# @return [EventHubConsumerGroupInfo] operation results.
#
- def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
- response = get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
+ def get_event_hub_consumer_group(event_hub_endpoint_name, name, custom_headers = nil)
+ response = get_event_hub_consumer_group_async(event_hub_endpoint_name, name, custom_headers).value!
response.body unless response.nil?
end
@@ -753,9 +696,6 @@ def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_e
# Get a consumer group from the Event Hub-compatible device-to-cloud endpoint
# for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint in the IoT hub.
# @param name [String] The name of the consumer group to retrieve.
@@ -764,8 +704,8 @@ def get_event_hub_consumer_group(resource_group_name, resource_name, event_hub_e
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
- get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
+ def get_event_hub_consumer_group_with_http_info(event_hub_endpoint_name, name, custom_headers = nil)
+ get_event_hub_consumer_group_async(event_hub_endpoint_name, name, custom_headers).value!
end
#
@@ -775,9 +715,6 @@ def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_na
# Get a consumer group from the Event Hub-compatible device-to-cloud endpoint
# for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint in the IoT hub.
# @param name [String] The name of the consumer group to retrieve.
@@ -786,11 +723,11 @@ def get_event_hub_consumer_group_with_http_info(resource_group_name, resource_na
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def get_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
+ def get_event_hub_consumer_group_async(event_hub_endpoint_name, name, custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
fail ArgumentError, 'event_hub_endpoint_name is nil' if event_hub_endpoint_name.nil?
fail ArgumentError, 'name is nil' if name.nil?
@@ -806,7 +743,7 @@ def get_event_hub_consumer_group_async(resource_group_name, resource_name, event
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'eventHubEndpointName' => event_hub_endpoint_name,'name' => name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'eventHubEndpointName' => event_hub_endpoint_name,'name' => name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -845,9 +782,6 @@ def get_event_hub_consumer_group_async(resource_group_name, resource_name, event
#
# Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint in the IoT hub.
# @param name [String] The name of the consumer group to add.
@@ -856,8 +790,8 @@ def get_event_hub_consumer_group_async(resource_group_name, resource_name, event
#
# @return [EventHubConsumerGroupInfo] operation results.
#
- def create_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
- response = create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
+ def create_event_hub_consumer_group(event_hub_endpoint_name, name, custom_headers = nil)
+ response = create_event_hub_consumer_group_async(event_hub_endpoint_name, name, custom_headers).value!
response.body unless response.nil?
end
@@ -866,9 +800,6 @@ def create_event_hub_consumer_group(resource_group_name, resource_name, event_hu
#
# Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint in the IoT hub.
# @param name [String] The name of the consumer group to add.
@@ -877,8 +808,8 @@ def create_event_hub_consumer_group(resource_group_name, resource_name, event_hu
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def create_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
- create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
+ def create_event_hub_consumer_group_with_http_info(event_hub_endpoint_name, name, custom_headers = nil)
+ create_event_hub_consumer_group_async(event_hub_endpoint_name, name, custom_headers).value!
end
#
@@ -886,9 +817,6 @@ def create_event_hub_consumer_group_with_http_info(resource_group_name, resource
#
# Add a consumer group to an Event Hub-compatible endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint in the IoT hub.
# @param name [String] The name of the consumer group to add.
@@ -897,11 +825,11 @@ def create_event_hub_consumer_group_with_http_info(resource_group_name, resource
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def create_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
+ def create_event_hub_consumer_group_async(event_hub_endpoint_name, name, custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
fail ArgumentError, 'event_hub_endpoint_name is nil' if event_hub_endpoint_name.nil?
fail ArgumentError, 'name is nil' if name.nil?
@@ -917,7 +845,7 @@ def create_event_hub_consumer_group_async(resource_group_name, resource_name, ev
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'eventHubEndpointName' => event_hub_endpoint_name,'name' => name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'eventHubEndpointName' => event_hub_endpoint_name,'name' => name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -956,9 +884,6 @@ def create_event_hub_consumer_group_async(resource_group_name, resource_name, ev
#
# Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint in the IoT hub.
# @param name [String] The name of the consumer group to delete.
@@ -966,8 +891,8 @@ def create_event_hub_consumer_group_async(resource_group_name, resource_name, ev
# will be added to the HTTP request.
#
#
- def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
- response = delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
+ def delete_event_hub_consumer_group(event_hub_endpoint_name, name, custom_headers = nil)
+ response = delete_event_hub_consumer_group_async(event_hub_endpoint_name, name, custom_headers).value!
nil
end
@@ -976,9 +901,6 @@ def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hu
#
# Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint in the IoT hub.
# @param name [String] The name of the consumer group to delete.
@@ -987,8 +909,8 @@ def delete_event_hub_consumer_group(resource_group_name, resource_name, event_hu
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
- delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers).value!
+ def delete_event_hub_consumer_group_with_http_info(event_hub_endpoint_name, name, custom_headers = nil)
+ delete_event_hub_consumer_group_async(event_hub_endpoint_name, name, custom_headers).value!
end
#
@@ -996,9 +918,6 @@ def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource
#
# Delete a consumer group from an Event Hub-compatible endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint in the IoT hub.
# @param name [String] The name of the consumer group to delete.
@@ -1007,11 +926,11 @@ def delete_event_hub_consumer_group_with_http_info(resource_group_name, resource
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def delete_event_hub_consumer_group_async(resource_group_name, resource_name, event_hub_endpoint_name, name, custom_headers = nil)
+ def delete_event_hub_consumer_group_async(event_hub_endpoint_name, name, custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
fail ArgumentError, 'event_hub_endpoint_name is nil' if event_hub_endpoint_name.nil?
fail ArgumentError, 'name is nil' if name.nil?
@@ -1027,7 +946,7 @@ def delete_event_hub_consumer_group_async(resource_group_name, resource_name, ev
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'eventHubEndpointName' => event_hub_endpoint_name,'name' => name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'eventHubEndpointName' => event_hub_endpoint_name,'name' => name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -1058,16 +977,13 @@ def delete_event_hub_consumer_group_async(resource_group_name, resource_name, ev
# Get a list of all the jobs in an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Array] operation results.
#
- def list_jobs(resource_group_name, resource_name, custom_headers = nil)
- first_page = list_jobs_as_lazy(resource_group_name, resource_name, custom_headers)
+ def list_jobs(custom_headers = nil)
+ first_page = list_jobs_as_lazy(custom_headers)
first_page.get_all_items
end
@@ -1078,16 +994,13 @@ def list_jobs(resource_group_name, resource_name, custom_headers = nil)
# Get a list of all the jobs in an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers = nil)
- list_jobs_async(resource_group_name, resource_name, custom_headers).value!
+ def list_jobs_with_http_info(custom_headers = nil)
+ list_jobs_async(custom_headers).value!
end
#
@@ -1097,19 +1010,16 @@ def list_jobs_with_http_info(resource_group_name, resource_name, custom_headers
# Get a list of all the jobs in an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def list_jobs_async(resource_group_name, resource_name, custom_headers = nil)
+ def list_jobs_async(custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
request_headers = {}
@@ -1123,7 +1033,7 @@ def list_jobs_async(resource_group_name, resource_name, custom_headers = nil)
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -1164,17 +1074,14 @@ def list_jobs_async(resource_group_name, resource_name, custom_headers = nil)
# Get the details of a job from an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param job_id [String] The job identifier.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [JobResponse] operation results.
#
- def get_job(resource_group_name, resource_name, job_id, custom_headers = nil)
- response = get_job_async(resource_group_name, resource_name, job_id, custom_headers).value!
+ def get_job(job_id, custom_headers = nil)
+ response = get_job_async(job_id, custom_headers).value!
response.body unless response.nil?
end
@@ -1185,17 +1092,14 @@ def get_job(resource_group_name, resource_name, job_id, custom_headers = nil)
# Get the details of a job from an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param job_id [String] The job identifier.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_headers = nil)
- get_job_async(resource_group_name, resource_name, job_id, custom_headers).value!
+ def get_job_with_http_info(job_id, custom_headers = nil)
+ get_job_async(job_id, custom_headers).value!
end
#
@@ -1205,20 +1109,17 @@ def get_job_with_http_info(resource_group_name, resource_name, job_id, custom_he
# Get the details of a job from an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param job_id [String] The job identifier.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def get_job_async(resource_group_name, resource_name, job_id, custom_headers = nil)
+ def get_job_async(job_id, custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
fail ArgumentError, 'job_id is nil' if job_id.nil?
@@ -1233,7 +1134,7 @@ def get_job_async(resource_group_name, resource_name, job_id, custom_headers = n
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'jobId' => job_id},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'jobId' => job_id},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -1272,16 +1173,13 @@ def get_job_async(resource_group_name, resource_name, job_id, custom_headers = n
#
# Get the quota metrics for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Array] operation results.
#
- def get_quota_metrics(resource_group_name, resource_name, custom_headers = nil)
- first_page = get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers)
+ def get_quota_metrics(custom_headers = nil)
+ first_page = get_quota_metrics_as_lazy(custom_headers)
first_page.get_all_items
end
@@ -1290,16 +1188,13 @@ def get_quota_metrics(resource_group_name, resource_name, custom_headers = nil)
#
# Get the quota metrics for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_headers = nil)
- get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value!
+ def get_quota_metrics_with_http_info(custom_headers = nil)
+ get_quota_metrics_async(custom_headers).value!
end
#
@@ -1307,19 +1202,16 @@ def get_quota_metrics_with_http_info(resource_group_name, resource_name, custom_
#
# Get the quota metrics for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def get_quota_metrics_async(resource_group_name, resource_name, custom_headers = nil)
+ def get_quota_metrics_async(custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
request_headers = {}
@@ -1333,7 +1225,7 @@ def get_quota_metrics_async(resource_group_name, resource_name, custom_headers =
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -1479,16 +1371,13 @@ def check_name_availability_async(operation_inputs, custom_headers = nil)
# Get the security metadata for an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Array] operation results.
#
- def list_keys(resource_group_name, resource_name, custom_headers = nil)
- first_page = list_keys_as_lazy(resource_group_name, resource_name, custom_headers)
+ def list_keys(custom_headers = nil)
+ first_page = list_keys_as_lazy(custom_headers)
first_page.get_all_items
end
@@ -1499,16 +1388,13 @@ def list_keys(resource_group_name, resource_name, custom_headers = nil)
# Get the security metadata for an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def list_keys_with_http_info(resource_group_name, resource_name, custom_headers = nil)
- list_keys_async(resource_group_name, resource_name, custom_headers).value!
+ def list_keys_with_http_info(custom_headers = nil)
+ list_keys_async(custom_headers).value!
end
#
@@ -1518,19 +1404,16 @@ def list_keys_with_http_info(resource_group_name, resource_name, custom_headers
# Get the security metadata for an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def list_keys_async(resource_group_name, resource_name, custom_headers = nil)
+ def list_keys_async(custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
request_headers = {}
@@ -1544,7 +1427,7 @@ def list_keys_async(resource_group_name, resource_name, custom_headers = nil)
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -1585,17 +1468,14 @@ def list_keys_async(resource_group_name, resource_name, custom_headers = nil)
# Get a shared access policy by name from an IoT hub. For more information,
# see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param key_name [String] The name of the shared access policy.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [SharedAccessSignatureAuthorizationRule] operation results.
#
- def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_headers = nil)
- response = get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value!
+ def get_keys_for_key_name(key_name, custom_headers = nil)
+ response = get_keys_for_key_name_async(key_name, custom_headers).value!
response.body unless response.nil?
end
@@ -1606,17 +1486,14 @@ def get_keys_for_key_name(resource_group_name, resource_name, key_name, custom_h
# Get a shared access policy by name from an IoT hub. For more information,
# see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param key_name [String] The name of the shared access policy.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key_name, custom_headers = nil)
- get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers).value!
+ def get_keys_for_key_name_with_http_info(key_name, custom_headers = nil)
+ get_keys_for_key_name_async(key_name, custom_headers).value!
end
#
@@ -1626,20 +1503,17 @@ def get_keys_for_key_name_with_http_info(resource_group_name, resource_name, key
# Get a shared access policy by name from an IoT hub. For more information,
# see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param key_name [String] The name of the shared access policy.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, custom_headers = nil)
+ def get_keys_for_key_name_async(key_name, custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
fail ArgumentError, 'key_name is nil' if key_name.nil?
@@ -1654,7 +1528,7 @@ def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, cu
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name,'keyName' => key_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name,'keyName' => key_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -1697,9 +1571,6 @@ def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, cu
# Azure Storage blob container. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param export_devices_parameters [ExportDevicesRequest] The parameters that
# specify the export devices operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1707,8 +1578,8 @@ def get_keys_for_key_name_async(resource_group_name, resource_name, key_name, cu
#
# @return [JobResponse] operation results.
#
- def export_devices(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil)
- response = export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value!
+ def export_devices(export_devices_parameters, custom_headers = nil)
+ response = export_devices_async(export_devices_parameters, custom_headers).value!
response.body unless response.nil?
end
@@ -1721,9 +1592,6 @@ def export_devices(resource_group_name, resource_name, export_devices_parameters
# Azure Storage blob container. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param export_devices_parameters [ExportDevicesRequest] The parameters that
# specify the export devices operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1731,8 +1599,8 @@ def export_devices(resource_group_name, resource_name, export_devices_parameters
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def export_devices_with_http_info(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil)
- export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers).value!
+ def export_devices_with_http_info(export_devices_parameters, custom_headers = nil)
+ export_devices_async(export_devices_parameters, custom_headers).value!
end
#
@@ -1744,9 +1612,6 @@ def export_devices_with_http_info(resource_group_name, resource_name, export_dev
# Azure Storage blob container. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param export_devices_parameters [ExportDevicesRequest] The parameters that
# specify the export devices operation.
# @param [Hash{String => String}] A hash of custom headers that will be added
@@ -1754,11 +1619,11 @@ def export_devices_with_http_info(resource_group_name, resource_name, export_dev
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def export_devices_async(resource_group_name, resource_name, export_devices_parameters, custom_headers = nil)
+ def export_devices_async(export_devices_parameters, custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
fail ArgumentError, 'export_devices_parameters is nil' if export_devices_parameters.nil?
@@ -1781,7 +1646,7 @@ def export_devices_async(resource_group_name, resource_name, export_devices_para
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
body: request_content,
headers: request_headers.merge(custom_headers || {}),
@@ -1825,9 +1690,6 @@ def export_devices_async(resource_group_name, resource_name, export_devices_para
# from a blob. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param import_devices_parameters [ImportDevicesRequest] The parameters that
# specify the import devices operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1835,8 +1697,8 @@ def export_devices_async(resource_group_name, resource_name, export_devices_para
#
# @return [JobResponse] operation results.
#
- def import_devices(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil)
- response = import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value!
+ def import_devices(import_devices_parameters, custom_headers = nil)
+ response = import_devices_async(import_devices_parameters, custom_headers).value!
response.body unless response.nil?
end
@@ -1849,9 +1711,6 @@ def import_devices(resource_group_name, resource_name, import_devices_parameters
# from a blob. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param import_devices_parameters [ImportDevicesRequest] The parameters that
# specify the import devices operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1859,8 +1718,8 @@ def import_devices(resource_group_name, resource_name, import_devices_parameters
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def import_devices_with_http_info(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil)
- import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers).value!
+ def import_devices_with_http_info(import_devices_parameters, custom_headers = nil)
+ import_devices_async(import_devices_parameters, custom_headers).value!
end
#
@@ -1872,9 +1731,6 @@ def import_devices_with_http_info(resource_group_name, resource_name, import_dev
# from a blob. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry#import-and-export-device-identities.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param import_devices_parameters [ImportDevicesRequest] The parameters that
# specify the import devices operation.
# @param [Hash{String => String}] A hash of custom headers that will be added
@@ -1882,11 +1738,11 @@ def import_devices_with_http_info(resource_group_name, resource_name, import_dev
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def import_devices_async(resource_group_name, resource_name, import_devices_parameters, custom_headers = nil)
+ def import_devices_async(import_devices_parameters, custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
fail ArgumentError, 'import_devices_parameters is nil' if import_devices_parameters.nil?
@@ -1909,7 +1765,7 @@ def import_devices_async(resource_group_name, resource_name, import_devices_para
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
body: request_content,
headers: request_headers.merge(custom_headers || {}),
@@ -1951,9 +1807,6 @@ def import_devices_async(resource_group_name, resource_name, import_devices_para
# property is to retrieve the IoT hub metadata and security metadata, and then
# combine them with the modified values in a new body to update the IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to create or update.
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
# security metadata.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1961,8 +1814,8 @@ def import_devices_async(resource_group_name, resource_name, import_devices_para
#
# @return [IotHubDescription] operation results.
#
- def begin_create_or_update(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
- response = begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value!
+ def begin_create_or_update(iot_hub_description, custom_headers = nil)
+ response = begin_create_or_update_async(iot_hub_description, custom_headers).value!
response.body unless response.nil?
end
@@ -1973,9 +1826,6 @@ def begin_create_or_update(resource_group_name, resource_name, iot_hub_descripti
# property is to retrieve the IoT hub metadata and security metadata, and then
# combine them with the modified values in a new body to update the IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to create or update.
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
# security metadata.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -1983,8 +1833,8 @@ def begin_create_or_update(resource_group_name, resource_name, iot_hub_descripti
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def begin_create_or_update_with_http_info(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
- begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers).value!
+ def begin_create_or_update_with_http_info(iot_hub_description, custom_headers = nil)
+ begin_create_or_update_async(iot_hub_description, custom_headers).value!
end
#
@@ -1994,9 +1844,6 @@ def begin_create_or_update_with_http_info(resource_group_name, resource_name, io
# property is to retrieve the IoT hub metadata and security metadata, and then
# combine them with the modified values in a new body to update the IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to create or update.
# @param iot_hub_description [IotHubDescription] The IoT hub metadata and
# security metadata.
# @param [Hash{String => String}] A hash of custom headers that will be added
@@ -2004,11 +1851,11 @@ def begin_create_or_update_with_http_info(resource_group_name, resource_name, io
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_description, custom_headers = nil)
+ def begin_create_or_update_async(iot_hub_description, custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
fail ArgumentError, 'iot_hub_description is nil' if iot_hub_description.nil?
@@ -2031,7 +1878,7 @@ def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_des
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
body: request_content,
headers: request_headers.merge(custom_headers || {}),
@@ -2081,16 +1928,13 @@ def begin_create_or_update_async(resource_group_name, resource_name, iot_hub_des
#
# Delete an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to delete.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [Object] operation results.
#
- def begin_delete(resource_group_name, resource_name, custom_headers = nil)
- response = begin_delete_async(resource_group_name, resource_name, custom_headers).value!
+ def begin_delete(custom_headers = nil)
+ response = begin_delete_async(custom_headers).value!
response.body unless response.nil?
end
@@ -2099,16 +1943,13 @@ def begin_delete(resource_group_name, resource_name, custom_headers = nil)
#
# Delete an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to delete.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def begin_delete_with_http_info(resource_group_name, resource_name, custom_headers = nil)
- begin_delete_async(resource_group_name, resource_name, custom_headers).value!
+ def begin_delete_with_http_info(custom_headers = nil)
+ begin_delete_async(custom_headers).value!
end
#
@@ -2116,19 +1957,16 @@ def begin_delete_with_http_info(resource_group_name, resource_name, custom_heade
#
# Delete an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub to delete.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def begin_delete_async(resource_group_name, resource_name, custom_headers = nil)
+ def begin_delete_async(custom_headers = nil)
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'resource_name is nil' if resource_name.nil?
+ fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
+ fail ArgumentError, '@client.resource_name is nil' if @client.resource_name.nil?
request_headers = {}
@@ -2142,7 +1980,7 @@ def begin_delete_async(resource_group_name, resource_name, custom_headers = nil)
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'resourceName' => resource_name},
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => @client.resource_group_name,'resourceName' => @client.resource_name},
query_params: {'api-version' => @client.api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -2892,16 +2730,14 @@ def list_by_subscription_as_lazy(custom_headers = nil)
#
# Get all the IoT hubs in a resource group.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hubs.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [IotHubDescriptionListResult] which provide lazy access to pages of
# the response.
#
- def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
+ def list_by_resource_group_as_lazy(custom_headers = nil)
+ response = list_by_resource_group_async(custom_headers).value!
unless response.nil?
page = response.body
page.next_method = Proc.new do |next_page_link|
@@ -2916,17 +2752,14 @@ def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
#
# Get the list of valid SKUs for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [IotHubSkuDescriptionListResult] which provide lazy access to pages
# of the response.
#
- def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers = nil)
- response = get_valid_skus_async(resource_group_name, resource_name, custom_headers).value!
+ def get_valid_skus_as_lazy(custom_headers = nil)
+ response = get_valid_skus_async(custom_headers).value!
unless response.nil?
page = response.body
page.next_method = Proc.new do |next_page_link|
@@ -2943,9 +2776,6 @@ def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers =
# Get a list of the consumer groups in the Event Hub-compatible device-to-cloud
# endpoint in an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param event_hub_endpoint_name [String] The name of the Event Hub-compatible
# endpoint.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -2954,8 +2784,8 @@ def get_valid_skus_as_lazy(resource_group_name, resource_name, custom_headers =
# @return [EventHubConsumerGroupsListResult] which provide lazy access to pages
# of the response.
#
- def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers = nil)
- response = list_event_hub_consumer_groups_async(resource_group_name, resource_name, event_hub_endpoint_name, custom_headers).value!
+ def list_event_hub_consumer_groups_as_lazy(event_hub_endpoint_name, custom_headers = nil)
+ response = list_event_hub_consumer_groups_async(event_hub_endpoint_name, custom_headers).value!
unless response.nil?
page = response.body
page.next_method = Proc.new do |next_page_link|
@@ -2972,17 +2802,14 @@ def list_event_hub_consumer_groups_as_lazy(resource_group_name, resource_name, e
# Get a list of all the jobs in an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-identity-registry.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [JobResponseListResult] which provide lazy access to pages of the
# response.
#
- def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers = nil)
- response = list_jobs_async(resource_group_name, resource_name, custom_headers).value!
+ def list_jobs_as_lazy(custom_headers = nil)
+ response = list_jobs_async(custom_headers).value!
unless response.nil?
page = response.body
page.next_method = Proc.new do |next_page_link|
@@ -2997,17 +2824,14 @@ def list_jobs_as_lazy(resource_group_name, resource_name, custom_headers = nil)
#
# Get the quota metrics for an IoT hub.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [IotHubQuotaMetricInfoListResult] which provide lazy access to pages
# of the response.
#
- def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers = nil)
- response = get_quota_metrics_async(resource_group_name, resource_name, custom_headers).value!
+ def get_quota_metrics_as_lazy(custom_headers = nil)
+ response = get_quota_metrics_async(custom_headers).value!
unless response.nil?
page = response.body
page.next_method = Proc.new do |next_page_link|
@@ -3024,17 +2848,14 @@ def get_quota_metrics_as_lazy(resource_group_name, resource_name, custom_headers
# Get the security metadata for an IoT hub. For more information, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
#
- # @param resource_group_name [String] The name of the resource group that
- # contains the IoT hub.
- # @param resource_name [String] The name of the IoT hub.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [SharedAccessSignatureAuthorizationRuleListResult] which provide lazy
# access to pages of the response.
#
- def list_keys_as_lazy(resource_group_name, resource_name, custom_headers = nil)
- response = list_keys_async(resource_group_name, resource_name, custom_headers).value!
+ def list_keys_as_lazy(custom_headers = nil)
+ response = list_keys_async(custom_headers).value!
unless response.nil?
page = response.body
page.next_method = Proc.new do |next_page_link|
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/access_rights.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/access_rights.rb
old mode 100755
new mode 100644
index 75feb1a485..abb70715c8
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/access_rights.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/access_rights.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/capabilities.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/capabilities.rb
old mode 100755
new mode 100644
index 8ea47fbc72..f25b60e6be
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/capabilities.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/capabilities.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_body_description.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_body_description.rb
new file mode 100644
index 0000000000..616936cec8
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_body_description.rb
@@ -0,0 +1,45 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The JSON-serialized X509 Certificate.
+ #
+ class CertificateBodyDescription
+
+ include MsRestAzure
+
+ # @return [String] base-64 representation of the X509 leaf certificate
+ # .cer file or just .pem file content.
+ attr_accessor :certificate
+
+
+ #
+ # Mapper for CertificateBodyDescription class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CertificateBodyDescription',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificateBodyDescription',
+ model_properties: {
+ certificate: {
+ required: false,
+ serialized_name: 'certificate',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_description.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_description.rb
new file mode 100644
index 0000000000..eadaab28cb
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_description.rb
@@ -0,0 +1,89 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The X509 Certificate.
+ #
+ class CertificateDescription
+
+ include MsRestAzure
+
+ # @return [CertificateProperties]
+ attr_accessor :properties
+
+ # @return [String] The resource identifier.
+ attr_accessor :id
+
+ # @return [String] The name of the certificate.
+ attr_accessor :name
+
+ # @return [String] The entity tag.
+ attr_accessor :etag
+
+ # @return [String] The resource type.
+ attr_accessor :type
+
+
+ #
+ # Mapper for CertificateDescription class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CertificateDescription',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificateDescription',
+ model_properties: {
+ properties: {
+ required: false,
+ serialized_name: 'properties',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificateProperties'
+ }
+ },
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ etag: {
+ required: false,
+ read_only: true,
+ serialized_name: 'etag',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_list_description.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_list_description.rb
new file mode 100644
index 0000000000..166a33b486
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_list_description.rb
@@ -0,0 +1,53 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The JSON-serialized array of Certificate objects.
+ #
+ class CertificateListDescription
+
+ include MsRestAzure
+
+ # @return [Array] The array of Certificate
+ # objects.
+ attr_accessor :value
+
+
+ #
+ # Mapper for CertificateListDescription class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CertificateListDescription',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificateListDescription',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'CertificateDescriptionElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificateDescription'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_properties.rb
new file mode 100644
index 0000000000..c090e56da5
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_properties.rb
@@ -0,0 +1,100 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The description of an X509 CA Certificate.
+ #
+ class CertificateProperties
+
+ include MsRestAzure
+
+ # @return [String] The certificate's subject name.
+ attr_accessor :subject
+
+ # @return [DateTime] The certificate's expiration date and time.
+ attr_accessor :expiry
+
+ # @return [String] The certificate's thumbprint.
+ attr_accessor :thumbprint
+
+ # @return [Boolean] Determines wether certificate has been verified.
+ attr_accessor :is_verified
+
+ # @return [DateTime] The certificate's create date and time.
+ attr_accessor :created
+
+ # @return [DateTime] The certificate's last update date and time.
+ attr_accessor :updated
+
+
+ #
+ # Mapper for CertificateProperties class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CertificateProperties',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificateProperties',
+ model_properties: {
+ subject: {
+ required: false,
+ read_only: true,
+ serialized_name: 'subject',
+ type: {
+ name: 'String'
+ }
+ },
+ expiry: {
+ required: false,
+ read_only: true,
+ serialized_name: 'expiry',
+ type: {
+ name: 'DateTimeRfc1123'
+ }
+ },
+ thumbprint: {
+ required: false,
+ read_only: true,
+ serialized_name: 'thumbprint',
+ type: {
+ name: 'String'
+ }
+ },
+ is_verified: {
+ required: false,
+ read_only: true,
+ serialized_name: 'isVerified',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ created: {
+ required: false,
+ read_only: true,
+ serialized_name: 'created',
+ type: {
+ name: 'DateTimeRfc1123'
+ }
+ },
+ updated: {
+ required: false,
+ read_only: true,
+ serialized_name: 'updated',
+ type: {
+ name: 'DateTimeRfc1123'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb
new file mode 100644
index 0000000000..380e2ed2b2
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_properties_with_nonce.rb
@@ -0,0 +1,113 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The description of an X509 CA Certificate including the challenge nonce
+ # issued for the Proof-Of-Possession flow.
+ #
+ class CertificatePropertiesWithNonce
+
+ include MsRestAzure
+
+ # @return [String] The certificate's subject name.
+ attr_accessor :subject
+
+ # @return [DateTime] The certificate's expiration date and time.
+ attr_accessor :expiry
+
+ # @return [String] The certificate's thumbprint.
+ attr_accessor :thumbprint
+
+ # @return [Boolean] Determines wether certificate has been verified.
+ attr_accessor :is_verified
+
+ # @return [DateTime] The certificate's create date and time.
+ attr_accessor :created
+
+ # @return [DateTime] The certificate's last update date and time.
+ attr_accessor :updated
+
+ # @return [String] The certificate's verification code that will be used
+ # for proof of posession.
+ attr_accessor :verification_code
+
+
+ #
+ # Mapper for CertificatePropertiesWithNonce class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CertificatePropertiesWithNonce',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificatePropertiesWithNonce',
+ model_properties: {
+ subject: {
+ required: false,
+ read_only: true,
+ serialized_name: 'subject',
+ type: {
+ name: 'String'
+ }
+ },
+ expiry: {
+ required: false,
+ read_only: true,
+ serialized_name: 'expiry',
+ type: {
+ name: 'DateTimeRfc1123'
+ }
+ },
+ thumbprint: {
+ required: false,
+ read_only: true,
+ serialized_name: 'thumbprint',
+ type: {
+ name: 'String'
+ }
+ },
+ is_verified: {
+ required: false,
+ read_only: true,
+ serialized_name: 'isVerified',
+ type: {
+ name: 'Boolean'
+ }
+ },
+ created: {
+ required: false,
+ read_only: true,
+ serialized_name: 'created',
+ type: {
+ name: 'DateTimeRfc1123'
+ }
+ },
+ updated: {
+ required: false,
+ read_only: true,
+ serialized_name: 'updated',
+ type: {
+ name: 'DateTimeRfc1123'
+ }
+ },
+ verification_code: {
+ required: false,
+ read_only: true,
+ serialized_name: 'verificationCode',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_verification_description.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_verification_description.rb
new file mode 100644
index 0000000000..8cba2ee98b
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_verification_description.rb
@@ -0,0 +1,45 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The JSON-serialized leaf certificate
+ #
+ class CertificateVerificationDescription
+
+ include MsRestAzure
+
+ # @return [String] base-64 representation of X509 certificate .cer file
+ # or just .pem file content.
+ attr_accessor :certificate
+
+
+ #
+ # Mapper for CertificateVerificationDescription class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CertificateVerificationDescription',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificateVerificationDescription',
+ model_properties: {
+ certificate: {
+ required: false,
+ serialized_name: 'certificate',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb
new file mode 100644
index 0000000000..f88558a621
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/certificate_with_nonce_description.rb
@@ -0,0 +1,89 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The X509 Certificate.
+ #
+ class CertificateWithNonceDescription
+
+ include MsRestAzure
+
+ # @return [CertificatePropertiesWithNonce]
+ attr_accessor :properties
+
+ # @return [String] The resource identifier.
+ attr_accessor :id
+
+ # @return [String] The name of the certificate.
+ attr_accessor :name
+
+ # @return [String] The entity tag.
+ attr_accessor :etag
+
+ # @return [String] The resource type.
+ attr_accessor :type
+
+
+ #
+ # Mapper for CertificateWithNonceDescription class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'CertificateWithNonceDescription',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificateWithNonceDescription',
+ model_properties: {
+ properties: {
+ required: false,
+ serialized_name: 'properties',
+ type: {
+ name: 'Composite',
+ class_name: 'CertificatePropertiesWithNonce'
+ }
+ },
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ etag: {
+ required: false,
+ read_only: true,
+ serialized_name: 'etag',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb
old mode 100755
new mode 100644
index 6d62ea211b..a0b8618292
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/cloud_to_device_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CloudToDeviceProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The max delivery count for cloud-to-device messages
# in the device queue. See:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/error_details.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/error_details.rb
old mode 100755
new mode 100644
index af3e3f8627..c70327a05a
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/error_details.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/error_details.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ErrorDetails
include MsRestAzure
- include MsRest::JSONable
# @return [String] The error code.
attr_accessor :code
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb
old mode 100755
new mode 100644
index 4ae3de3562..8869cecea4
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_group_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EventHubConsumerGroupInfo
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] The tags.
attr_accessor :tags
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb
old mode 100755
new mode 100644
index 94e1ee0fc6..2422addcc3
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_consumer_groups_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb
old mode 100755
new mode 100644
index 9524fe1b88..8065864825
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/event_hub_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class EventHubProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The retention time for device-to-cloud messages in
# days. See:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#device-to-cloud-messages
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb
old mode 100755
new mode 100644
index 4a67d4831a..f71916a1df
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/export_devices_request.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ExportDevicesRequest
include MsRestAzure
- include MsRest::JSONable
# @return [String] The export blob container URI.
attr_accessor :export_blob_container_uri
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb
index 2609cc181e..957176ba60 100644
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/fallback_route_properties.rb
@@ -1,21 +1,20 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::IotHub
module Models
#
- # The properties related to the fallback route based on which the IoT hub
- # routes messages to the fallback endpoint.
+ # The properties of the fallback route. IoT Hub uses these properties when
+ # it routes messages to the fallback endpoint.
#
class FallbackRouteProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The source to which the routing rule is to be applied
- # to. e.g. DeviceMessages. Default value: 'DeviceMessages' .
+ # to. For example, DeviceMessages. Default value: 'DeviceMessages' .
attr_accessor :source
# @return [String] The condition which is evaluated in order to apply the
@@ -29,8 +28,8 @@ class FallbackRouteProperties
# allowed.
attr_accessor :endpoint_names
- # @return [Boolean] Used to specify whether the fallback route is enabled
- # or not.
+ # @return [Boolean] Used to specify whether the fallback route is
+ # enabled.
attr_accessor :is_enabled
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb
old mode 100755
new mode 100644
index 968badfd9e..178d5092fd
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/feedback_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class FeedbackProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Duration] The lock duration for the feedback queue. See:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging#cloud-to-device-messages.
attr_accessor :lock_duration_as_iso8601
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb
old mode 100755
new mode 100644
index 5dea1900ba..33ad39a16a
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/import_devices_request.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ImportDevicesRequest
include MsRestAzure
- include MsRest::JSONable
# @return [String] The input blob container URI.
attr_accessor :input_blob_container_uri
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb
old mode 100755
new mode 100644
index b8ac2ccf76..01968a4f71
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_capacity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IotHubCapacity
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The minimum number of units.
attr_accessor :minimum
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb
old mode 100755
new mode 100644
index 10fdff70f9..9ec1ecb1be
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The description of the IoT hub.
#
- class IotHubDescription < MsRestAzure::Resource
+ class IotHubDescription < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The subscription identifier.
attr_accessor :subscriptionid
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb
old mode 100755
new mode 100644
index 194f319d20..8d2f428ac0
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_description_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb
old mode 100755
new mode 100644
index ee0c366d19..0c9a065325
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_availability_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IotHubNameAvailabilityInfo
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value which indicates whether the provided name
# is available.
attr_accessor :name_available
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb
old mode 100755
new mode 100644
index a49e497446..926ac32c41
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_name_unavailability_reason.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb
old mode 100755
new mode 100644
index b1b81e52c0..225279e2bb
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IotHubProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The shared
# access policies you can use to secure a connection to the IoT hub.
attr_accessor :authorization_policies
@@ -54,7 +53,7 @@ class IotHubProperties
# @return [CloudToDeviceProperties]
attr_accessor :cloud_to_device
- # @return [String] Comments.
+ # @return [String] IoT hub comments.
attr_accessor :comments
# @return [OperationsMonitoringProperties]
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb
old mode 100755
new mode 100644
index 21b6111c14..cd841c0da9
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IotHubQuotaMetricInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the quota metric.
attr_accessor :name
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb
old mode 100755
new mode 100644
index 3fee86fdd4..58d53cc266
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_quota_metric_info_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb
old mode 100755
new mode 100644
index d626a42a9f..4cd4ca5dbd
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_scale_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb
old mode 100755
new mode 100644
index fd4052e455..dea675c2f6
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb
old mode 100755
new mode 100644
index d1a5826220..9edadceac0
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IotHubSkuDescription
include MsRestAzure
- include MsRest::JSONable
# @return [String] The type of the resource.
attr_accessor :resource_type
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb
old mode 100755
new mode 100644
index 74940353af..24a175b305
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_description_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb
old mode 100755
new mode 100644
index 8d5f69b088..7a2647bb2b
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IotHubSkuInfo
include MsRestAzure
- include MsRest::JSONable
# @return [IotHubSku] The name of the SKU. Possible values include: 'F1',
# 'S1', 'S2', 'S3'
attr_accessor :name
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb
old mode 100755
new mode 100644
index e93c176847..57f08282f6
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/iot_hub_sku_tier.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb
old mode 100755
new mode 100644
index db4c824b7c..321ddb3b52
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/ip_filter_action_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb
old mode 100755
new mode 100644
index e1c16e484a..2620df15a5
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/ip_filter_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IpFilterRule
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the IP filter rule.
attr_accessor :filter_name
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_response.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_response.rb
old mode 100755
new mode 100644
index 847addf3b9..fba9037a6f
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_response.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_response.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class JobResponse
include MsRestAzure
- include MsRest::JSONable
# @return [String] The job identifier.
attr_accessor :job_id
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb
old mode 100755
new mode 100644
index 9ee4f0d0ee..e51fa0b103
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_response_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_status.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_status.rb
old mode 100755
new mode 100644
index df0f747f9c..15b86b4477
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_status.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_type.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_type.rb
old mode 100755
new mode 100644
index 838fe23ca4..6bb880cbd4
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_type.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/job_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb
old mode 100755
new mode 100644
index fbfe8fe3fe..aa8b92f785
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/messaging_endpoint_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class MessagingEndpointProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Duration] The lock duration. See:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload.
attr_accessor :lock_duration_as_iso8601
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation.rb
new file mode 100644
index 0000000000..57899a2510
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation.rb
@@ -0,0 +1,57 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # IoT Hub REST API operation
+ #
+ class Operation
+
+ include MsRestAzure
+
+ # @return [String] Operation name: {provider}/{resource}/{read | write |
+ # action | delete}
+ attr_accessor :name
+
+ # @return [OperationDisplay] The object that represents the operation.
+ attr_accessor :display
+
+
+ #
+ # Mapper for Operation class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Operation',
+ type: {
+ name: 'Composite',
+ class_name: 'Operation',
+ model_properties: {
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ display: {
+ required: false,
+ serialized_name: 'display',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplay'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_display.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_display.rb
new file mode 100644
index 0000000000..fde9c4b8de
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_display.rb
@@ -0,0 +1,67 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The object that represents the operation.
+ #
+ class OperationDisplay
+
+ include MsRestAzure
+
+ # @return [String] Service provider: Microsoft Devices
+ attr_accessor :provider
+
+ # @return [String] Resource Type: IotHubs
+ attr_accessor :resource
+
+ # @return [String] Name of the operation
+ attr_accessor :operation
+
+
+ #
+ # Mapper for OperationDisplay class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Operation_display',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplay',
+ model_properties: {
+ provider: {
+ required: false,
+ read_only: true,
+ serialized_name: 'provider',
+ type: {
+ name: 'String'
+ }
+ },
+ resource: {
+ required: false,
+ read_only: true,
+ serialized_name: 'resource',
+ type: {
+ name: 'String'
+ }
+ },
+ operation: {
+ required: false,
+ read_only: true,
+ serialized_name: 'operation',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb
old mode 100755
new mode 100644
index 5b7ce4652e..27acf59377
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_inputs.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OperationInputs
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the IoT hub to check.
attr_accessor :name
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_list_result.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_list_result.rb
new file mode 100644
index 0000000000..3486859d58
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_list_result.rb
@@ -0,0 +1,99 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # Result of the request to list IoT Hub operations. It contains a list of
+ # operations and a URL link to get the next set of results.
+ #
+ class OperationListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] List of IoT Hub operations supported by the
+ # Microsoft.Devices resource provider.
+ attr_accessor :value
+
+ # @return [String] URL to get the next set of operation list results if
+ # there are any.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [OperationListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for OperationListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'OperationListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationListResult',
+ model_properties: {
+ value: {
+ required: false,
+ read_only: true,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'OperationElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'Operation'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb
old mode 100755
new mode 100644
index f932557bcf..fc8df072a3
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operation_monitoring_level.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb
old mode 100755
new mode 100644
index 79bccc58b9..225de7bf36
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/operations_monitoring_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -16,7 +16,6 @@ class OperationsMonitoringProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => OperationMonitoringLevel}]
attr_accessor :events
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb
old mode 100755
new mode 100644
index 0547e7136c..bb8d8a0427
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/registry_statistics.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RegistryStatistics
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The total count of devices in the identity registry.
attr_accessor :total_device_count
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/resource.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/resource.rb
new file mode 100644
index 0000000000..197b98adec
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/resource.rb
@@ -0,0 +1,97 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The common properties of an Azure resource.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] The resource identifier.
+ attr_accessor :id
+
+ # @return [String] The resource name.
+ attr_accessor :name
+
+ # @return [String] The resource type.
+ attr_accessor :type
+
+ # @return [String] The resource location.
+ attr_accessor :location
+
+ # @return [Hash{String => String}] The resource tags.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ constraints: {
+ Pattern: '^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$'
+ },
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/route_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/route_properties.rb
index d8c07bd3af..8ba1174006 100644
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/route_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/route_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,10 +13,9 @@ class RouteProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the route. The name can only include
# alphanumeric characters, periods, underscores, hyphens, has a maximum
- # length of 64 characters, and must be unique.
+ # length of 64 characters, and must be unique.
attr_accessor :name
# @return [RoutingSource] The source that the routing rule is to be
@@ -27,7 +26,7 @@ class RouteProperties
# @return [String] The condition that is evaluated to apply the routing
# rule. If no condition is provided, it evaluates to true by default. For
- # grammar, See:
+ # grammar, see:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-query-language
attr_accessor :condition
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb
index 10f5a52af5..0bdc852af6 100644
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_endpoints.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -15,7 +15,6 @@ class RoutingEndpoints
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of
# Service Bus queue endpoints that IoT hub routes the messages to, based
# on the routing rules.
@@ -31,6 +30,11 @@ class RoutingEndpoints
# This list does not include the built-in Event Hubs endpoint.
attr_accessor :event_hubs
+ # @return [Array] The list of storage
+ # container endpoints that IoT hub routes messages to, based on the
+ # routing rules.
+ attr_accessor :storage_containers
+
#
# Mapper for RoutingEndpoints class as Ruby Hash.
@@ -88,6 +92,21 @@ def self.mapper()
}
}
}
+ },
+ storage_containers: {
+ required: false,
+ serialized_name: 'storageContainers',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'RoutingStorageContainerPropertiesElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'RoutingStorageContainerProperties'
+ }
+ }
+ }
}
}
}
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb
index 4eb40d3e70..0cee46f2a0 100644
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_event_hub_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,15 +12,14 @@ class RoutingEventHubProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The connection string of the event hub endpoint.
attr_accessor :connection_string
- # @return [String] The name of the event hub endpoint. The name can only
- # include alphanumeric characters, periods, underscores, hyphens and has
- # a maximum length of 64 characters. The following names are reserved;
- # events, operationsMonitoringEvents, fileNotifications, $default.
- # Endpoint names must be unique across endpoint types.
+ # @return [String] The name that identifies this endpoint. The name can
+ # only include alphanumeric characters, periods, underscores, hyphens and
+ # has a maximum length of 64 characters. The following names are
+ # reserved: events, operationsMonitoringEvents, fileNotifications,
+ # $default. Endpoint names must be unique across endpoint types.
attr_accessor :name
# @return [String] The subscription identifier of the event hub endpoint.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_properties.rb
index 8160a185d4..8adebd1925 100644
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RoutingProperties
include MsRestAzure
- include MsRest::JSONable
# @return [RoutingEndpoints]
attr_accessor :endpoints
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb
index ba15601c0b..7943005b74 100644
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_queue_endpoint_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,15 +12,14 @@ class RoutingServiceBusQueueEndpointProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The connection string of the service bus queue
# endpoint.
attr_accessor :connection_string
- # @return [String] The name of the service bus queue endpoint. The name
- # can only include alphanumeric characters, periods, underscores, hyphens
- # and has a maximum length of 64 characters. The following names are
- # reserved; events, operationsMonitoringEvents, fileNotifications,
+ # @return [String] The name that identifies this endpoint. The name can
+ # only include alphanumeric characters, periods, underscores, hyphens and
+ # has a maximum length of 64 characters. The following names are
+ # reserved: events, operationsMonitoringEvents, fileNotifications,
# $default. Endpoint names must be unique across endpoint types. The name
# need not be the same as the actual queue name.
attr_accessor :name
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb
index 2e1f745e0f..27ce847843 100644
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_service_bus_topic_endpoint_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,15 +12,14 @@ class RoutingServiceBusTopicEndpointProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The connection string of the service bus topic
# endpoint.
attr_accessor :connection_string
- # @return [String] The name of the service bus topic endpoint. The name
- # can only include alphanumeric characters, periods, underscores, hyphens
- # and has a maximum length of 64 characters. The following names are
- # reserved; events, operationsMonitoringEvents, fileNotifications,
+ # @return [String] The name that identifies this endpoint. The name can
+ # only include alphanumeric characters, periods, underscores, hyphens and
+ # has a maximum length of 64 characters. The following names are
+ # reserved: events, operationsMonitoringEvents, fileNotifications,
# $default. Endpoint names must be unique across endpoint types. The
# name need not be the same as the actual topic name.
attr_accessor :name
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_source.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_source.rb
index 1eb6088dc8..23757800bd 100644
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_source.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb
new file mode 100644
index 0000000000..325d85ada3
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/routing_storage_container_properties.rb
@@ -0,0 +1,146 @@
+# 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::ARM::IotHub
+ module Models
+ #
+ # The properties related to a storage container endpoint.
+ #
+ class RoutingStorageContainerProperties
+
+ include MsRestAzure
+
+ # @return [String] The connection string of the storage account.
+ attr_accessor :connection_string
+
+ # @return [String] The name that identifies this endpoint. The name can
+ # only include alphanumeric characters, periods, underscores, hyphens and
+ # has a maximum length of 64 characters. The following names are
+ # reserved: events, operationsMonitoringEvents, fileNotifications,
+ # $default. Endpoint names must be unique across endpoint types.
+ attr_accessor :name
+
+ # @return [String] The subscription identifier of the storage account.
+ attr_accessor :subscription_id
+
+ # @return [String] The name of the resource group of the storage account.
+ attr_accessor :resource_group
+
+ # @return [String] The name of storage container in the storage account.
+ attr_accessor :container_name
+
+ # @return [String] File name format for the blob. Default format is
+ # {iothub}/{partition}/{YYYY}/{MM}/{DD}/{HH}/{mm}. All parameters are
+ # mandatory but can be reordered.
+ attr_accessor :file_name_format
+
+ # @return [Integer] Time interval at which blobs are written to storage.
+ # Value should be between 60 and 720 seconds. Default value is 300
+ # seconds.
+ attr_accessor :batch_frequency_in_seconds
+
+ # @return [Integer] Maximum number of bytes for each blob written to
+ # storage. Value should be between 10485760(10MB) and 524288000(500MB).
+ # Default value is 314572800(300MB).
+ attr_accessor :max_chunk_size_in_bytes
+
+ # @return [String] Encoding that is used to serialize messages to blobs.
+ # Supported values are 'avro' and 'avrodeflate'. Default value is 'avro'.
+ attr_accessor :encoding
+
+
+ #
+ # Mapper for RoutingStorageContainerProperties class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'RoutingStorageContainerProperties',
+ type: {
+ name: 'Composite',
+ class_name: 'RoutingStorageContainerProperties',
+ model_properties: {
+ connection_string: {
+ required: true,
+ serialized_name: 'connectionString',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: true,
+ serialized_name: 'name',
+ constraints: {
+ Pattern: '^[A-Za-z0-9-._]{1,64}$'
+ },
+ type: {
+ name: 'String'
+ }
+ },
+ subscription_id: {
+ required: false,
+ serialized_name: 'subscriptionId',
+ type: {
+ name: 'String'
+ }
+ },
+ resource_group: {
+ required: false,
+ serialized_name: 'resourceGroup',
+ type: {
+ name: 'String'
+ }
+ },
+ container_name: {
+ required: true,
+ serialized_name: 'containerName',
+ type: {
+ name: 'String'
+ }
+ },
+ file_name_format: {
+ required: false,
+ serialized_name: 'fileNameFormat',
+ type: {
+ name: 'String'
+ }
+ },
+ batch_frequency_in_seconds: {
+ required: false,
+ serialized_name: 'batchFrequencyInSeconds',
+ constraints: {
+ InclusiveMaximum: 720,
+ InclusiveMinimum: 60
+ },
+ type: {
+ name: 'Number'
+ }
+ },
+ max_chunk_size_in_bytes: {
+ required: false,
+ serialized_name: 'maxChunkSizeInBytes',
+ constraints: {
+ InclusiveMaximum: 524288000,
+ InclusiveMinimum: 10485760
+ },
+ type: {
+ name: 'Number'
+ }
+ },
+ encoding: {
+ required: false,
+ serialized_name: 'encoding',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb
old mode 100755
new mode 100644
index cc7d9e0eae..76f07f1c27
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SharedAccessSignatureAuthorizationRule
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the shared access policy.
attr_accessor :key_name
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb
old mode 100755
new mode 100644
index 8531768afb..a0f7e13e9c
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/shared_access_signature_authorization_rule_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb
old mode 100755
new mode 100644
index 04a7abeec8..1b4c80b0db
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/models/storage_endpoint_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class StorageEndpointProperties
include MsRestAzure
- include MsRest::JSONable
# @return [Duration] The period of time for which the the SAS URI
# generated by IoT Hub for file upload is valid. See:
# https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-file-upload#file-upload-notification-configuration-options.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/module_definition.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/module_definition.rb
old mode 100755
new mode 100644
index 031cb2e71c..2941d6240e
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/module_definition.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/operations.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/operations.rb
new file mode 100644
index 0000000000..a1def3320d
--- /dev/null
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/operations.rb
@@ -0,0 +1,213 @@
+# 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::ARM::IotHub
+ #
+ # Use this API to manage the IoT hubs in your Azure subscription.
+ #
+ class Operations
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Operations class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [IotHubClient] reference to the IotHubClient
+ attr_reader :client
+
+ #
+ # Lists all of the available IoT Hub REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(custom_headers = nil)
+ first_page = list_as_lazy(custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Lists all of the available IoT Hub REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(custom_headers = nil)
+ list_async(custom_headers).value!
+ end
+
+ #
+ # Lists all of the available IoT Hub REST API operations.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+
+
+ request_headers = {}
+
+ # 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 = 'providers/Microsoft.Devices/operations'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::IotHub::Models::OperationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all of the available IoT Hub REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all of the available IoT Hub REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Lists all of the available IoT Hub REST API operations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::IotHub::Models::OperationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists all of the available IoT Hub REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(custom_headers = nil)
+ response = list_async(custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/version.rb b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/version.rb
old mode 100755
new mode 100644
index 01e2d66ff0..314eb82b3d
--- a/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/version.rb
+++ b/management/azure_mgmt_iot_hub/lib/generated/azure_mgmt_iot_hub/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::IotHub
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_key_vault/azure_mgmt_key_vault.gemspec b/management/azure_mgmt_key_vault/azure_mgmt_key_vault.gemspec
index 1de5ca0fa0..318b947032 100644
--- a/management/azure_mgmt_key_vault/azure_mgmt_key_vault.gemspec
+++ b/management/azure_mgmt_key_vault/azure_mgmt_key_vault.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault.rb
old mode 100755
new mode 100644
index dead95ac4c..303bb23f12
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -32,6 +32,7 @@ module Models
autoload :Sku, 'generated/azure_mgmt_key_vault/models/sku.rb'
autoload :DeletedVaultListResult, 'generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb'
autoload :DeletedVaultProperties, 'generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb'
+ autoload :Resource, 'generated/azure_mgmt_key_vault/models/resource.rb'
autoload :AccessPolicyEntry, 'generated/azure_mgmt_key_vault/models/access_policy_entry.rb'
autoload :ResourceListResult, 'generated/azure_mgmt_key_vault/models/resource_list_result.rb'
autoload :Vault, 'generated/azure_mgmt_key_vault/models/vault.rb'
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/key_vault_management_client.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/key_vault_management_client.rb
old mode 100755
new mode 100644
index 899c5aec6f..69fa8debfc
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/key_vault_management_client.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/key_vault_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/access_policy_entry.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/access_policy_entry.rb
old mode 100755
new mode 100644
index 31e56e2630..ace7acd895
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/access_policy_entry.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/access_policy_entry.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class AccessPolicyEntry
include MsRestAzure
- include MsRest::JSONable
# @return The Azure Active Directory tenant ID that should be used for
# authenticating requests to the key vault.
attr_accessor :tenant_id
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/certificate_permissions.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/certificate_permissions.rb
old mode 100755
new mode 100644
index d5bf6dec73..a3b6b04995
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/certificate_permissions.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/certificate_permissions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/create_mode.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/create_mode.rb
index cfa9b87377..fa7411eee3 100644
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/create_mode.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/create_mode.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault.rb
index 9b3b77332d..918a7e0584 100644
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DeletedVault
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID for the deleted key vault.
attr_accessor :id
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb
index eef9412a62..58cd1ee27d 100644
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb
index b5f1009024..d1e3c2429e 100644
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/deleted_vault_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DeletedVaultProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource id of the original vault.
attr_accessor :vault_id
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/key_permissions.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/key_permissions.rb
old mode 100755
new mode 100644
index fcd7cdbf44..4074d97318
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/key_permissions.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/key_permissions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/permissions.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/permissions.rb
old mode 100755
new mode 100644
index 44f68341ba..a16c66217a
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/permissions.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/permissions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Permissions
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Permissions to keys
attr_accessor :keys
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/resource.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/resource.rb
new file mode 100644
index 0000000000..7b743b9d49
--- /dev/null
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/resource.rb
@@ -0,0 +1,96 @@
+# 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::ARM::KeyVault
+ module Models
+ #
+ # Key Vault resource
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] The Azure Resource Manager resource ID for the key
+ # vault.
+ attr_accessor :id
+
+ # @return [String] The name of the key vault.
+ attr_accessor :name
+
+ # @return [String] The resource type of the key vault.
+ attr_accessor :type
+
+ # @return [String] The supported Azure location where the key vault
+ # should be created.
+ attr_accessor :location
+
+ # @return [Hash{String => String}] The tags that will be assigned to the
+ # key vault.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/resource_list_result.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/resource_list_result.rb
old mode 100755
new mode 100644
index 0983958242..48698432e0
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/resource_list_result.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/resource_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/secret_permissions.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/secret_permissions.rb
old mode 100755
new mode 100644
index 6eb22c1df9..2c43752430
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/secret_permissions.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/secret_permissions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/sku.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/sku.rb
old mode 100755
new mode 100644
index f8f76c0b1c..cf5fa7044d
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/sku.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Sku
include MsRestAzure
- include MsRest::JSONable
# @return [String] SKU family name. Default value: 'A' .
attr_accessor :family
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/sku_name.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/sku_name.rb
old mode 100755
new mode 100644
index d72dda069d..a15b777ba1
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/sku_name.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/sku_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/storage_permissions.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/storage_permissions.rb
index e589eb8858..28de308805 100644
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/storage_permissions.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/storage_permissions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault.rb
old mode 100755
new mode 100644
index 13640c24c6..5d7b598e48
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Resource information with extended details.
#
- class Vault < MsRestAzure::Resource
+ class Vault < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [VaultProperties] Properties of the vault
attr_accessor :properties
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb
old mode 100755
new mode 100644
index eabfbe6bd3..36bd27e0f7
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_create_or_update_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VaultCreateOrUpdateParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The supported Azure location where the key vault
# should be created.
attr_accessor :location
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_list_result.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_list_result.rb
old mode 100755
new mode 100644
index 477645c179..172248c532
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_list_result.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_properties.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_properties.rb
old mode 100755
new mode 100644
index 16370c4fa9..eafb35ffdc
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_properties.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/models/vault_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class VaultProperties
include MsRestAzure
- include MsRest::JSONable
# @return The Azure Active Directory tenant ID that should be used for
# authenticating requests to the key vault.
attr_accessor :tenant_id
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/module_definition.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/module_definition.rb
old mode 100755
new mode 100644
index 5b830e4861..ce94de1e35
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/module_definition.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/vaults.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/vaults.rb
old mode 100755
new mode 100644
index 6376e7b250..23707095bd
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/vaults.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/vaults.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/version.rb b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/version.rb
old mode 100755
new mode 100644
index 55a77fbb13..d2cceaa143
--- a/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/version.rb
+++ b/management/azure_mgmt_key_vault/lib/generated/azure_mgmt_key_vault/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::KeyVault
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_locks/azure_mgmt_locks.gemspec b/management/azure_mgmt_locks/azure_mgmt_locks.gemspec
index a9de1636fd..9f5070fc49 100644
--- a/management/azure_mgmt_locks/azure_mgmt_locks.gemspec
+++ b/management/azure_mgmt_locks/azure_mgmt_locks.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks.rb b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks.rb
index 343cb28050..bfa4bc7fb1 100644
--- a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks.rb
+++ b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/management_lock_client.rb b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/management_lock_client.rb
index e29d244fa9..757bd7eeba 100644
--- a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/management_lock_client.rb
+++ b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/management_lock_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/management_locks.rb b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/management_locks.rb
index 5e07193c1d..ea9040a039 100644
--- a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/management_locks.rb
+++ b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/management_locks.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/lock_level.rb b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/lock_level.rb
index 89152a2aeb..9d81aaccd5 100644
--- a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/lock_level.rb
+++ b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/lock_level.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_list_result.rb b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_list_result.rb
index 17052cf469..c0688b534f 100644
--- a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_list_result.rb
+++ b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_object.rb b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_object.rb
index cd62234aee..3f7ccdcba1 100644
--- a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_object.rb
+++ b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_object.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_owner.rb b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_owner.rb
index 841ae47826..f6174fd65a 100644
--- a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_owner.rb
+++ b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/models/management_lock_owner.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/module_definition.rb b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/module_definition.rb
index b742bf9829..aaa72f8467 100644
--- a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/module_definition.rb
+++ b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/version.rb b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/version.rb
index 196cf7d0e4..17d6fad1fe 100644
--- a/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/version.rb
+++ b/management/azure_mgmt_locks/lib/generated/azure_mgmt_locks/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Locks
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_logic/azure_mgmt_logic.gemspec b/management/azure_mgmt_logic/azure_mgmt_logic.gemspec
index 08eb962091..baca42a7ba 100644
--- a/management/azure_mgmt_logic/azure_mgmt_logic.gemspec
+++ b/management/azure_mgmt_logic/azure_mgmt_logic.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic.rb
old mode 100755
new mode 100644
index eefd3b1952..c911823f78
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -37,6 +37,7 @@ module Azure::ARM::Logic
module Models
autoload :IntegrationAccountPartnerFilter, 'generated/azure_mgmt_logic/models/integration_account_partner_filter.rb'
+ autoload :Resource, 'generated/azure_mgmt_logic/models/resource.rb'
autoload :AS2MessageConnectionSettings, 'generated/azure_mgmt_logic/models/as2message_connection_settings.rb'
autoload :ResourceReference, 'generated/azure_mgmt_logic/models/resource_reference.rb'
autoload :AS2AcknowledgementConnectionSettings, 'generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb'
@@ -48,6 +49,7 @@ module Models
autoload :WorkflowVersionListResult, 'generated/azure_mgmt_logic/models/workflow_version_list_result.rb'
autoload :IntegrationAccountPartnerListResult, 'generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb'
autoload :RecurrenceSchedule, 'generated/azure_mgmt_logic/models/recurrence_schedule.rb'
+ autoload :SubResource, 'generated/azure_mgmt_logic/models/sub_resource.rb'
autoload :Sku, 'generated/azure_mgmt_logic/models/sku.rb'
autoload :WorkflowTriggerListResult, 'generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb'
autoload :WorkflowTriggerListCallbackUrlQueries, 'generated/azure_mgmt_logic/models/workflow_trigger_list_callback_url_queries.rb'
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/agreements.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/agreements.rb
old mode 100755
new mode 100644
index 4e9e2ea7e5..855ad96ae2
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/agreements.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/agreements.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/certificates.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/certificates.rb
old mode 100755
new mode 100644
index 772986d486..56fa625027
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/certificates.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/certificates.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/integration_accounts.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/integration_accounts.rb
old mode 100755
new mode 100644
index 89758e89ab..c4b0e4da70
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/integration_accounts.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/integration_accounts.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/logic_management_client.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/logic_management_client.rb
old mode 100755
new mode 100644
index b36f500c02..117492282c
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/logic_management_client.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/logic_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/maps.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/maps.rb
old mode 100755
new mode 100644
index 939d1d9b35..430efaf564
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/maps.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/maps.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/agreement_content.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/agreement_content.rb
old mode 100755
new mode 100644
index 3571d40308..f6d3ceb0f8
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/agreement_content.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/agreement_content.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AgreementContent
include MsRestAzure
- include MsRest::JSONable
# @return [AS2AgreementContent] The AS2 agreement content.
attr_accessor :a_s2
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/agreement_type.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/agreement_type.rb
old mode 100755
new mode 100644
index a1eea25a50..68320c037e
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/agreement_type.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/agreement_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb
old mode 100755
new mode 100644
index bed75164c7..6617f264fb
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2acknowledgement_connection_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2AcknowledgementConnectionSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to ignore mismatch in
# certificate name.
attr_accessor :ignore_certificate_name_mismatch
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb
old mode 100755
new mode 100644
index a49467e191..43745b21a6
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2agreement_content.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2AgreementContent
include MsRestAzure
- include MsRest::JSONable
# @return [AS2OneWayAgreement] The AS2 one-way receive agreement.
attr_accessor :receive_agreement
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb
old mode 100755
new mode 100644
index 7dff9c2957..8e2b7b8467
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2envelope_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2EnvelopeSettings
include MsRestAzure
- include MsRest::JSONable
# @return [String] The message content type.
attr_accessor :message_content_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2error_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2error_settings.rb
old mode 100755
new mode 100644
index fb23fca3e1..2171417c2f
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2error_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2error_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2ErrorSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to suspend duplicate
# message.
attr_accessor :suspend_duplicate_message
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb
old mode 100755
new mode 100644
index 1eebbc28f6..e6e1833440
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2mdn_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2MdnSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to send or request a
# MDN.
attr_accessor :need_mdn
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb
old mode 100755
new mode 100644
index cada6009ea..b4805f759f
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2message_connection_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2MessageConnectionSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to ignore mismatch in
# certificate name.
attr_accessor :ignore_certificate_name_mismatch
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb
old mode 100755
new mode 100644
index 9dd4b73305..b9828196da
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2one_way_agreement.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2OneWayAgreement
include MsRestAzure
- include MsRest::JSONable
# @return [BusinessIdentity] The sender business identity
attr_accessor :sender_business_identity
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb
old mode 100755
new mode 100644
index b6d5c1c06c..1008586586
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2protocol_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2ProtocolSettings
include MsRestAzure
- include MsRest::JSONable
# @return [AS2MessageConnectionSettings] The message connection settings.
attr_accessor :message_connection_settings
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2security_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2security_settings.rb
old mode 100755
new mode 100644
index 0c98613bcc..b47bc0bb9d
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2security_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2security_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2SecuritySettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to send or request a
# MDN.
attr_accessor :override_group_signing_certificate
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb
old mode 100755
new mode 100644
index b559d863db..b286215bed
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/as2validation_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AS2ValidationSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to override incoming
# message properties with those in agreement.
attr_accessor :override_message_properties
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb
old mode 100755
new mode 100644
index a05b5c97fd..fa0922bd92
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/b2bpartner_content.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class B2BPartnerContent
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of partner business
# identities.
attr_accessor :business_identities
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/business_identity.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/business_identity.rb
old mode 100755
new mode 100644
index e0d53fa9f3..30ee854928
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/business_identity.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/business_identity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BusinessIdentity
include MsRestAzure
- include MsRest::JSONable
# @return [String] The business identity qualifier e.g. as2identity, ZZ,
# ZZZ, 31, 32
attr_accessor :qualifier
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/callback_url.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/callback_url.rb
old mode 100755
new mode 100644
index 1a33c64f68..6289d9835a
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/callback_url.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/callback_url.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CallbackUrl
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URL value.
attr_accessor :value
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/content_hash.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/content_hash.rb
old mode 100755
new mode 100644
index d029c77970..c864f98eca
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/content_hash.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/content_hash.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContentHash
include MsRestAzure
- include MsRest::JSONable
# @return [String] The algorithm of the content hash.
attr_accessor :algorithm
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/content_link.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/content_link.rb
old mode 100755
new mode 100644
index 6d1c35fb4e..7f170e3e79
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/content_link.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/content_link.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ContentLink
include MsRestAzure
- include MsRest::JSONable
# @return [String] The content link URI.
attr_accessor :uri
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/correlation.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/correlation.rb
old mode 100755
new mode 100644
index ebc981bab7..8da8ca60dc
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/correlation.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/correlation.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Correlation
include MsRestAzure
- include MsRest::JSONable
# @return [String] The client tracking id.
attr_accessor :client_tracking_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/day_of_week.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/day_of_week.rb
old mode 100755
new mode 100644
index 0f3afb786f..139c67d386
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/day_of_week.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/day_of_week.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/days_of_week.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/days_of_week.rb
old mode 100755
new mode 100644
index 71f3d9c265..2c3a75e6c7
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/days_of_week.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/days_of_week.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb
old mode 100755
new mode 100644
index de9f955413..27943b34ce
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_acknowledgement_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactAcknowledgementSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether technical
# acknowledgement is needed.
attr_accessor :need_technical_acknowledgement
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb
old mode 100755
new mode 100644
index 83ae07786d..6fb4231071
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_agreement_content.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactAgreementContent
include MsRestAzure
- include MsRest::JSONable
# @return [EdifactOneWayAgreement] The EDIFACT one-way receive agreement.
attr_accessor :receive_agreement
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_character_set.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_character_set.rb
old mode 100755
new mode 100644
index 389fc4f474..2ca98a3191
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_character_set.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_character_set.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_decimal_indicator.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_decimal_indicator.rb
old mode 100755
new mode 100644
index 543b45cdae..25d1d9c72c
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_decimal_indicator.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_decimal_indicator.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb
old mode 100755
new mode 100644
index f8c0cfe361..12bcd44aae
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_delimiter_override.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactDelimiterOverride
include MsRestAzure
- include MsRest::JSONable
# @return [String] The message id.
attr_accessor :message_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb
old mode 100755
new mode 100644
index d11319a526..9a98b16f37
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_envelope_override.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactEnvelopeOverride
include MsRestAzure
- include MsRest::JSONable
# @return [String] The message id on which this envelope settings has to
# be applied.
attr_accessor :message_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb
old mode 100755
new mode 100644
index 974e4e111f..c9db83d390
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_envelope_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactEnvelopeSettings
include MsRestAzure
- include MsRest::JSONable
# @return [String] The group association assigned code.
attr_accessor :group_association_assigned_code
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb
old mode 100755
new mode 100644
index 1589af9d99..60947cd227
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_framing_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactFramingSettings
include MsRestAzure
- include MsRest::JSONable
# @return [String] The service code list directory version.
attr_accessor :service_code_list_directory_version
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb
old mode 100755
new mode 100644
index 2d355cf6d4..db558144a1
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_message_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactMessageFilter
include MsRestAzure
- include MsRest::JSONable
# @return [MessageFilterType] The message filter type. Possible values
# include: 'NotSpecified', 'Include', 'Exclude'
attr_accessor :message_filter_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_message_identifier.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_message_identifier.rb
old mode 100755
new mode 100644
index d71005fd5d..619f49c0b4
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_message_identifier.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_message_identifier.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactMessageIdentifier
include MsRestAzure
- include MsRest::JSONable
# @return [String] The message id on which this envelope settings has to
# be applied.
attr_accessor :message_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb
old mode 100755
new mode 100644
index 41392cfc27..83a4e16343
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_one_way_agreement.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactOneWayAgreement
include MsRestAzure
- include MsRest::JSONable
# @return [BusinessIdentity] The sender business identity
attr_accessor :sender_business_identity
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb
old mode 100755
new mode 100644
index ad4e1427b2..44afe7bda3
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_processing_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactProcessingSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to mask security
# information.
attr_accessor :mask_security_info
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb
old mode 100755
new mode 100644
index fe49c232d4..1dd8773972
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_protocol_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactProtocolSettings
include MsRestAzure
- include MsRest::JSONable
# @return [EdifactValidationSettings] The EDIFACT validation settings.
attr_accessor :validation_settings
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb
old mode 100755
new mode 100644
index 37ff833fc3..9987a6ce99
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_schema_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactSchemaReference
include MsRestAzure
- include MsRest::JSONable
# @return [String] The message id.
attr_accessor :message_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb
old mode 100755
new mode 100644
index 36867324bb..07f2a9d70e
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_validation_override.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactValidationOverride
include MsRestAzure
- include MsRest::JSONable
# @return [String] The message id on which the validation settings has to
# be applied.
attr_accessor :message_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb
old mode 100755
new mode 100644
index ace279fa66..047e701c19
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/edifact_validation_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EdifactValidationSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to validate character
# set in the message.
attr_accessor :validate_character_set
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/encryption_algorithm.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/encryption_algorithm.rb
old mode 100755
new mode 100644
index cba298439a..d3558c2889
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/encryption_algorithm.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/encryption_algorithm.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/error_properties.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/error_properties.rb
old mode 100755
new mode 100644
index 5a97d7a474..522683e1d3
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/error_properties.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/error_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ErrorProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] Error code.
attr_accessor :code
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/error_response.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/error_response.rb
old mode 100755
new mode 100644
index 24f7f0a099..665b02acb6
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/error_response.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/error_response.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ErrorResponse
include MsRestAzure
- include MsRest::JSONable
# @return [ErrorProperties] The error properties.
attr_accessor :error
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/generate_upgraded_definition_parameters.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/generate_upgraded_definition_parameters.rb
old mode 100755
new mode 100644
index 806adf38f1..d4ef2742bd
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/generate_upgraded_definition_parameters.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/generate_upgraded_definition_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GenerateUpgradedDefinitionParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The target schema version.
attr_accessor :target_schema_version
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/get_callback_url_parameters.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/get_callback_url_parameters.rb
old mode 100755
new mode 100644
index d35f5d0093..411fbe6efb
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/get_callback_url_parameters.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/get_callback_url_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GetCallbackUrlParameters
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] The expiry time.
attr_accessor :not_after
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/hashing_algorithm.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/hashing_algorithm.rb
old mode 100755
new mode 100644
index 30213d41a2..c4f394d3b7
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/hashing_algorithm.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/hashing_algorithm.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account.rb
old mode 100755
new mode 100644
index 1117b07740..f3978f3073
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The integration account.
#
- class IntegrationAccount < MsRestAzure::Resource
+ class IntegrationAccount < Resource
include MsRestAzure
- include MsRest::JSONable
# @return The integration account properties.
attr_accessor :properties
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement.rb
old mode 100755
new mode 100644
index 580c4a5a28..24acb53f96
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The integration account agreement.
#
- class IntegrationAccountAgreement < MsRestAzure::Resource
+ class IntegrationAccountAgreement < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] The created time.
attr_accessor :created_time
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb
old mode 100755
new mode 100644
index 47404d5589..efc3744aac
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IntegrationAccountAgreementFilter
include MsRestAzure
- include MsRest::JSONable
# @return [AgreementType] The agreement type of integration account
# agreement. Possible values include: 'NotSpecified', 'AS2', 'X12',
# 'Edifact'
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb
old mode 100755
new mode 100644
index b888745237..c448d5b03f
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_agreement_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_certificate.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_certificate.rb
old mode 100755
new mode 100644
index 41abf13ee8..43747daf69
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_certificate.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_certificate.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The integration account certificate.
#
- class IntegrationAccountCertificate < MsRestAzure::Resource
+ class IntegrationAccountCertificate < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] The created time.
attr_accessor :created_time
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb
old mode 100755
new mode 100644
index 40544df910..753aa3c9b6
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_certificate_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_list_result.rb
old mode 100755
new mode 100644
index 2fbc2b5652..19a8741189
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map.rb
old mode 100755
new mode 100644
index 7789c7d5fc..81510cdc53
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The integration account map.
#
- class IntegrationAccountMap < MsRestAzure::Resource
+ class IntegrationAccountMap < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [MapType] The map type. Possible values include:
# 'NotSpecified', 'Xslt'
attr_accessor :map_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_filter.rb
old mode 100755
new mode 100644
index d411b38f19..82935ea4b7
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IntegrationAccountMapFilter
include MsRestAzure
- include MsRest::JSONable
# @return [MapType] The map type of integration account map. Possible
# values include: 'NotSpecified', 'Xslt'
attr_accessor :map_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_list_result.rb
old mode 100755
new mode 100644
index 5ea1155362..aabf9c9b9a
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_properties_parameters_schema.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_properties_parameters_schema.rb
old mode 100755
new mode 100644
index fbc021c72d..605581b6cb
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_properties_parameters_schema.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_map_properties_parameters_schema.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IntegrationAccountMapPropertiesParametersSchema
include MsRestAzure
- include MsRest::JSONable
# @return [String] The reference name.
attr_accessor :ref
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner.rb
old mode 100755
new mode 100644
index 12c99852d0..ba3479f824
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The integration account partner.
#
- class IntegrationAccountPartner < MsRestAzure::Resource
+ class IntegrationAccountPartner < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [PartnerType] The partner type. Possible values include:
# 'NotSpecified', 'B2B'
attr_accessor :partner_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner_filter.rb
old mode 100755
new mode 100644
index 379e2b1fe0..c6c7ad603e
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IntegrationAccountPartnerFilter
include MsRestAzure
- include MsRest::JSONable
# @return [PartnerType] The partner type of integration account partner.
# Possible values include: 'NotSpecified', 'B2B'
attr_accessor :partner_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb
old mode 100755
new mode 100644
index af281e7f43..4aef88c87c
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_partner_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema.rb
old mode 100755
new mode 100644
index b7db21ec4b..c831debcd7
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The integration account schema.
#
- class IntegrationAccountSchema < MsRestAzure::Resource
+ class IntegrationAccountSchema < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [SchemaType] The schema type. Possible values include:
# 'NotSpecified', 'Xml'
attr_accessor :schema_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb
old mode 100755
new mode 100644
index 3c1caf7c37..ad96c7fdbc
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IntegrationAccountSchemaFilter
include MsRestAzure
- include MsRest::JSONable
# @return [SchemaType] The schema type of integration account schema.
# Possible values include: 'NotSpecified', 'Xml'
attr_accessor :schema_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb
old mode 100755
new mode 100644
index b65e7e1f5d..763172660a
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_schema_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session.rb
old mode 100755
new mode 100644
index 2aa1368534..0ff959ef0b
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The integration account session.
#
- class IntegrationAccountSession < MsRestAzure::Resource
+ class IntegrationAccountSession < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] The created time.
attr_accessor :created_time
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session_filter.rb
old mode 100755
new mode 100644
index 41e35b9238..0c201fba3f
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IntegrationAccountSessionFilter
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] The changed time of integration account sessions.
attr_accessor :changed_time
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session_list_result.rb
old mode 100755
new mode 100644
index 2e39bc7bc8..106f02f32e
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_session_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_sku.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_sku.rb
old mode 100755
new mode 100644
index c711c9ce22..e888fc2c2b
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_sku.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IntegrationAccountSku
include MsRestAzure
- include MsRest::JSONable
# @return [IntegrationAccountSkuName] The sku name. Possible values
# include: 'NotSpecified', 'Free', 'Standard'
attr_accessor :name
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_sku_name.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_sku_name.rb
old mode 100755
new mode 100644
index 1e971b5c0e..db155a9f78
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_sku_name.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/integration_account_sku_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_type.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_type.rb
old mode 100755
new mode 100644
index 0e903a1842..a22602db47
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_type.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb
old mode 100755
new mode 100644
index dcdc1a28c5..50213bb798
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_vault_key_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class KeyVaultKeyReference
include MsRestAzure
- include MsRest::JSONable
# @return [KeyVaultKeyReferenceKeyVault] The key vault reference.
attr_accessor :key_vault
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_vault_key_reference_key_vault.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_vault_key_reference_key_vault.rb
old mode 100755
new mode 100644
index 28c8ed1f0b..ff6e9fc4c9
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_vault_key_reference_key_vault.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/key_vault_key_reference_key_vault.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class KeyVaultKeyReferenceKeyVault
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource id.
attr_accessor :id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/map_type.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/map_type.rb
old mode 100755
new mode 100644
index 8f3819e8e5..530f16219f
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/map_type.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/map_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/message_filter_type.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/message_filter_type.rb
old mode 100755
new mode 100644
index 1f33776ad0..c97b15b3fb
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/message_filter_type.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/message_filter_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation.rb
old mode 100755
new mode 100644
index c6267ebc01..59fed5e4a0
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Operation
include MsRestAzure
- include MsRest::JSONable
# @return [String] Operation name: {provider}/{resource}/{operation}
attr_accessor :name
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation_display.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation_display.rb
old mode 100755
new mode 100644
index fd1729a9e9..c00eb67ed5
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation_display.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation_display.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OperationDisplay
include MsRestAzure
- include MsRest::JSONable
# @return [String] Service provider: Microsoft.Logic
attr_accessor :provider
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation_list_result.rb
old mode 100755
new mode 100644
index c6611d0824..32d9105ca2
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/operation_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/parameter_type.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/parameter_type.rb
old mode 100755
new mode 100644
index f5b3edfae8..bbc6ecd8d8
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/parameter_type.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/parameter_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/partner_content.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/partner_content.rb
old mode 100755
new mode 100644
index 4e6f5231c4..11a689852f
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/partner_content.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/partner_content.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PartnerContent
include MsRestAzure
- include MsRest::JSONable
# @return [B2BPartnerContent] The B2B partner content.
attr_accessor :b2b
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/partner_type.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/partner_type.rb
old mode 100755
new mode 100644
index ef2e76b78a..4fb7f3bf8f
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/partner_type.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/partner_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_frequency.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_frequency.rb
old mode 100755
new mode 100644
index 06696b1e98..a94a3a2dc3
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_frequency.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_frequency.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_schedule.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_schedule.rb
old mode 100755
new mode 100644
index 8241f87cd6..4a84506b66
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_schedule.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_schedule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RecurrenceSchedule
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The minutes.
attr_accessor :minutes
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb
old mode 100755
new mode 100644
index 378ad32461..4536adc826
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/recurrence_schedule_occurrence.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RecurrenceScheduleOccurrence
include MsRestAzure
- include MsRest::JSONable
# @return [DayOfWeek] The day of the week. Possible values include:
# 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
# 'Saturday'
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/regenerate_action_parameter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/regenerate_action_parameter.rb
old mode 100755
new mode 100644
index 1038619bfd..6dfafb474c
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/regenerate_action_parameter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/regenerate_action_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RegenerateActionParameter
include MsRestAzure
- include MsRest::JSONable
# @return [KeyType] The key type. Possible values include:
# 'NotSpecified', 'Primary', 'Secondary'
attr_accessor :key_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/resource.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/resource.rb
new file mode 100644
index 0000000000..ed6305fa9b
--- /dev/null
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/resource.rb
@@ -0,0 +1,94 @@
+# 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::ARM::Logic
+ module Models
+ #
+ # The base resource type.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] The resource id.
+ attr_accessor :id
+
+ # @return [String] Gets the resource name.
+ attr_accessor :name
+
+ # @return [String] Gets the resource type.
+ attr_accessor :type
+
+ # @return [String] The resource location.
+ attr_accessor :location
+
+ # @return [Hash{String => String}] The resource tags.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: false,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/resource_reference.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/resource_reference.rb
old mode 100755
new mode 100644
index 1310ee15e0..7bd6e4c6cd
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/resource_reference.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/resource_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ResourceReference
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource id.
attr_accessor :id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/retry_history.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/retry_history.rb
old mode 100755
new mode 100644
index 88e6122eba..78ae03bbec
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/retry_history.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/retry_history.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RetryHistory
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] Gets the start time.
attr_accessor :start_time
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/schema_type.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/schema_type.rb
old mode 100755
new mode 100644
index 55e4e8ad25..f9bdb019b4
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/schema_type.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/schema_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb
old mode 100755
new mode 100644
index 2740ea4e02..689bdbba0c
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/segment_terminator_suffix.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/signing_algorithm.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/signing_algorithm.rb
old mode 100755
new mode 100644
index ab450c40ea..04e7198f50
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/signing_algorithm.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/signing_algorithm.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sku.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sku.rb
old mode 100755
new mode 100644
index 8182ab9440..ee4a7de813
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sku.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Sku
include MsRestAzure
- include MsRest::JSONable
# @return [SkuName] The name. Possible values include: 'NotSpecified',
# 'Free', 'Shared', 'Basic', 'Standard', 'Premium'
attr_accessor :name
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sku_name.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sku_name.rb
old mode 100755
new mode 100644
index 999aead5d7..67014f5570
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sku_name.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sku_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_sql/lib/generated/azure_mgmt_sql/models/sub_resource.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sub_resource.rb
similarity index 62%
rename from management/azure_mgmt_sql/lib/generated/azure_mgmt_sql/models/sub_resource.rb
rename to management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sub_resource.rb
index 9f1a03a607..075308fcc5 100644
--- a/management/azure_mgmt_sql/lib/generated/azure_mgmt_sql/models/sub_resource.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/sub_resource.rb
@@ -1,20 +1,19 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
-module Azure::ARM::SQL
+module Azure::ARM::Logic
module Models
#
- # Subresource properties
+ # The sub resource type.
#
- class SubResource < MsRestAzure::SubResource
+ class SubResource
include MsRestAzure
- include MsRest::JSONable
- # @return [String] Resource name
- attr_accessor :name
+ # @return [String] The resource id.
+ attr_accessor :id
#
@@ -29,14 +28,6 @@ def self.mapper()
name: 'Composite',
class_name: 'SubResource',
model_properties: {
- name: {
- required: false,
- read_only: true,
- serialized_name: 'name',
- type: {
- name: 'String'
- }
- },
id: {
required: false,
read_only: true,
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/trailing_separator_policy.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/trailing_separator_policy.rb
old mode 100755
new mode 100644
index 855bde8041..0d091e6364
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/trailing_separator_policy.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/trailing_separator_policy.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/usage_indicator.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/usage_indicator.rb
old mode 100755
new mode 100644
index 2133e93f34..3a591222bf
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/usage_indicator.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/usage_indicator.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow.rb
old mode 100755
new mode 100644
index c056190ac4..aaa003ea5d
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The workflow type.
#
- class Workflow < MsRestAzure::Resource
+ class Workflow < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [WorkflowProvisioningState] Gets the provisioning state.
# Possible values include: 'NotSpecified', 'Accepted', 'Running',
# 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled',
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_filter.rb
old mode 100755
new mode 100644
index b0a954909b..949acb5187
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowFilter
include MsRestAzure
- include MsRest::JSONable
# @return [WorkflowState] The state of workflows. Possible values
# include: 'NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted',
# 'Suspended'
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_list_result.rb
old mode 100755
new mode 100644
index a079010177..cc682a9106
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_output_parameter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_output_parameter.rb
old mode 100755
new mode 100644
index 90f9e0528e..bcf8a6d305
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_output_parameter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_output_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowOutputParameter < WorkflowParameter
include MsRestAzure
- include MsRest::JSONable
# @return Gets the error.
attr_accessor :error
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_parameter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_parameter.rb
old mode 100755
new mode 100644
index 916ce0cd19..c96096f094
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_parameter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowParameter
include MsRestAzure
- include MsRest::JSONable
# @return [ParameterType] The type. Possible values include:
# 'NotSpecified', 'String', 'SecureString', 'Int', 'Float', 'Bool',
# 'Array', 'Object', 'SecureObject'
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb
old mode 100755
new mode 100644
index 18a3017f42..0d04af2d39
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_provisioning_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run.rb
old mode 100755
new mode 100644
index 96b13c7a77..abe13c4be4
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The workflow run.
#
- class WorkflowRun < MsRestAzure::SubResource
+ class WorkflowRun < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] Gets the start time.
attr_accessor :start_time
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action.rb
old mode 100755
new mode 100644
index 125fefe539..8b6a845653
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The workflow run action.
#
- class WorkflowRunAction < MsRestAzure::SubResource
+ class WorkflowRunAction < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] Gets the start time.
attr_accessor :start_time
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action_filter.rb
old mode 100755
new mode 100644
index 206e110d8f..4e2377b902
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowRunActionFilter
include MsRestAzure
- include MsRest::JSONable
# @return [WorkflowStatus] The status of workflow run action. Possible
# values include: 'NotSpecified', 'Paused', 'Running', 'Waiting',
# 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted',
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb
old mode 100755
new mode 100644
index 6e5861a018..74dc319c9e
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_action_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_filter.rb
old mode 100755
new mode 100644
index 6b8900f23a..81da0b986a
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowRunFilter
include MsRestAzure
- include MsRest::JSONable
# @return [WorkflowStatus] The status of workflow run. Possible values
# include: 'NotSpecified', 'Paused', 'Running', 'Waiting', 'Succeeded',
# 'Skipped', 'Suspended', 'Cancelled', 'Failed', 'Faulted', 'TimedOut',
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_list_result.rb
old mode 100755
new mode 100644
index 74a45d494e..0e1c727188
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_trigger.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_trigger.rb
old mode 100755
new mode 100644
index 4403536fdb..a3300a4561
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_trigger.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_run_trigger.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowRunTrigger
include MsRestAzure
- include MsRest::JSONable
# @return [String] Gets the name.
attr_accessor :name
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_state.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_state.rb
old mode 100755
new mode 100644
index a1691c63a2..dd92d0f2d5
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_state.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_status.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_status.rb
old mode 100755
new mode 100644
index b3c04be771..38ee560df1
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_status.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger.rb
old mode 100755
new mode 100644
index 6319961322..17b1e9914e
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The workflow trigger.
#
- class WorkflowTrigger < MsRestAzure::SubResource
+ class WorkflowTrigger < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [WorkflowTriggerProvisioningState] Gets the provisioning state.
# Possible values include: 'NotSpecified', 'Accepted', 'Running',
# 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled',
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_callback_url.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_callback_url.rb
old mode 100755
new mode 100644
index 7326d914ff..bb948e33cc
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_callback_url.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_callback_url.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowTriggerCallbackUrl
include MsRestAzure
- include MsRest::JSONable
# @return [String] Gets the workflow trigger callback URL.
attr_accessor :value
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_filter.rb
old mode 100755
new mode 100644
index 982851ede1..316d233165
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowTriggerFilter
include MsRestAzure
- include MsRest::JSONable
# @return [WorkflowState] The state of workflow trigger. Possible values
# include: 'NotSpecified', 'Completed', 'Enabled', 'Disabled', 'Deleted',
# 'Suspended'
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history.rb
old mode 100755
new mode 100644
index 66c46735b2..995fc764f4
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The workflow trigger history.
#
- class WorkflowTriggerHistory < MsRestAzure::SubResource
+ class WorkflowTriggerHistory < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] Gets the start time.
attr_accessor :start_time
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_filter.rb
old mode 100755
new mode 100644
index 851cc08e63..022bb2a6ce
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowTriggerHistoryFilter
include MsRestAzure
- include MsRest::JSONable
# @return [WorkflowStatus] The status of workflow trigger history.
# Possible values include: 'NotSpecified', 'Paused', 'Running',
# 'Waiting', 'Succeeded', 'Skipped', 'Suspended', 'Cancelled', 'Failed',
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb
old mode 100755
new mode 100644
index ad84d81ed3..79705f6fd0
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_history_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_callback_url_queries.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_callback_url_queries.rb
old mode 100755
new mode 100644
index 39e5729867..7df62faac8
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_callback_url_queries.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_callback_url_queries.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowTriggerListCallbackUrlQueries
include MsRestAzure
- include MsRest::JSONable
# @return [String] The api version.
attr_accessor :api_version
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb
old mode 100755
new mode 100644
index 9871eba5a0..0b4de2571a
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb
old mode 100755
new mode 100644
index c03a8cf670..cc7da5c12f
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_provisioning_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb
old mode 100755
new mode 100644
index 1f94ea9255..b80c4ac976
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_trigger_recurrence.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WorkflowTriggerRecurrence
include MsRestAzure
- include MsRest::JSONable
# @return [RecurrenceFrequency] The frequency. Possible values include:
# 'NotSpecified', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month',
# 'Year'
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_version.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_version.rb
old mode 100755
new mode 100644
index 49f884ccd2..dbe2b4b40e
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_version.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_version.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The workflow version.
#
- class WorkflowVersion < MsRestAzure::Resource
+ class WorkflowVersion < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [DateTime] Gets the created time.
attr_accessor :created_time
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_version_list_result.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_version_list_result.rb
old mode 100755
new mode 100644
index a1bfd0f892..6ae54dd4bb
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_version_list_result.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/workflow_version_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb
old mode 100755
new mode 100644
index 8031ef3bc6..32760bb697
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12acknowledgement_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12AcknowledgementSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether technical
# acknowledgement is needed.
attr_accessor :need_technical_acknowledgement
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb
old mode 100755
new mode 100644
index d990a37364..993c339b60
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12agreement_content.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12AgreementContent
include MsRestAzure
- include MsRest::JSONable
# @return [X12OneWayAgreement] The X12 one-way receive agreement.
attr_accessor :receive_agreement
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12character_set.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12character_set.rb
old mode 100755
new mode 100644
index 7496ba52c3..9b763b5e06
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12character_set.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12character_set.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12date_format.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12date_format.rb
old mode 100755
new mode 100644
index fe37cf7411..e21b7d36aa
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12date_format.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12date_format.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb
old mode 100755
new mode 100644
index b2a4006f7a..4898f39e89
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12delimiter_overrides.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12DelimiterOverrides
include MsRestAzure
- include MsRest::JSONable
# @return [String] The protocol version.
attr_accessor :protocol_version
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb
old mode 100755
new mode 100644
index 62208f2ff8..7a25c928e0
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12envelope_override.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12EnvelopeOverride
include MsRestAzure
- include MsRest::JSONable
# @return [String] The target namespace on which this envelope settings
# has to be applied.
attr_accessor :target_namespace
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb
old mode 100755
new mode 100644
index 937ae3a513..0ebde90c27
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12envelope_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12EnvelopeSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The controls standards id.
attr_accessor :control_standards_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb
old mode 100755
new mode 100644
index 4b1a92488c..5d1d3d4d63
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12framing_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12FramingSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The data element separator.
attr_accessor :data_element_separator
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12message_filter.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12message_filter.rb
old mode 100755
new mode 100644
index a5950d0ea6..230c5f5084
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12message_filter.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12message_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12MessageFilter
include MsRestAzure
- include MsRest::JSONable
# @return [MessageFilterType] The message filter type. Possible values
# include: 'NotSpecified', 'Include', 'Exclude'
attr_accessor :message_filter_type
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12message_identifier.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12message_identifier.rb
old mode 100755
new mode 100644
index 63df466b4c..3b93c3bc56
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12message_identifier.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12message_identifier.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12MessageIdentifier
include MsRestAzure
- include MsRest::JSONable
# @return [String] The message id.
attr_accessor :message_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb
old mode 100755
new mode 100644
index deb8d8dcf7..499e82dce4
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12one_way_agreement.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12OneWayAgreement
include MsRestAzure
- include MsRest::JSONable
# @return [BusinessIdentity] The sender business identity
attr_accessor :sender_business_identity
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb
old mode 100755
new mode 100644
index 8e71090246..ebfda509cb
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12processing_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12ProcessingSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to mask security
# information.
attr_accessor :mask_security_info
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb
old mode 100755
new mode 100644
index 995f154286..79c8d60abc
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12protocol_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12ProtocolSettings
include MsRestAzure
- include MsRest::JSONable
# @return [X12ValidationSettings] The X12 validation settings.
attr_accessor :validation_settings
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12schema_reference.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12schema_reference.rb
old mode 100755
new mode 100644
index 61a6f4f4d0..e0240f9244
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12schema_reference.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12schema_reference.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12SchemaReference
include MsRestAzure
- include MsRest::JSONable
# @return [String] The message id.
attr_accessor :message_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12security_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12security_settings.rb
old mode 100755
new mode 100644
index ce5e1962eb..813b59b6c0
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12security_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12security_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12SecuritySettings
include MsRestAzure
- include MsRest::JSONable
# @return [String] The authorization qualifier.
attr_accessor :authorization_qualifier
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12time_format.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12time_format.rb
old mode 100755
new mode 100644
index 08b1b4c13c..0ae5a45c35
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12time_format.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12time_format.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12validation_override.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12validation_override.rb
old mode 100755
new mode 100644
index 929f9b3f62..8a8226cdbb
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12validation_override.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12validation_override.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12ValidationOverride
include MsRestAzure
- include MsRest::JSONable
# @return [String] The message id on which the validation settings has to
# be applied.
attr_accessor :message_id
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12validation_settings.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12validation_settings.rb
old mode 100755
new mode 100644
index 332c23fff5..c492231e3c
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12validation_settings.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/models/x12validation_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class X12ValidationSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] The value indicating whether to validate character
# set in the message.
attr_accessor :validate_character_set
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/module_definition.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/module_definition.rb
old mode 100755
new mode 100644
index 3b80fac418..de122218e5
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/module_definition.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/partners.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/partners.rb
old mode 100755
new mode 100644
index 79be6d040d..041d5af925
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/partners.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/partners.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/schemas.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/schemas.rb
old mode 100755
new mode 100644
index 732eee450b..ae90630d2f
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/schemas.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/schemas.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/sessions.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/sessions.rb
old mode 100755
new mode 100644
index 35f8fd73b7..7fb640bbee
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/sessions.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/sessions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/version.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/version.rb
old mode 100755
new mode 100644
index e546140954..e230173b72
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/version.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Logic
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_run_actions.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_run_actions.rb
old mode 100755
new mode 100644
index 0b649d1e0f..202729fb30
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_run_actions.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_run_actions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_runs.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_runs.rb
old mode 100755
new mode 100644
index 4698b61bc1..808a0ba533
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_runs.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_runs.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb
old mode 100755
new mode 100644
index 8f4a7d203d..907b58a6d5
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_trigger_histories.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_triggers.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_triggers.rb
old mode 100755
new mode 100644
index 4ecb95642e..0ffd38d409
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_triggers.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_triggers.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_versions.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_versions.rb
old mode 100755
new mode 100644
index 5c684540cd..2b0ce54850
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_versions.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflow_versions.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflows.rb b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflows.rb
old mode 100755
new mode 100644
index bd3677d499..30a31a6044
--- a/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflows.rb
+++ b/management/azure_mgmt_logic/lib/generated/azure_mgmt_logic/workflows.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/azure_mgmt_machine_learning.gemspec b/management/azure_mgmt_machine_learning/azure_mgmt_machine_learning.gemspec
index 967ee70f7a..2b80e0da17 100644
--- a/management/azure_mgmt_machine_learning/azure_mgmt_machine_learning.gemspec
+++ b/management/azure_mgmt_machine_learning/azure_mgmt_machine_learning.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning.rb
index 6f24ff3686..084bf4a2e6 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -47,6 +47,7 @@ module Models
autoload :GraphPackage, 'generated/azure_mgmt_machine_learning/models/graph_package.rb'
autoload :StorageAccount, 'generated/azure_mgmt_machine_learning/models/storage_account.rb'
autoload :AsyncOperationStatus, 'generated/azure_mgmt_machine_learning/models/async_operation_status.rb'
+ autoload :Resource, 'generated/azure_mgmt_machine_learning/models/resource.rb'
autoload :PaginatedWebServicesList, 'generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb'
autoload :ExampleRequest, 'generated/azure_mgmt_machine_learning/models/example_request.rb'
autoload :AsyncOperationErrorInfo, 'generated/azure_mgmt_machine_learning/models/async_operation_error_info.rb'
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb
index 868abac9e8..42a1cd317b 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/asset_item.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/asset_item.rb
index 7169240b91..0b820457e7 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/asset_item.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/asset_item.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AssetItem
include MsRestAzure
- include MsRest::JSONable
# @return [String] Asset's friendly name.
attr_accessor :name
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/asset_type.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/asset_type.rb
index 0e7f3c579a..facb4223b0 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/asset_type.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/asset_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/async_operation_error_info.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/async_operation_error_info.rb
index 029499a584..c0cf4d8c41 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/async_operation_error_info.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/async_operation_error_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AsyncOperationErrorInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] The error code.
attr_accessor :code
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/async_operation_status.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/async_operation_status.rb
index c0720ef0d4..e2e22afbaa 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/async_operation_status.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/async_operation_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AsyncOperationStatus
include MsRestAzure
- include MsRest::JSONable
# @return [String] Async operation id.
attr_accessor :id
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/blob_location.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/blob_location.rb
index bfec646c71..c8512307ac 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/blob_location.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/blob_location.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BlobLocation
include MsRestAzure
- include MsRest::JSONable
# @return [String] The URI from which the blob is accessible from. For
# example, aml://abc for system assets or https://xyz for user assets or
# payload.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_format.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_format.rb
index 763705f82e..83bcc9f284 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_format.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_format.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_specification.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_specification.rb
index db0ebf6a40..464fabc286 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_specification.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_specification.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -14,7 +14,6 @@ class ColumnSpecification
include MsRestAzure
- include MsRest::JSONable
# @return [ColumnType] Data type of the column. Possible values include:
# 'Boolean', 'Integer', 'Number', 'String'
attr_accessor :type
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_type.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_type.rb
index 7de40d8815..478172a672 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_type.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/column_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/commitment_plan.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/commitment_plan.rb
index 1f75262564..4a7d1bf4c0 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/commitment_plan.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/commitment_plan.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CommitmentPlan
include MsRestAzure
- include MsRest::JSONable
# @return [String] Specifies the Azure Resource Manager ID of the
# commitment plan associated with the web service.
attr_accessor :id
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb
index e8fa91fff7..96342799e9 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DiagnosticsConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [DiagnosticsLevel] Specifies the verbosity of the diagnostic
# output. Valid values are: None - disables tracing; Error - collects
# only error (stderr) traces; All - collects all traces (stdout and
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/diagnostics_level.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/diagnostics_level.rb
index c6ba9b974d..b856415e70 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/diagnostics_level.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/diagnostics_level.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/example_request.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/example_request.rb
index c2bb48768f..e6ba56af13 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/example_request.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/example_request.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExampleRequest
include MsRestAzure
- include MsRest::JSONable
# @return Sample input data for the web service's input(s) given as an
# input name to sample input values matrix map.
attr_accessor :inputs
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_edge.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_edge.rb
index 2403ebe808..a30b842f0d 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_edge.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_edge.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GraphEdge
include MsRestAzure
- include MsRest::JSONable
# @return [String] The source graph node's identifier.
attr_accessor :source_node_id
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_node.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_node.rb
index b50677aee5..e2b4c293d2 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_node.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_node.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -14,7 +14,6 @@ class GraphNode
include MsRestAzure
- include MsRest::JSONable
# @return [String] The id of the asset represented by this node.
attr_accessor :asset_id
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_package.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_package.rb
index 909721674f..64c9a081ff 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_package.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_package.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GraphPackage
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => GraphNode}] The set of nodes making up the
# graph, provided as a nodeId to GraphNode map
attr_accessor :nodes
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_parameter.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_parameter.rb
index 56c90ab45d..a2bfd62f1d 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_parameter.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GraphParameter
include MsRestAzure
- include MsRest::JSONable
# @return [String] Description of this graph parameter.
attr_accessor :description
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb
index ce72a1787b..7bf2b6dd79 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GraphParameterLink
include MsRestAzure
- include MsRest::JSONable
# @return [String] The graph node's identifier
attr_accessor :node_id
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/input_port.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/input_port.rb
index 4b90131981..79cc9d4233 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/input_port.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/input_port.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class InputPort
include MsRestAzure
- include MsRest::JSONable
# @return [InputPortType] Port data type. Possible values include:
# 'Dataset'. Default value: 'Dataset' .
attr_accessor :type
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/input_port_type.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/input_port_type.rb
index 7f50ca11a1..2eb59d3b91 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/input_port_type.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/input_port_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb
index 7f6597026e..dc904e3e7d 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class MachineLearningWorkspace
include MsRestAzure
- include MsRest::JSONable
# @return [String] Specifies the workspace ID of the machine learning
# workspace associated with the web service
attr_accessor :id
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/mode_value_info.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/mode_value_info.rb
index abd61bc8f5..210e3319b6 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/mode_value_info.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/mode_value_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ModeValueInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] The interface string name for the nested parameter.
attr_accessor :interface_string
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb
index dc28853bbb..f0f94716f3 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ModuleAssetParameter
include MsRestAzure
- include MsRest::JSONable
# @return [String] Parameter name.
attr_accessor :name
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/output_port.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/output_port.rb
index b28213cf5c..4a35026454 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/output_port.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/output_port.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class OutputPort
include MsRestAzure
- include MsRest::JSONable
# @return [OutputPortType] Port data type. Possible values include:
# 'Dataset'. Default value: 'Dataset' .
attr_accessor :type
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/output_port_type.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/output_port_type.rb
index 7d5a42f5b6..e0230aa1f7 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/output_port_type.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/output_port_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb
index e4d474c6d2..1ffca859db 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/parameter_type.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/parameter_type.rb
index 9c3febee4b..fdcd0942bf 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/parameter_type.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/parameter_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/provisioning_state.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/provisioning_state.rb
index df76584ca5..12534f5cbf 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/provisioning_state.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/provisioning_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/realtime_configuration.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/realtime_configuration.rb
index aa6e1dc486..259177c6a9 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/realtime_configuration.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/realtime_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RealtimeConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Specifies the maximum concurrent calls that can be
# made to the web service. Minimum value: 4, Maximum value: 200.
attr_accessor :max_concurrent_calls
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/resource.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/resource.rb
new file mode 100644
index 0000000000..f456d26add
--- /dev/null
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/resource.rb
@@ -0,0 +1,95 @@
+# 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::ARM::MachineLearning
+ module Models
+ #
+ # Azure resource.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] Specifies the resource ID.
+ attr_accessor :id
+
+ # @return [String] Specifies the name of the resource.
+ attr_accessor :name
+
+ # @return [String] Specifies the location of the resource.
+ attr_accessor :location
+
+ # @return [String] Specifies the type of the resource.
+ attr_accessor :type
+
+ # @return [Hash{String => String}] Contains resource tags defined as
+ # key/value pairs.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb
index dffa1fd298..ac727d60f8 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ServiceInputOutputSpecification
include MsRestAzure
- include MsRest::JSONable
# @return [String] The title of your Swagger schema.
attr_accessor :title
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/storage_account.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/storage_account.rb
index bfbbf26be8..404bf36000 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/storage_account.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/storage_account.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class StorageAccount
include MsRestAzure
- include MsRest::JSONable
# @return [String] Specifies the name of the storage account.
attr_accessor :name
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/table_specification.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/table_specification.rb
index d3b1559c5b..64b8bfb551 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/table_specification.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/table_specification.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class TableSpecification
include MsRestAzure
- include MsRest::JSONable
# @return [String] Swagger schema title.
attr_accessor :title
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service.rb
index a0895e6dfa..5f9fc65a0e 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Instance of an Azure ML web service resource.
#
- class WebService < MsRestAzure::Resource
+ class WebService < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [WebServiceProperties] Contains the property payload that
# describes the web service.
attr_accessor :properties
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_keys.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_keys.rb
index 8437a573cb..e4ec680e46 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_keys.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_keys.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WebServiceKeys
include MsRestAzure
- include MsRest::JSONable
# @return [String] The primary access key.
attr_accessor :primary
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_parameter.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_parameter.rb
index 5032928244..8651d018e8 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_parameter.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WebServiceParameter
include MsRestAzure
- include MsRest::JSONable
# @return The parameter value
attr_accessor :value
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_properties.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_properties.rb
index 9d77c37747..3c70367600 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_properties.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WebServiceProperties
include MsRestAzure
- include MsRest::JSONable
@@discriminatorMap = Hash.new
@@discriminatorMap["Graph"] = "WebServicePropertiesForGraph"
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_properties_for_graph.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_properties_for_graph.rb
index d78cc78135..2890c22f13 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_properties_for_graph.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/models/web_service_properties_for_graph.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WebServicePropertiesForGraph < WebServiceProperties
include MsRestAzure
- include MsRest::JSONable
def initialize
@packageType = "Graph"
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/module_definition.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/module_definition.rb
index c0eb260484..ed5f01b912 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/module_definition.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/version.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/version.rb
index 3a9ff52d5f..32d9cc782b 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/version.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::MachineLearning
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/web_services.rb b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/web_services.rb
index 8193adf246..7115646dbd 100644
--- a/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/web_services.rb
+++ b/management/azure_mgmt_machine_learning/lib/generated/azure_mgmt_machine_learning/web_services.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_media_services/azure_mgmt_media_services.gemspec b/management/azure_mgmt_media_services/azure_mgmt_media_services.gemspec
index d7179fafb7..5a77ddef42 100644
--- a/management/azure_mgmt_media_services/azure_mgmt_media_services.gemspec
+++ b/management/azure_mgmt_media_services/azure_mgmt_media_services.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services.rb
index 0f512be4a6..29ea034ff6 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -20,20 +20,25 @@
require 'ms_rest_azure'
module Azure::ARM::MediaServices
+ autoload :Operations, 'generated/azure_mgmt_media_services/operations.rb'
autoload :MediaServiceOperations, 'generated/azure_mgmt_media_services/media_service_operations.rb'
autoload :MediaServicesManagementClient, 'generated/azure_mgmt_media_services/media_services_management_client.rb'
module Models
- autoload :MediaServiceCollection, 'generated/azure_mgmt_media_services/models/media_service_collection.rb'
- autoload :ApiEndpoint, 'generated/azure_mgmt_media_services/models/api_endpoint.rb'
autoload :RegenerateKeyInput, 'generated/azure_mgmt_media_services/models/regenerate_key_input.rb'
- autoload :CheckNameAvailabilityInput, 'generated/azure_mgmt_media_services/models/check_name_availability_input.rb'
autoload :RegenerateKeyOutput, 'generated/azure_mgmt_media_services/models/regenerate_key_output.rb'
- autoload :StorageAccount, 'generated/azure_mgmt_media_services/models/storage_account.rb'
autoload :ApiError, 'generated/azure_mgmt_media_services/models/api_error.rb'
- autoload :ServiceKeys, 'generated/azure_mgmt_media_services/models/service_keys.rb'
+ autoload :Resource, 'generated/azure_mgmt_media_services/models/resource.rb'
autoload :CheckNameAvailabilityOutput, 'generated/azure_mgmt_media_services/models/check_name_availability_output.rb'
+ autoload :ServiceKeys, 'generated/azure_mgmt_media_services/models/service_keys.rb'
+ autoload :MediaServiceCollection, 'generated/azure_mgmt_media_services/models/media_service_collection.rb'
autoload :SyncStorageKeysInput, 'generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb'
+ autoload :CheckNameAvailabilityInput, 'generated/azure_mgmt_media_services/models/check_name_availability_input.rb'
+ autoload :OperationDisplay, 'generated/azure_mgmt_media_services/models/operation_display.rb'
+ autoload :ApiEndpoint, 'generated/azure_mgmt_media_services/models/api_endpoint.rb'
+ autoload :Operation, 'generated/azure_mgmt_media_services/models/operation.rb'
+ autoload :StorageAccount, 'generated/azure_mgmt_media_services/models/storage_account.rb'
+ autoload :OperationListResult, 'generated/azure_mgmt_media_services/models/operation_list_result.rb'
autoload :MediaService, 'generated/azure_mgmt_media_services/models/media_service.rb'
autoload :ResourceType, 'generated/azure_mgmt_media_services/models/resource_type.rb'
autoload :EntityNameUnavailabilityReason, 'generated/azure_mgmt_media_services/models/entity_name_unavailability_reason.rb'
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/media_service_operations.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/media_service_operations.rb
index bf3c8adf7f..886bbdad65 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/media_service_operations.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/media_service_operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -25,15 +25,15 @@ def initialize(client)
# Checks whether the Media Service resource name is available. The name must be
# globally unique.
#
- # @param check_name_availability_input [CheckNameAvailabilityInput] Properties
- # needed to check the availability of a name.
+ # @param parameters [CheckNameAvailabilityInput] Properties needed to check the
+ # availability of a name.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [CheckNameAvailabilityOutput] operation results.
#
- def check_name_availability(check_name_availability_input, custom_headers = nil)
- response = check_name_availability_async(check_name_availability_input, custom_headers).value!
+ def check_name_availability(parameters, custom_headers = nil)
+ response = check_name_availability_async(parameters, custom_headers).value!
response.body unless response.nil?
end
@@ -41,32 +41,32 @@ def check_name_availability(check_name_availability_input, custom_headers = nil)
# Checks whether the Media Service resource name is available. The name must be
# globally unique.
#
- # @param check_name_availability_input [CheckNameAvailabilityInput] Properties
- # needed to check the availability of a name.
+ # @param parameters [CheckNameAvailabilityInput] Properties needed to check the
+ # availability of a name.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def check_name_availability_with_http_info(check_name_availability_input, custom_headers = nil)
- check_name_availability_async(check_name_availability_input, custom_headers).value!
+ def check_name_availability_with_http_info(parameters, custom_headers = nil)
+ check_name_availability_async(parameters, custom_headers).value!
end
#
# Checks whether the Media Service resource name is available. The name must be
# globally unique.
#
- # @param check_name_availability_input [CheckNameAvailabilityInput] Properties
- # needed to check the availability of a name.
+ # @param parameters [CheckNameAvailabilityInput] Properties needed to check the
+ # availability of a name.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def check_name_availability_async(check_name_availability_input, custom_headers = nil)
+ def check_name_availability_async(parameters, custom_headers = nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
- fail ArgumentError, 'check_name_availability_input is nil' if check_name_availability_input.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
request_headers = {}
@@ -79,7 +79,7 @@ def check_name_availability_async(check_name_availability_input, custom_headers
# Serialize Request
request_mapper = Azure::ARM::MediaServices::Models::CheckNameAvailabilityInput.mapper()
- request_content = @client.serialize(request_mapper, check_name_availability_input)
+ request_content = @client.serialize(request_mapper, parameters)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Media/CheckNameAvailability'
@@ -313,15 +313,15 @@ def get_async(resource_group_name, media_service_name, custom_headers = nil)
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param media_service [MediaService] Media Service properties needed for
+ # @param parameters [MediaService] Media Service properties needed for
# creation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MediaService] operation results.
#
- def create(resource_group_name, media_service_name, media_service, custom_headers = nil)
- response = create_async(resource_group_name, media_service_name, media_service, custom_headers).value!
+ def create(resource_group_name, media_service_name, parameters, custom_headers = nil)
+ response = create_async(resource_group_name, media_service_name, parameters, custom_headers).value!
response.body unless response.nil?
end
@@ -331,15 +331,15 @@ def create(resource_group_name, media_service_name, media_service, custom_header
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param media_service [MediaService] Media Service properties needed for
+ # @param parameters [MediaService] Media Service properties needed for
# creation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def create_with_http_info(resource_group_name, media_service_name, media_service, custom_headers = nil)
- create_async(resource_group_name, media_service_name, media_service, custom_headers).value!
+ def create_with_http_info(resource_group_name, media_service_name, parameters, custom_headers = nil)
+ create_async(resource_group_name, media_service_name, parameters, custom_headers).value!
end
#
@@ -348,19 +348,19 @@ def create_with_http_info(resource_group_name, media_service_name, media_service
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param media_service [MediaService] Media Service properties needed for
+ # @param parameters [MediaService] Media Service properties needed for
# creation.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def create_async(resource_group_name, media_service_name, media_service, custom_headers = nil)
+ def create_async(resource_group_name, media_service_name, parameters, custom_headers = nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
- fail ArgumentError, 'media_service is nil' if media_service.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
request_headers = {}
@@ -373,7 +373,7 @@ def create_async(resource_group_name, media_service_name, media_service, custom_
# Serialize Request
request_mapper = Azure::ARM::MediaServices::Models::MediaService.mapper()
- request_content = @client.serialize(request_mapper, media_service)
+ request_content = @client.serialize(request_mapper, parameters)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}'
@@ -506,15 +506,14 @@ def delete_async(resource_group_name, media_service_name, custom_headers = nil)
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param media_service [MediaService] Media Service properties needed for
- # update.
+ # @param parameters [MediaService] Media Service properties needed for update.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MediaService] operation results.
#
- def update(resource_group_name, media_service_name, media_service, custom_headers = nil)
- response = update_async(resource_group_name, media_service_name, media_service, custom_headers).value!
+ def update(resource_group_name, media_service_name, parameters, custom_headers = nil)
+ response = update_async(resource_group_name, media_service_name, parameters, custom_headers).value!
response.body unless response.nil?
end
@@ -524,15 +523,14 @@ def update(resource_group_name, media_service_name, media_service, custom_header
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param media_service [MediaService] Media Service properties needed for
- # update.
+ # @param parameters [MediaService] Media Service properties needed for update.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def update_with_http_info(resource_group_name, media_service_name, media_service, custom_headers = nil)
- update_async(resource_group_name, media_service_name, media_service, custom_headers).value!
+ def update_with_http_info(resource_group_name, media_service_name, parameters, custom_headers = nil)
+ update_async(resource_group_name, media_service_name, parameters, custom_headers).value!
end
#
@@ -541,19 +539,18 @@ def update_with_http_info(resource_group_name, media_service_name, media_service
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param media_service [MediaService] Media Service properties needed for
- # update.
+ # @param parameters [MediaService] Media Service properties needed for update.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def update_async(resource_group_name, media_service_name, media_service, custom_headers = nil)
+ def update_async(resource_group_name, media_service_name, parameters, custom_headers = nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
- fail ArgumentError, 'media_service is nil' if media_service.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
request_headers = {}
@@ -566,7 +563,7 @@ def update_async(resource_group_name, media_service_name, media_service, custom_
# Serialize Request
request_mapper = Azure::ARM::MediaServices::Models::MediaService.mapper()
- request_content = @client.serialize(request_mapper, media_service)
+ request_content = @client.serialize(request_mapper, parameters)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}'
@@ -616,15 +613,15 @@ def update_async(resource_group_name, media_service_name, media_service, custom_
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param regenerate_key_input [RegenerateKeyInput] Properties needed to
- # regenerate the Media Service key.
+ # @param parameters [RegenerateKeyInput] Properties needed to regenerate the
+ # Media Service key.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [RegenerateKeyOutput] operation results.
#
- def regenerate_key(resource_group_name, media_service_name, regenerate_key_input, custom_headers = nil)
- response = regenerate_key_async(resource_group_name, media_service_name, regenerate_key_input, custom_headers).value!
+ def regenerate_key(resource_group_name, media_service_name, parameters, custom_headers = nil)
+ response = regenerate_key_async(resource_group_name, media_service_name, parameters, custom_headers).value!
response.body unless response.nil?
end
@@ -634,15 +631,15 @@ def regenerate_key(resource_group_name, media_service_name, regenerate_key_input
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param regenerate_key_input [RegenerateKeyInput] Properties needed to
- # regenerate the Media Service key.
+ # @param parameters [RegenerateKeyInput] Properties needed to regenerate the
+ # Media Service key.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def regenerate_key_with_http_info(resource_group_name, media_service_name, regenerate_key_input, custom_headers = nil)
- regenerate_key_async(resource_group_name, media_service_name, regenerate_key_input, custom_headers).value!
+ def regenerate_key_with_http_info(resource_group_name, media_service_name, parameters, custom_headers = nil)
+ regenerate_key_async(resource_group_name, media_service_name, parameters, custom_headers).value!
end
#
@@ -651,19 +648,19 @@ def regenerate_key_with_http_info(resource_group_name, media_service_name, regen
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param regenerate_key_input [RegenerateKeyInput] Properties needed to
- # regenerate the Media Service key.
+ # @param parameters [RegenerateKeyInput] Properties needed to regenerate the
+ # Media Service key.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def regenerate_key_async(resource_group_name, media_service_name, regenerate_key_input, custom_headers = nil)
+ def regenerate_key_async(resource_group_name, media_service_name, parameters, custom_headers = nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
- fail ArgumentError, 'regenerate_key_input is nil' if regenerate_key_input.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
request_headers = {}
@@ -676,7 +673,7 @@ def regenerate_key_async(resource_group_name, media_service_name, regenerate_key
# Serialize Request
request_mapper = Azure::ARM::MediaServices::Models::RegenerateKeyInput.mapper()
- request_content = @client.serialize(request_mapper, regenerate_key_input)
+ request_content = @client.serialize(request_mapper, parameters)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/regenerateKey'
@@ -821,14 +818,14 @@ def list_keys_async(resource_group_name, media_service_name, custom_headers = ni
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param sync_storage_keys_input [SyncStorageKeysInput] Properties needed to
- # synchronize the keys for a storage account to the Media Service.
+ # @param parameters [SyncStorageKeysInput] Properties needed to synchronize the
+ # keys for a storage account to the Media Service.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
#
- def sync_storage_keys(resource_group_name, media_service_name, sync_storage_keys_input, custom_headers = nil)
- response = sync_storage_keys_async(resource_group_name, media_service_name, sync_storage_keys_input, custom_headers).value!
+ def sync_storage_keys(resource_group_name, media_service_name, parameters, custom_headers = nil)
+ response = sync_storage_keys_async(resource_group_name, media_service_name, parameters, custom_headers).value!
nil
end
@@ -839,15 +836,15 @@ def sync_storage_keys(resource_group_name, media_service_name, sync_storage_keys
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param sync_storage_keys_input [SyncStorageKeysInput] Properties needed to
- # synchronize the keys for a storage account to the Media Service.
+ # @param parameters [SyncStorageKeysInput] Properties needed to synchronize the
+ # keys for a storage account to the Media Service.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def sync_storage_keys_with_http_info(resource_group_name, media_service_name, sync_storage_keys_input, custom_headers = nil)
- sync_storage_keys_async(resource_group_name, media_service_name, sync_storage_keys_input, custom_headers).value!
+ def sync_storage_keys_with_http_info(resource_group_name, media_service_name, parameters, custom_headers = nil)
+ sync_storage_keys_async(resource_group_name, media_service_name, parameters, custom_headers).value!
end
#
@@ -857,19 +854,19 @@ def sync_storage_keys_with_http_info(resource_group_name, media_service_name, sy
# @param resource_group_name [String] Name of the resource group within the
# Azure subscription.
# @param media_service_name [String] Name of the Media Service.
- # @param sync_storage_keys_input [SyncStorageKeysInput] Properties needed to
- # synchronize the keys for a storage account to the Media Service.
+ # @param parameters [SyncStorageKeysInput] Properties needed to synchronize the
+ # keys for a storage account to the Media Service.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def sync_storage_keys_async(resource_group_name, media_service_name, sync_storage_keys_input, custom_headers = nil)
+ def sync_storage_keys_async(resource_group_name, media_service_name, parameters, custom_headers = nil)
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'media_service_name is nil' if media_service_name.nil?
- fail ArgumentError, 'sync_storage_keys_input is nil' if sync_storage_keys_input.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
request_headers = {}
@@ -882,7 +879,7 @@ def sync_storage_keys_async(resource_group_name, media_service_name, sync_storag
# Serialize Request
request_mapper = Azure::ARM::MediaServices::Models::SyncStorageKeysInput.mapper()
- request_content = @client.serialize(request_mapper, sync_storage_keys_input)
+ request_content = @client.serialize(request_mapper, parameters)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{mediaServiceName}/syncStorageKeys'
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/media_services_management_client.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/media_services_management_client.rb
index 102f15617c..a96b8c70a7 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/media_services_management_client.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/media_services_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -22,7 +22,7 @@ class MediaServicesManagementClient < MsRestAzure::AzureServiceClient
attr_accessor :subscription_id
# @return [String] Version of the API to be used with the client request.
- # Current version is 2015-10-01
+ # The current version is 2015-10-01.
attr_reader :api_version
# @return [String] Gets or sets the preferred language for the response.
@@ -36,6 +36,9 @@ class MediaServicesManagementClient < MsRestAzure::AzureServiceClient
# is generated and included in each request. Default is true.
attr_accessor :generate_client_request_id
+ # @return [Operations] operations
+ attr_reader :operations
+
# @return [MediaServiceOperations] media_service_operations
attr_reader :media_service_operations
@@ -52,6 +55,7 @@ def initialize(credentials = nil, base_url = nil, options = nil)
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
@credentials = credentials
+ @operations = Operations.new(self)
@media_service_operations = MediaServiceOperations.new(self)
@api_version = '2015-10-01'
@accept_language = 'en-US'
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/api_endpoint.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/api_endpoint.rb
index be77b44ee8..9719ab7dfa 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/api_endpoint.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/api_endpoint.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApiEndpoint
include MsRestAzure
- include MsRest::JSONable
# @return [String] The Media Services REST endpoint.
attr_accessor :endpoint
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/api_error.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/api_error.rb
index d08c5a00fa..f47d0da94a 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/api_error.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/api_error.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApiError
include MsRestAzure
- include MsRest::JSONable
# @return [String] Error code.
attr_accessor :code
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/check_name_availability_input.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
index 673ce4f6cb..38a82ea74f 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/check_name_availability_input.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckNameAvailabilityInput
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the resource. A name must be globally
# unique.
attr_accessor :name
@@ -40,7 +39,7 @@ def self.mapper()
constraints: {
MaxLength: 24,
MinLength: 3,
- Pattern: '^[a-z0-9]'
+ Pattern: '^[a-z0-9]{3,24}$'
},
type: {
name: 'String'
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb
index 713981acb7..531a21524b 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/check_name_availability_output.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CheckNameAvailabilityOutput
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Specifies if the name is available.
attr_accessor :name_available
@@ -40,14 +39,14 @@ def self.mapper()
model_properties: {
name_available: {
required: false,
- serialized_name: 'NameAvailable',
+ serialized_name: 'nameAvailable',
type: {
name: 'Boolean'
}
},
reason: {
required: false,
- serialized_name: 'Reason',
+ serialized_name: 'reason',
type: {
name: 'Enum',
module: 'EntityNameUnavailabilityReason'
@@ -55,7 +54,7 @@ def self.mapper()
},
message: {
required: false,
- serialized_name: 'Message',
+ serialized_name: 'message',
type: {
name: 'String'
}
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/entity_name_unavailability_reason.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/entity_name_unavailability_reason.rb
index a78322e960..6abbf6e137 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/entity_name_unavailability_reason.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/entity_name_unavailability_reason.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/key_type.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/key_type.rb
index a61deceedc..c2332c044d 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/key_type.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/key_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/media_service.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/media_service.rb
index c98df3d1aa..298f1709b1 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/media_service.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/media_service.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The properties of a Media Service resource.
#
- class MediaService < MsRestAzure::Resource
+ class MediaService < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Read-only property that lists the Media
# Services REST API endpoints for this resource. If supplied on a PUT or
# PATCH, the value will be ignored.
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/media_service_collection.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/media_service_collection.rb
index dc5d8c075a..3f03ab86b6 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/media_service_collection.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/media_service_collection.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,8 +12,8 @@ class MediaServiceCollection
include MsRestAzure
- include MsRest::JSONable
- # @return [Array]
+ # @return [Array] The collection of Media Service
+ # resources.
attr_accessor :value
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/operation.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/operation.rb
new file mode 100644
index 0000000000..c3066f85b5
--- /dev/null
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/operation.rb
@@ -0,0 +1,56 @@
+# 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::ARM::MediaServices
+ module Models
+ #
+ # A Media Services REST API operation
+ #
+ class Operation
+
+ include MsRestAzure
+
+ # @return [String] Operation name: {provider}/{resource}/{operation}
+ attr_accessor :name
+
+ # @return [OperationDisplay] The object that represents the operation.
+ attr_accessor :display
+
+
+ #
+ # Mapper for Operation class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Operation',
+ type: {
+ name: 'Composite',
+ class_name: 'Operation',
+ model_properties: {
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ display: {
+ required: false,
+ serialized_name: 'display',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplay'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/operation_display.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/operation_display.rb
new file mode 100644
index 0000000000..02fa316267
--- /dev/null
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/operation_display.rb
@@ -0,0 +1,68 @@
+# 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::ARM::MediaServices
+ module Models
+ #
+ # The object that represents the operation.
+ #
+ class OperationDisplay
+
+ include MsRestAzure
+
+ # @return [String] Service provider: Microsoft.Media
+ attr_accessor :provider
+
+ # @return [String] Resource on which the operation is performed: Invoice,
+ # etc.
+ attr_accessor :resource
+
+ # @return [String] Operation type: Read, write, delete, etc.
+ attr_accessor :operation
+
+
+ #
+ # Mapper for OperationDisplay class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Operation_display',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplay',
+ model_properties: {
+ provider: {
+ required: false,
+ read_only: true,
+ serialized_name: 'provider',
+ type: {
+ name: 'String'
+ }
+ },
+ resource: {
+ required: false,
+ read_only: true,
+ serialized_name: 'resource',
+ type: {
+ name: 'String'
+ }
+ },
+ operation: {
+ required: false,
+ read_only: true,
+ serialized_name: 'operation',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/operation_list_result.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/operation_list_result.rb
new file mode 100644
index 0000000000..e7ebe2e190
--- /dev/null
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/operation_list_result.rb
@@ -0,0 +1,66 @@
+# 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::ARM::MediaServices
+ module Models
+ #
+ # Result of the request to list Media Services operations.
+ #
+ class OperationListResult
+
+ include MsRestAzure
+
+ # @return [Array] List of Media Services operations supported
+ # by the Microsoft.Media resource provider.
+ attr_accessor :value
+
+ # @return [String] URL to get the next set of operation list results if
+ # there are any.
+ attr_accessor :next_link
+
+
+ #
+ # Mapper for OperationListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'OperationListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationListResult',
+ model_properties: {
+ value: {
+ required: false,
+ read_only: true,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'OperationElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'Operation'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/regenerate_key_input.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/regenerate_key_input.rb
index 0f4a2fb79a..14f46a0eb3 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/regenerate_key_input.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/regenerate_key_input.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RegenerateKeyInput
include MsRestAzure
- include MsRest::JSONable
# @return [KeyType] The keyType indicating which key you want to
# regenerate, Primary or Secondary. Possible values include: 'Primary',
# 'Secondary'
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/regenerate_key_output.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/regenerate_key_output.rb
index 7e080a3867..5e8c05ea73 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/regenerate_key_output.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/regenerate_key_output.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RegenerateKeyOutput
include MsRestAzure
- include MsRest::JSONable
# @return [String] The new value of either the primary or secondary key.
attr_accessor :key
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/resource.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/resource.rb
new file mode 100644
index 0000000000..f3d26ca521
--- /dev/null
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/resource.rb
@@ -0,0 +1,97 @@
+# 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::ARM::MediaServices
+ module Models
+ #
+ # The Azure Resource Manager resource.
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] The id of the resource.
+ attr_accessor :id
+
+ # @return [String] The name of the resource.
+ attr_accessor :name
+
+ # @return [String] The type of the resource
+ attr_accessor :type
+
+ # @return [String] The geographic location of the resource. This must be
+ # one of the supported and registered Azure Geo Regions (for example,
+ # West US, East US, Southeast Asia, and so forth).
+ attr_accessor :location
+
+ # @return [Hash{String => String}] Tags to help categorize the resource
+ # in the Azure portal.
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: false,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/resource_type.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/resource_type.rb
index 5b5227f137..2a81389006 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/resource_type.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/resource_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/service_keys.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/service_keys.rb
index 621ec0ac06..6388ace749 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/service_keys.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/service_keys.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ServiceKeys
include MsRestAzure
- include MsRest::JSONable
# @return [String] The primary authorization endpoint.
attr_accessor :primary_auth_endpoint
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/storage_account.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/storage_account.rb
index a9835dd972..2a171139b5 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/storage_account.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/storage_account.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class StorageAccount
include MsRestAzure
- include MsRest::JSONable
# @return [String] The id of the storage account resource. Media Services
# relies on tables and queues as well as blobs, so the primary storage
# account must be a Standard Storage account (either
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb
index 44d4521756..d63db4dfb6 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/models/sync_storage_keys_input.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SyncStorageKeysInput
include MsRestAzure
- include MsRest::JSONable
# @return [String] The id of the storage account resource.
attr_accessor :id
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/module_definition.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/module_definition.rb
index e37cf8ecba..c4bc186f59 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/module_definition.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/operations.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/operations.rb
new file mode 100644
index 0000000000..6d36b5e269
--- /dev/null
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/operations.rb
@@ -0,0 +1,106 @@
+# 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::ARM::MediaServices
+ #
+ # Media Services resource management APIs.
+ #
+ class Operations
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Operations class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [MediaServicesManagementClient] reference to the MediaServicesManagementClient
+ attr_reader :client
+
+ #
+ # Lists all of the available Media Services REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationListResult] operation results.
+ #
+ def list(custom_headers = nil)
+ response = list_async(custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all of the available Media Services REST API operations.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(custom_headers = nil)
+ list_async(custom_headers).value!
+ end
+
+ #
+ # Lists all of the available Media Services REST API operations.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(custom_headers = nil)
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+
+
+ request_headers = {}
+
+ # 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 = 'providers/Microsoft.Media/operations'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ query_params: {'api-version' => @client.api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::MediaServices::Models::OperationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/version.rb b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/version.rb
index 8ec59a0866..cb58a5ee4b 100644
--- a/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/version.rb
+++ b/management/azure_mgmt_media_services/lib/generated/azure_mgmt_media_services/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::MediaServices
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_mobile_engagement/azure_mgmt_mobile_engagement.gemspec b/management/azure_mgmt_mobile_engagement/azure_mgmt_mobile_engagement.gemspec
index 62732144aa..96d3eea9fa 100644
--- a/management/azure_mgmt_mobile_engagement/azure_mgmt_mobile_engagement.gemspec
+++ b/management/azure_mgmt_mobile_engagement/azure_mgmt_mobile_engagement.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement.rb
index b9539d604f..1e541cdeee 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -62,6 +62,7 @@ module Models
autoload :FeedbackByCampaignParameter, 'generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb'
autoload :DeviceInfo, 'generated/azure_mgmt_mobile_engagement/models/device_info.rb'
autoload :ImportTaskListResult, 'generated/azure_mgmt_mobile_engagement/models/import_task_list_result.rb'
+ autoload :Resource, 'generated/azure_mgmt_mobile_engagement/models/resource.rb'
autoload :DeviceLocation, 'generated/azure_mgmt_mobile_engagement/models/device_location.rb'
autoload :ExportTaskResult, 'generated/azure_mgmt_mobile_engagement/models/export_task_result.rb'
autoload :Device, 'generated/azure_mgmt_mobile_engagement/models/device.rb'
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/app_collections.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/app_collections.rb
index a688db640d..7aabfd6819 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/app_collections.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/app_collections.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/apps.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/apps.rb
index a5d5f9f156..a6f307183c 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/apps.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/apps.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/campaigns.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/campaigns.rb
index 0e09e02623..b6cdf6484e 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/campaigns.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/campaigns.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/devices.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/devices.rb
index 7ce90f5f6f..d617a82397 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/devices.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/devices.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/engagement_management_client.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/engagement_management_client.rb
index 367054391a..a6e4d55bb6 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/engagement_management_client.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/engagement_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/export_tasks.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/export_tasks.rb
index 0ba5364492..5f32b71a77 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/export_tasks.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/export_tasks.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/import_tasks.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/import_tasks.rb
index d5f10715c6..b8da823ddf 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/import_tasks.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/import_tasks.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb
index c17a89f9c8..a6963addf8 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AnnouncementFeedbackCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "announcement-feedback"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/api_error.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/api_error.rb
index 3c202fbcfd..6677365338 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/api_error.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/api_error.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ApiError
include MsRestAzure
- include MsRest::JSONable
# @return [ApiErrorError]
attr_accessor :error
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/api_error_error.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/api_error_error.rb
index 95d3bd97cb..aad5613abc 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/api_error_error.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/api_error_error.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ApiErrorError
include MsRestAzure
- include MsRest::JSONable
# @return [String]
attr_accessor :code
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app.rb
index 5df817fd8f..131a79aac2 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The Mobile Engagement App resource.
#
- class App < MsRestAzure::Resource
+ class App < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The application unique identifier.
attr_accessor :backend_id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection.rb
index d39b216048..a81a3e0877 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The AppCollection resource.
#
- class AppCollection < MsRestAzure::Resource
+ class AppCollection < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [ProvisioningStates] Mobile Engagement AppCollection
# Properties. Possible values include: 'Creating', 'Succeeded'
attr_accessor :provisioning_state
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_list_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_list_result.rb
index 812bd84a64..04ad60cbd6 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_list_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_name_availability.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_name_availability.rb
index 352b248d54..f76089cf8d 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_name_availability.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_collection_name_availability.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class AppCollectionNameAvailability
include MsRestAzure
- include MsRest::JSONable
# @return [String] Name.
attr_accessor :name
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_info_filter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_info_filter.rb
index c2fe84e8a3..b8db27bb70 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_info_filter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_info_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -16,7 +16,6 @@ class AppInfoFilter < Filter
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "app-info"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_list_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_list_result.rb
index d677f6935c..5a292632c9 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_list_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/app_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb
index 88d51a0473..0b99017066 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/application_version_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ApplicationVersionCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "application-version"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/audience_operators.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/audience_operators.rb
index 7e901cdea3..2b92b5a95a 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/audience_operators.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/audience_operators.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/boolean_tag_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/boolean_tag_criterion.rb
index d4f7ad6f83..a54b720662 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/boolean_tag_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/boolean_tag_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BooleanTagCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "boolean-tag"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign.rb
index 5c316e83f9..d2d16aed1c 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class Campaign < CampaignLocalization
include MsRestAzure
- include MsRest::JSONable
# @return [String] Unique name of the campaign.
attr_accessor :name
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_audience.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_audience.rb
index f45d2667db..91adca7a4b 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_audience.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_audience.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -18,7 +18,6 @@ class CampaignAudience
include MsRestAzure
- include MsRest::JSONable
# @return [String] Boolean expression made of criteria (variables)
# operators (`not`, `and` or `or`) and parenthesis. Criterion names in
# the audience expression must start with a capital letter and can only
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_feedbacks.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_feedbacks.rb
index e55a944d5b..99c010baef 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_feedbacks.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_feedbacks.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_kinds.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_kinds.rb
index 507e5654bc..eab81dabf2 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_kinds.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_kinds.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_list_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_list_result.rb
index 627a8f4819..49f08b5687 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_list_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignListResult < CampaignStateResult
include MsRestAzure
- include MsRest::JSONable
# @return [String] Name of the campaign.
attr_accessor :name
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb
index 35fb98c680..96dcc8cabb 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignLocalization
include MsRestAzure
- include MsRest::JSONable
# @return [String] Title of the notification. This field supports appInfo
# markers.
attr_accessor :notification_title
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_parameters.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_parameters.rb
index 1a5045f083..2a2c1798da 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_parameters.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignPushParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Device identifiers to push as a JSON array of
# strings. Note that if you want to push the same campaign several times
# to the same device, you need to make several API calls.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_result.rb
index 246c2c672f..cfcd7baef7 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_push_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignPushResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A JSON array containing all identifiers that
# have been rejected. A device can be rejected for the following reasons:
# * The device hasn’t reported any session yet. * The device is over
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_result.rb
index 3aaaebbacc..b52fabdc07 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignResult < Campaign
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Campaign identifier.
attr_accessor :id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state.rb
index 1690c3ee80..e9ea462e53 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignState
include MsRestAzure
- include MsRest::JSONable
# @return [CampaignStates] State of the campaign, or 'queued' when
# testing a campaign. Possible values include: 'draft', 'scheduled',
# 'in-progress', 'finished', 'queued'
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state_result.rb
index 15c9e03f73..3aa986da11 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_state_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignStateResult < CampaignState
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Campaign identifier.
attr_accessor :id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_states.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_states.rb
index 4d1f1944b8..08ffa4a5e6 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_states.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_states.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_statistics_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_statistics_result.rb
index f5320124a1..ea176da577 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_statistics_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_statistics_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignStatisticsResult
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Number of times the campaign was registered to be
# pushed.
attr_accessor :queued
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_new_parameters.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_new_parameters.rb
index 054bd72ad4..909ac15e29 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_new_parameters.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_new_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignTestNewParameters < CampaignTestSavedParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Campaign]
attr_accessor :data
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_saved_parameters.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_saved_parameters.rb
index 45010ef607..3e9482c5d1 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_saved_parameters.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_test_saved_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class CampaignTestSavedParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] Device identifier (as returned by the SDK).
attr_accessor :device_id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_type.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_type.rb
index 5ab83b4afe..972798bcc6 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_type.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_types.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_types.rb
index 2d6c24ae6c..63e2610f4f 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_types.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaign_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaigns_list_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaigns_list_result.rb
index 217f9bec4e..58319874f9 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaigns_list_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/campaigns_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb
index 57beddb137..60bbc02a18 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/carrier_country_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CarrierCountryCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "carrier-country"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/carrier_name_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/carrier_name_criterion.rb
index 204cc28da7..e442b7eee6 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/carrier_name_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/carrier_name_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class CarrierNameCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "carrier-name"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/criterion.rb
index 1c7bcd66f2..70b4f2bd24 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class Criterion
include MsRestAzure
- include MsRest::JSONable
@@discriminatorMap = Hash.new
@@discriminatorMap["carrier-name"] = "CarrierNameCriterion"
@@discriminatorMap["carrier-country"] = "CarrierCountryCriterion"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/datapush_feedback_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/datapush_feedback_criterion.rb
index 53d048fa92..a0a0162a1f 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/datapush_feedback_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/datapush_feedback_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DatapushFeedbackCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "datapush-feedback"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/date_range_export_task_parameter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/date_range_export_task_parameter.rb
index f0cbb1991f..4a443133f9 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/date_range_export_task_parameter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/date_range_export_task_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class DateRangeExportTaskParameter
include MsRestAzure
- include MsRest::JSONable
# @return [String]
attr_accessor :container_url
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb
index e0b615b780..4304f19bb4 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/date_tag_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DateTagCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "date-tag"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/delivery_times.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/delivery_times.rb
index 45847d10ab..61d7f82f10 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/delivery_times.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/delivery_times.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device.rb
index f264d35111..70b937edc8 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class Device
include MsRestAzure
- include MsRest::JSONable
# @return [String] The device result.
attr_accessor :device_id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_info.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_info.rb
index a00a30862c..7578fb9c9a 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_info.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_info.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class DeviceInfo
include MsRestAzure
- include MsRest::JSONable
# @return [String] Phone model.
attr_accessor :phone_model
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb
index 940b27a5a7..b6de6fc830 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_location.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class DeviceLocation
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ISO 3166 two-letter country code.
attr_accessor :countrycode
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_manufacturer_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_manufacturer_criterion.rb
index 96bb73560a..85c796a62d 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_manufacturer_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_manufacturer_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DeviceManufacturerCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "device-manufacturer"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_meta.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_meta.rb
index 8ac2c19325..3539827ee6 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_meta.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_meta.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class DeviceMeta
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] First time the device used the application in
# milliseconds since January 1st, 1970 UTC.
attr_accessor :first_seen
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_model_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_model_criterion.rb
index 215fc6eb5a..7adc29989f 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_model_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_model_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DeviceModelCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "device-model"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_query_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_query_result.rb
index e8aea36b31..86e7cda293 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_query_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_query_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class DeviceQueryResult
include MsRestAzure
- include MsRest::JSONable
# @return [String] The device result.
attr_accessor :device_id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_parameters.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_parameters.rb
index 276c240c67..8051ec278d 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_parameters.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class DeviceTagsParameters
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => Hash{String => String}}] A JSON object
# describing the set of tags to record for a set of users. Each key is a
# device/user identifier, each value is itself a key/value set: the tags
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_result.rb
index b063cf65af..a0028e52c5 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/device_tags_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class DeviceTagsResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A JSON array containing all identifiers that
# have been rejected. Please note that if the request parameters are
# valid but all the specified devices are rejected, the status code is
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/devices_query_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/devices_query_result.rb
index 1cb10a36c1..aeed3d1ef3 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/devices_query_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/devices_query_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_active_users_filter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_active_users_filter.rb
index b38fa7879e..eed7431b53 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_active_users_filter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_active_users_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EngageActiveUsersFilter < Filter
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "engage-active-users"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_idle_users_filter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_idle_users_filter.rb
index cec3b300c9..1d7d3154de 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_idle_users_filter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_idle_users_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EngageIdleUsersFilter < Filter
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "engage-idle-users"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_new_users_filter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_new_users_filter.rb
index 2712e00b5a..187e187f82 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_new_users_filter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_new_users_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EngageNewUsersFilter < Filter
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "engage-new-users"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_old_users_filter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_old_users_filter.rb
index adeb8b84da..5e44bb258d 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_old_users_filter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_old_users_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EngageOldUsersFilter < Filter
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "engage-old-users"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_subset_filter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_subset_filter.rb
index c89533a69c..89995e54aa 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_subset_filter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/engage_subset_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EngageSubsetFilter < Filter
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "engage-subset"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_format.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_format.rb
index 3939e9413e..b84760c705 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_format.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_format.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_options.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_options.rb
index 7c28a86ca6..8ce50da86e 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_options.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_options.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExportOptions
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean]
attr_accessor :export_user_id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_state.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_state.rb
index a5b2cb4f44..890b1f5e7b 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_state.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_list_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_list_result.rb
index f947456e20..bdcb135e15 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_list_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_parameter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_parameter.rb
index 43e3802339..00664251f0 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_parameter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ExportTaskParameter
include MsRestAzure
- include MsRest::JSONable
# @return [String]
attr_accessor :container_url
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_result.rb
index b291953984..50ad9e0617 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_task_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ExportTaskResult
include MsRestAzure
- include MsRest::JSONable
# @return [String] Unique identifier of the export task.
attr_accessor :id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_type.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_type.rb
index edd2996e88..1579a21e7c 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_type.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/export_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb
index 94005ef563..92bb3ae224 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_campaign_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class FeedbackByCampaignParameter
include MsRestAzure
- include MsRest::JSONable
# @return [String]
attr_accessor :container_url
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_date_range_parameter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_date_range_parameter.rb
index e14363f3bf..218a8eeacb 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_date_range_parameter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/feedback_by_date_range_parameter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class FeedbackByDateRangeParameter
include MsRestAzure
- include MsRest::JSONable
# @return [String]
attr_accessor :container_url
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/filter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/filter.rb
index f81e3b4d1f..049e7daab7 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/filter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class Filter
include MsRestAzure
- include MsRest::JSONable
@@discriminatorMap = Hash.new
@@discriminatorMap["engage-subset"] = "EngageSubsetFilter"
@@discriminatorMap["engage-old-users"] = "EngageOldUsersFilter"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/firmware_version_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/firmware_version_criterion.rb
index d80a637ac5..de3aa55088 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/firmware_version_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/firmware_version_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class FirmwareVersionCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "firmware-version"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/geo_fencing_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/geo_fencing_criterion.rb
index c6bdb099b9..ba774cd940 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/geo_fencing_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/geo_fencing_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -16,7 +16,6 @@ class GeoFencingCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "geo-fencing"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task.rb
index 79fe5f3928..df4f51ec69 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ImportTask
include MsRestAzure
- include MsRest::JSONable
# @return [String] A shared Access Signature (SAS) Storage URI where the
# job results will be retrieved from.
attr_accessor :storage_url
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task_list_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task_list_result.rb
index 4f5f32df73..d296688c54 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task_list_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task_result.rb
index 1d0d23b298..27e3669ecd 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/import_task_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ImportTaskResult < ImportTask
include MsRestAzure
- include MsRest::JSONable
# @return [String] Unique identifier of the import task.
attr_accessor :id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/integer_tag_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/integer_tag_criterion.rb
index bb71a62738..fe8ee7e7df 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/integer_tag_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/integer_tag_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IntegerTagCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "integer-tag"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/job_states.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/job_states.rb
index 453506e7c8..61be6ce698 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/job_states.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/job_states.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/language_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/language_criterion.rb
index 000cf4ced0..2f2246a685 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/language_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/language_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LanguageCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "language"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb
index 5b38fd6651..578c9aff0c 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/location_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LocationCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "location"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/native_push_enabled_filter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/native_push_enabled_filter.rb
index 4220eef6e6..09a8545b4c 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/native_push_enabled_filter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/native_push_enabled_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NativePushEnabledFilter < Filter
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "native-push-enabled"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/network_type_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/network_type_criterion.rb
index 6694f277ed..a8d2668d03 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/network_type_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/network_type_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NetworkTypeCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "network-type"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/notification_options.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/notification_options.rb
index 4b0d3cec9f..f8c423dc13 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/notification_options.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/notification_options.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class NotificationOptions
include MsRestAzure
- include MsRest::JSONable
# @return [String] Android 4.1+ only. Multi line message shown in
# expanded notifications on Android 4.1+ devices. The `notificationType`
# property must be set to `system`.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/notification_types.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/notification_types.rb
index 1b902c7f34..08bf7f29be 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/notification_types.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/notification_types.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb
index 210af6abca..9355a2b1d6 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_answer_feedback_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PollAnswerFeedbackCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "poll-answer-feedback"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_feedback_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_feedback_criterion.rb
index 13c88eb5ae..ff401b5edf 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_feedback_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_feedback_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PollFeedbackCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "poll-feedback"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question.rb
index 8117361430..d2c383a52f 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class PollQuestion < PollQuestionLocalization
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Unique identifier of the question.
attr_accessor :id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice.rb
index bddde84683..8784d42962 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class PollQuestionChoice < PollQuestionChoiceLocalization
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Unique identifier of the choice.
attr_accessor :id
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice_localization.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice_localization.rb
index 19688050b9..aedc13159b 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice_localization.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_choice_localization.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class PollQuestionChoiceLocalization
include MsRestAzure
- include MsRest::JSONable
# @return [String] Title of the choice.
attr_accessor :title
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_localization.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_localization.rb
index 7f846d473e..c1edcaf2ef 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_localization.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/poll_question_localization.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class PollQuestionLocalization
include MsRestAzure
- include MsRest::JSONable
# @return [String] Title of the question.
attr_accessor :title
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/provisioning_states.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/provisioning_states.rb
index 8564feb429..4a32c5f37a 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/provisioning_states.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/provisioning_states.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/push_modes.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/push_modes.rb
index ee79dbb563..a7989b01d6 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/push_modes.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/push_modes.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/push_quota_filter.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/push_quota_filter.rb
index 4cdc0b4c84..e0b70a43aa 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/push_quota_filter.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/push_quota_filter.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class PushQuotaFilter < Filter
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "push-quota"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/resource.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/resource.rb
new file mode 100644
index 0000000000..6e415c3271
--- /dev/null
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/resource.rb
@@ -0,0 +1,95 @@
+# 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::ARM::MobileEngagement
+ module Models
+ #
+ # Model object.
+ #
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] Resource Id
+ attr_accessor :id
+
+ # @return [String] Resource name
+ attr_accessor :name
+
+ # @return [String] Resource type
+ attr_accessor :type
+
+ # @return [String] Resource location
+ attr_accessor :location
+
+ # @return [Hash{String => String}] Resource tags
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/screen_size_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/screen_size_criterion.rb
index 668d41b8f2..678c7c6e9f 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/screen_size_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/screen_size_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ScreenSizeCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "screen-size"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb
index c77c8566a1..ae442bf709 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/segment_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SegmentCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "segment"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/string_tag_criterion.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/string_tag_criterion.rb
index f5eff36a67..9d323d5a82 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/string_tag_criterion.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/string_tag_criterion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class StringTagCriterion < Criterion
include MsRestAzure
- include MsRest::JSONable
def initialize
@type = "string-tag"
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/supported_platforms_list_result.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/supported_platforms_list_result.rb
index c6a8776e70..2d10f3b26f 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/supported_platforms_list_result.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/models/supported_platforms_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class SupportedPlatformsListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] List of supported platforms.
attr_accessor :platforms
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/module_definition.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/module_definition.rb
index e28e069839..99b169fe8e 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/module_definition.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/supported_platforms.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/supported_platforms.rb
index dc99c08360..368cb59a39 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/supported_platforms.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/supported_platforms.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/version.rb b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/version.rb
index 4723191c32..53872b87ee 100644
--- a/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/version.rb
+++ b/management/azure_mgmt_mobile_engagement/lib/generated/azure_mgmt_mobile_engagement/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::MobileEngagement
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_monitor/azure_mgmt_monitor.gemspec b/management/azure_mgmt_monitor/azure_mgmt_monitor.gemspec
index b9a0d7a218..016b7f738b 100644
--- a/management/azure_mgmt_monitor/azure_mgmt_monitor.gemspec
+++ b/management/azure_mgmt_monitor/azure_mgmt_monitor.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor.rb
index e85fa25eb1..9928f9b196 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -21,55 +21,63 @@
module Azure::ARM::Monitor
autoload :AutoscaleSettings, 'generated/azure_mgmt_monitor/autoscale_settings.rb'
+ autoload :Operations, 'generated/azure_mgmt_monitor/operations.rb'
autoload :AlertRuleIncidents, 'generated/azure_mgmt_monitor/alert_rule_incidents.rb'
autoload :AlertRules, 'generated/azure_mgmt_monitor/alert_rules.rb'
autoload :LogProfiles, 'generated/azure_mgmt_monitor/log_profiles.rb'
- autoload :ServiceDiagnosticSettingsOperations, 'generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb'
+ autoload :DiagnosticSettingsOperations, 'generated/azure_mgmt_monitor/diagnostic_settings_operations.rb'
+ autoload :DiagnosticSettingsCategoryOperations, 'generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb'
autoload :ActionGroups, 'generated/azure_mgmt_monitor/action_groups.rb'
autoload :ActivityLogAlerts, 'generated/azure_mgmt_monitor/activity_log_alerts.rb'
autoload :MonitorManagementClient, 'generated/azure_mgmt_monitor/monitor_management_client.rb'
module Models
autoload :RuleAction, 'generated/azure_mgmt_monitor/models/rule_action.rb'
- autoload :ActionGroupList, 'generated/azure_mgmt_monitor/models/action_group_list.rb'
+ autoload :Resource, 'generated/azure_mgmt_monitor/models/resource.rb'
+ autoload :WebhookReceiver, 'generated/azure_mgmt_monitor/models/webhook_receiver.rb'
autoload :MetricTrigger, 'generated/azure_mgmt_monitor/models/metric_trigger.rb'
autoload :ActivityLogAlertLeafCondition, 'generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb'
autoload :ScaleRule, 'generated/azure_mgmt_monitor/models/scale_rule.rb'
- autoload :ManagementEventAggregationCondition, 'generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb'
- autoload :RecurrentSchedule, 'generated/azure_mgmt_monitor/models/recurrent_schedule.rb'
autoload :EnableRequest, 'generated/azure_mgmt_monitor/models/enable_request.rb'
+ autoload :RecurrentSchedule, 'generated/azure_mgmt_monitor/models/recurrent_schedule.rb'
+ autoload :ManagementEventAggregationCondition, 'generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb'
autoload :AutoscaleProfile, 'generated/azure_mgmt_monitor/models/autoscale_profile.rb'
- autoload :ScaleCapacity, 'generated/azure_mgmt_monitor/models/scale_capacity.rb'
+ autoload :ActionGroupList, 'generated/azure_mgmt_monitor/models/action_group_list.rb'
autoload :WebhookNotification, 'generated/azure_mgmt_monitor/models/webhook_notification.rb'
+ autoload :ScaleCapacity, 'generated/azure_mgmt_monitor/models/scale_capacity.rb'
autoload :AutoscaleNotification, 'generated/azure_mgmt_monitor/models/autoscale_notification.rb'
- autoload :AutoscaleSettingResourcePatch, 'generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb'
- autoload :SmsReceiver, 'generated/azure_mgmt_monitor/models/sms_receiver.rb'
- autoload :ErrorResponse, 'generated/azure_mgmt_monitor/models/error_response.rb'
+ autoload :EmailReceiver, 'generated/azure_mgmt_monitor/models/email_receiver.rb'
+ autoload :AutoscaleSettingResourceCollection, 'generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb'
+ autoload :OperationDisplay, 'generated/azure_mgmt_monitor/models/operation_display.rb'
autoload :ActivityLogAlertPatchBody, 'generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb'
- autoload :IncidentListResult, 'generated/azure_mgmt_monitor/models/incident_list_result.rb'
+ autoload :OperationListResult, 'generated/azure_mgmt_monitor/models/operation_list_result.rb'
autoload :ActivityLogAlertList, 'generated/azure_mgmt_monitor/models/activity_log_alert_list.rb'
- autoload :RuleCondition, 'generated/azure_mgmt_monitor/models/rule_condition.rb'
+ autoload :IncidentListResult, 'generated/azure_mgmt_monitor/models/incident_list_result.rb'
autoload :AlertRuleResourcePatch, 'generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb'
- autoload :RuleManagementEventClaimsDataSource, 'generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb'
+ autoload :RuleCondition, 'generated/azure_mgmt_monitor/models/rule_condition.rb'
autoload :AlertRuleResourceCollection, 'generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb'
- autoload :ScaleAction, 'generated/azure_mgmt_monitor/models/scale_action.rb'
+ autoload :RuleManagementEventClaimsDataSource, 'generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb'
autoload :RetentionPolicy, 'generated/azure_mgmt_monitor/models/retention_policy.rb'
- autoload :Recurrence, 'generated/azure_mgmt_monitor/models/recurrence.rb'
+ autoload :TimeWindow, 'generated/azure_mgmt_monitor/models/time_window.rb'
autoload :ActivityLogAlertActionList, 'generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb'
- autoload :AutoscaleSettingResourceCollection, 'generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb'
+ autoload :EmailNotification, 'generated/azure_mgmt_monitor/models/email_notification.rb'
autoload :LogProfileResourcePatch, 'generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb'
- autoload :RuleDataSource, 'generated/azure_mgmt_monitor/models/rule_data_source.rb'
+ autoload :ErrorResponse, 'generated/azure_mgmt_monitor/models/error_response.rb'
autoload :LogProfileCollection, 'generated/azure_mgmt_monitor/models/log_profile_collection.rb'
- autoload :WebhookReceiver, 'generated/azure_mgmt_monitor/models/webhook_receiver.rb'
+ autoload :Incident, 'generated/azure_mgmt_monitor/models/incident.rb'
+ autoload :ProxyOnlyResource, 'generated/azure_mgmt_monitor/models/proxy_only_resource.rb'
+ autoload :SmsReceiver, 'generated/azure_mgmt_monitor/models/sms_receiver.rb'
autoload :MetricSettings, 'generated/azure_mgmt_monitor/models/metric_settings.rb'
- autoload :EmailNotification, 'generated/azure_mgmt_monitor/models/email_notification.rb'
+ autoload :Recurrence, 'generated/azure_mgmt_monitor/models/recurrence.rb'
autoload :LogSettings, 'generated/azure_mgmt_monitor/models/log_settings.rb'
- autoload :ActivityLogAlertAllOfCondition, 'generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb'
+ autoload :Operation, 'generated/azure_mgmt_monitor/models/operation.rb'
autoload :ActivityLogAlertActionGroup, 'generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb'
- autoload :Incident, 'generated/azure_mgmt_monitor/models/incident.rb'
- autoload :ServiceDiagnosticSettingsResourcePatch, 'generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb'
- autoload :TimeWindow, 'generated/azure_mgmt_monitor/models/time_window.rb'
- autoload :EmailReceiver, 'generated/azure_mgmt_monitor/models/email_receiver.rb'
+ autoload :ScaleAction, 'generated/azure_mgmt_monitor/models/scale_action.rb'
+ autoload :DiagnosticSettingsResourceCollection, 'generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb'
+ autoload :RuleDataSource, 'generated/azure_mgmt_monitor/models/rule_data_source.rb'
+ autoload :ActivityLogAlertAllOfCondition, 'generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb'
+ autoload :AutoscaleSettingResourcePatch, 'generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb'
+ autoload :DiagnosticSettingsCategoryResourceCollection, 'generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource_collection.rb'
autoload :AutoscaleSettingResource, 'generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb'
autoload :RuleMetricDataSource, 'generated/azure_mgmt_monitor/models/rule_metric_data_source.rb'
autoload :RuleManagementEventDataSource, 'generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb'
@@ -80,7 +88,8 @@ module Models
autoload :RuleWebhookAction, 'generated/azure_mgmt_monitor/models/rule_webhook_action.rb'
autoload :AlertRuleResource, 'generated/azure_mgmt_monitor/models/alert_rule_resource.rb'
autoload :LogProfileResource, 'generated/azure_mgmt_monitor/models/log_profile_resource.rb'
- autoload :ServiceDiagnosticSettingsResource, 'generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb'
+ autoload :DiagnosticSettingsResource, 'generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb'
+ autoload :DiagnosticSettingsCategoryResource, 'generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource.rb'
autoload :ActionGroupResource, 'generated/azure_mgmt_monitor/models/action_group_resource.rb'
autoload :ActivityLogAlertResource, 'generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb'
autoload :MetricStatisticType, 'generated/azure_mgmt_monitor/models/metric_statistic_type.rb'
@@ -91,6 +100,7 @@ module Models
autoload :RecurrenceFrequency, 'generated/azure_mgmt_monitor/models/recurrence_frequency.rb'
autoload :ConditionOperator, 'generated/azure_mgmt_monitor/models/condition_operator.rb'
autoload :TimeAggregationOperator, 'generated/azure_mgmt_monitor/models/time_aggregation_operator.rb'
+ autoload :CategoryType, 'generated/azure_mgmt_monitor/models/category_type.rb'
autoload :ReceiverStatus, 'generated/azure_mgmt_monitor/models/receiver_status.rb'
end
end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/action_groups.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/action_groups.rb
index 97be70a3ea..1cd2cd2e9a 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/action_groups.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/action_groups.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -107,7 +107,7 @@ def create_or_update_async(resource_group_name, action_group_name, action_group,
response_content = http_response.body
unless status_code == 200 || status_code == 201
error_model = JSON.load(response_content)
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -206,9 +206,9 @@ def get_async(resource_group_name, action_group_name, custom_headers = nil)
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 200 || status_code == 404
+ unless status_code == 200
error_model = JSON.load(response_content)
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -298,7 +298,7 @@ def delete_async(resource_group_name, action_group_name, custom_headers = nil)
response_content = http_response.body
unless status_code == 200 || status_code == 204
error_model = JSON.load(response_content)
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -371,7 +371,7 @@ def list_by_subscription_id_async(custom_headers = nil)
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -458,7 +458,7 @@ def list_by_resource_group_async(resource_group_name, custom_headers = nil)
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -562,9 +562,9 @@ def enable_receiver_async(resource_group_name, action_group_name, enable_request
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 200 || status_code == 409 || status_code == 404
+ unless status_code == 200 || status_code == 409
error_model = JSON.load(response_content)
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/activity_log_alerts.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/activity_log_alerts.rb
index b688694f74..60c0bd052c 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/activity_log_alerts.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/activity_log_alerts.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/alert_rule_incidents.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/alert_rule_incidents.rb
index 1c681d2935..75d1028a67 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/alert_rule_incidents.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/alert_rule_incidents.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/alert_rules.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/alert_rules.rb
index c175559b08..1f34fbb98c 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/alert_rules.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/alert_rules.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -396,7 +396,7 @@ def update_async(resource_group_name, rule_name, alert_rules_resource, custom_he
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 200
+ unless status_code == 200 || status_code == 201
error_model = JSON.load(response_content)
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
@@ -412,6 +412,16 @@ def update_async(resource_group_name, rule_name, alert_rules_resource, custom_he
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
end
end
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Monitor::Models::AlertRuleResource.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
result
end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/autoscale_settings.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/autoscale_settings.rb
index 4531e78892..416334302c 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/autoscale_settings.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/autoscale_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb
new file mode 100644
index 0000000000..39970f847a
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb
@@ -0,0 +1,201 @@
+# 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::ARM::Monitor
+ #
+ # Monitor Management Client
+ #
+ class DiagnosticSettingsCategoryOperations
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the DiagnosticSettingsCategoryOperations class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [MonitorManagementClient] reference to the MonitorManagementClient
+ attr_reader :client
+
+ #
+ # Gets the diagnostic settings category for the specified resource.
+ #
+ # @param resource_uri [String] The identifier of the resource.
+ # @param name [String] The name of the diagnostic setting.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [DiagnosticSettingsCategoryResource] operation results.
+ #
+ def get(resource_uri, name, custom_headers = nil)
+ response = get_async(resource_uri, name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the diagnostic settings category for the specified resource.
+ #
+ # @param resource_uri [String] The identifier of the resource.
+ # @param name [String] The name of the diagnostic setting.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_uri, name, custom_headers = nil)
+ get_async(resource_uri, name, custom_headers).value!
+ end
+
+ #
+ # Gets the diagnostic settings category for the specified resource.
+ #
+ # @param resource_uri [String] The identifier of the resource.
+ # @param name [String] The name of the diagnostic setting.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_uri, name, custom_headers = nil)
+ fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
+ api_version = '2017-05-01-preview'
+ fail ArgumentError, 'name is nil' if name.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{resourceUri}/providers/microsoft.insights/diagnosticSettingsCategories/{name}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceUri' => resource_uri,'name' => name},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Monitor::Models::DiagnosticSettingsCategoryResource.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Lists the diagnostic settings categories for the specified resource.
+ #
+ # @param resource_uri [String] The identifier of the resource.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [DiagnosticSettingsCategoryResourceCollection] operation results.
+ #
+ def list(resource_uri, custom_headers = nil)
+ response = list_async(resource_uri, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists the diagnostic settings categories for the specified resource.
+ #
+ # @param resource_uri [String] The identifier of the resource.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_uri, custom_headers = nil)
+ list_async(resource_uri, custom_headers).value!
+ end
+
+ #
+ # Lists the diagnostic settings categories for the specified resource.
+ #
+ # @param resource_uri [String] The identifier of the resource.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_uri, custom_headers = nil)
+ fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
+ api_version = '2017-05-01-preview'
+
+
+ request_headers = {}
+
+ # 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 = '{resourceUri}/providers/microsoft.insights/diagnosticSettingsCategories'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceUri' => resource_uri},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Monitor::Models::DiagnosticSettingsCategoryResourceCollection.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb
similarity index 58%
rename from management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb
rename to management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb
index cf7b4d1787..74e9b85535 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -7,11 +7,11 @@ module Azure::ARM::Monitor
#
# Monitor Management Client
#
- class ServiceDiagnosticSettingsOperations
+ class DiagnosticSettingsOperations
include MsRestAzure
#
- # Creates and initializes a new instance of the ServiceDiagnosticSettingsOperations class.
+ # Creates and initializes a new instance of the DiagnosticSettingsOperations class.
# @param client service class for accessing basic functionality.
#
def initialize(client)
@@ -22,47 +22,48 @@ def initialize(client)
attr_reader :client
#
- # Gets the active diagnostic settings for the specified resource. **WARNING**:
- # This method will be deprecated in future releases.
+ # Gets the active diagnostic settings for the specified resource.
#
# @param resource_uri [String] The identifier of the resource.
+ # @param name [String] The name of the diagnostic setting.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [ServiceDiagnosticSettingsResource] operation results.
+ # @return [DiagnosticSettingsResource] operation results.
#
- def get(resource_uri, custom_headers = nil)
- response = get_async(resource_uri, custom_headers).value!
+ def get(resource_uri, name, custom_headers = nil)
+ response = get_async(resource_uri, name, custom_headers).value!
response.body unless response.nil?
end
#
- # Gets the active diagnostic settings for the specified resource. **WARNING**:
- # This method will be deprecated in future releases.
+ # Gets the active diagnostic settings for the specified resource.
#
# @param resource_uri [String] The identifier of the resource.
+ # @param name [String] The name of the diagnostic setting.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def get_with_http_info(resource_uri, custom_headers = nil)
- get_async(resource_uri, custom_headers).value!
+ def get_with_http_info(resource_uri, name, custom_headers = nil)
+ get_async(resource_uri, name, custom_headers).value!
end
#
- # Gets the active diagnostic settings for the specified resource. **WARNING**:
- # This method will be deprecated in future releases.
+ # Gets the active diagnostic settings for the specified resource.
#
# @param resource_uri [String] The identifier of the resource.
+ # @param name [String] The name of the diagnostic setting.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def get_async(resource_uri, custom_headers = nil)
+ def get_async(resource_uri, name, custom_headers = nil)
fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
- api_version = '2016-09-01'
+ api_version = '2017-05-01-preview'
+ fail ArgumentError, 'name is nil' if name.nil?
request_headers = {}
@@ -70,13 +71,13 @@ def get_async(resource_uri, custom_headers = nil)
# 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 = '{resourceUri}/providers/microsoft.insights/diagnosticSettings/service'
+ path_template = '{resourceUri}/providers/microsoft.insights/diagnosticSettings/{name}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'resourceUri' => resource_uri},
+ path_params: {'resourceUri' => resource_uri,'name' => name},
query_params: {'api-version' => api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
@@ -97,7 +98,7 @@ def get_async(resource_uri, custom_headers = nil)
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::Monitor::Models::ServiceDiagnosticSettingsResource.mapper()
+ result_mapper = Azure::ARM::Monitor::Models::DiagnosticSettingsResource.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -111,54 +112,55 @@ def get_async(resource_uri, custom_headers = nil)
end
#
- # Create or update new diagnostic settings for the specified resource.
- # **WARNING**: This method will be deprecated in future releases.
+ # Creates or updates diagnostic settings for the specified resource.
#
# @param resource_uri [String] The identifier of the resource.
- # @param parameters [ServiceDiagnosticSettingsResource] Parameters supplied to
- # the operation.
+ # @param parameters [DiagnosticSettingsResource] Parameters supplied to the
+ # operation.
+ # @param name [String] The name of the diagnostic setting.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [ServiceDiagnosticSettingsResource] operation results.
+ # @return [DiagnosticSettingsResource] operation results.
#
- def create_or_update(resource_uri, parameters, custom_headers = nil)
- response = create_or_update_async(resource_uri, parameters, custom_headers).value!
+ def create_or_update(resource_uri, parameters, name, custom_headers = nil)
+ response = create_or_update_async(resource_uri, parameters, name, custom_headers).value!
response.body unless response.nil?
end
#
- # Create or update new diagnostic settings for the specified resource.
- # **WARNING**: This method will be deprecated in future releases.
+ # Creates or updates diagnostic settings for the specified resource.
#
# @param resource_uri [String] The identifier of the resource.
- # @param parameters [ServiceDiagnosticSettingsResource] Parameters supplied to
- # the operation.
+ # @param parameters [DiagnosticSettingsResource] Parameters supplied to the
+ # operation.
+ # @param name [String] The name of the diagnostic setting.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def create_or_update_with_http_info(resource_uri, parameters, custom_headers = nil)
- create_or_update_async(resource_uri, parameters, custom_headers).value!
+ def create_or_update_with_http_info(resource_uri, parameters, name, custom_headers = nil)
+ create_or_update_async(resource_uri, parameters, name, custom_headers).value!
end
#
- # Create or update new diagnostic settings for the specified resource.
- # **WARNING**: This method will be deprecated in future releases.
+ # Creates or updates diagnostic settings for the specified resource.
#
# @param resource_uri [String] The identifier of the resource.
- # @param parameters [ServiceDiagnosticSettingsResource] Parameters supplied to
- # the operation.
+ # @param parameters [DiagnosticSettingsResource] Parameters supplied to the
+ # operation.
+ # @param name [String] The name of the diagnostic setting.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def create_or_update_async(resource_uri, parameters, custom_headers = nil)
+ def create_or_update_async(resource_uri, parameters, name, custom_headers = nil)
fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
- api_version = '2016-09-01'
+ api_version = '2017-05-01-preview'
fail ArgumentError, 'parameters is nil' if parameters.nil?
+ fail ArgumentError, 'name is nil' if name.nil?
request_headers = {}
@@ -170,17 +172,17 @@ def create_or_update_async(resource_uri, parameters, custom_headers = nil)
request_headers['Content-Type'] = 'application/json; charset=utf-8'
# Serialize Request
- request_mapper = Azure::ARM::Monitor::Models::ServiceDiagnosticSettingsResource.mapper()
+ request_mapper = Azure::ARM::Monitor::Models::DiagnosticSettingsResource.mapper()
request_content = @client.serialize(request_mapper, parameters)
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
- path_template = '{resourceUri}/providers/microsoft.insights/diagnosticSettings/service'
+ path_template = '{resourceUri}/providers/microsoft.insights/diagnosticSettings/{name}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'resourceUri' => resource_uri},
+ path_params: {'resourceUri' => resource_uri,'name' => name},
query_params: {'api-version' => api_version},
body: request_content,
headers: request_headers.merge(custom_headers || {}),
@@ -194,7 +196,7 @@ def create_or_update_async(resource_uri, parameters, custom_headers = nil)
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
- fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -202,7 +204,7 @@ def create_or_update_async(resource_uri, parameters, custom_headers = nil)
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::Monitor::Models::ServiceDiagnosticSettingsResource.mapper()
+ result_mapper = Azure::ARM::Monitor::Models::DiagnosticSettingsResource.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -216,60 +218,47 @@ def create_or_update_async(resource_uri, parameters, custom_headers = nil)
end
#
- # Updates an existing ServiceDiagnosticSettingsResource. To update other fields
- # use the CreateOrUpdate method. **WARNING**: This method will be deprecated in
- # future releases.
+ # Deletes existing diagnostic settings for the specified resource.
#
# @param resource_uri [String] The identifier of the resource.
- # @param service_diagnostic_settings_resource
- # [ServiceDiagnosticSettingsResourcePatch] Parameters supplied to the
- # operation.
+ # @param name [String] The name of the diagnostic setting.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [ServiceDiagnosticSettingsResource] operation results.
#
- def update(resource_uri, service_diagnostic_settings_resource, custom_headers = nil)
- response = update_async(resource_uri, service_diagnostic_settings_resource, custom_headers).value!
- response.body unless response.nil?
+ def delete(resource_uri, name, custom_headers = nil)
+ response = delete_async(resource_uri, name, custom_headers).value!
+ nil
end
#
- # Updates an existing ServiceDiagnosticSettingsResource. To update other fields
- # use the CreateOrUpdate method. **WARNING**: This method will be deprecated in
- # future releases.
+ # Deletes existing diagnostic settings for the specified resource.
#
# @param resource_uri [String] The identifier of the resource.
- # @param service_diagnostic_settings_resource
- # [ServiceDiagnosticSettingsResourcePatch] Parameters supplied to the
- # operation.
+ # @param name [String] The name of the diagnostic setting.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def update_with_http_info(resource_uri, service_diagnostic_settings_resource, custom_headers = nil)
- update_async(resource_uri, service_diagnostic_settings_resource, custom_headers).value!
+ def delete_with_http_info(resource_uri, name, custom_headers = nil)
+ delete_async(resource_uri, name, custom_headers).value!
end
#
- # Updates an existing ServiceDiagnosticSettingsResource. To update other fields
- # use the CreateOrUpdate method. **WARNING**: This method will be deprecated in
- # future releases.
+ # Deletes existing diagnostic settings for the specified resource.
#
# @param resource_uri [String] The identifier of the resource.
- # @param service_diagnostic_settings_resource
- # [ServiceDiagnosticSettingsResourcePatch] Parameters supplied to the
- # operation.
+ # @param name [String] The name of the diagnostic setting.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def update_async(resource_uri, service_diagnostic_settings_resource, custom_headers = nil)
+ def delete_async(resource_uri, name, custom_headers = nil)
fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
- api_version = '2016-09-01'
- fail ArgumentError, 'service_diagnostic_settings_resource is nil' if service_diagnostic_settings_resource.nil?
+ api_version = '2017-05-01-preview'
+ fail ArgumentError, 'name is nil' if name.nil?
request_headers = {}
@@ -277,15 +266,83 @@ def update_async(resource_uri, service_diagnostic_settings_resource, custom_head
# 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 = '{resourceUri}/providers/microsoft.insights/diagnosticSettings/{name}'
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
+ request_url = @base_url || @client.base_url
- # Serialize Request
- request_mapper = Azure::ARM::Monitor::Models::ServiceDiagnosticSettingsResourcePatch.mapper()
- request_content = @client.serialize(request_mapper, service_diagnostic_settings_resource)
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceUri' => resource_uri,'name' => name},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:delete, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200 || status_code == 204
+ error_model = JSON.load(response_content)
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets the active diagnostic settings list for the specified resource.
+ #
+ # @param resource_uri [String] The identifier of the resource.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [DiagnosticSettingsResourceCollection] operation results.
+ #
+ def list(resource_uri, custom_headers = nil)
+ response = list_async(resource_uri, custom_headers).value!
+ response.body unless response.nil?
+ end
- path_template = '{resourceUri}/providers/microsoft.insights/diagnosticSettings/service'
+ #
+ # Gets the active diagnostic settings list for the specified resource.
+ #
+ # @param resource_uri [String] The identifier of the resource.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_uri, custom_headers = nil)
+ list_async(resource_uri, custom_headers).value!
+ end
+
+ #
+ # Gets the active diagnostic settings list for the specified resource.
+ #
+ # @param resource_uri [String] The identifier of the resource.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_uri, custom_headers = nil)
+ fail ArgumentError, 'resource_uri is nil' if resource_uri.nil?
+ api_version = '2017-05-01-preview'
+
+
+ request_headers = {}
+
+ # 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 = '{resourceUri}/providers/microsoft.insights/diagnosticSettings'
request_url = @base_url || @client.base_url
@@ -293,11 +350,10 @@ def update_async(resource_uri, service_diagnostic_settings_resource, custom_head
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
path_params: {'resourceUri' => resource_uri},
query_params: {'api-version' => api_version},
- body: request_content,
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
- promise = @client.make_request_async(:patch, path_template, options)
+ promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
@@ -313,7 +369,7 @@ def update_async(resource_uri, service_diagnostic_settings_resource, custom_head
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::Monitor::Models::ServiceDiagnosticSettingsResource.mapper()
+ result_mapper = Azure::ARM::Monitor::Models::DiagnosticSettingsResourceCollection.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/log_profiles.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/log_profiles.rb
index d2f79adfc5..15bb10b47f 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/log_profiles.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/log_profiles.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/action_group_list.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/action_group_list.rb
index 68a6c82914..d09036fd8e 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/action_group_list.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/action_group_list.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,11 +12,11 @@ class ActionGroupList
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of action groups.
attr_accessor :value
- # @return [String] Provides the link to retrive the next set of elements.
+ # @return [String] Provides the link to retrieve the next set of
+ # elements.
attr_accessor :next_link
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/action_group_resource.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/action_group_resource.rb
index d5981e4f63..ac0c46a6c8 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/action_group_resource.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/action_group_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,17 +8,16 @@ module Models
#
# An action group resource.
#
- class ActionGroupResource < MsRestAzure::Resource
+ class ActionGroupResource < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The short name of the action group. This will be used
# in SMS messages.
attr_accessor :group_short_name
# @return [Boolean] Indicates whether this action group is enabled. If an
- # action group is not enabled, then none of its receviers will receive
+ # action group is not enabled, then none of its receivers will receive
# communications. Default value: true .
attr_accessor :enabled
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb
index 15c84b54e3..8f196ef53c 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ActivityLogAlertActionGroup
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resourceId of the action group. This cannot be
# null or empty.
attr_accessor :action_group_id
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb
index 5f0bde34ff..b7b42ea75c 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ActivityLogAlertActionList
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of activity log
# alerts.
attr_accessor :action_groups
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb
index c6a0ab1185..4254b7fc82 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ActivityLogAlertAllOfCondition
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of activity log
# alert conditions.
attr_accessor :all_of
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb
index 3ab6a88395..03bbd657e1 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ActivityLogAlertLeafCondition
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the field that this condition will
# examine. The possible values for this field are (case-insensitive):
# 'resourceId', 'category', 'caller', 'level', 'operationName',
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb
index 671bbfc1fb..fbe57ed1e8 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,12 +12,12 @@ class ActivityLogAlertList
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of activity log
# alerts.
attr_accessor :value
- # @return [String] Provides the link to retrive the next set of elements.
+ # @return [String] Provides the link to retrieve the next set of
+ # elements.
attr_accessor :next_link
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb
index b9c4b0a4df..cde6565b85 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ActivityLogAlertPatchBody
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] Resource tags
attr_accessor :tags
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb
index 281fb3e2c7..85b8c85fe5 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# An activity log alert resource.
#
- class ActivityLogAlertResource < MsRestAzure::Resource
+ class ActivityLogAlertResource < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A list of resourceIds that will be used as
# prefixes. The alert will only apply to activityLogs with resourceIds
# that fall under one of these prefixes. This list must include at least
@@ -24,7 +23,7 @@ class ActivityLogAlertResource < MsRestAzure::Resource
# be activated. Default value: true .
attr_accessor :enabled
- # @return [ActivityLogAlertAllOfCondition] The conditon that will cause
+ # @return [ActivityLogAlertAllOfCondition] The condition that will cause
# this alert to activate.
attr_accessor :condition
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource.rb
index 9b19b3337f..f679617b3f 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The alert rule resource.
#
- class AlertRuleResource < MsRestAzure::Resource
+ class AlertRuleResource < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] the name of the alert rule.
attr_accessor :alert_rule_resource_name
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb
index 10c2069674..1de14e1661 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AlertRuleResourceCollection
include MsRestAzure
- include MsRest::JSONable
# @return [Array] the values for the alert rule
# resources.
attr_accessor :value
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb
index 7c7bda5646..5a2b085362 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AlertRuleResourcePatch
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] Resource tags
attr_accessor :tags
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb
index 6fb3baff00..28dd1b3e7a 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AutoscaleNotification
include MsRestAzure
- include MsRest::JSONable
# @return [String] the operation associated with the notification and its
# value must be "scale". Default value: 'Scale' .
attr_accessor :operation
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb
index 68ff85e122..a9a3b9147f 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AutoscaleProfile
include MsRestAzure
- include MsRest::JSONable
# @return [String] the name of the profile.
attr_accessor :name
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb
index a777ad9928..e93aa3fd9c 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The autoscale setting resource.
#
- class AutoscaleSettingResource < MsRestAzure::Resource
+ class AutoscaleSettingResource < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] the collection of automatic scaling
# profiles that specify different scaling parameters for different time
# periods. A maximum of 20 profiles can be specified.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb
index 7f352899ac..3c830eed70 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb
index 2a1e8ba631..cd4053417f 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class AutoscaleSettingResourcePatch
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] Resource tags
attr_accessor :tags
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/category_type.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/category_type.rb
new file mode 100644
index 0000000000..9c04554d4c
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/category_type.rb
@@ -0,0 +1,16 @@
+# 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::ARM::Monitor
+ module Models
+ #
+ # Defines values for CategoryType
+ #
+ module CategoryType
+ Metrics = "Metrics"
+ Logs = "Logs"
+ end
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/comparison_operation_type.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/comparison_operation_type.rb
index dda351c607..b013c6a06a 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/comparison_operation_type.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/comparison_operation_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/condition_operator.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/condition_operator.rb
index 64ead4befc..c363895078 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/condition_operator.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/condition_operator.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource.rb
new file mode 100644
index 0000000000..dccc6a2ed1
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource.rb
@@ -0,0 +1,70 @@
+# 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::ARM::Monitor
+ module Models
+ #
+ # The diagnostic settings category resource.
+ #
+ class DiagnosticSettingsCategoryResource < ProxyOnlyResource
+
+ include MsRestAzure
+
+ # @return [CategoryType] The type of the diagnostic settings category.
+ # Possible values include: 'Metrics', 'Logs'
+ attr_accessor :category_type
+
+
+ #
+ # Mapper for DiagnosticSettingsCategoryResource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'DiagnosticSettingsCategoryResource',
+ type: {
+ name: 'Composite',
+ class_name: 'DiagnosticSettingsCategoryResource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ category_type: {
+ required: false,
+ serialized_name: 'properties.categoryType',
+ type: {
+ name: 'Enum',
+ module: 'CategoryType'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource_collection.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource_collection.rb
new file mode 100644
index 0000000000..5524827f3e
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource_collection.rb
@@ -0,0 +1,54 @@
+# 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::ARM::Monitor
+ module Models
+ #
+ # Represents a collection of diagnostic setting category resources.
+ #
+ class DiagnosticSettingsCategoryResourceCollection
+
+ include MsRestAzure
+
+ # @return [Array] The collection of
+ # diagnostic settings category resources.
+ attr_accessor :value
+
+
+ #
+ # Mapper for DiagnosticSettingsCategoryResourceCollection class as Ruby
+ # Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'DiagnosticSettingsCategoryResourceCollection',
+ type: {
+ name: 'Composite',
+ class_name: 'DiagnosticSettingsCategoryResourceCollection',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'DiagnosticSettingsCategoryResourceElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'DiagnosticSettingsCategoryResource'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb
similarity index 72%
rename from management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb
rename to management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb
index 9ce3d063f0..deb21826ae 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb
@@ -1,31 +1,28 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Monitor
module Models
#
- # Description of a service diagnostic setting
+ # The diagnostic setting resource.
#
- class ServiceDiagnosticSettingsResource < MsRestAzure::Resource
+ class DiagnosticSettingsResource < ProxyOnlyResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The resource ID of the storage account to which you
# would like to send Diagnostic Logs.
attr_accessor :storage_account_id
- # @return [String] The service bus rule ID of the service bus namespace
- # in which you would like to have Event Hubs created for streaming
- # Diagnostic Logs. The rule ID is of the format: '{service bus resource
- # ID}/authorizationrules/{key name}'.
- attr_accessor :service_bus_rule_id
-
# @return [String] The resource Id for the event hub authorization rule.
attr_accessor :event_hub_authorization_rule_id
+ # @return [String] The name of the event hub. If none is specified, the
+ # default event hub will be selected.
+ attr_accessor :event_hub_name
+
# @return [Array] the list of metric settings.
attr_accessor :metrics
@@ -40,16 +37,16 @@ class ServiceDiagnosticSettingsResource < MsRestAzure::Resource
#
- # Mapper for ServiceDiagnosticSettingsResource class as Ruby Hash.
+ # Mapper for DiagnosticSettingsResource class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
- serialized_name: 'ServiceDiagnosticSettingsResource',
+ serialized_name: 'DiagnosticSettingsResource',
type: {
name: 'Composite',
- class_name: 'ServiceDiagnosticSettingsResource',
+ class_name: 'DiagnosticSettingsResource',
model_properties: {
id: {
required: false,
@@ -75,27 +72,6 @@ def self.mapper()
name: 'String'
}
},
- location: {
- required: true,
- serialized_name: 'location',
- type: {
- name: 'String'
- }
- },
- tags: {
- required: false,
- serialized_name: 'tags',
- type: {
- name: 'Dictionary',
- value: {
- required: false,
- serialized_name: 'StringElementType',
- type: {
- name: 'String'
- }
- }
- }
- },
storage_account_id: {
required: false,
serialized_name: 'properties.storageAccountId',
@@ -103,16 +79,16 @@ def self.mapper()
name: 'String'
}
},
- service_bus_rule_id: {
+ event_hub_authorization_rule_id: {
required: false,
- serialized_name: 'properties.serviceBusRuleId',
+ serialized_name: 'properties.eventHubAuthorizationRuleId',
type: {
name: 'String'
}
},
- event_hub_authorization_rule_id: {
+ event_hub_name: {
required: false,
- serialized_name: 'properties.eventHubAuthorizationRuleId',
+ serialized_name: 'properties.eventHubName',
type: {
name: 'String'
}
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb
new file mode 100644
index 0000000000..8ef307634c
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb
@@ -0,0 +1,53 @@
+# 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::ARM::Monitor
+ module Models
+ #
+ # Represents a collection of alert rule resources.
+ #
+ class DiagnosticSettingsResourceCollection
+
+ include MsRestAzure
+
+ # @return [Array] The collection of
+ # diagnostic settings resources;.
+ attr_accessor :value
+
+
+ #
+ # Mapper for DiagnosticSettingsResourceCollection class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'DiagnosticSettingsResourceCollection',
+ type: {
+ name: 'Composite',
+ class_name: 'DiagnosticSettingsResourceCollection',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'DiagnosticSettingsResourceElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'DiagnosticSettingsResource'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/email_notification.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/email_notification.rb
index 7d830e23c2..264bd06362 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/email_notification.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/email_notification.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EmailNotification
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] a value indicating whether to send email to
# subscription administrator.
attr_accessor :send_to_subscription_administrator
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/email_receiver.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/email_receiver.rb
index 6abccbea6a..9a508d140b 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/email_receiver.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/email_receiver.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EmailReceiver
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the email receiver. Names must be unique
# across all receivers within an action group.
attr_accessor :name
@@ -20,8 +19,8 @@ class EmailReceiver
# @return [String] The email address of this receiver.
attr_accessor :email_address
- # @return [ReceiverStatus] Possible values include: 'NotSpecified',
- # 'Enabled', 'Disabled'
+ # @return [ReceiverStatus] The receiver status of the e-mail. Possible
+ # values include: 'NotSpecified', 'Enabled', 'Disabled'
attr_accessor :status
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/enable_request.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/enable_request.rb
index 84b9420560..57fadd421c 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/enable_request.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/enable_request.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EnableRequest
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the receiver to resubscribe.
attr_accessor :receiver_name
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/error_response.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/error_response.rb
index 4e16c4ffe7..4d8ea21096 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/error_response.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/error_response.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ErrorResponse
include MsRestAzure
- include MsRest::JSONable
# @return [String] Error code
attr_accessor :code
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/incident.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/incident.rb
index cbe7a84621..d972213c54 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/incident.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/incident.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Incident
include MsRestAzure
- include MsRest::JSONable
# @return [String] Incident name.
attr_accessor :name
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/incident_list_result.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/incident_list_result.rb
index 414a7503db..229a9e98e0 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/incident_list_result.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/incident_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IncidentListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] the incident collection.
attr_accessor :value
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb
index a4a03eabd0..88a3d8014f 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LocationThresholdRuleCondition < RuleCondition
include MsRestAzure
- include MsRest::JSONable
def initialize
@odata.type = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition"
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_collection.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_collection.rb
index 65086c153e..c744b06a4e 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_collection.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_collection.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LogProfileCollection
include MsRestAzure
- include MsRest::JSONable
# @return [Array] the values of the log profiles.
attr_accessor :value
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_resource.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_resource.rb
index 137306dd09..9f5102b7b2 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_resource.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_resource.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# The log profile resource.
#
- class LogProfileResource < MsRestAzure::Resource
+ class LogProfileResource < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] the resource id of the storage account to which you
# would like to send the Activity Log.
attr_accessor :storage_account_id
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb
index 1f84715620..5ff3655f9c 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class LogProfileResourcePatch
include MsRestAzure
- include MsRest::JSONable
# @return [Hash{String => String}] Resource tags
attr_accessor :tags
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_settings.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_settings.rb
index d8bec0c4ab..5772be5d9a 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_settings.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/log_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class LogSettings
include MsRestAzure
- include MsRest::JSONable
# @return [String] Name of a Diagnostic Log category for a resource type
# this setting is applied to. To obtain the list of Diagnostic Log
# categories for a resource, first perform a GET diagnostic settings
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb
index 51fa87f606..400de1a7ca 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ManagementEventAggregationCondition
include MsRestAzure
- include MsRest::JSONable
# @return [ConditionOperator] the condition operator. Possible values
# include: 'GreaterThan', 'GreaterThanOrEqual', 'LessThan',
# 'LessThanOrEqual'
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb
index 1fcbb94ba8..073d869663 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ManagementEventRuleCondition < RuleCondition
include MsRestAzure
- include MsRest::JSONable
def initialize
@odata.type = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition"
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_settings.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_settings.rb
index a77b6728db..9ddc7ad79a 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_settings.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,14 +13,19 @@ class MetricSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Duration] the timegrain of the metric in ISO8601 format.
attr_accessor :time_grain
- # @return [Boolean] a value indicating whether this timegrain is enabled.
+ # @return [String] Name of a Diagnostic Metric category for a resource
+ # type this setting is applied to. To obtain the list of Diagnostic
+ # metric categories for a resource, first perform a GET diagnostic
+ # settings operation.
+ attr_accessor :category
+
+ # @return [Boolean] a value indicating whether this category is enabled.
attr_accessor :enabled
- # @return [RetentionPolicy] the retention policy for this timegrain.
+ # @return [RetentionPolicy] the retention policy for this category.
attr_accessor :retention_policy
@@ -37,12 +42,19 @@ def self.mapper()
class_name: 'MetricSettings',
model_properties: {
time_grain: {
- required: true,
+ required: false,
serialized_name: 'timeGrain',
type: {
name: 'TimeSpan'
}
},
+ category: {
+ required: false,
+ serialized_name: 'category',
+ type: {
+ name: 'String'
+ }
+ },
enabled: {
required: true,
serialized_name: 'enabled',
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_statistic_type.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_statistic_type.rb
index a787abe721..8c406c5593 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_statistic_type.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_statistic_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_trigger.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_trigger.rb
index 353b6a7335..fd242a0f0f 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_trigger.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/metric_trigger.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class MetricTrigger
include MsRestAzure
- include MsRest::JSONable
# @return [String] the name of the metric that defines what the rule
# monitors.
attr_accessor :metric_name
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/operation.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/operation.rb
new file mode 100644
index 0000000000..04a8bdca91
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/operation.rb
@@ -0,0 +1,56 @@
+# 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::ARM::Monitor
+ module Models
+ #
+ # Microsoft Insights API operation definition.
+ #
+ class Operation
+
+ include MsRestAzure
+
+ # @return [String] Operation name: {provider}/{resource}/{operation}
+ attr_accessor :name
+
+ # @return [OperationDisplay] Display metadata associated with the
+ # operation.
+ attr_accessor :display
+
+
+ #
+ # Mapper for Operation class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Operation',
+ type: {
+ name: 'Composite',
+ class_name: 'Operation',
+ model_properties: {
+ name: {
+ required: false,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ display: {
+ required: false,
+ serialized_name: 'display',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplay'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/operation_display.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/operation_display.rb
new file mode 100644
index 0000000000..73667523be
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/operation_display.rb
@@ -0,0 +1,65 @@
+# 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::ARM::Monitor
+ module Models
+ #
+ # Display metadata associated with the operation.
+ #
+ class OperationDisplay
+
+ include MsRestAzure
+
+ # @return [String] Service provider: Microsoft.Insights
+ attr_accessor :provider
+
+ # @return [String] Resource on which the operation is performed:
+ # AlertRules, Autoscale, etc.
+ attr_accessor :resource
+
+ # @return [String] Operation type: Read, write, delete, etc.
+ attr_accessor :operation
+
+
+ #
+ # Mapper for OperationDisplay class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Operation_display',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationDisplay',
+ model_properties: {
+ provider: {
+ required: false,
+ serialized_name: 'provider',
+ type: {
+ name: 'String'
+ }
+ },
+ resource: {
+ required: false,
+ serialized_name: 'resource',
+ type: {
+ name: 'String'
+ }
+ },
+ operation: {
+ required: false,
+ serialized_name: 'operation',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/operation_list_result.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/operation_list_result.rb
new file mode 100644
index 0000000000..68ee87f1a3
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/operation_list_result.rb
@@ -0,0 +1,65 @@
+# 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::ARM::Monitor
+ module Models
+ #
+ # Result of the request to list Microsoft.Insights operations. It contains
+ # a list of operations and a URL link to get the next set of results.
+ #
+ class OperationListResult
+
+ include MsRestAzure
+
+ # @return [Array] List of operations supported by the
+ # Microsoft.Insights provider.
+ attr_accessor :value
+
+ # @return [String] URL to get the next set of operation list results if
+ # there are any.
+ attr_accessor :next_link
+
+
+ #
+ # Mapper for OperationListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'OperationListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'OperationListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'OperationElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'Operation'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/proxy_only_resource.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/proxy_only_resource.rb
new file mode 100644
index 0000000000..1e377dde78
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/proxy_only_resource.rb
@@ -0,0 +1,67 @@
+# 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::ARM::Monitor
+ module Models
+ #
+ # A proxy only azure resource object
+ #
+ class ProxyOnlyResource
+
+ include MsRestAzure
+
+ # @return [String] Azure resource Id
+ attr_accessor :id
+
+ # @return [String] Azure resource name
+ attr_accessor :name
+
+ # @return [String] Azure resource type
+ attr_accessor :type
+
+
+ #
+ # Mapper for ProxyOnlyResource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'ProxyOnlyResource',
+ type: {
+ name: 'Composite',
+ class_name: 'ProxyOnlyResource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/receiver_status.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/receiver_status.rb
index e1eaa9ed3c..b8339eb306 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/receiver_status.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/receiver_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrence.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrence.rb
index bde3531557..80a898557a 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrence.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrence.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class Recurrence
include MsRestAzure
- include MsRest::JSONable
# @return [RecurrenceFrequency] the recurrence frequency. How often the
# schedule profile should take effect. This value must be Week, meaning
# each week will have the same set of profiles. Possible values include:
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrence_frequency.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrence_frequency.rb
index 5b05055c46..69fe9249d1 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrence_frequency.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrence_frequency.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrent_schedule.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrent_schedule.rb
index df7065d65d..e36db5b097 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrent_schedule.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/recurrent_schedule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RecurrentSchedule
include MsRestAzure
- include MsRest::JSONable
# @return [String] the timezone for the hours of the profile. Some
# examples of valid timezones are: Dateline Standard Time, UTC-11,
# Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/resource.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/resource.rb
new file mode 100644
index 0000000000..37df43b71d
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/resource.rb
@@ -0,0 +1,94 @@
+# 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::ARM::Monitor
+ module Models
+ #
+ # An azure resource object
+ #
+ class Resource
+
+ include MsRestAzure
+
+ # @return [String] Azure resource Id
+ attr_accessor :id
+
+ # @return [String] Azure resource name
+ attr_accessor :name
+
+ # @return [String] Azure resource type
+ attr_accessor :type
+
+ # @return [String] Resource location
+ attr_accessor :location
+
+ # @return [Hash{String => String}] Resource tags
+ attr_accessor :tags
+
+
+ #
+ # Mapper for Resource class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'Resource',
+ type: {
+ name: 'Composite',
+ class_name: 'Resource',
+ model_properties: {
+ id: {
+ required: false,
+ read_only: true,
+ serialized_name: 'id',
+ type: {
+ name: 'String'
+ }
+ },
+ name: {
+ required: false,
+ read_only: true,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ },
+ type: {
+ required: false,
+ read_only: true,
+ serialized_name: 'type',
+ type: {
+ name: 'String'
+ }
+ },
+ location: {
+ required: true,
+ serialized_name: 'location',
+ type: {
+ name: 'String'
+ }
+ },
+ tags: {
+ required: false,
+ serialized_name: 'tags',
+ type: {
+ name: 'Dictionary',
+ value: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/retention_policy.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/retention_policy.rb
index c7d3bfa467..c13d440b11 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/retention_policy.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/retention_policy.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RetentionPolicy
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] a value indicating whether the retention policy is
# enabled.
attr_accessor :enabled
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_action.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_action.rb
index ef2f50272f..83d1f86b20 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_action.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_action.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RuleAction
include MsRestAzure
- include MsRest::JSONable
@@discriminatorMap = Hash.new
@@discriminatorMap["Microsoft.Azure.Management.Insights.Models.RuleEmailAction"] = "RuleEmailAction"
@@discriminatorMap["Microsoft.Azure.Management.Insights.Models.RuleWebhookAction"] = "RuleWebhookAction"
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_condition.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_condition.rb
index a4f1d9c43d..d506aa0366 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_condition.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_condition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RuleCondition
include MsRestAzure
- include MsRest::JSONable
@@discriminatorMap = Hash.new
@@discriminatorMap["Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition"] = "ThresholdRuleCondition"
@@discriminatorMap["Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition"] = "LocationThresholdRuleCondition"
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_data_source.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_data_source.rb
index a0a414e3ca..42086d56c2 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_data_source.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_data_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RuleDataSource
include MsRestAzure
- include MsRest::JSONable
@@discriminatorMap = Hash.new
@@discriminatorMap["Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource"] = "RuleMetricDataSource"
@@discriminatorMap["Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource"] = "RuleManagementEventDataSource"
@@ -24,7 +23,8 @@ def initialize
attr_accessor :odata.type
# @return [String] the resource identifier of the resource the rule
- # monitors.
+ # monitors. **NOTE**: this property cannot be updated for an existing
+ # rule.
attr_accessor :resource_uri
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_email_action.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_email_action.rb
index 20afaa7d91..1110f70d84 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_email_action.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_email_action.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RuleEmailAction < RuleAction
include MsRestAzure
- include MsRest::JSONable
def initialize
@odata.type = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction"
@@ -22,12 +21,12 @@ def initialize
attr_accessor :odata.type
# @return [Boolean] Whether the administrators (service and
- # co-adiminstrators) of the service should be notified when the alert is
+ # co-administrators) of the service should be notified when the alert is
# activated.
attr_accessor :send_to_service_owners
# @return [Array] the list of administrator's custom email
- # addresses notifiy of the activation of the alert.
+ # addresses to notify of the activation of the alert.
attr_accessor :custom_emails
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb
index dbe23184a1..449e3399d3 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class RuleManagementEventClaimsDataSource
include MsRestAzure
- include MsRest::JSONable
# @return [String] the email address.
attr_accessor :email_address
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb
index 9454b567ac..33774e48d2 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RuleManagementEventDataSource < RuleDataSource
include MsRestAzure
- include MsRest::JSONable
def initialize
@odata.type = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource"
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb
index ee65b39d21..0c67e9dd59 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RuleMetricDataSource < RuleDataSource
include MsRestAzure
- include MsRest::JSONable
def initialize
@odata.type = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource"
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_webhook_action.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_webhook_action.rb
index 45ca2b1c6b..57fd244e31 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_webhook_action.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/rule_webhook_action.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class RuleWebhookAction < RuleAction
include MsRestAzure
- include MsRest::JSONable
def initialize
@odata.type = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction"
@@ -21,7 +20,7 @@ def initialize
attr_accessor :odata.type
- # @return [String] the service uri to Post the notitication when the
+ # @return [String] the service uri to Post the notification when the
# alert activates or resolves.
attr_accessor :service_uri
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_action.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_action.rb
index 5e3cc10c01..82d84cdf08 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_action.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_action.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ScaleAction
include MsRestAzure
- include MsRest::JSONable
# @return [ScaleDirection] the scale direction. Whether the scaling
# action increases or decreases the number of instances. Possible values
# include: 'None', 'Increase', 'Decrease'
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_capacity.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_capacity.rb
index 85f46fcf2f..6ecb61c6a8 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_capacity.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_capacity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ScaleCapacity
include MsRestAzure
- include MsRest::JSONable
# @return [String] the minimum number of instances for the resource.
attr_accessor :minimum
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_direction.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_direction.rb
index 30833bb2cb..11fc9108f1 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_direction.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_direction.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_rule.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_rule.rb
index 74eaac70fc..fdc2bce0e7 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_rule.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ScaleRule
include MsRestAzure
- include MsRest::JSONable
# @return [MetricTrigger] the trigger that results in a scaling action.
attr_accessor :metric_trigger
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_type.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_type.rb
index 5d0d3986bd..3c9704ec99 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_type.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/scale_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb
deleted file mode 100644
index 5691c3f45b..0000000000
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb
+++ /dev/null
@@ -1,135 +0,0 @@
-# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
-# Changes may cause incorrect behavior and will be lost if the code is
-# regenerated.
-
-module Azure::ARM::Monitor
- module Models
- #
- # Service diagnostic setting resource for patch operations
- #
- class ServiceDiagnosticSettingsResourcePatch
-
- include MsRestAzure
-
- include MsRest::JSONable
- # @return [Hash{String => String}] Resource tags
- attr_accessor :tags
-
- # @return [String] The resource ID of the storage account to which you
- # would like to send Diagnostic Logs.
- attr_accessor :storage_account_id
-
- # @return [String] The service bus rule ID of the service bus namespace
- # in which you would like to have Event Hubs created for streaming
- # Diagnostic Logs. The rule ID is of the format: '{service bus resource
- # ID}/authorizationrules/{key name}'.
- attr_accessor :service_bus_rule_id
-
- # @return [String] The resource Id for the event hub authorization rule.
- attr_accessor :event_hub_authorization_rule_id
-
- # @return [Array] the list of metric settings.
- attr_accessor :metrics
-
- # @return [Array] the list of logs settings.
- attr_accessor :logs
-
- # @return [String] The workspace ID (resource ID of a Log Analytics
- # workspace) for a Log Analytics workspace to which you would like to
- # send Diagnostic Logs. Example:
- # /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
- attr_accessor :workspace_id
-
-
- #
- # Mapper for ServiceDiagnosticSettingsResourcePatch class as Ruby Hash.
- # This will be used for serialization/deserialization.
- #
- def self.mapper()
- {
- required: false,
- serialized_name: 'ServiceDiagnosticSettingsResourcePatch',
- type: {
- name: 'Composite',
- class_name: 'ServiceDiagnosticSettingsResourcePatch',
- model_properties: {
- tags: {
- required: false,
- serialized_name: 'tags',
- type: {
- name: 'Dictionary',
- value: {
- required: false,
- serialized_name: 'StringElementType',
- type: {
- name: 'String'
- }
- }
- }
- },
- storage_account_id: {
- required: false,
- serialized_name: 'properties.storageAccountId',
- type: {
- name: 'String'
- }
- },
- service_bus_rule_id: {
- required: false,
- serialized_name: 'properties.serviceBusRuleId',
- type: {
- name: 'String'
- }
- },
- event_hub_authorization_rule_id: {
- required: false,
- serialized_name: 'properties.eventHubAuthorizationRuleId',
- type: {
- name: 'String'
- }
- },
- metrics: {
- required: false,
- serialized_name: 'properties.metrics',
- type: {
- name: 'Sequence',
- element: {
- required: false,
- serialized_name: 'MetricSettingsElementType',
- type: {
- name: 'Composite',
- class_name: 'MetricSettings'
- }
- }
- }
- },
- logs: {
- required: false,
- serialized_name: 'properties.logs',
- type: {
- name: 'Sequence',
- element: {
- required: false,
- serialized_name: 'LogSettingsElementType',
- type: {
- name: 'Composite',
- class_name: 'LogSettings'
- }
- }
- }
- },
- workspace_id: {
- required: false,
- serialized_name: 'properties.workspaceId',
- type: {
- name: 'String'
- }
- }
- }
- }
- }
- end
- end
- end
-end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/sms_receiver.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/sms_receiver.rb
index 879dcd5e2e..a606a078d9 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/sms_receiver.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/sms_receiver.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class SmsReceiver
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the SMS receiver. Names must be unique
# across all receivers within an action group.
attr_accessor :name
@@ -23,8 +22,8 @@ class SmsReceiver
# @return [String] The phone number of the SMS receiver.
attr_accessor :phone_number
- # @return [ReceiverStatus] Possible values include: 'NotSpecified',
- # 'Enabled', 'Disabled'
+ # @return [ReceiverStatus] The status of the receiver. Possible values
+ # include: 'NotSpecified', 'Enabled', 'Disabled'
attr_accessor :status
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb
index 6271913336..666c53a036 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ThresholdRuleCondition < RuleCondition
include MsRestAzure
- include MsRest::JSONable
def initialize
@odata.type = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition"
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb
index af09cd570a..b61836eae8 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_aggregation_type.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_aggregation_type.rb
index c846895a70..006abb67c6 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_aggregation_type.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_aggregation_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_window.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_window.rb
index 73e39def75..ea1bbd7967 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_window.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/time_window.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class TimeWindow
include MsRestAzure
- include MsRest::JSONable
# @return [String] the timezone of the start and end times for the
# profile. Some examples of valid timezones are: Dateline Standard Time,
# UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/webhook_notification.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/webhook_notification.rb
index 4bfbd07886..97cfa7f085 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/webhook_notification.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/webhook_notification.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WebhookNotification
include MsRestAzure
- include MsRest::JSONable
# @return [String] the service address to receive the notification.
attr_accessor :service_uri
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/webhook_receiver.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/webhook_receiver.rb
index 446edf8a38..93e7490b8c 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/webhook_receiver.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/models/webhook_receiver.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class WebhookReceiver
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the webhook receiver. Names must be unique
# across all receivers within an action group.
attr_accessor :name
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/module_definition.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/module_definition.rb
index f86df42d1d..a258f6bbb4 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/module_definition.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/module_definition.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/monitor_management_client.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/monitor_management_client.rb
index 411a2fe955..879ab97666 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/monitor_management_client.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/monitor_management_client.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -34,6 +34,9 @@ class MonitorManagementClient < MsRestAzure::AzureServiceClient
# @return [AutoscaleSettings] autoscale_settings
attr_reader :autoscale_settings
+ # @return [Operations] operations
+ attr_reader :operations
+
# @return [AlertRuleIncidents] alert_rule_incidents
attr_reader :alert_rule_incidents
@@ -43,9 +46,12 @@ class MonitorManagementClient < MsRestAzure::AzureServiceClient
# @return [LogProfiles] log_profiles
attr_reader :log_profiles
- # @return [ServiceDiagnosticSettingsOperations]
- # service_diagnostic_settings_operations
- attr_reader :service_diagnostic_settings_operations
+ # @return [DiagnosticSettingsOperations] diagnostic_settings_operations
+ attr_reader :diagnostic_settings_operations
+
+ # @return [DiagnosticSettingsCategoryOperations]
+ # diagnostic_settings_category_operations
+ attr_reader :diagnostic_settings_category_operations
# @return [ActionGroups] action_groups
attr_reader :action_groups
@@ -67,10 +73,12 @@ def initialize(credentials = nil, base_url = nil, options = nil)
@credentials = credentials
@autoscale_settings = AutoscaleSettings.new(self)
+ @operations = Operations.new(self)
@alert_rule_incidents = AlertRuleIncidents.new(self)
@alert_rules = AlertRules.new(self)
@log_profiles = LogProfiles.new(self)
- @service_diagnostic_settings_operations = ServiceDiagnosticSettingsOperations.new(self)
+ @diagnostic_settings_operations = DiagnosticSettingsOperations.new(self)
+ @diagnostic_settings_category_operations = DiagnosticSettingsCategoryOperations.new(self)
@action_groups = ActionGroups.new(self)
@activity_log_alerts = ActivityLogAlerts.new(self)
@accept_language = 'en-US'
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/operations.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/operations.rb
new file mode 100644
index 0000000000..a11ff4d566
--- /dev/null
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/operations.rb
@@ -0,0 +1,106 @@
+# 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::ARM::Monitor
+ #
+ # Monitor Management Client
+ #
+ class Operations
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the Operations class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [MonitorManagementClient] reference to the MonitorManagementClient
+ attr_reader :client
+
+ #
+ # Lists all of the available operations from Microsoft.Insights provider.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [OperationListResult] operation results.
+ #
+ def list(custom_headers = nil)
+ response = list_async(custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Lists all of the available operations from Microsoft.Insights provider.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(custom_headers = nil)
+ list_async(custom_headers).value!
+ end
+
+ #
+ # Lists all of the available operations from Microsoft.Insights provider.
+ #
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(custom_headers = nil)
+ api_version = '2015-04-01'
+
+
+ request_headers = {}
+
+ # 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 = 'providers/microsoft.insights/operations'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Monitor::Models::OperationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/version.rb b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/version.rb
index 5cadb10811..a434c93e7a 100644
--- a/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/version.rb
+++ b/management/azure_mgmt_monitor/lib/generated/azure_mgmt_monitor/version.rb
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Monitor
- VERSION = '0.11.0'
+ VERSION = '0.13.0'
end
diff --git a/management/azure_mgmt_network/azure_mgmt_network.gemspec b/management/azure_mgmt_network/azure_mgmt_network.gemspec
index 59b542f7a5..824466917a 100644
--- a/management/azure_mgmt_network/azure_mgmt_network.gemspec
+++ b/management/azure_mgmt_network/azure_mgmt_network.gemspec
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3'
spec.add_development_dependency 'dotenv', '~> 2'
- spec.add_runtime_dependency 'ms_rest_azure', '~> 0.8.0'
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.9.0'
end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb
index 4ced59f048..baef3c87de 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -21,17 +21,27 @@
module Azure::ARM::Network
autoload :ApplicationGateways, 'generated/azure_mgmt_network/application_gateways.rb'
+ autoload :ApplicationSecurityGroups, 'generated/azure_mgmt_network/application_security_groups.rb'
+ autoload :AvailableEndpointServices, 'generated/azure_mgmt_network/available_endpoint_services.rb'
autoload :ExpressRouteCircuitAuthorizations, 'generated/azure_mgmt_network/express_route_circuit_authorizations.rb'
autoload :ExpressRouteCircuitPeerings, 'generated/azure_mgmt_network/express_route_circuit_peerings.rb'
autoload :ExpressRouteCircuits, 'generated/azure_mgmt_network/express_route_circuits.rb'
autoload :ExpressRouteServiceProviders, 'generated/azure_mgmt_network/express_route_service_providers.rb'
autoload :LoadBalancers, 'generated/azure_mgmt_network/load_balancers.rb'
+ autoload :LoadBalancerBackendAddressPools, 'generated/azure_mgmt_network/load_balancer_backend_address_pools.rb'
+ autoload :LoadBalancerFrontendIPConfigurations, 'generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb'
+ autoload :InboundNatRules, 'generated/azure_mgmt_network/inbound_nat_rules.rb'
+ autoload :LoadBalancerLoadBalancingRules, 'generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb'
+ autoload :LoadBalancerNetworkInterfaces, 'generated/azure_mgmt_network/load_balancer_network_interfaces.rb'
+ autoload :LoadBalancerProbes, 'generated/azure_mgmt_network/load_balancer_probes.rb'
autoload :NetworkInterfaces, 'generated/azure_mgmt_network/network_interfaces.rb'
+ autoload :NetworkInterfaceIPConfigurations, 'generated/azure_mgmt_network/network_interface_ipconfigurations.rb'
+ autoload :NetworkInterfaceLoadBalancers, 'generated/azure_mgmt_network/network_interface_load_balancers.rb'
autoload :NetworkSecurityGroups, 'generated/azure_mgmt_network/network_security_groups.rb'
autoload :SecurityRules, 'generated/azure_mgmt_network/security_rules.rb'
+ autoload :DefaultSecurityRules, 'generated/azure_mgmt_network/default_security_rules.rb'
autoload :NetworkWatchers, 'generated/azure_mgmt_network/network_watchers.rb'
autoload :PacketCaptures, 'generated/azure_mgmt_network/packet_captures.rb'
- autoload :AvailablePrivateAccessServices, 'generated/azure_mgmt_network/available_private_access_services.rb'
autoload :PublicIPAddresses, 'generated/azure_mgmt_network/public_ipaddresses.rb'
autoload :RouteFilters, 'generated/azure_mgmt_network/route_filters.rb'
autoload :RouteFilterRules, 'generated/azure_mgmt_network/route_filter_rules.rb'
@@ -48,128 +58,154 @@ module Azure::ARM::Network
autoload :NetworkManagementClient, 'generated/azure_mgmt_network/network_management_client.rb'
module Models
+ autoload :EffectiveNetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb'
autoload :EffectiveRoute, 'generated/azure_mgmt_network/models/effective_route.rb'
- autoload :EffectiveRouteListResult, 'generated/azure_mgmt_network/models/effective_route_list_result.rb'
- autoload :ExpressRouteCircuitArpTable, 'generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb'
- autoload :ExpressRouteCircuitsArpTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb'
- autoload :LocalNetworkGatewayListResult, 'generated/azure_mgmt_network/models/local_network_gateway_list_result.rb'
- autoload :ExpressRouteCircuitRoutesTable, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb'
- autoload :ConnectionResetSharedKey, 'generated/azure_mgmt_network/models/connection_reset_shared_key.rb'
- autoload :ExpressRouteCircuitsRoutesTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb'
- autoload :PrivateAccessServicePropertiesFormat, 'generated/azure_mgmt_network/models/private_access_service_properties_format.rb'
- autoload :ExpressRouteCircuitRoutesTableSummary, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb'
- autoload :IpsecPolicy, 'generated/azure_mgmt_network/models/ipsec_policy.rb'
autoload :ExpressRouteCircuitsRoutesTableSummaryListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb'
- autoload :GatewayRouteListResult, 'generated/azure_mgmt_network/models/gateway_route_list_result.rb'
autoload :ExpressRouteCircuitListResult, 'generated/azure_mgmt_network/models/express_route_circuit_list_result.rb'
- autoload :VirtualNetworkGatewayListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb'
+ autoload :VpnDeviceScriptParameters, 'generated/azure_mgmt_network/models/vpn_device_script_parameters.rb'
autoload :ExpressRouteServiceProviderBandwidthsOffered, 'generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb'
- autoload :VpnClientParameters, 'generated/azure_mgmt_network/models/vpn_client_parameters.rb'
+ autoload :NetworkInterfaceDnsSettings, 'generated/azure_mgmt_network/models/network_interface_dns_settings.rb'
autoload :RouteFilterRuleListResult, 'generated/azure_mgmt_network/models/route_filter_rule_list_result.rb'
- autoload :GatewayRoute, 'generated/azure_mgmt_network/models/gateway_route.rb'
+ autoload :LocalNetworkGatewayListResult, 'generated/azure_mgmt_network/models/local_network_gateway_list_result.rb'
autoload :ExpressRouteServiceProviderListResult, 'generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb'
- autoload :ApplicationGatewayBackendHealthHttpSettings, 'generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb'
+ autoload :ConnectionResetSharedKey, 'generated/azure_mgmt_network/models/connection_reset_shared_key.rb'
+ autoload :LoadBalancerSku, 'generated/azure_mgmt_network/models/load_balancer_sku.rb'
+ autoload :PublicIPAddressSku, 'generated/azure_mgmt_network/models/public_ipaddress_sku.rb'
autoload :RouteFilterListResult, 'generated/azure_mgmt_network/models/route_filter_list_result.rb'
- autoload :ApplicationGatewayBackendHealth, 'generated/azure_mgmt_network/models/application_gateway_backend_health.rb'
+ autoload :VirtualNetworkGatewayConnectionListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb'
autoload :PublicIPAddressListResult, 'generated/azure_mgmt_network/models/public_ipaddress_list_result.rb'
+ autoload :TunnelConnectionHealth, 'generated/azure_mgmt_network/models/tunnel_connection_health.rb'
+ autoload :AvailableProvidersList, 'generated/azure_mgmt_network/models/available_providers_list.rb'
+ autoload :BgpPeerStatusListResult, 'generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb'
+ autoload :AvailableProvidersListCountry, 'generated/azure_mgmt_network/models/available_providers_list_country.rb'
+ autoload :VirtualNetworkGatewayListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_result.rb'
+ autoload :AvailableProvidersListState, 'generated/azure_mgmt_network/models/available_providers_list_state.rb'
+ autoload :VpnClientParameters, 'generated/azure_mgmt_network/models/vpn_client_parameters.rb'
+ autoload :AvailableProvidersListCity, 'generated/azure_mgmt_network/models/available_providers_list_city.rb'
+ autoload :ApplicationGatewayBackendHealthHttpSettings, 'generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb'
+ autoload :LoadBalancerListResult, 'generated/azure_mgmt_network/models/load_balancer_list_result.rb'
+ autoload :ApplicationGatewayBackendHealth, 'generated/azure_mgmt_network/models/application_gateway_backend_health.rb'
+ autoload :InboundNatRuleListResult, 'generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb'
autoload :ApplicationGatewaySslPolicy, 'generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb'
- autoload :PrivateAccessServicesListResult, 'generated/azure_mgmt_network/models/private_access_services_list_result.rb'
- autoload :BgpSettings, 'generated/azure_mgmt_network/models/bgp_settings.rb'
- autoload :ConnectivityInformation, 'generated/azure_mgmt_network/models/connectivity_information.rb'
- autoload :VirtualNetworkGatewaySku, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb'
- autoload :ConnectivityHop, 'generated/azure_mgmt_network/models/connectivity_hop.rb'
- autoload :VirtualNetworkUsage, 'generated/azure_mgmt_network/models/virtual_network_usage.rb'
- autoload :ConnectivityIssue, 'generated/azure_mgmt_network/models/connectivity_issue.rb'
+ autoload :LoadBalancerBackendAddressPoolListResult, 'generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb'
+ autoload :BgpPeerStatus, 'generated/azure_mgmt_network/models/bgp_peer_status.rb'
+ autoload :LoadBalancerFrontendIPConfigurationListResult, 'generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb'
+ autoload :VpnClientConfiguration, 'generated/azure_mgmt_network/models/vpn_client_configuration.rb'
+ autoload :LoadBalancerLoadBalancingRuleListResult, 'generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb'
+ autoload :VirtualNetworkListUsageResult, 'generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb'
+ autoload :LoadBalancerProbeListResult, 'generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb'
autoload :ApplicationGatewayProbeHealthResponseMatch, 'generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb'
- autoload :LoadBalancerListResult, 'generated/azure_mgmt_network/models/load_balancer_list_result.rb'
- autoload :VirtualNetworkListResult, 'generated/azure_mgmt_network/models/virtual_network_list_result.rb'
+ autoload :NetworkInterfaceListResult, 'generated/azure_mgmt_network/models/network_interface_list_result.rb'
+ autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb'
autoload :ErrorDetails, 'generated/azure_mgmt_network/models/error_details.rb'
- autoload :AddressSpace, 'generated/azure_mgmt_network/models/address_space.rb'
+ autoload :DhcpOptions, 'generated/azure_mgmt_network/models/dhcp_options.rb'
autoload :Error, 'generated/azure_mgmt_network/models/error.rb'
autoload :ApplicationGatewayWebApplicationFirewallConfiguration, 'generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb'
autoload :AzureAsyncOperationResult, 'generated/azure_mgmt_network/models/azure_async_operation_result.rb'
autoload :ApplicationGatewayListResult, 'generated/azure_mgmt_network/models/application_gateway_list_result.rb'
- autoload :NetworkInterfaceListResult, 'generated/azure_mgmt_network/models/network_interface_list_result.rb'
+ autoload :NetworkInterfaceIPConfigurationListResult, 'generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb'
autoload :ApplicationGatewayFirewallRuleGroup, 'generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb'
- autoload :EffectiveNetworkSecurityGroupAssociation, 'generated/azure_mgmt_network/models/effective_network_security_group_association.rb'
+ autoload :NetworkInterfaceLoadBalancerListResult, 'generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb'
autoload :ApplicationGatewayAvailableWafRuleSetsResult, 'generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb'
+ autoload :EffectiveNetworkSecurityGroupAssociation, 'generated/azure_mgmt_network/models/effective_network_security_group_association.rb'
+ autoload :UsagesListResult, 'generated/azure_mgmt_network/models/usages_list_result.rb'
autoload :EffectiveNetworkSecurityRule, 'generated/azure_mgmt_network/models/effective_network_security_rule.rb'
- autoload :Usage, 'generated/azure_mgmt_network/models/usage.rb'
+ autoload :Resource, 'generated/azure_mgmt_network/models/resource.rb'
autoload :EffectiveNetworkSecurityGroup, 'generated/azure_mgmt_network/models/effective_network_security_group.rb'
- autoload :EffectiveNetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb'
- autoload :UsageName, 'generated/azure_mgmt_network/models/usage_name.rb'
+ autoload :DnsNameAvailabilityResult, 'generated/azure_mgmt_network/models/dns_name_availability_result.rb'
+ autoload :SubResource, 'generated/azure_mgmt_network/models/sub_resource.rb'
+ autoload :EndpointServicesListResult, 'generated/azure_mgmt_network/models/endpoint_services_list_result.rb'
+ autoload :AvailableProvidersListParameters, 'generated/azure_mgmt_network/models/available_providers_list_parameters.rb'
autoload :AuthorizationListResult, 'generated/azure_mgmt_network/models/authorization_list_result.rb'
- autoload :ConnectivitySource, 'generated/azure_mgmt_network/models/connectivity_source.rb'
+ autoload :EffectiveRouteListResult, 'generated/azure_mgmt_network/models/effective_route_list_result.rb'
autoload :BgpServiceCommunityListResult, 'generated/azure_mgmt_network/models/bgp_service_community_list_result.rb'
- autoload :ConnectivityParameters, 'generated/azure_mgmt_network/models/connectivity_parameters.rb'
- autoload :BGPCommunity, 'generated/azure_mgmt_network/models/bgpcommunity.rb'
autoload :SecurityRuleListResult, 'generated/azure_mgmt_network/models/security_rule_list_result.rb'
- autoload :Ipv6ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb'
+ autoload :BGPCommunity, 'generated/azure_mgmt_network/models/bgpcommunity.rb'
autoload :NetworkSecurityGroupListResult, 'generated/azure_mgmt_network/models/network_security_group_list_result.rb'
+ autoload :Ipv6ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb'
+ autoload :AzureReachabilityReport, 'generated/azure_mgmt_network/models/azure_reachability_report.rb'
autoload :ExpressRouteCircuitSku, 'generated/azure_mgmt_network/models/express_route_circuit_sku.rb'
- autoload :ConnectivityDestination, 'generated/azure_mgmt_network/models/connectivity_destination.rb'
- autoload :RouteTableListResult, 'generated/azure_mgmt_network/models/route_table_list_result.rb'
autoload :NetworkWatcherListResult, 'generated/azure_mgmt_network/models/network_watcher_list_result.rb'
- autoload :ConnectionSharedKey, 'generated/azure_mgmt_network/models/connection_shared_key.rb'
+ autoload :RouteTableListResult, 'generated/azure_mgmt_network/models/route_table_list_result.rb'
autoload :TopologyParameters, 'generated/azure_mgmt_network/models/topology_parameters.rb'
- autoload :PublicIPAddressDnsSettings, 'generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb'
+ autoload :ExpressRouteCircuitsArpTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb'
autoload :TopologyAssociation, 'generated/azure_mgmt_network/models/topology_association.rb'
- autoload :BgpPeerStatusListResult, 'generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb'
+ autoload :ExpressRouteCircuitsRoutesTableListResult, 'generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb'
autoload :TopologyResource, 'generated/azure_mgmt_network/models/topology_resource.rb'
- autoload :ApplicationGatewayConnectionDraining, 'generated/azure_mgmt_network/models/application_gateway_connection_draining.rb'
autoload :Topology, 'generated/azure_mgmt_network/models/topology.rb'
- autoload :ApplicationGatewayBackendHealthPool, 'generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb'
+ autoload :VirtualNetworkConnectionGatewayReference, 'generated/azure_mgmt_network/models/virtual_network_connection_gateway_reference.rb'
autoload :VerificationIPFlowParameters, 'generated/azure_mgmt_network/models/verification_ipflow_parameters.rb'
- autoload :BgpPeerStatus, 'generated/azure_mgmt_network/models/bgp_peer_status.rb'
+ autoload :ServiceEndpointPropertiesFormat, 'generated/azure_mgmt_network/models/service_endpoint_properties_format.rb'
autoload :VerificationIPFlowResult, 'generated/azure_mgmt_network/models/verification_ipflow_result.rb'
- autoload :VirtualNetworkListUsageResult, 'generated/azure_mgmt_network/models/virtual_network_list_usage_result.rb'
+ autoload :IpsecPolicy, 'generated/azure_mgmt_network/models/ipsec_policy.rb'
autoload :NextHopParameters, 'generated/azure_mgmt_network/models/next_hop_parameters.rb'
- autoload :IPAddressAvailabilityResult, 'generated/azure_mgmt_network/models/ipaddress_availability_result.rb'
+ autoload :ApplicationGatewayBackendAddress, 'generated/azure_mgmt_network/models/application_gateway_backend_address.rb'
autoload :NextHopResult, 'generated/azure_mgmt_network/models/next_hop_result.rb'
- autoload :ApplicationGatewayFirewallDisabledRuleGroup, 'generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb'
+ autoload :ApplicationGatewayBackendHealthServer, 'generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb'
autoload :SecurityGroupViewParameters, 'generated/azure_mgmt_network/models/security_group_view_parameters.rb'
- autoload :ApplicationGatewayFirewallRule, 'generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb'
+ autoload :ApplicationGatewaySku, 'generated/azure_mgmt_network/models/application_gateway_sku.rb'
autoload :NetworkInterfaceAssociation, 'generated/azure_mgmt_network/models/network_interface_association.rb'
- autoload :UsagesListResult, 'generated/azure_mgmt_network/models/usages_list_result.rb'
+ autoload :BgpSettings, 'generated/azure_mgmt_network/models/bgp_settings.rb'
autoload :SubnetAssociation, 'generated/azure_mgmt_network/models/subnet_association.rb'
- autoload :DnsNameAvailabilityResult, 'generated/azure_mgmt_network/models/dns_name_availability_result.rb'
+ autoload :VirtualNetworkUsage, 'generated/azure_mgmt_network/models/virtual_network_usage.rb'
autoload :SecurityRuleAssociations, 'generated/azure_mgmt_network/models/security_rule_associations.rb'
- autoload :ExpressRouteCircuitStats, 'generated/azure_mgmt_network/models/express_route_circuit_stats.rb'
+ autoload :VirtualNetworkListResult, 'generated/azure_mgmt_network/models/virtual_network_list_result.rb'
autoload :SecurityGroupNetworkInterface, 'generated/azure_mgmt_network/models/security_group_network_interface.rb'
- autoload :ExpressRouteCircuitPeeringListResult, 'generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb'
+ autoload :AddressSpace, 'generated/azure_mgmt_network/models/address_space.rb'
autoload :SecurityGroupViewResult, 'generated/azure_mgmt_network/models/security_group_view_result.rb'
- autoload :NetworkInterfaceDnsSettings, 'generated/azure_mgmt_network/models/network_interface_dns_settings.rb'
+ autoload :VirtualNetworkPeeringListResult, 'generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb'
autoload :PacketCaptureStorageLocation, 'generated/azure_mgmt_network/models/packet_capture_storage_location.rb'
- autoload :TunnelConnectionHealth, 'generated/azure_mgmt_network/models/tunnel_connection_health.rb'
+ autoload :ApplicationGatewayAvailableSslPredefinedPolicies, 'generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb'
autoload :PacketCaptureFilter, 'generated/azure_mgmt_network/models/packet_capture_filter.rb'
- autoload :ApplicationGatewayBackendHealthServer, 'generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb'
+ autoload :Usage, 'generated/azure_mgmt_network/models/usage.rb'
autoload :PacketCaptureParameters, 'generated/azure_mgmt_network/models/packet_capture_parameters.rb'
- autoload :VpnClientConfiguration, 'generated/azure_mgmt_network/models/vpn_client_configuration.rb'
+ autoload :ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb'
autoload :PacketCapture, 'generated/azure_mgmt_network/models/packet_capture.rb'
- autoload :DhcpOptions, 'generated/azure_mgmt_network/models/dhcp_options.rb'
+ autoload :RouteListResult, 'generated/azure_mgmt_network/models/route_list_result.rb'
autoload :PacketCaptureResult, 'generated/azure_mgmt_network/models/packet_capture_result.rb'
- autoload :SubnetListResult, 'generated/azure_mgmt_network/models/subnet_list_result.rb'
+ autoload :ExpressRouteCircuitServiceProviderProperties, 'generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb'
autoload :PacketCaptureListResult, 'generated/azure_mgmt_network/models/packet_capture_list_result.rb'
- autoload :ExpressRouteCircuitPeeringConfig, 'generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb'
+ autoload :ExpressRouteCircuitRoutesTable, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb'
autoload :PacketCaptureQueryStatusResult, 'generated/azure_mgmt_network/models/packet_capture_query_status_result.rb'
- autoload :ExpressRouteCircuitServiceProviderProperties, 'generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb'
+ autoload :VirtualNetworkGatewayListConnectionsResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_list_connections_result.rb'
autoload :TroubleshootingParameters, 'generated/azure_mgmt_network/models/troubleshooting_parameters.rb'
- autoload :ApplicationGatewayBackendAddress, 'generated/azure_mgmt_network/models/application_gateway_backend_address.rb'
+ autoload :PublicIPAddressDnsSettings, 'generated/azure_mgmt_network/models/public_ipaddress_dns_settings.rb'
autoload :QueryTroubleshootingParameters, 'generated/azure_mgmt_network/models/query_troubleshooting_parameters.rb'
- autoload :VirtualNetworkUsageName, 'generated/azure_mgmt_network/models/virtual_network_usage_name.rb'
+ autoload :ApplicationGatewayConnectionDraining, 'generated/azure_mgmt_network/models/application_gateway_connection_draining.rb'
autoload :TroubleshootingRecommendedActions, 'generated/azure_mgmt_network/models/troubleshooting_recommended_actions.rb'
- autoload :ApplicationGatewayAvailableSslPredefinedPolicies, 'generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb'
+ autoload :GatewayRoute, 'generated/azure_mgmt_network/models/gateway_route.rb'
autoload :TroubleshootingDetails, 'generated/azure_mgmt_network/models/troubleshooting_details.rb'
- autoload :VirtualNetworkGatewayConnectionListResult, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_result.rb'
+ autoload :VirtualNetworkUsageName, 'generated/azure_mgmt_network/models/virtual_network_usage_name.rb'
autoload :TroubleshootingResult, 'generated/azure_mgmt_network/models/troubleshooting_result.rb'
- autoload :VirtualNetworkPeeringListResult, 'generated/azure_mgmt_network/models/virtual_network_peering_list_result.rb'
+ autoload :ApplicationGatewayFirewallRule, 'generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb'
autoload :RetentionPolicyParameters, 'generated/azure_mgmt_network/models/retention_policy_parameters.rb'
- autoload :ApplicationGatewaySku, 'generated/azure_mgmt_network/models/application_gateway_sku.rb'
+ autoload :ApplicationSecurityGroupListResult, 'generated/azure_mgmt_network/models/application_security_group_list_result.rb'
autoload :FlowLogStatusParameters, 'generated/azure_mgmt_network/models/flow_log_status_parameters.rb'
- autoload :RouteListResult, 'generated/azure_mgmt_network/models/route_list_result.rb'
+ autoload :ExpressRouteCircuitStats, 'generated/azure_mgmt_network/models/express_route_circuit_stats.rb'
autoload :FlowLogInformation, 'generated/azure_mgmt_network/models/flow_log_information.rb'
+ autoload :ExpressRouteCircuitArpTable, 'generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb'
+ autoload :ConnectivitySource, 'generated/azure_mgmt_network/models/connectivity_source.rb'
+ autoload :ConnectionSharedKey, 'generated/azure_mgmt_network/models/connection_shared_key.rb'
+ autoload :ConnectivityDestination, 'generated/azure_mgmt_network/models/connectivity_destination.rb'
+ autoload :ApplicationGatewayBackendHealthPool, 'generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb'
+ autoload :ConnectivityParameters, 'generated/azure_mgmt_network/models/connectivity_parameters.rb'
+ autoload :ApplicationGatewayFirewallDisabledRuleGroup, 'generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb'
+ autoload :ConnectivityIssue, 'generated/azure_mgmt_network/models/connectivity_issue.rb'
+ autoload :UsageName, 'generated/azure_mgmt_network/models/usage_name.rb'
+ autoload :ConnectivityHop, 'generated/azure_mgmt_network/models/connectivity_hop.rb'
+ autoload :ExpressRouteCircuitRoutesTableSummary, 'generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb'
+ autoload :ConnectivityInformation, 'generated/azure_mgmt_network/models/connectivity_information.rb'
+ autoload :VirtualNetworkGatewaySku, 'generated/azure_mgmt_network/models/virtual_network_gateway_sku.rb'
+ autoload :AzureReachabilityReportLocation, 'generated/azure_mgmt_network/models/azure_reachability_report_location.rb'
+ autoload :ExpressRouteCircuitPeeringListResult, 'generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb'
+ autoload :AzureReachabilityReportParameters, 'generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb'
+ autoload :SubnetListResult, 'generated/azure_mgmt_network/models/subnet_list_result.rb'
+ autoload :AzureReachabilityReportLatencyInfo, 'generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb'
+ autoload :GatewayRouteListResult, 'generated/azure_mgmt_network/models/gateway_route_list_result.rb'
+ autoload :AzureReachabilityReportItem, 'generated/azure_mgmt_network/models/azure_reachability_report_item.rb'
autoload :BackendAddressPool, 'generated/azure_mgmt_network/models/backend_address_pool.rb'
autoload :InboundNatRule, 'generated/azure_mgmt_network/models/inbound_nat_rule.rb'
+ autoload :ApplicationSecurityGroup, 'generated/azure_mgmt_network/models/application_security_group.rb'
autoload :SecurityRule, 'generated/azure_mgmt_network/models/security_rule.rb'
autoload :NetworkInterface, 'generated/azure_mgmt_network/models/network_interface.rb'
autoload :NetworkSecurityGroup, 'generated/azure_mgmt_network/models/network_security_group.rb'
@@ -197,6 +233,7 @@ module Models
autoload :ApplicationGatewayFirewallRuleSet, 'generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb'
autoload :ApplicationGatewayAvailableSslOptions, 'generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb'
autoload :ApplicationGatewaySslPredefinedPolicy, 'generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb'
+ autoload :EndpointServiceResult, 'generated/azure_mgmt_network/models/endpoint_service_result.rb'
autoload :ExpressRouteCircuitAuthorization, 'generated/azure_mgmt_network/models/express_route_circuit_authorization.rb'
autoload :RouteFilterRule, 'generated/azure_mgmt_network/models/route_filter_rule.rb'
autoload :ExpressRouteCircuitPeering, 'generated/azure_mgmt_network/models/express_route_circuit_peering.rb'
@@ -210,7 +247,6 @@ module Models
autoload :OutboundNatRule, 'generated/azure_mgmt_network/models/outbound_nat_rule.rb'
autoload :LoadBalancer, 'generated/azure_mgmt_network/models/load_balancer.rb'
autoload :NetworkWatcher, 'generated/azure_mgmt_network/models/network_watcher.rb'
- autoload :PrivateAccessServiceResult, 'generated/azure_mgmt_network/models/private_access_service_result.rb'
autoload :PatchRouteFilterRule, 'generated/azure_mgmt_network/models/patch_route_filter_rule.rb'
autoload :PatchRouteFilter, 'generated/azure_mgmt_network/models/patch_route_filter.rb'
autoload :BgpServiceCommunity, 'generated/azure_mgmt_network/models/bgp_service_community.rb'
@@ -222,6 +258,7 @@ module Models
autoload :VirtualNetworkGateway, 'generated/azure_mgmt_network/models/virtual_network_gateway.rb'
autoload :LocalNetworkGateway, 'generated/azure_mgmt_network/models/local_network_gateway.rb'
autoload :VirtualNetworkGatewayConnection, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection.rb'
+ autoload :VirtualNetworkGatewayConnectionListEntity, 'generated/azure_mgmt_network/models/virtual_network_gateway_connection_list_entity.rb'
autoload :TransportProtocol, 'generated/azure_mgmt_network/models/transport_protocol.rb'
autoload :IPAllocationMethod, 'generated/azure_mgmt_network/models/ipallocation_method.rb'
autoload :IPVersion, 'generated/azure_mgmt_network/models/ipversion.rb'
@@ -229,6 +266,7 @@ module Models
autoload :SecurityRuleAccess, 'generated/azure_mgmt_network/models/security_rule_access.rb'
autoload :SecurityRuleDirection, 'generated/azure_mgmt_network/models/security_rule_direction.rb'
autoload :RouteNextHopType, 'generated/azure_mgmt_network/models/route_next_hop_type.rb'
+ autoload :PublicIPAddressSkuName, 'generated/azure_mgmt_network/models/public_ipaddress_sku_name.rb'
autoload :ApplicationGatewayProtocol, 'generated/azure_mgmt_network/models/application_gateway_protocol.rb'
autoload :ApplicationGatewayCookieBasedAffinity, 'generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb'
autoload :ApplicationGatewayBackendHealthServerHealth, 'generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb'
@@ -250,9 +288,11 @@ module Models
autoload :ExpressRouteCircuitSkuTier, 'generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb'
autoload :ExpressRouteCircuitSkuFamily, 'generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb'
autoload :ServiceProviderProvisioningState, 'generated/azure_mgmt_network/models/service_provider_provisioning_state.rb'
+ autoload :LoadBalancerSkuName, 'generated/azure_mgmt_network/models/load_balancer_sku_name.rb'
autoload :LoadDistribution, 'generated/azure_mgmt_network/models/load_distribution.rb'
autoload :ProbeProtocol, 'generated/azure_mgmt_network/models/probe_protocol.rb'
autoload :NetworkOperationStatus, 'generated/azure_mgmt_network/models/network_operation_status.rb'
+ autoload :EffectiveSecurityRuleProtocol, 'generated/azure_mgmt_network/models/effective_security_rule_protocol.rb'
autoload :EffectiveRouteSource, 'generated/azure_mgmt_network/models/effective_route_source.rb'
autoload :EffectiveRouteState, 'generated/azure_mgmt_network/models/effective_route_state.rb'
autoload :ProvisioningState, 'generated/azure_mgmt_network/models/provisioning_state.rb'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb
index 2f713f19e4..8b973fc5f9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_gateways.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -101,7 +101,7 @@ def get_with_http_info(resource_group_name, application_gateway_name, custom_hea
def get_async(resource_group_name, application_gateway_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -234,7 +234,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil)
#
def list_async(resource_group_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -317,7 +317,7 @@ def list_all_with_http_info(custom_headers = nil)
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_all_async(custom_headers = nil)
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -523,7 +523,7 @@ def list_available_waf_rule_sets_with_http_info(custom_headers = nil)
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_available_waf_rule_sets_async(custom_headers = nil)
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -606,7 +606,7 @@ def list_available_ssl_options_with_http_info(custom_headers = nil)
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_available_ssl_options_async(custom_headers = nil)
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -689,7 +689,7 @@ def list_available_ssl_predefined_policies_with_http_info(custom_headers = nil)
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_available_ssl_predefined_policies_async(custom_headers = nil)
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -775,7 +775,7 @@ def get_ssl_predefined_policy_with_http_info(predefined_policy_name, custom_head
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def get_ssl_predefined_policy_async(predefined_policy_name, custom_headers = nil)
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
fail ArgumentError, 'predefined_policy_name is nil' if predefined_policy_name.nil?
@@ -866,7 +866,7 @@ def begin_delete_with_http_info(resource_group_name, application_gateway_name, c
def begin_delete_async(resource_group_name, application_gateway_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -954,7 +954,7 @@ def begin_create_or_update_async(resource_group_name, application_gateway_name,
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
fail ArgumentError, 'parameters is nil' if parameters.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1063,7 +1063,7 @@ def begin_start_with_http_info(resource_group_name, application_gateway_name, cu
def begin_start_async(resource_group_name, application_gateway_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1143,7 +1143,7 @@ def begin_stop_with_http_info(resource_group_name, application_gateway_name, cus
def begin_stop_async(resource_group_name, application_gateway_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1233,7 +1233,7 @@ def begin_backend_health_with_http_info(resource_group_name, application_gateway
def begin_backend_health_async(resource_group_name, application_gateway_name, expand = nil, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'application_gateway_name is nil' if application_gateway_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
diff --git a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_security_groups.rb
similarity index 50%
rename from management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb
rename to management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_security_groups.rb
index adcc3ce678..8648fcfa6e 100644
--- a/management/azure_mgmt_cognitive_services/lib/generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/application_security_groups.rb
@@ -1,85 +1,112 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
-module Azure::ARM::CognitiveServices
+module Azure::ARM::Network
#
- # Cognitive Services Management Client
+ # Network Client
#
- class CognitiveServicesAccounts
+ class ApplicationSecurityGroups
include MsRestAzure
#
- # Creates and initializes a new instance of the CognitiveServicesAccounts class.
+ # Creates and initializes a new instance of the ApplicationSecurityGroups class.
# @param client service class for accessing basic functionality.
#
def initialize(client)
@client = client
end
- # @return [CognitiveServicesManagementClient] reference to the CognitiveServicesManagementClient
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
attr_reader :client
#
- # Create Cognitive Services Account. Accounts is a resource group wide resource
- # type. It holds the keys for developer to access intelligent APIs. It's also
- # the resource type for billing.
+ # Deletes the specified application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
- # @param parameters [CognitiveServicesAccountCreateParameters] The parameters
- # to provide for the created account.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [CognitiveServicesAccount] operation results.
+ def delete(resource_group_name, application_security_group_name, custom_headers = nil)
+ response = delete_async(resource_group_name, application_security_group_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def delete_async(resource_group_name, application_security_group_name, custom_headers = nil)
+ # Send request
+ promise = begin_delete_async(resource_group_name, application_security_group_name, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Gets information about the specified application security group.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ApplicationSecurityGroup] operation results.
#
- def create(resource_group_name, account_name, parameters, custom_headers = nil)
- response = create_async(resource_group_name, account_name, parameters, custom_headers).value!
+ def get(resource_group_name, application_security_group_name, custom_headers = nil)
+ response = get_async(resource_group_name, application_security_group_name, custom_headers).value!
response.body unless response.nil?
end
#
- # Create Cognitive Services Account. Accounts is a resource group wide resource
- # type. It holds the keys for developer to access intelligent APIs. It's also
- # the resource type for billing.
+ # Gets information about the specified application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
- # @param parameters [CognitiveServicesAccountCreateParameters] The parameters
- # to provide for the created account.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def create_with_http_info(resource_group_name, account_name, parameters, custom_headers = nil)
- create_async(resource_group_name, account_name, parameters, custom_headers).value!
+ def get_with_http_info(resource_group_name, application_security_group_name, custom_headers = nil)
+ get_async(resource_group_name, application_security_group_name, custom_headers).value!
end
#
- # Create Cognitive Services Account. Accounts is a resource group wide resource
- # type. It holds the keys for developer to access intelligent APIs. It's also
- # the resource type for billing.
+ # Gets information about the specified application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
- # @param parameters [CognitiveServicesAccountCreateParameters] The parameters
- # to provide for the created account.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def create_async(resource_group_name, account_name, parameters, custom_headers = nil)
+ def get_async(resource_group_name, application_security_group_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'account_name is nil' if account_name.nil?
- fail ArgumentError, 'parameters is nil' if parameters.nil?
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, 'application_security_group_name is nil' if application_security_group_name.nil?
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -88,35 +115,26 @@ def create_async(resource_group_name, account_name, parameters, custom_headers =
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
-
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
-
- # Serialize Request
- request_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountCreateParameters.mapper()
- request_content = @client.serialize(request_mapper, parameters)
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
-
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}'
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
- query_params: {'api-version' => @client.api_version},
- body: request_content,
+ path_params: {'resourceGroupName' => resource_group_name,'applicationSecurityGroupName' => application_security_group_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
- promise = @client.make_request_async(:put, path_template, options)
+ promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 200 || status_code == 201
+ unless status_code == 200
error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -124,17 +142,7 @@ def create_async(resource_group_name, account_name, parameters, custom_headers =
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount.mapper()
- result.body = @client.deserialize(result_mapper, parsed_response)
- rescue Exception => e
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
- end
- end
- # Deserialize Response
- if status_code == 201
- begin
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount.mapper()
+ result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -148,103 +156,108 @@ def create_async(resource_group_name, account_name, parameters, custom_headers =
end
#
- # Updates a Cognitive Services account
+ # Creates or updates an application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
- # @param sku [Sku] Gets or sets the SKU of the resource.
- # @param tags [Hash{String => String}] Gets or sets a list of key value pairs
- # that describe the resource. These tags can be used in viewing and grouping
- # this resource (across resource groups). A maximum of 15 tags can be provided
- # for a resource. Each tag must have a key no greater than 128 characters and
- # value no greater than 256 characters.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
+ # @param parameters [ApplicationSecurityGroup] Parameters supplied to the
+ # create or update ApplicationSecurityGroup operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [CognitiveServicesAccount] operation results.
+ # @return [ApplicationSecurityGroup] operation results.
#
- def update(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil)
- response = update_async(resource_group_name, account_name, sku, tags, custom_headers).value!
+ def create_or_update(resource_group_name, application_security_group_name, parameters, custom_headers = nil)
+ response = create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers).value!
response.body unless response.nil?
end
#
- # Updates a Cognitive Services account
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
+ # @param parameters [ApplicationSecurityGroup] Parameters supplied to the
+ # create or update ApplicationSecurityGroup operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers = nil)
+ # Send request
+ promise = begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Gets all application security groups in a subscription.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list_all(custom_headers = nil)
+ first_page = list_all_as_lazy(custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Gets all application security groups in a subscription.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
- # @param sku [Sku] Gets or sets the SKU of the resource.
- # @param tags [Hash{String => String}] Gets or sets a list of key value pairs
- # that describe the resource. These tags can be used in viewing and grouping
- # this resource (across resource groups). A maximum of 15 tags can be provided
- # for a resource. Each tag must have a key no greater than 128 characters and
- # value no greater than 256 characters.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def update_with_http_info(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil)
- update_async(resource_group_name, account_name, sku, tags, custom_headers).value!
+ def list_all_with_http_info(custom_headers = nil)
+ list_all_async(custom_headers).value!
end
#
- # Updates a Cognitive Services account
+ # Gets all application security groups in a subscription.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
- # @param sku [Sku] Gets or sets the SKU of the resource.
- # @param tags [Hash{String => String}] Gets or sets a list of key value pairs
- # that describe the resource. These tags can be used in viewing and grouping
- # this resource (across resource groups). A maximum of 15 tags can be provided
- # for a resource. Each tag must have a key no greater than 128 characters and
- # value no greater than 256 characters.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def update_async(resource_group_name, account_name, sku = nil, tags = nil, custom_headers = nil)
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'account_name is nil' if account_name.nil?
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ def list_all_async(custom_headers = nil)
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- parameters = CognitiveServicesAccountUpdateParameters.new
- unless sku.nil? && tags.nil?
- parameters.sku = sku
- parameters.tags = tags
- end
request_headers = {}
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
-
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
-
- # Serialize Request
- request_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountUpdateParameters.mapper()
- request_content = @client.serialize(request_mapper, parameters)
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
-
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}'
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationSecurityGroups'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
- query_params: {'api-version' => @client.api_version},
- body: request_content,
+ path_params: {'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
- promise = @client.make_request_async(:patch, path_template, options)
+ promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
@@ -252,7 +265,7 @@ def update_async(resource_group_name, account_name, sku = nil, tags = nil, custo
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -260,7 +273,7 @@ def update_async(resource_group_name, account_name, sku = nil, tags = nil, custo
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount.mapper()
+ result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroupListResult.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -274,50 +287,44 @@ def update_async(resource_group_name, account_name, sku = nil, tags = nil, custo
end
#
- # Deletes a Cognitive Services account from the resource group.
+ # Gets all the application security groups in a resource group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param resource_group_name [String] The name of the resource group.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
+ # @return [Array] operation results.
#
- def delete(resource_group_name, account_name, custom_headers = nil)
- response = delete_async(resource_group_name, account_name, custom_headers).value!
- nil
+ def list(resource_group_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, custom_headers)
+ first_page.get_all_items
end
#
- # Deletes a Cognitive Services account from the resource group.
+ # Gets all the application security groups in a resource group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param resource_group_name [String] The name of the resource group.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def delete_with_http_info(resource_group_name, account_name, custom_headers = nil)
- delete_async(resource_group_name, account_name, custom_headers).value!
+ def list_with_http_info(resource_group_name, custom_headers = nil)
+ list_async(resource_group_name, custom_headers).value!
end
#
- # Deletes a Cognitive Services account from the resource group.
+ # Gets all the application security groups in a resource group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param resource_group_name [String] The name of the resource group.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def delete_async(resource_group_name, account_name, custom_headers = nil)
+ def list_async(resource_group_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'account_name is nil' if account_name.nil?
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -326,29 +333,39 @@ def delete_async(resource_group_name, account_name, custom_headers = nil)
# 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.CognitiveServices/accounts/{accountName}'
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
- query_params: {'api-version' => @client.api_version},
+ path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
- promise = @client.make_request_async(:delete, path_template, options)
+ promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 200 || status_code == 204
+ unless status_code == 200
error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroupListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
result
end
@@ -357,51 +374,50 @@ def delete_async(resource_group_name, account_name, custom_headers = nil)
end
#
- # Returns a Cognitive Services account specified by the parameters.
+ # Deletes the specified application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [CognitiveServicesAccount] operation results.
#
- def get_properties(resource_group_name, account_name, custom_headers = nil)
- response = get_properties_async(resource_group_name, account_name, custom_headers).value!
- response.body unless response.nil?
+ def begin_delete(resource_group_name, application_security_group_name, custom_headers = nil)
+ response = begin_delete_async(resource_group_name, application_security_group_name, custom_headers).value!
+ nil
end
#
- # Returns a Cognitive Services account specified by the parameters.
+ # Deletes the specified application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def get_properties_with_http_info(resource_group_name, account_name, custom_headers = nil)
- get_properties_async(resource_group_name, account_name, custom_headers).value!
+ def begin_delete_with_http_info(resource_group_name, application_security_group_name, custom_headers = nil)
+ begin_delete_async(resource_group_name, application_security_group_name, custom_headers).value!
end
#
- # Returns a Cognitive Services account specified by the parameters.
+ # Deletes the specified application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def get_properties_async(resource_group_name, account_name, custom_headers = nil)
+ def begin_delete_async(resource_group_name, application_security_group_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'account_name is nil' if account_name.nil?
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, 'application_security_group_name is nil' if application_security_group_name.nil?
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -410,39 +426,29 @@ def get_properties_async(resource_group_name, account_name, custom_headers = nil
# 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.CognitiveServices/accounts/{accountName}'
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
- query_params: {'api-version' => @client.api_version},
+ path_params: {'resourceGroupName' => resource_group_name,'applicationSecurityGroupName' => application_security_group_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
- promise = @client.make_request_async(:get, path_template, options)
+ promise = @client.make_request_async(:delete, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 200
+ unless status_code == 204 || status_code == 202 || status_code == 200
error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
- # Deserialize Response
- if status_code == 200
- begin
- parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccount.mapper()
- result.body = @client.deserialize(result_mapper, parsed_response)
- rescue Exception => e
- fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
- end
- end
result
end
@@ -451,51 +457,58 @@ def get_properties_async(resource_group_name, account_name, custom_headers = nil
end
#
- # Lists the account keys for the specified Cognitive Services account.
+ # Creates or updates an application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
+ # @param parameters [ApplicationSecurityGroup] Parameters supplied to the
+ # create or update ApplicationSecurityGroup operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [CognitiveServicesAccountKeys] operation results.
+ # @return [ApplicationSecurityGroup] operation results.
#
- def list_keys(resource_group_name, account_name, custom_headers = nil)
- response = list_keys_async(resource_group_name, account_name, custom_headers).value!
+ def begin_create_or_update(resource_group_name, application_security_group_name, parameters, custom_headers = nil)
+ response = begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers).value!
response.body unless response.nil?
end
#
- # Lists the account keys for the specified Cognitive Services account.
+ # Creates or updates an application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
+ # @param parameters [ApplicationSecurityGroup] Parameters supplied to the
+ # create or update ApplicationSecurityGroup operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def list_keys_with_http_info(resource_group_name, account_name, custom_headers = nil)
- list_keys_async(resource_group_name, account_name, custom_headers).value!
+ def begin_create_or_update_with_http_info(resource_group_name, application_security_group_name, parameters, custom_headers = nil)
+ begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers).value!
end
#
- # Lists the account keys for the specified Cognitive Services account.
+ # Creates or updates an application security group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param resource_group_name [String] The name of the resource group.
+ # @param application_security_group_name [String] The name of the application
+ # security group.
+ # @param parameters [ApplicationSecurityGroup] Parameters supplied to the
+ # create or update ApplicationSecurityGroup operation.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def list_keys_async(resource_group_name, account_name, custom_headers = nil)
+ def begin_create_or_update_async(resource_group_name, application_security_group_name, parameters, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'account_name is nil' if account_name.nil?
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
+ fail ArgumentError, 'application_security_group_name is nil' if application_security_group_name.nil?
+ fail ArgumentError, 'parameters is nil' if parameters.nil?
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -504,34 +517,53 @@ def list_keys_async(resource_group_name, account_name, custom_headers = nil)
# 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.CognitiveServices/accounts/{accountName}/listKeys'
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper()
+ request_content = @client.serialize(request_mapper, parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
- query_params: {'api-version' => @client.api_version},
+ path_params: {'resourceGroupName' => resource_group_name,'applicationSecurityGroupName' => application_security_group_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ body: request_content,
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
- promise = @client.make_request_async(:post, path_template, options)
+ promise = @client.make_request_async(:put, path_template, options)
promise = promise.then do |result|
http_response = result.response
status_code = http_response.status
response_content = http_response.body
- unless status_code == 200
+ unless status_code == 201 || status_code == 200
error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
# Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountKeys.mapper()
+ result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroup.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -545,94 +577,64 @@ def list_keys_async(resource_group_name, account_name, custom_headers = nil)
end
#
- # Regenerates the specified account key for the specified Cognitive Services
- # account.
+ # Gets all application security groups in a subscription.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
- # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
- # include: 'Key1', 'Key2'
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [CognitiveServicesAccountKeys] operation results.
+ # @return [ApplicationSecurityGroupListResult] operation results.
#
- def regenerate_key(resource_group_name, account_name, key_name, custom_headers = nil)
- response = regenerate_key_async(resource_group_name, account_name, key_name, custom_headers).value!
+ def list_all_next(next_page_link, custom_headers = nil)
+ response = list_all_next_async(next_page_link, custom_headers).value!
response.body unless response.nil?
end
#
- # Regenerates the specified account key for the specified Cognitive Services
- # account.
+ # Gets all application security groups in a subscription.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
- # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
- # include: 'Key1', 'Key2'
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def regenerate_key_with_http_info(resource_group_name, account_name, key_name, custom_headers = nil)
- regenerate_key_async(resource_group_name, account_name, key_name, custom_headers).value!
+ def list_all_next_with_http_info(next_page_link, custom_headers = nil)
+ list_all_next_async(next_page_link, custom_headers).value!
end
#
- # Regenerates the specified account key for the specified Cognitive Services
- # account.
+ # Gets all application security groups in a subscription.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
- # @param key_name [KeyName] key name to generate (Key1|Key2). Possible values
- # include: 'Key1', 'Key2'
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def regenerate_key_async(resource_group_name, account_name, key_name, custom_headers = nil)
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'account_name is nil' if account_name.nil?
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
- fail ArgumentError, 'key_name is nil' if key_name.nil?
+ def list_all_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
- parameters = RegenerateKeyParameters.new
- unless key_name.nil?
- parameters.key_name = key_name
- end
request_headers = {}
# Set Headers
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
-
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
-
- # Serialize Request
- request_mapper = Azure::ARM::CognitiveServices::Models::RegenerateKeyParameters.mapper()
- request_content = @client.serialize(request_mapper, parameters)
- request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
-
- path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/regenerateKey'
+ path_template = '{nextLink}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
- query_params: {'api-version' => @client.api_version},
- body: request_content,
+ skip_encoding_path_params: {'nextLink' => next_page_link},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
- promise = @client.make_request_async(:post, path_template, options)
+ promise = @client.make_request_async(:get, path_template, options)
promise = promise.then do |result|
http_response = result.response
@@ -640,7 +642,7 @@ def regenerate_key_async(resource_group_name, account_name, key_name, custom_hea
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -648,7 +650,7 @@ def regenerate_key_async(resource_group_name, account_name, key_name, custom_hea
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountKeys.mapper()
+ result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroupListResult.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -662,52 +664,46 @@ def regenerate_key_async(resource_group_name, account_name, key_name, custom_hea
end
#
- # List available SKUs for the requested Cognitive Services account
+ # Gets all the application security groups in a resource group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [CognitiveServicesAccountEnumerateSkusResult] operation results.
+ # @return [ApplicationSecurityGroupListResult] operation results.
#
- def list_skus(resource_group_name, account_name, custom_headers = nil)
- response = list_skus_async(resource_group_name, account_name, custom_headers).value!
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
response.body unless response.nil?
end
#
- # List available SKUs for the requested Cognitive Services account
+ # Gets all the application security groups in a resource group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
#
- def list_skus_with_http_info(resource_group_name, account_name, custom_headers = nil)
- list_skus_async(resource_group_name, account_name, custom_headers).value!
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
end
#
- # List available SKUs for the requested Cognitive Services account
+ # Gets all the application security groups in a resource group.
#
- # @param resource_group_name [String] The name of the resource group within the
- # user's subscription.
- # @param account_name [String] The name of Cognitive Services account.
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
- def list_skus_async(resource_group_name, account_name, custom_headers = nil)
- fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- fail ArgumentError, 'account_name is nil' if account_name.nil?
- fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
request_headers = {}
@@ -715,14 +711,13 @@ def list_skus_async(resource_group_name, account_name, custom_headers = nil)
# 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.CognitiveServices/accounts/{accountName}/skus'
+ path_template = '{nextLink}'
request_url = @base_url || @client.base_url
options = {
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
- path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
- query_params: {'api-version' => @client.api_version},
+ skip_encoding_path_params: {'nextLink' => next_page_link},
headers: request_headers.merge(custom_headers || {}),
base_url: request_url
}
@@ -734,7 +729,7 @@ def list_skus_async(resource_group_name, account_name, custom_headers = nil)
response_content = http_response.body
unless status_code == 200
error_model = JSON.load(response_content)
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
end
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -742,7 +737,7 @@ def list_skus_async(resource_group_name, account_name, custom_headers = nil)
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::CognitiveServices::Models::CognitiveServicesAccountEnumerateSkusResult.mapper()
+ result_mapper = Azure::ARM::Network::Models::ApplicationSecurityGroupListResult.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -755,5 +750,46 @@ def list_skus_async(resource_group_name, account_name, custom_headers = nil)
promise.execute
end
+ #
+ # Gets all application security groups in a subscription.
+ #
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ApplicationSecurityGroupListResult] which provide lazy access to
+ # pages of the response.
+ #
+ def list_all_as_lazy(custom_headers = nil)
+ response = list_all_async(custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_all_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ #
+ # Gets all the application security groups in a resource group.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [ApplicationSecurityGroupListResult] which provide lazy access to
+ # pages of the response.
+ #
+ def list_as_lazy(resource_group_name, custom_headers = nil)
+ response = list_async(resource_group_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
end
end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_private_access_services.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_endpoint_services.rb
similarity index 80%
rename from management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_private_access_services.rb
rename to management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_endpoint_services.rb
index 229be36f42..5dfa6322c1 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_private_access_services.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/available_endpoint_services.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -7,11 +7,11 @@ module Azure::ARM::Network
#
# Network Client
#
- class AvailablePrivateAccessServices
+ class AvailableEndpointServices
include MsRestAzure
#
- # Creates and initializes a new instance of the AvailablePrivateAccessServices class.
+ # Creates and initializes a new instance of the AvailableEndpointServices class.
# @param client service class for accessing basic functionality.
#
def initialize(client)
@@ -22,14 +22,13 @@ def initialize(client)
attr_reader :client
#
- # List what values of private access services are available for use.
+ # List what values of endpoint services are available for use.
#
- # @param location [String] The location to check available private access
- # values.
+ # @param location [String] The location to check available endpoint services.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [Array] operation results.
+ # @return [Array] operation results.
#
def list(location, custom_headers = nil)
first_page = list_as_lazy(location, custom_headers)
@@ -37,10 +36,9 @@ def list(location, custom_headers = nil)
end
#
- # List what values of private access services are available for use.
+ # List what values of endpoint services are available for use.
#
- # @param location [String] The location to check available private access
- # values.
+ # @param location [String] The location to check available endpoint services.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
@@ -51,10 +49,9 @@ def list_with_http_info(location, custom_headers = nil)
end
#
- # List what values of private access services are available for use.
+ # List what values of endpoint services are available for use.
#
- # @param location [String] The location to check available private access
- # values.
+ # @param location [String] The location to check available endpoint services.
# @param [Hash{String => String}] A hash of custom headers that will be added
# to the HTTP request.
#
@@ -62,7 +59,7 @@ def list_with_http_info(location, custom_headers = nil)
#
def list_async(location, custom_headers = nil)
fail ArgumentError, 'location is nil' if location.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -71,7 +68,7 @@ def list_async(location, custom_headers = nil)
# 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.Network/locations/{location}/privateAccessServices'
+ path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/virtualNetworkAvailableEndpointServices'
request_url = @base_url || @client.base_url
@@ -98,7 +95,7 @@ def list_async(location, custom_headers = nil)
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::Network::Models::PrivateAccessServicesListResult.mapper()
+ result_mapper = Azure::ARM::Network::Models::EndpointServicesListResult.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -112,14 +109,14 @@ def list_async(location, custom_headers = nil)
end
#
- # List what values of private access services are available for use.
+ # List what values of endpoint services are available for use.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [PrivateAccessServicesListResult] operation results.
+ # @return [EndpointServicesListResult] operation results.
#
def list_next(next_page_link, custom_headers = nil)
response = list_next_async(next_page_link, custom_headers).value!
@@ -127,7 +124,7 @@ def list_next(next_page_link, custom_headers = nil)
end
#
- # List what values of private access services are available for use.
+ # List what values of endpoint services are available for use.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
@@ -141,7 +138,7 @@ def list_next_with_http_info(next_page_link, custom_headers = nil)
end
#
- # List what values of private access services are available for use.
+ # List what values of endpoint services are available for use.
#
# @param next_page_link [String] The NextLink from the previous successful call
# to List operation.
@@ -185,7 +182,7 @@ def list_next_async(next_page_link, custom_headers = nil)
if status_code == 200
begin
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
- result_mapper = Azure::ARM::Network::Models::PrivateAccessServicesListResult.mapper()
+ result_mapper = Azure::ARM::Network::Models::EndpointServicesListResult.mapper()
result.body = @client.deserialize(result_mapper, parsed_response)
rescue Exception => e
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
@@ -199,15 +196,14 @@ def list_next_async(next_page_link, custom_headers = nil)
end
#
- # List what values of private access services are available for use.
+ # List what values of endpoint services are available for use.
#
- # @param location [String] The location to check available private access
- # values.
+ # @param location [String] The location to check available endpoint services.
# @param custom_headers [Hash{String => String}] A hash of custom headers that
# will be added to the HTTP request.
#
- # @return [PrivateAccessServicesListResult] which provide lazy access to pages
- # of the response.
+ # @return [EndpointServicesListResult] which provide lazy access to pages of
+ # the response.
#
def list_as_lazy(location, custom_headers = nil)
response = list_async(location, custom_headers).value!
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb
index 6d7fbfd698..45d6d89a31 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/bgp_service_communities.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -55,7 +55,7 @@ def list_with_http_info(custom_headers = nil)
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_async(custom_headers = nil)
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb
new file mode 100644
index 0000000000..0f1ce18edd
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/default_security_rules.rb
@@ -0,0 +1,330 @@
+# 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::ARM::Network
+ #
+ # Network Client
+ #
+ class DefaultSecurityRules
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the DefaultSecurityRules class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
+ attr_reader :client
+
+ #
+ # Gets all default security rules in a network security group.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param network_security_group_name [String] The name of the network security
+ # group.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, network_security_group_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, network_security_group_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Gets all default security rules in a network security group.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param network_security_group_name [String] The name of the network security
+ # group.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, network_security_group_name, custom_headers = nil)
+ list_async(resource_group_name, network_security_group_name, custom_headers).value!
+ end
+
+ #
+ # Gets all default security rules in a network security group.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param network_security_group_name [String] The name of the network security
+ # group.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, network_security_group_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'networkSecurityGroupName' => network_security_group_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::SecurityRuleListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Get the specified default network security rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param network_security_group_name [String] The name of the network security
+ # group.
+ # @param default_security_rule_name [String] The name of the default security
+ # rule.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [SecurityRule] operation results.
+ #
+ def get(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers = nil)
+ response = get_async(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Get the specified default network security rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param network_security_group_name [String] The name of the network security
+ # group.
+ # @param default_security_rule_name [String] The name of the default security
+ # rule.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers = nil)
+ get_async(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers).value!
+ end
+
+ #
+ # Get the specified default network security rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param network_security_group_name [String] The name of the network security
+ # group.
+ # @param default_security_rule_name [String] The name of the default security
+ # rule.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, network_security_group_name, default_security_rule_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'network_security_group_name is nil' if network_security_group_name.nil?
+ fail ArgumentError, 'default_security_rule_name is nil' if default_security_rule_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'networkSecurityGroupName' => network_security_group_name,'defaultSecurityRuleName' => default_security_rule_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::SecurityRule.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all default security rules in a network security group.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [SecurityRuleListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets all default security rules in a network security group.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Gets all default security rules in a network security group.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::SecurityRuleListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all default security rules in a network security group.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param network_security_group_name [String] The name of the network security
+ # group.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [SecurityRuleListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(resource_group_name, network_security_group_name, custom_headers = nil)
+ response = list_async(resource_group_name, network_security_group_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb
index 9f927fda25..3548921dab 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_authorizations.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -107,7 +107,7 @@ def get_async(resource_group_name, circuit_name, authorization_name, custom_head
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -248,7 +248,7 @@ def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
def list_async(resource_group_name, circuit_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -342,7 +342,7 @@ def begin_delete_async(resource_group_name, circuit_name, authorization_name, cu
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -437,7 +437,7 @@ def begin_create_or_update_async(resource_group_name, circuit_name, authorizatio
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'authorization_name is nil' if authorization_name.nil?
fail ArgumentError, 'authorization_parameters is nil' if authorization_parameters.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb
index 90036de289..dc6899a755 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuit_peerings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -107,7 +107,7 @@ def get_async(resource_group_name, circuit_name, peering_name, custom_headers =
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -246,7 +246,7 @@ def list_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
def list_async(resource_group_name, circuit_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -340,7 +340,7 @@ def begin_delete_async(resource_group_name, circuit_name, peering_name, custom_h
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -432,7 +432,7 @@ def begin_create_or_update_async(resource_group_name, circuit_name, peering_name
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
fail ArgumentError, 'peering_parameters is nil' if peering_parameters.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb
index 9113f173ab..3f1c1d97aa 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_circuits.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -101,7 +101,7 @@ def get_with_http_info(resource_group_name, circuit_name, custom_headers = nil)
def get_async(resource_group_name, circuit_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -379,7 +379,7 @@ def get_stats_with_http_info(resource_group_name, circuit_name, custom_headers =
def get_stats_async(resource_group_name, circuit_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -474,7 +474,7 @@ def get_peering_stats_async(resource_group_name, circuit_name, peering_name, cus
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -561,7 +561,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil)
#
def list_async(resource_group_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -644,7 +644,7 @@ def list_all_with_http_info(custom_headers = nil)
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_all_async(custom_headers = nil)
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -734,7 +734,7 @@ def begin_delete_with_http_info(resource_group_name, circuit_name, custom_header
def begin_delete_async(resource_group_name, circuit_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -822,7 +822,7 @@ def begin_create_or_update_async(resource_group_name, circuit_name, parameters,
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'parameters is nil' if parameters.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -943,7 +943,7 @@ def begin_list_arp_table_async(resource_group_name, circuit_name, peering_name,
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
fail ArgumentError, 'device_path is nil' if device_path.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1045,7 +1045,7 @@ def begin_list_routes_table_async(resource_group_name, circuit_name, peering_nam
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
fail ArgumentError, 'device_path is nil' if device_path.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -1147,7 +1147,7 @@ def begin_list_routes_table_summary_async(resource_group_name, circuit_name, pee
fail ArgumentError, 'circuit_name is nil' if circuit_name.nil?
fail ArgumentError, 'peering_name is nil' if peering_name.nil?
fail ArgumentError, 'device_path is nil' if device_path.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb
index 86d676501a..ab58a5e5fa 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/express_route_service_providers.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -55,7 +55,7 @@ def list_with_http_info(custom_headers = nil)
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_async(custom_headers = nil)
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb
new file mode 100644
index 0000000000..6254487021
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/inbound_nat_rules.rb
@@ -0,0 +1,616 @@
+# 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::ARM::Network
+ #
+ # Network Client
+ #
+ class InboundNatRules
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the InboundNatRules class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
+ attr_reader :client
+
+ #
+ # Gets all the inbound nat rules in a load balancer.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, load_balancer_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Gets all the inbound nat rules in a load balancer.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil)
+ list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ end
+
+ #
+ # Gets all the inbound nat rules in a load balancer.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, load_balancer_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/inboundNatRules'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::InboundNatRuleListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Deletes the specified load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ def delete(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil)
+ response = delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil)
+ # Send request
+ promise = begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Gets the specified load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param expand [String] Expands referenced resources.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [InboundNatRule] operation results.
+ #
+ def get(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand = nil, custom_headers = nil)
+ response = get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the specified load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param expand [String] Expands referenced resources.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand = nil, custom_headers = nil)
+ get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand, custom_headers).value!
+ end
+
+ #
+ # Gets the specified load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param expand [String] Expands referenced resources.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, expand = nil, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ fail ArgumentError, 'inbound_nat_rule_name is nil' if inbound_nat_rule_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'inboundNatRuleName' => inbound_nat_rule_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version,'$expand' => expand},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Creates or updates a load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to
+ # the create or update inbound nat rule operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [InboundNatRule] operation results.
+ #
+ def create_or_update(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil)
+ response = create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to
+ # the create or update inbound nat rule operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Concurrent::Promise] promise which provides async access to http
+ # response.
+ #
+ def create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil)
+ # Send request
+ promise = begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers)
+
+ promise = promise.then do |response|
+ # Defining deserialization method.
+ deserialize_method = lambda do |parsed_response|
+ result_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper()
+ parsed_response = @client.deserialize(result_mapper, parsed_response)
+ end
+
+ # Waiting for response.
+ @client.get_long_running_operation_result(response, deserialize_method)
+ end
+
+ promise
+ end
+
+ #
+ # Deletes the specified load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ #
+ def begin_delete(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil)
+ response = begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers).value!
+ nil
+ end
+
+ #
+ # Deletes the specified load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_delete_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil)
+ begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers).value!
+ end
+
+ #
+ # Deletes the specified load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_delete_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ fail ArgumentError, 'inbound_nat_rule_name is nil' if inbound_nat_rule_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'inboundNatRuleName' => inbound_nat_rule_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:delete, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 204 || status_code == 202 || status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Creates or updates a load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to
+ # the create or update inbound nat rule operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [InboundNatRule] operation results.
+ #
+ def begin_create_or_update(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil)
+ response = begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Creates or updates a load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to
+ # the create or update inbound nat rule operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def begin_create_or_update_with_http_info(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil)
+ begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers).value!
+ end
+
+ #
+ # Creates or updates a load balancer inbound nat rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param inbound_nat_rule_name [String] The name of the inbound nat rule.
+ # @param inbound_nat_rule_parameters [InboundNatRule] Parameters supplied to
+ # the create or update inbound nat rule operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def begin_create_or_update_async(resource_group_name, load_balancer_name, inbound_nat_rule_name, inbound_nat_rule_parameters, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ fail ArgumentError, 'inbound_nat_rule_name is nil' if inbound_nat_rule_name.nil?
+ fail ArgumentError, 'inbound_nat_rule_parameters is nil' if inbound_nat_rule_parameters.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # Set Headers
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
+
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
+
+ # Serialize Request
+ request_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper()
+ request_content = @client.serialize(request_mapper, inbound_nat_rule_parameters)
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
+
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'inboundNatRuleName' => inbound_nat_rule_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ body: request_content,
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:put, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 201 || status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 201
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::InboundNatRule.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the inbound nat rules in a load balancer.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [InboundNatRuleListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets all the inbound nat rules in a load balancer.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Gets all the inbound nat rules in a load balancer.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::InboundNatRuleListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the inbound nat rules in a load balancer.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [InboundNatRuleListResult] which provide lazy access to pages of the
+ # response.
+ #
+ def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil)
+ response = list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb
new file mode 100644
index 0000000000..4212b13556
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_backend_address_pools.rb
@@ -0,0 +1,323 @@
+# 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::ARM::Network
+ #
+ # Network Client
+ #
+ class LoadBalancerBackendAddressPools
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the LoadBalancerBackendAddressPools class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
+ attr_reader :client
+
+ #
+ # Gets all the load balancer backed address pools.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, load_balancer_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Gets all the load balancer backed address pools.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil)
+ list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ end
+
+ #
+ # Gets all the load balancer backed address pools.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, load_balancer_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/backendAddressPools'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::LoadBalancerBackendAddressPoolListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets load balancer backend address pool.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param backend_address_pool_name [String] The name of the backend address
+ # pool.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [BackendAddressPool] operation results.
+ #
+ def get(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers = nil)
+ response = get_async(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets load balancer backend address pool.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param backend_address_pool_name [String] The name of the backend address
+ # pool.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers = nil)
+ get_async(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers).value!
+ end
+
+ #
+ # Gets load balancer backend address pool.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param backend_address_pool_name [String] The name of the backend address
+ # pool.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, load_balancer_name, backend_address_pool_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ fail ArgumentError, 'backend_address_pool_name is nil' if backend_address_pool_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'backendAddressPoolName' => backend_address_pool_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::BackendAddressPool.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the load balancer backed address pools.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [LoadBalancerBackendAddressPoolListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets all the load balancer backed address pools.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Gets all the load balancer backed address pools.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::LoadBalancerBackendAddressPoolListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the load balancer backed address pools.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [LoadBalancerBackendAddressPoolListResult] which provide lazy access
+ # to pages of the response.
+ #
+ def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil)
+ response = list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb
new file mode 100644
index 0000000000..294d8dad57
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_frontend_ipconfigurations.rb
@@ -0,0 +1,323 @@
+# 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::ARM::Network
+ #
+ # Network Client
+ #
+ class LoadBalancerFrontendIPConfigurations
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the LoadBalancerFrontendIPConfigurations class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
+ attr_reader :client
+
+ #
+ # Gets all the load balancer frontend IP configurations.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, load_balancer_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Gets all the load balancer frontend IP configurations.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil)
+ list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ end
+
+ #
+ # Gets all the load balancer frontend IP configurations.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, load_balancer_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::LoadBalancerFrontendIPConfigurationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets load balancer frontend IP configuration.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param frontend_ipconfiguration_name [String] The name of the frontend IP
+ # configuration.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [FrontendIPConfiguration] operation results.
+ #
+ def get(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers = nil)
+ response = get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets load balancer frontend IP configuration.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param frontend_ipconfiguration_name [String] The name of the frontend IP
+ # configuration.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers = nil)
+ get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers).value!
+ end
+
+ #
+ # Gets load balancer frontend IP configuration.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param frontend_ipconfiguration_name [String] The name of the frontend IP
+ # configuration.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, load_balancer_name, frontend_ipconfiguration_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ fail ArgumentError, 'frontend_ipconfiguration_name is nil' if frontend_ipconfiguration_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'frontendIPConfigurationName' => frontend_ipconfiguration_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::FrontendIPConfiguration.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the load balancer frontend IP configurations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [LoadBalancerFrontendIPConfigurationListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets all the load balancer frontend IP configurations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Gets all the load balancer frontend IP configurations.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::LoadBalancerFrontendIPConfigurationListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the load balancer frontend IP configurations.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [LoadBalancerFrontendIPConfigurationListResult] which provide lazy
+ # access to pages of the response.
+ #
+ def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil)
+ response = list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb
new file mode 100644
index 0000000000..86f64c1067
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_load_balancing_rules.rb
@@ -0,0 +1,320 @@
+# 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::ARM::Network
+ #
+ # Network Client
+ #
+ class LoadBalancerLoadBalancingRules
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the LoadBalancerLoadBalancingRules class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
+ attr_reader :client
+
+ #
+ # Gets all the load balancing rules in a load balancer.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, load_balancer_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Gets all the load balancing rules in a load balancer.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil)
+ list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ end
+
+ #
+ # Gets all the load balancing rules in a load balancer.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, load_balancer_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/loadBalancingRules'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::LoadBalancerLoadBalancingRuleListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets the specified load balancer load balancing rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param load_balancing_rule_name [String] The name of the load balancing rule.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [LoadBalancingRule] operation results.
+ #
+ def get(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers = nil)
+ response = get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets the specified load balancer load balancing rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param load_balancing_rule_name [String] The name of the load balancing rule.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers = nil)
+ get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers).value!
+ end
+
+ #
+ # Gets the specified load balancer load balancing rule.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param load_balancing_rule_name [String] The name of the load balancing rule.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, load_balancer_name, load_balancing_rule_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ fail ArgumentError, 'load_balancing_rule_name is nil' if load_balancing_rule_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'loadBalancingRuleName' => load_balancing_rule_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::LoadBalancingRule.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the load balancing rules in a load balancer.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [LoadBalancerLoadBalancingRuleListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets all the load balancing rules in a load balancer.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Gets all the load balancing rules in a load balancer.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::LoadBalancerLoadBalancingRuleListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the load balancing rules in a load balancer.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [LoadBalancerLoadBalancingRuleListResult] which provide lazy access
+ # to pages of the response.
+ #
+ def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil)
+ response = list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb
new file mode 100644
index 0000000000..8611f9adae
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_network_interfaces.rb
@@ -0,0 +1,225 @@
+# 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::ARM::Network
+ #
+ # Network Client
+ #
+ class LoadBalancerNetworkInterfaces
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the LoadBalancerNetworkInterfaces class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
+ attr_reader :client
+
+ #
+ # Gets associated load balancer network interfaces.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, load_balancer_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Gets associated load balancer network interfaces.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil)
+ list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ end
+
+ #
+ # Gets associated load balancer network interfaces.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, load_balancer_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/networkInterfaces'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::NetworkInterfaceListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets associated load balancer network interfaces.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [NetworkInterfaceListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets associated load balancer network interfaces.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Gets associated load balancer network interfaces.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::NetworkInterfaceListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets associated load balancer network interfaces.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [NetworkInterfaceListResult] which provide lazy access to pages of
+ # the response.
+ #
+ def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil)
+ response = list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb
new file mode 100644
index 0000000000..94b5e62688
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancer_probes.rb
@@ -0,0 +1,320 @@
+# 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::ARM::Network
+ #
+ # Network Client
+ #
+ class LoadBalancerProbes
+ include MsRestAzure
+
+ #
+ # Creates and initializes a new instance of the LoadBalancerProbes class.
+ # @param client service class for accessing basic functionality.
+ #
+ def initialize(client)
+ @client = client
+ end
+
+ # @return [NetworkManagementClient] reference to the NetworkManagementClient
+ attr_reader :client
+
+ #
+ # Gets all the load balancer probes.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Array] operation results.
+ #
+ def list(resource_group_name, load_balancer_name, custom_headers = nil)
+ first_page = list_as_lazy(resource_group_name, load_balancer_name, custom_headers)
+ first_page.get_all_items
+ end
+
+ #
+ # Gets all the load balancer probes.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_with_http_info(resource_group_name, load_balancer_name, custom_headers = nil)
+ list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ end
+
+ #
+ # Gets all the load balancer probes.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_async(resource_group_name, load_balancer_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/probes'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::LoadBalancerProbeListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets load balancer probe.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param probe_name [String] The name of the probe.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [Probe] operation results.
+ #
+ def get(resource_group_name, load_balancer_name, probe_name, custom_headers = nil)
+ response = get_async(resource_group_name, load_balancer_name, probe_name, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets load balancer probe.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param probe_name [String] The name of the probe.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def get_with_http_info(resource_group_name, load_balancer_name, probe_name, custom_headers = nil)
+ get_async(resource_group_name, load_balancer_name, probe_name, custom_headers).value!
+ end
+
+ #
+ # Gets load balancer probe.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param probe_name [String] The name of the probe.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def get_async(resource_group_name, load_balancer_name, probe_name, custom_headers = nil)
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
+ fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
+ fail ArgumentError, 'probe_name is nil' if probe_name.nil?
+ api_version = '2017-09-01'
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
+
+
+ request_headers = {}
+
+ # 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.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ path_params: {'resourceGroupName' => resource_group_name,'loadBalancerName' => load_balancer_name,'probeName' => probe_name,'subscriptionId' => @client.subscription_id},
+ query_params: {'api-version' => api_version},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::Probe.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the load balancer probes.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [LoadBalancerProbeListResult] operation results.
+ #
+ def list_next(next_page_link, custom_headers = nil)
+ response = list_next_async(next_page_link, custom_headers).value!
+ response.body unless response.nil?
+ end
+
+ #
+ # Gets all the load balancer probes.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
+ #
+ def list_next_with_http_info(next_page_link, custom_headers = nil)
+ list_next_async(next_page_link, custom_headers).value!
+ end
+
+ #
+ # Gets all the load balancer probes.
+ #
+ # @param next_page_link [String] The NextLink from the previous successful call
+ # to List operation.
+ # @param [Hash{String => String}] A hash of custom headers that will be added
+ # to the HTTP request.
+ #
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
+ #
+ def list_next_async(next_page_link, custom_headers = nil)
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
+
+
+ request_headers = {}
+
+ # 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 = '{nextLink}'
+
+ request_url = @base_url || @client.base_url
+
+ options = {
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
+ skip_encoding_path_params: {'nextLink' => next_page_link},
+ headers: request_headers.merge(custom_headers || {}),
+ base_url: request_url
+ }
+ promise = @client.make_request_async(:get, path_template, options)
+
+ promise = promise.then do |result|
+ http_response = result.response
+ status_code = http_response.status
+ response_content = http_response.body
+ unless status_code == 200
+ error_model = JSON.load(response_content)
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
+ end
+
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
+ # Deserialize Response
+ if status_code == 200
+ begin
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
+ result_mapper = Azure::ARM::Network::Models::LoadBalancerProbeListResult.mapper()
+ result.body = @client.deserialize(result_mapper, parsed_response)
+ rescue Exception => e
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
+ end
+ end
+
+ result
+ end
+
+ promise.execute
+ end
+
+ #
+ # Gets all the load balancer probes.
+ #
+ # @param resource_group_name [String] The name of the resource group.
+ # @param load_balancer_name [String] The name of the load balancer.
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
+ # will be added to the HTTP request.
+ #
+ # @return [LoadBalancerProbeListResult] which provide lazy access to pages of
+ # the response.
+ #
+ def list_as_lazy(resource_group_name, load_balancer_name, custom_headers = nil)
+ response = list_async(resource_group_name, load_balancer_name, custom_headers).value!
+ unless response.nil?
+ page = response.body
+ page.next_method = Proc.new do |next_page_link|
+ list_next_async(next_page_link, custom_headers)
+ end
+ page
+ end
+ end
+
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb
index 8fa4963039..a37dcbb3bb 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/load_balancers.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -104,7 +104,7 @@ def get_with_http_info(resource_group_name, load_balancer_name, expand = nil, cu
def get_async(resource_group_name, load_balancer_name, expand = nil, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -233,7 +233,7 @@ def list_all_with_http_info(custom_headers = nil)
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
#
def list_all_async(custom_headers = nil)
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -320,7 +320,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil)
#
def list_async(resource_group_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -410,7 +410,7 @@ def begin_delete_with_http_info(resource_group_name, load_balancer_name, custom_
def begin_delete_async(resource_group_name, load_balancer_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -498,7 +498,7 @@ def begin_create_or_update_async(resource_group_name, load_balancer_name, parame
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'load_balancer_name is nil' if load_balancer_name.nil?
fail ArgumentError, 'parameters is nil' if parameters.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb
index a91df67865..11123a2359 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/local_network_gateways.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -114,7 +114,7 @@ def get_with_http_info(resource_group_name, local_network_gateway_name, custom_h
def get_async(resource_group_name, local_network_gateway_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -241,7 +241,7 @@ def list_with_http_info(resource_group_name, custom_headers = nil)
#
def list_async(resource_group_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -342,7 +342,7 @@ def begin_create_or_update_async(resource_group_name, local_network_gateway_name
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
fail ArgumentError, 'parameters is nil' if parameters.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -454,7 +454,7 @@ def begin_delete_with_http_info(resource_group_name, local_network_gateway_name,
def begin_delete_async(resource_group_name, local_network_gateway_name, custom_headers = nil)
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
fail ArgumentError, 'local_network_gateway_name is nil' if local_network_gateway_name.nil?
- api_version = '2017-06-01'
+ api_version = '2017-09-01'
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/access.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/access.rb
index e47983cec7..a3f0a8caa3 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/access.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/access.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/address_space.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/address_space.rb
index efc780f021..c899e97156 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/address_space.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/address_space.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class AddressSpace
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A list of address blocks reserved for this
# virtual network in CIDR notation.
attr_accessor :address_prefixes
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway.rb
index e38938018a..40700ce4c9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Application gateway resource
#
- class ApplicationGateway < MsRestAzure::Resource
+ class ApplicationGateway < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [ApplicationGatewaySku] SKU of the application gateway
# resource.
attr_accessor :sku
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb
index 523c63bd39..9350b05bd3 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_authentication_certificate.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Authentication certificates of an application gateway.
#
- class ApplicationGatewayAuthenticationCertificate < MsRestAzure::SubResource
+ class ApplicationGatewayAuthenticationCertificate < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] Certificate public data.
attr_accessor :data
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb
index 900ae4e7d2..c820365050 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_options.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Response for ApplicationGatewayAvailableSslOptions API service call.
#
- class ApplicationGatewayAvailableSslOptions < MsRestAzure::Resource
+ class ApplicationGatewayAvailableSslOptions < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] List of available Ssl predefined policy.
attr_accessor :predefined_policies
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb
index 7aede9a3a2..3c2c1c177f 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_ssl_predefined_policies.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb
index a8df23393a..9a7b793fad 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_available_waf_rule_sets_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayAvailableWafRuleSetsResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of
# application gateway rule sets.
attr_accessor :value
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb
index 4588a63dd7..81eaf4ac9f 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_address.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayBackendAddress
include MsRestAzure
- include MsRest::JSONable
# @return [String] Fully qualified domain name (FQDN).
attr_accessor :fqdn
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb
index 900321c572..adb497b517 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_address_pool.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Backend Address Pool of an application gateway.
#
- class ApplicationGatewayBackendAddressPool < MsRestAzure::SubResource
+ class ApplicationGatewayBackendAddressPool < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Collection of
# references to IPs defined in network interfaces.
attr_accessor :backend_ipconfigurations
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb
index 1650d9a946..48d989e37c 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayBackendHealth
include MsRestAzure
- include MsRest::JSONable
# @return [Array]
attr_accessor :backend_address_pools
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb
index b1f29b0105..2c214fac08 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_http_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayBackendHealthHttpSettings
include MsRestAzure
- include MsRest::JSONable
# @return [ApplicationGatewayBackendHttpSettings] Reference of an
# ApplicationGatewayBackendHttpSettings resource.
attr_accessor :backend_http_settings
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb
index 234838eeba..aabeedc4dc 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_pool.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayBackendHealthPool
include MsRestAzure
- include MsRest::JSONable
# @return [ApplicationGatewayBackendAddressPool] Reference of an
# ApplicationGatewayBackendAddressPool resource.
attr_accessor :backend_address_pool
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb
index a3eabff122..ac2fb20af9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayBackendHealthServer
include MsRestAzure
- include MsRest::JSONable
# @return [String] IP address or FQDN of backend server.
attr_accessor :address
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb
index 8bb3aa6894..9319ab4da6 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_health_server_health.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb
index 3adb2d532a..338604edca 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_backend_http_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Backend address pool settings of an application gateway.
#
- class ApplicationGatewayBackendHttpSettings < MsRestAzure::SubResource
+ class ApplicationGatewayBackendHttpSettings < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Port
attr_accessor :port
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb
index 5006554030..ba3b3a5507 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_connection_draining.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -14,7 +14,6 @@ class ApplicationGatewayConnectionDraining
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Whether connection draining is enabled or not.
attr_accessor :enabled
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb
index 2d47a0fbc9..eaf8de16a5 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_cookie_based_affinity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb
index 67e025d751..4888a93fc2 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_disabled_rule_group.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayFirewallDisabledRuleGroup
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the rule group that will be disabled.
attr_accessor :rule_group_name
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb
index 07d4b8b2f2..922dfad68b 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_mode.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb
index 27fe4911d6..9bd052b888 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayFirewallRule
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The identifier of the web application firewall rule.
attr_accessor :rule_id
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb
index cafbbf293d..30f9f16f4f 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_group.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayFirewallRuleGroup
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the web application firewall rule group.
attr_accessor :rule_group_name
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb
index 56a315f52c..2a5864f3b6 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_firewall_rule_set.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A web application firewall rule set.
#
- class ApplicationGatewayFirewallRuleSet < MsRestAzure::Resource
+ class ApplicationGatewayFirewallRuleSet < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The provisioning state of the web application firewall
# rule set.
attr_accessor :provisioning_state
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb
index 9c6e16dceb..8515ce916a 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_frontend_ipconfiguration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Frontend IP configuration of an application gateway.
#
- class ApplicationGatewayFrontendIPConfiguration < MsRestAzure::SubResource
+ class ApplicationGatewayFrontendIPConfiguration < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] PrivateIPAddress of the network interface IP
# Configuration.
attr_accessor :private_ipaddress
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb
index d2f8b2b7ee..127454259f 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_frontend_port.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Frontend port of an application gateway.
#
- class ApplicationGatewayFrontendPort < MsRestAzure::SubResource
+ class ApplicationGatewayFrontendPort < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Frontend port
attr_accessor :port
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb
index c991ae92cf..f17e948f17 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_http_listener.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Http listener of an application gateway.
#
- class ApplicationGatewayHttpListener < MsRestAzure::SubResource
+ class ApplicationGatewayHttpListener < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] Frontend IP configuration resource of an
# application gateway.
attr_accessor :frontend_ipconfiguration
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb
index aca473a5d2..52ba52a24c 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ipconfiguration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,11 +9,10 @@ module Models
# IP configuration of an application gateway. Currently 1 public and 1
# private IP configuration is allowed.
#
- class ApplicationGatewayIPConfiguration < MsRestAzure::SubResource
+ class ApplicationGatewayIPConfiguration < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] Reference of the subnet resource. A subnet from
# where application gateway gets its private address.
attr_accessor :subnet
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb
index 8b7692dd0d..6503c6a953 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb
index b3ad6c7a2b..7d32e60d6b 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_operational_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb
index 39af0df55c..1d9546bcc9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_path_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Path rule of URL path map of an application gateway.
#
- class ApplicationGatewayPathRule < MsRestAzure::SubResource
+ class ApplicationGatewayPathRule < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Path rules of URL path map.
attr_accessor :paths
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb
index 0544e8e786..47a3a5c88c 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_probe.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Probe of the application gateway.
#
- class ApplicationGatewayProbe < MsRestAzure::SubResource
+ class ApplicationGatewayProbe < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [ApplicationGatewayProtocol] Protocol. Possible values include:
# 'Http', 'Https'
attr_accessor :protocol
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb
index b84a5d3a60..dd5de6b819 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_probe_health_response_match.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayProbeHealthResponseMatch
include MsRestAzure
- include MsRest::JSONable
# @return [String] Body that must be contained in the health response.
# Default value is empty.
attr_accessor :body
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb
index 5613f5a1b8..7c9d254c9e 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_protocol.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb
index 235bbe4352..d74de1943b 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_redirect_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Redirect configuration of an application gateway.
#
- class ApplicationGatewayRedirectConfiguration < MsRestAzure::SubResource
+ class ApplicationGatewayRedirectConfiguration < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [ApplicationGatewayRedirectType] Supported http redirection
# types - Permanent, Temporary, Found, SeeOther. Possible values include:
# 'Permanent', 'Found', 'SeeOther', 'Temporary'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb
index 7a1da5b068..c22b055f81 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_redirect_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb
index ba018080cb..2502cc2b07 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Request routing rule of an application gateway.
#
- class ApplicationGatewayRequestRoutingRule < MsRestAzure::SubResource
+ class ApplicationGatewayRequestRoutingRule < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [ApplicationGatewayRequestRoutingRuleType] Rule type. Possible
# values include: 'Basic', 'PathBasedRouting'
attr_accessor :rule_type
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb
index a605de575a..9b484313f9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_request_routing_rule_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb
index c3b439cc46..2ff01a715d 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewaySku
include MsRestAzure
- include MsRest::JSONable
# @return [ApplicationGatewaySkuName] Name of an application gateway SKU.
# Possible values include: 'Standard_Small', 'Standard_Medium',
# 'Standard_Large', 'WAF_Medium', 'WAF_Large'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb
index d5d5ada416..7e71b9eb49 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_sku_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb
index 859bbc2af5..aeb411de42 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_certificate.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# SSL certificates of an application gateway.
#
- class ApplicationGatewaySslCertificate < MsRestAzure::SubResource
+ class ApplicationGatewaySslCertificate < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] Base-64 encoded pfx certificate. Only applicable in
# PUT Request.
attr_accessor :data
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb
index f9915529b9..75a9668e13 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_cipher_suite.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb
index 14e639ff7c..8e0faa0c82 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewaySslPolicy
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Ssl protocols to be
# disabled on application gateway.
attr_accessor :disabled_ssl_protocols
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb
index dc8611a238..6b39442bc9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_name.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb
index 6843d40d06..2b1b231428 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_policy_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb
index 4df9ba88de..1172aa8a28 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_predefined_policy.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# An Ssl predefined policy
#
- class ApplicationGatewaySslPredefinedPolicy < MsRestAzure::SubResource
+ class ApplicationGatewaySslPredefinedPolicy < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] Name of Ssl predefined policy.
attr_accessor :name
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb
index 128a2da624..e10996c579 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_ssl_protocol.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb
index 9e256db1ec..c6b47670b6 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_tier.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb
index 9ae8299a78..7dba938f2a 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_url_path_map.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -9,11 +9,10 @@ module Models
# UrlPathMaps give a url path to the backend mapping information for
# PathBasedRouting.
#
- class ApplicationGatewayUrlPathMap < MsRestAzure::SubResource
+ class ApplicationGatewayUrlPathMap < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] Default backend address pool resource of URL path
# map.
attr_accessor :default_backend_address_pool
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb
index fb20135351..702fec75cf 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_gateway_web_application_firewall_configuration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ApplicationGatewayWebApplicationFirewallConfiguration
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Whether the web application firewall is enabled or
# not.
attr_accessor :enabled
diff --git a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_health_metadata.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group.rb
old mode 100755
new mode 100644
similarity index 59%
rename from management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_health_metadata.rb
rename to management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group.rb
index 44d52bdefe..315766fbe4
--- a/management/azure_mgmt_web/lib/generated/azure_mgmt_web/models/resource_health_metadata.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group.rb
@@ -1,44 +1,47 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
-module Azure::ARM::Web
+module Azure::ARM::Network
module Models
#
- # Used for getting ResourceHealthCheck settings.
+ # An application security group in a resource group.
#
- class ResourceHealthMetadata < MsRestAzure::Resource
+ class ApplicationSecurityGroup < Resource
include MsRestAzure
- include MsRest::JSONable
- # @return [String] ARM Resource Id
- attr_accessor :resource_health_metadata_id
+ # @return [String] The resource GUID property of the application security
+ # group resource. It uniquely identifies a resource, even if the user
+ # changes its name or migrate the resource across subscriptions or
+ # resource groups.
+ attr_accessor :resource_guid
- # @return [String] The category that the resource matches in the RHC
- # Policy File
- attr_accessor :category
+ # @return [String] The provisioning state of the application security
+ # group resource. Possible values are: 'Succeeded', 'Updating',
+ # 'Deleting', and 'Failed'.
+ attr_accessor :provisioning_state
- # @return [Boolean] Is there a health signal for the resource
- attr_accessor :signal_availability
+ # @return [String] A unique read-only string that changes whenever the
+ # resource is updated.
+ attr_accessor :etag
#
- # Mapper for ResourceHealthMetadata class as Ruby Hash.
+ # Mapper for ApplicationSecurityGroup class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
- serialized_name: 'ResourceHealthMetadata',
+ serialized_name: 'ApplicationSecurityGroup',
type: {
name: 'Composite',
- class_name: 'ResourceHealthMetadata',
+ class_name: 'ApplicationSecurityGroup',
model_properties: {
id: {
required: false,
- read_only: true,
serialized_name: 'id',
type: {
name: 'String'
@@ -46,28 +49,23 @@ def self.mapper()
},
name: {
required: false,
+ read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
- kind: {
+ type: {
required: false,
- serialized_name: 'kind',
+ read_only: true,
+ serialized_name: 'type',
type: {
name: 'String'
}
},
location: {
- required: true,
- serialized_name: 'location',
- type: {
- name: 'String'
- }
- },
- type: {
required: false,
- serialized_name: 'type',
+ serialized_name: 'location',
type: {
name: 'String'
}
@@ -86,25 +84,28 @@ def self.mapper()
}
}
},
- resource_health_metadata_id: {
+ resource_guid: {
required: false,
- serialized_name: 'properties.id',
+ read_only: true,
+ serialized_name: 'properties.resourceGuid',
type: {
name: 'String'
}
},
- category: {
+ provisioning_state: {
required: false,
- serialized_name: 'properties.category',
+ read_only: true,
+ serialized_name: 'properties.provisioningState',
type: {
name: 'String'
}
},
- signal_availability: {
+ etag: {
required: false,
- serialized_name: 'properties.signalAvailability',
+ read_only: true,
+ serialized_name: 'etag',
type: {
- name: 'Boolean'
+ name: 'String'
}
}
}
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_services_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group_list_result.rb
similarity index 70%
rename from management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_services_list_result.rb
rename to management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group_list_result.rb
index e8dc584dc4..a98d061fe5 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_services_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/application_security_group_list_result.rb
@@ -1,20 +1,20 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Network
module Models
#
- # Response for the ListAvailablePrivateAccessServices API service call.
+ # A list of application security groups.
#
- class PrivateAccessServicesListResult
+ class ApplicationSecurityGroupListResult
include MsRestAzure
include MsRest::JSONable
- # @return [Array] List of available private
- # access service values in a region.
+ # @return [Array] A list of application
+ # security groups.
attr_accessor :value
# @return [String] The URL to get the next set of results.
@@ -26,7 +26,7 @@ class PrivateAccessServicesListResult
#
# Gets the rest of the items for the request, enabling auto-pagination.
#
- # @return [Array] operation results.
+ # @return [Array] operation results.
#
def get_all_items
items = @value
@@ -41,7 +41,7 @@ def get_all_items
#
# Gets the next page of results.
#
- # @return [PrivateAccessServicesListResult] with next page content.
+ # @return [ApplicationSecurityGroupListResult] with next page content.
#
def get_next_page
response = @next_method.call(@next_link).value! unless @next_method.nil?
@@ -53,16 +53,16 @@ def get_next_page
end
#
- # Mapper for PrivateAccessServicesListResult class as Ruby Hash.
+ # Mapper for ApplicationSecurityGroupListResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
- serialized_name: 'PrivateAccessServicesListResult',
+ serialized_name: 'ApplicationSecurityGroupListResult',
type: {
name: 'Composite',
- class_name: 'PrivateAccessServicesListResult',
+ class_name: 'ApplicationSecurityGroupListResult',
model_properties: {
value: {
required: false,
@@ -71,16 +71,17 @@ def self.mapper()
name: 'Sequence',
element: {
required: false,
- serialized_name: 'PrivateAccessServiceResultElementType',
+ serialized_name: 'ApplicationSecurityGroupElementType',
type: {
name: 'Composite',
- class_name: 'PrivateAccessServiceResult'
+ class_name: 'ApplicationSecurityGroup'
}
}
}
},
next_link: {
required: false,
+ read_only: true,
serialized_name: 'nextLink',
type: {
name: 'String'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/association_type.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/association_type.rb
index e539b47a21..060dffd665 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/association_type.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/association_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authentication_method.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authentication_method.rb
index d5782a203c..4f760ea110 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authentication_method.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authentication_method.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authorization_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authorization_list_result.rb
index d4f1a7d63d..5909d93157 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authorization_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authorization_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authorization_use_status.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authorization_use_status.rb
index 484cb6a393..93270b9aa9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authorization_use_status.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/authorization_use_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list.rb
new file mode 100644
index 0000000000..738b3051d3
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list.rb
@@ -0,0 +1,53 @@
+# 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::ARM::Network
+ module Models
+ #
+ # List of available countries with details.
+ #
+ class AvailableProvidersList
+
+ include MsRestAzure
+
+ # @return [Array] List of available
+ # countries.
+ attr_accessor :countries
+
+
+ #
+ # Mapper for AvailableProvidersList class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AvailableProvidersList',
+ type: {
+ name: 'Composite',
+ class_name: 'AvailableProvidersList',
+ model_properties: {
+ countries: {
+ required: true,
+ serialized_name: 'countries',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'AvailableProvidersListCountryElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'AvailableProvidersListCountry'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_city.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_city.rb
new file mode 100644
index 0000000000..8c1f268d32
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_city.rb
@@ -0,0 +1,61 @@
+# 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::ARM::Network
+ module Models
+ #
+ # City or town details.
+ #
+ class AvailableProvidersListCity
+
+ include MsRestAzure
+
+ # @return [String] The city or town name.
+ attr_accessor :city_name
+
+ # @return [Array] A list of Internet service providers.
+ attr_accessor :providers
+
+
+ #
+ # Mapper for AvailableProvidersListCity class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AvailableProvidersListCity',
+ type: {
+ name: 'Composite',
+ class_name: 'AvailableProvidersListCity',
+ model_properties: {
+ city_name: {
+ required: false,
+ serialized_name: 'cityName',
+ type: {
+ name: 'String'
+ }
+ },
+ providers: {
+ required: false,
+ serialized_name: 'providers',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_country.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_country.rb
new file mode 100644
index 0000000000..c4e13d7027
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_country.rb
@@ -0,0 +1,80 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Country details.
+ #
+ class AvailableProvidersListCountry
+
+ include MsRestAzure
+
+ # @return [String] The country name.
+ attr_accessor :country_name
+
+ # @return [Array] A list of Internet service providers.
+ attr_accessor :providers
+
+ # @return [Array] List of available states
+ # in the country.
+ attr_accessor :states
+
+
+ #
+ # Mapper for AvailableProvidersListCountry class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AvailableProvidersListCountry',
+ type: {
+ name: 'Composite',
+ class_name: 'AvailableProvidersListCountry',
+ model_properties: {
+ country_name: {
+ required: false,
+ serialized_name: 'countryName',
+ type: {
+ name: 'String'
+ }
+ },
+ providers: {
+ required: false,
+ serialized_name: 'providers',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ states: {
+ required: false,
+ serialized_name: 'states',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'AvailableProvidersListStateElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'AvailableProvidersListState'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_parameters.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_parameters.rb
new file mode 100644
index 0000000000..ffa8be3d98
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_parameters.rb
@@ -0,0 +1,82 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Constraints that determine the list of available Internet service
+ # providers.
+ #
+ class AvailableProvidersListParameters
+
+ include MsRestAzure
+
+ # @return [Array] A list of Azure regions.
+ attr_accessor :azure_locations
+
+ # @return [String] The country for available providers list.
+ attr_accessor :country
+
+ # @return [String] The state for available providers list.
+ attr_accessor :state
+
+ # @return [String] The city or town for available providers list.
+ attr_accessor :city
+
+
+ #
+ # Mapper for AvailableProvidersListParameters class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AvailableProvidersListParameters',
+ type: {
+ name: 'Composite',
+ class_name: 'AvailableProvidersListParameters',
+ model_properties: {
+ azure_locations: {
+ required: false,
+ serialized_name: 'azureLocations',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ country: {
+ required: false,
+ serialized_name: 'country',
+ type: {
+ name: 'String'
+ }
+ },
+ state: {
+ required: false,
+ serialized_name: 'state',
+ type: {
+ name: 'String'
+ }
+ },
+ city: {
+ required: false,
+ serialized_name: 'city',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_state.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_state.rb
new file mode 100644
index 0000000000..7201a429a8
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/available_providers_list_state.rb
@@ -0,0 +1,80 @@
+# 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::ARM::Network
+ module Models
+ #
+ # State details.
+ #
+ class AvailableProvidersListState
+
+ include MsRestAzure
+
+ # @return [String] The state name.
+ attr_accessor :state_name
+
+ # @return [Array] A list of Internet service providers.
+ attr_accessor :providers
+
+ # @return [Array] List of available cities or
+ # towns in the state.
+ attr_accessor :cities
+
+
+ #
+ # Mapper for AvailableProvidersListState class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AvailableProvidersListState',
+ type: {
+ name: 'Composite',
+ class_name: 'AvailableProvidersListState',
+ model_properties: {
+ state_name: {
+ required: false,
+ serialized_name: 'stateName',
+ type: {
+ name: 'String'
+ }
+ },
+ providers: {
+ required: false,
+ serialized_name: 'providers',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ cities: {
+ required: false,
+ serialized_name: 'cities',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'AvailableProvidersListCityElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'AvailableProvidersListCity'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb
index edcb1adcc9..ccd91f6172 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_async_operation_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -19,7 +19,6 @@ class AzureAsyncOperationResult
include MsRestAzure
- include MsRest::JSONable
# @return [NetworkOperationStatus] Status of the Azure async operation.
# Possible values are: 'InProgress', 'Succeeded', and 'Failed'. Possible
# values include: 'InProgress', 'Succeeded', 'Failed'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report.rb
new file mode 100644
index 0000000000..90285070fe
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report.rb
@@ -0,0 +1,75 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Azure reachability report details.
+ #
+ class AzureReachabilityReport
+
+ include MsRestAzure
+
+ # @return [String] The aggregation level of Azure reachability report.
+ # Can be Country, State or City.
+ attr_accessor :aggregation_level
+
+ # @return [AzureReachabilityReportLocation]
+ attr_accessor :provider_location
+
+ # @return [Array] List of Azure reachability
+ # report items.
+ attr_accessor :reachability_report
+
+
+ #
+ # Mapper for AzureReachabilityReport class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AzureReachabilityReport',
+ type: {
+ name: 'Composite',
+ class_name: 'AzureReachabilityReport',
+ model_properties: {
+ aggregation_level: {
+ required: true,
+ serialized_name: 'aggregationLevel',
+ type: {
+ name: 'String'
+ }
+ },
+ provider_location: {
+ required: true,
+ serialized_name: 'providerLocation',
+ type: {
+ name: 'Composite',
+ class_name: 'AzureReachabilityReportLocation'
+ }
+ },
+ reachability_report: {
+ required: true,
+ serialized_name: 'reachabilityReport',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'AzureReachabilityReportItemElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'AzureReachabilityReportItem'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_item.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_item.rb
new file mode 100644
index 0000000000..fab45c92f1
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_item.rb
@@ -0,0 +1,73 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Azure reachability report details for a given provider location.
+ #
+ class AzureReachabilityReportItem
+
+ include MsRestAzure
+
+ # @return [String] The Internet service provider.
+ attr_accessor :provider
+
+ # @return [String] The Azure region.
+ attr_accessor :azure_location
+
+ # @return [Array] List of latency
+ # details for each of the time series.
+ attr_accessor :latencies
+
+
+ #
+ # Mapper for AzureReachabilityReportItem class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AzureReachabilityReportItem',
+ type: {
+ name: 'Composite',
+ class_name: 'AzureReachabilityReportItem',
+ model_properties: {
+ provider: {
+ required: false,
+ serialized_name: 'provider',
+ type: {
+ name: 'String'
+ }
+ },
+ azure_location: {
+ required: false,
+ serialized_name: 'azureLocation',
+ type: {
+ name: 'String'
+ }
+ },
+ latencies: {
+ required: false,
+ serialized_name: 'latencies',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'AzureReachabilityReportLatencyInfoElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'AzureReachabilityReportLatencyInfo'
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.rb
new file mode 100644
index 0000000000..142899cceb
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_latency_info.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::ARM::Network
+ module Models
+ #
+ # Details on latency for a time series.
+ #
+ class AzureReachabilityReportLatencyInfo
+
+ include MsRestAzure
+
+ # @return [DateTime] The time stamp.
+ attr_accessor :time_stamp
+
+ # @return [Integer] The relative latency score between 1 and 100, higher
+ # values indicating a faster connection.
+ attr_accessor :score
+
+
+ #
+ # Mapper for AzureReachabilityReportLatencyInfo class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AzureReachabilityReportLatencyInfo',
+ type: {
+ name: 'Composite',
+ class_name: 'AzureReachabilityReportLatencyInfo',
+ model_properties: {
+ time_stamp: {
+ required: false,
+ serialized_name: 'timeStamp',
+ type: {
+ name: 'DateTime'
+ }
+ },
+ score: {
+ required: false,
+ serialized_name: 'score',
+ constraints: {
+ InclusiveMaximum: 100,
+ InclusiveMinimum: 1
+ },
+ type: {
+ name: 'Number'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_location.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_location.rb
new file mode 100644
index 0000000000..19c902ea52
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_location.rb
@@ -0,0 +1,64 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Parameters that define a geographic location.
+ #
+ class AzureReachabilityReportLocation
+
+ include MsRestAzure
+
+ # @return [String] The name of the country.
+ attr_accessor :country
+
+ # @return [String] The name of the state.
+ attr_accessor :state
+
+ # @return [String] The name of the city or town.
+ attr_accessor :city
+
+
+ #
+ # Mapper for AzureReachabilityReportLocation class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AzureReachabilityReportLocation',
+ type: {
+ name: 'Composite',
+ class_name: 'AzureReachabilityReportLocation',
+ model_properties: {
+ country: {
+ required: true,
+ serialized_name: 'country',
+ type: {
+ name: 'String'
+ }
+ },
+ state: {
+ required: false,
+ serialized_name: 'state',
+ type: {
+ name: 'String'
+ }
+ },
+ city: {
+ required: false,
+ serialized_name: 'city',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb
new file mode 100644
index 0000000000..97d76c197d
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/azure_reachability_report_parameters.rb
@@ -0,0 +1,99 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Geographic and time constraints for Azure reachability report.
+ #
+ class AzureReachabilityReportParameters
+
+ include MsRestAzure
+
+ # @return [AzureReachabilityReportLocation]
+ attr_accessor :provider_location
+
+ # @return [Array] List of Internet service providers.
+ attr_accessor :providers
+
+ # @return [Array] Optional Azure regions to scope the query to.
+ attr_accessor :azure_locations
+
+ # @return [DateTime] The start time for the Azure reachability report.
+ attr_accessor :start_time
+
+ # @return [DateTime] The end time for the Azure reachability report.
+ attr_accessor :end_time
+
+
+ #
+ # Mapper for AzureReachabilityReportParameters class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'AzureReachabilityReportParameters',
+ type: {
+ name: 'Composite',
+ class_name: 'AzureReachabilityReportParameters',
+ model_properties: {
+ provider_location: {
+ required: true,
+ serialized_name: 'providerLocation',
+ type: {
+ name: 'Composite',
+ class_name: 'AzureReachabilityReportLocation'
+ }
+ },
+ providers: {
+ required: false,
+ serialized_name: 'providers',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ azure_locations: {
+ required: false,
+ serialized_name: 'azureLocations',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ },
+ start_time: {
+ required: true,
+ serialized_name: 'startTime',
+ type: {
+ name: 'DateTime'
+ }
+ },
+ end_time: {
+ required: true,
+ serialized_name: 'endTime',
+ type: {
+ name: 'DateTime'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/backend_address_pool.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/backend_address_pool.rb
index 1f40121003..3ca2c3c07a 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/backend_address_pool.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/backend_address_pool.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Pool of backend IP addresses.
#
- class BackendAddressPool < MsRestAzure::SubResource
+ class BackendAddressPool < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Gets collection of
# references to IP addresses defined in network interfaces.
attr_accessor :backend_ipconfigurations
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_state.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_state.rb
index 94253ed5c1..93e841b500 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_state.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_status.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_status.rb
index 14517346b3..ac18f32534 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_status.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BgpPeerStatus
include MsRestAzure
- include MsRest::JSONable
# @return [String] The virtual network gateway's local address
attr_accessor :local_address
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb
index 39f3a916c8..b093414bea 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_peer_status_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BgpPeerStatusListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] List of BGP peers
attr_accessor :value
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_service_community.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_service_community.rb
index 3676e04a76..f339f348c1 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_service_community.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_service_community.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Service Community Properties.
#
- class BgpServiceCommunity < MsRestAzure::Resource
+ class BgpServiceCommunity < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the bgp community. e.g. Skype.
attr_accessor :service_name
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb
index f942d896f5..764aa99c3a 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_service_community_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_settings.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_settings.rb
index d53cfe8831..f5668bf0cd 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_settings.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgp_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class BgpSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The BGP speaker's ASN.
attr_accessor :asn
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgpcommunity.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgpcommunity.rb
index b8c8e31d1e..c58fa83178 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgpcommunity.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/bgpcommunity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class BGPCommunity
include MsRestAzure
- include MsRest::JSONable
# @return [String] The region which the service support. e.g. For O365,
# region is Global.
attr_accessor :service_supported_region
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb
index c0da6205be..87458cfed3 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_reset_shared_key.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ConnectionResetSharedKey
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The virtual network connection reset shared key
# length, should between 1 and 128.
attr_accessor :key_length
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_shared_key.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_shared_key.rb
index cafc562c95..d2c1ee038a 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_shared_key.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_shared_key.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ConnectionSharedKey
include MsRestAzure
- include MsRest::JSONable
# @return [String] The virtual network connection shared key value.
attr_accessor :value
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_status.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_status.rb
index 412c0dc275..379fe3eb3e 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_status.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connection_status.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_destination.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_destination.rb
index b51dd8d75d..d868409e3c 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_destination.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_destination.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ConnectivityDestination
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ID of the resource to which a connection attempt
# will be made.
attr_accessor :resource_id
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_hop.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_hop.rb
index 9d8784f695..c1d8df74fc 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_hop.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_hop.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ConnectivityHop
include MsRestAzure
- include MsRest::JSONable
# @return [String] The type of the hop.
attr_accessor :type
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_information.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_information.rb
index e9cb02a9b5..25581e8d20 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_information.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_information.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ConnectivityInformation
include MsRestAzure
- include MsRest::JSONable
# @return [Array] List of hops between the source and
# the destination.
attr_accessor :hops
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_issue.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_issue.rb
index 514a74cc28..6d8d41f43e 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_issue.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_issue.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ConnectivityIssue
include MsRestAzure
- include MsRest::JSONable
# @return [Origin] The origin of the issue. Possible values include:
# 'Local', 'Inbound', 'Outbound'
attr_accessor :origin
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_parameters.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_parameters.rb
index 9c929c0ba3..d4834ba518 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_parameters.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ConnectivityParameters
include MsRestAzure
- include MsRest::JSONable
# @return [ConnectivitySource]
attr_accessor :source
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_source.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_source.rb
index f3b2424cd2..417524e3f5 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_source.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/connectivity_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ConnectivitySource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ID of the resource from which a connectivity check
# will be initiated.
attr_accessor :resource_id
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dh_group.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dh_group.rb
index 7cf271edb7..a4261ee20e 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dh_group.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dh_group.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dhcp_options.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dhcp_options.rb
index e3590350a9..2abf119eff 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dhcp_options.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dhcp_options.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -14,7 +14,6 @@ class DhcpOptions
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of DNS servers IP addresses.
attr_accessor :dns_servers
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/direction.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/direction.rb
index 8fdf2f3a91..e8815ade99 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/direction.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/direction.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb
index afad9e680e..4bd2330450 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/dns_name_availability_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class DnsNameAvailabilityResult
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Domain availability (True/False).
attr_accessor :available
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb
index e768016067..338e866cba 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,11 +12,11 @@ class EffectiveNetworkSecurityGroup
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] The ID of network security group that is applied.
attr_accessor :network_security_group
- # @return [EffectiveNetworkSecurityGroupAssociation]
+ # @return [EffectiveNetworkSecurityGroupAssociation] Associated
+ # resources.
attr_accessor :association
# @return [Array] A collection of effective
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb
index 009dc25fbf..8e3bf18b69 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_association.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EffectiveNetworkSecurityGroupAssociation
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] The ID of the subnet if assigned.
attr_accessor :subnet
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb
index 4fc86d544d..d35ae7191e 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_group_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EffectiveNetworkSecurityGroupListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A list of effective
# network security groups.
attr_accessor :value
@@ -50,6 +49,7 @@ def self.mapper()
},
next_link: {
required: false,
+ read_only: true,
serialized_name: 'nextLink',
type: {
name: 'String'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb
index 8077f76556..898beccb51 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_network_security_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,14 +12,13 @@ class EffectiveNetworkSecurityRule
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the security rule specified by the user
# (if created by the user).
attr_accessor :name
- # @return [SecurityRuleProtocol] The network protocol this rule applies
- # to. Possible values are: 'Tcp', 'Udp', and '*'. Possible values
- # include: 'Tcp', 'Udp', '*'
+ # @return [EffectiveSecurityRuleProtocol] The network protocol this rule
+ # applies to. Possible values are: 'Tcp', 'Udp', and 'All'. Possible
+ # values include: 'Tcp', 'Udp', 'All'
attr_accessor :protocol
# @return [String] The source port or range.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route.rb
index 50917cbc6d..c1906abf5b 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EffectiveRoute
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the user defined route. This is optional.
attr_accessor :name
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb
index e8b55d4c70..1a1c1f44bf 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class EffectiveRouteListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A list of effective routes.
attr_accessor :value
@@ -49,6 +48,7 @@ def self.mapper()
},
next_link: {
required: false,
+ read_only: true,
serialized_name: 'nextLink',
type: {
name: 'String'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_source.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_source.rb
index d0a377efec..1ade16740f 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_source.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_source.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_state.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_state.rb
index 6ebea9ba6c..2fa059c96b 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_state.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_route_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb
new file mode 100644
index 0000000000..9f53bf3f8d
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/effective_security_rule_protocol.rb
@@ -0,0 +1,17 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Defines values for EffectiveSecurityRuleProtocol
+ #
+ module EffectiveSecurityRuleProtocol
+ Tcp = "Tcp"
+ Udp = "Udp"
+ All = "All"
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/endpoint_service_result.rb
similarity index 70%
rename from management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_result.rb
rename to management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/endpoint_service_result.rb
index 456528a804..854d7b07ce 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/private_access_service_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/endpoint_service_result.rb
@@ -1,36 +1,35 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Network
module Models
#
- # Private access service.
+ # Endpoint service.
#
- class PrivateAccessServiceResult < MsRestAzure::SubResource
+ class EndpointServiceResult < SubResource
include MsRestAzure
- include MsRest::JSONable
- # @return [String] Name of the private access value.
+ # @return [String] Name of the endpoint service.
attr_accessor :name
- # @return [String] Type of the private access value.
+ # @return [String] Type of the endpoint service.
attr_accessor :type
#
- # Mapper for PrivateAccessServiceResult class as Ruby Hash.
+ # Mapper for EndpointServiceResult class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
- serialized_name: 'PrivateAccessServiceResult',
+ serialized_name: 'EndpointServiceResult',
type: {
name: 'Composite',
- class_name: 'PrivateAccessServiceResult',
+ class_name: 'EndpointServiceResult',
model_properties: {
id: {
required: false,
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/endpoint_services_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/endpoint_services_list_result.rb
new file mode 100644
index 0000000000..edc5deaa41
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/endpoint_services_list_result.rb
@@ -0,0 +1,95 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Response for the ListAvailableEndpointServices API service call.
+ #
+ class EndpointServicesListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] List of available endpoint
+ # services in a region.
+ attr_accessor :value
+
+ # @return [String] The URL to get the next set of results.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [EndpointServicesListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for EndpointServicesListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'EndpointServicesListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'EndpointServicesListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'EndpointServiceResultElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'EndpointServiceResult'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/error.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/error.rb
index 339d177da2..fa2fb5ac17 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/error.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/error.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class Error
include MsRestAzure
- include MsRest::JSONable
# @return [String]
attr_accessor :code
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/error_details.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/error_details.rb
index 24c95a95d7..6d409532a1 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/error_details.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/error_details.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ErrorDetails
include MsRestAzure
- include MsRest::JSONable
# @return [String]
attr_accessor :code
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit.rb
index c7c86b2d96..75e5653f37 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# ExpressRouteCircuit resource
#
- class ExpressRouteCircuit < MsRestAzure::Resource
+ class ExpressRouteCircuit < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [ExpressRouteCircuitSku] The SKU.
attr_accessor :sku
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb
index 43900b5dd5..c1051a4d0d 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_arp_table.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExpressRouteCircuitArpTable
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Age
attr_accessor :age
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb
index c1068a7227..b1f17a24f9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_authorization.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Authorization in an ExpressRouteCircuit resource.
#
- class ExpressRouteCircuitAuthorization < MsRestAzure::SubResource
+ class ExpressRouteCircuitAuthorization < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The authorization key.
attr_accessor :authorization_key
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb
index 80f7d17078..f219c704d2 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb
index 9af34fb210..f3448af677 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Peering in an ExpressRouteCircuit resource.
#
- class ExpressRouteCircuitPeering < MsRestAzure::SubResource
+ class ExpressRouteCircuitPeering < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [ExpressRouteCircuitPeeringType] The PeeringType. Possible
# values are: 'AzurePublicPeering', 'AzurePrivatePeering', and
# 'MicrosoftPeering'. Possible values include: 'AzurePublicPeering',
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb
index 1bfa9b3271..f43cdf3ed1 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_advertised_public_prefix_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb
index 8e387c068b..625b202677 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_config.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExpressRouteCircuitPeeringConfig
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The reference of AdvertisedPublicPrefixes.
attr_accessor :advertised_public_prefixes
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb
index 3c2a4191a7..a937474774 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb
index 06a3a58a46..ad8286a4be 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_state.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb
index c67caea51d..46f72dae54 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_peering_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb
index 0370726fe6..8bc51b2a78 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExpressRouteCircuitRoutesTable
include MsRestAzure
- include MsRest::JSONable
# @return [String] network
attr_accessor :network
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb
index acad35fdec..4e6518c8bc 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_routes_table_summary.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExpressRouteCircuitRoutesTableSummary
include MsRestAzure
- include MsRest::JSONable
# @return [String] Neighbor
attr_accessor :neighbor
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb
index 5cd5ada198..e214084ec7 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_service_provider_properties.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExpressRouteCircuitServiceProviderProperties
include MsRestAzure
- include MsRest::JSONable
# @return [String] The serviceProviderName.
attr_accessor :service_provider_name
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb
index 71130b7ed9..92172e3e91 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExpressRouteCircuitSku
include MsRestAzure
- include MsRest::JSONable
# @return [String] The name of the SKU.
attr_accessor :name
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb
index 6c137799d8..14d6437767 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_family.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb
index 77c6b19b97..804c0f7afd 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_sku_tier.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb
index 2c3ab88f7f..cf2c0b49be 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuit_stats.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExpressRouteCircuitStats
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] Gets BytesIn of the peering.
attr_accessor :primarybytes_in
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb
index 1c336c4f6e..701f8e5119 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_arp_table_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExpressRouteCircuitsArpTableListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Gets list of the ARP
# table.
attr_accessor :value
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb
index 645fb892af..0d0d622fd9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ExpressRouteCircuitsRoutesTableListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The list of routes
# table.
attr_accessor :value
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb
index fbdaddf433..8ba73cbae7 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_circuits_routes_table_summary_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -13,7 +13,6 @@ class ExpressRouteCircuitsRoutesTableSummaryListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] A list of the
# routes table.
attr_accessor :value
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb
index a12a6df8af..60522a6e15 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A ExpressRouteResourceProvider object.
#
- class ExpressRouteServiceProvider < MsRestAzure::Resource
+ class ExpressRouteServiceProvider < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Get a list of peering locations.
attr_accessor :peering_locations
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb
index b064d301bf..d6f5c319d0 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider_bandwidths_offered.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class ExpressRouteServiceProviderBandwidthsOffered
include MsRestAzure
- include MsRest::JSONable
# @return [String] The OfferName.
attr_accessor :offer_name
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb
index cffe5731c7..0922fa50e9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/express_route_service_provider_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/flow_log_information.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/flow_log_information.rb
index cfddc18020..4490b4d9a3 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/flow_log_information.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/flow_log_information.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class FlowLogInformation
include MsRestAzure
- include MsRest::JSONable
# @return [String] The ID of the resource to configure for flow logging.
attr_accessor :target_resource_id
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/flow_log_status_parameters.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/flow_log_status_parameters.rb
index 9bc7bef2e6..5cf7578e0b 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/flow_log_status_parameters.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/flow_log_status_parameters.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class FlowLogStatusParameters
include MsRestAzure
- include MsRest::JSONable
# @return [String] The target resource where getting the flow logging
# status.
attr_accessor :target_resource_id
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb
index c785bc7b7a..9df8a7f474 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/frontend_ipconfiguration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# Frontend IP address of the load balancer.
#
- class FrontendIPConfiguration < MsRestAzure::SubResource
+ class FrontendIPConfiguration < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] Read only. Inbound rules URIs that use
# this frontend IP.
attr_accessor :inbound_nat_rules
@@ -55,6 +54,10 @@ class FrontendIPConfiguration < MsRestAzure::SubResource
# resource is updated.
attr_accessor :etag
+ # @return [Array] A list of availability zones denoting the IP
+ # allocated for the resource needs to come from.
+ attr_accessor :zones
+
#
# Mapper for FrontendIPConfiguration class as Ruby Hash.
@@ -189,6 +192,20 @@ def self.mapper()
type: {
name: 'String'
}
+ },
+ zones: {
+ required: false,
+ serialized_name: 'zones',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'StringElementType',
+ type: {
+ name: 'String'
+ }
+ }
+ }
}
}
}
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/gateway_route.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/gateway_route.rb
index 5bf5f13cff..2b9ff84845 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/gateway_route.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/gateway_route.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GatewayRoute
include MsRestAzure
- include MsRest::JSONable
# @return [String] The gateway's local address
attr_accessor :local_address
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/gateway_route_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/gateway_route_list_result.rb
index 1a20c28145..3d4d418a19 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/gateway_route_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/gateway_route_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class GatewayRouteListResult
include MsRestAzure
- include MsRest::JSONable
# @return [Array] List of gateway routes
attr_accessor :value
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ike_encryption.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ike_encryption.rb
index 2d5bac3fd0..25dd457fe0 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ike_encryption.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ike_encryption.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ike_integrity.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ike_integrity.rb
index ee75a606c2..fbce7b396c 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ike_integrity.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ike_integrity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb
index f5f7b476c5..11795c9ac3 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_pool.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,17 +8,15 @@ module Models
#
# Inbound NAT pool of the load balancer.
#
- class InboundNatPool < MsRestAzure::SubResource
+ class InboundNatPool < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] A reference to frontend IP addresses.
attr_accessor :frontend_ipconfiguration
- # @return [TransportProtocol] The transport protocol for the endpoint.
- # Possible values are: 'Udp' or 'Tcp'. Possible values include: 'Udp',
- # 'Tcp'
+ # @return [TransportProtocol] Possible values include: 'Udp', 'Tcp',
+ # 'All'
attr_accessor :protocol
# @return [Integer] The first port number in the range of external ports
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb
index 5ac97b68a4..32949c972a 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,27 +8,25 @@ module Models
#
# Inbound NAT rule of the load balancer.
#
- class InboundNatRule < MsRestAzure::SubResource
+ class InboundNatRule < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] A reference to frontend IP addresses.
attr_accessor :frontend_ipconfiguration
# @return [NetworkInterfaceIPConfiguration] A reference to a private IP
# address defined on a network interface of a VM. Traffic sent to the
# frontend port of each of the frontend IP configurations is forwarded to
- # the backed IP.
+ # the backend IP.
attr_accessor :backend_ipconfiguration
- # @return [TransportProtocol] The transport protocol for the endpoint.
- # Possible values are: 'Udp' or 'Tcp'. Possible values include: 'Udp',
- # 'Tcp'
+ # @return [TransportProtocol] Possible values include: 'Udp', 'Tcp',
+ # 'All'
attr_accessor :protocol
# @return [Integer] The port for the external endpoint. Port numbers for
- # each Rule must be unique within the Load Balancer. Acceptable values
+ # each rule must be unique within the Load Balancer. Acceptable values
# range from 1 to 65534.
attr_accessor :frontend_port
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb
new file mode 100644
index 0000000000..af308b8f1f
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/inbound_nat_rule_list_result.rb
@@ -0,0 +1,96 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Response for ListInboundNatRule API service call.
+ #
+ class InboundNatRuleListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] A list of inbound nat rules in a load
+ # balancer.
+ attr_accessor :value
+
+ # @return [String] The URL to get the next set of results.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [InboundNatRuleListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for InboundNatRuleListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'InboundNatRuleListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'InboundNatRuleListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'InboundNatRuleElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'InboundNatRule'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb
index fca2e8323c..67012efb0d 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipaddress_availability_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IPAddressAvailabilityResult
include MsRestAzure
- include MsRest::JSONable
# @return [Boolean] Private IP address availability.
attr_accessor :available
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipallocation_method.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipallocation_method.rb
index 400de0d5a2..181927adab 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipallocation_method.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipallocation_method.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipconfiguration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipconfiguration.rb
index b7f6fb58a1..d38de2cbdb 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipconfiguration.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipconfiguration.rb
@@ -1,18 +1,17 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Network
module Models
#
- # IPConfiguration
+ # IP configuration
#
- class IPConfiguration < MsRestAzure::SubResource
+ class IPConfiguration < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [String] The private IP address of the IP configuration.
attr_accessor :private_ipaddress
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_encryption.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_encryption.rb
index 6c76965795..f5c24d1e25 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_encryption.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_encryption.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_integrity.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_integrity.rb
index 4fa0398f12..87af19fd98 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_integrity.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_integrity.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_policy.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_policy.rb
index fb0865bc4a..529676f2d6 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_policy.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipsec_policy.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class IpsecPolicy
include MsRestAzure
- include MsRest::JSONable
# @return [Integer] The IPSec Security Association (also called Quick
# Mode or Phase 2 SA) lifetime in seconds for a site to site VPN tunnel.
attr_accessor :sa_life_time_seconds
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb
index b3197ecba2..d1deb56e82 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipv6express_route_circuit_peering_config.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class Ipv6ExpressRouteCircuitPeeringConfig
include MsRestAzure
- include MsRest::JSONable
# @return [String] The primary address prefix.
attr_accessor :primary_peer_address_prefix
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipversion.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipversion.rb
index acde569719..57b3ff3e8d 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipversion.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/ipversion.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/issue_type.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/issue_type.rb
index 9d431a5fa1..383a11a705 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/issue_type.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/issue_type.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer.rb
index a80e1658f4..0c028890b2 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,13 @@ module Models
#
# LoadBalancer resource
#
- class LoadBalancer < MsRestAzure::Resource
+ class LoadBalancer < Resource
include MsRestAzure
- include MsRest::JSONable
+ # @return [LoadBalancerSku] The load balancer SKU.
+ attr_accessor :sku
+
# @return [Array] Object representing the
# frontend IPs to be used for the load balancer
attr_accessor :frontend_ipconfigurations
@@ -120,6 +122,14 @@ def self.mapper()
}
}
},
+ sku: {
+ required: false,
+ serialized_name: 'sku',
+ type: {
+ name: 'Composite',
+ class_name: 'LoadBalancerSku'
+ }
+ },
frontend_ipconfigurations: {
required: false,
serialized_name: 'properties.frontendIPConfigurations',
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb
new file mode 100644
index 0000000000..0fd0465c97
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_backend_address_pool_list_result.rb
@@ -0,0 +1,97 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Response for ListBackendAddressPool API service call.
+ #
+ class LoadBalancerBackendAddressPoolListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] A list of backend address pools in
+ # a load balancer.
+ attr_accessor :value
+
+ # @return [String] The URL to get the next set of results.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [LoadBalancerBackendAddressPoolListResult] with next page
+ # content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for LoadBalancerBackendAddressPoolListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'LoadBalancerBackendAddressPoolListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'LoadBalancerBackendAddressPoolListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'BackendAddressPoolElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'BackendAddressPool'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb
new file mode 100644
index 0000000000..57e36dbae3
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_frontend_ipconfiguration_list_result.rb
@@ -0,0 +1,98 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Response for ListFrontendIPConfiguration API service call.
+ #
+ class LoadBalancerFrontendIPConfigurationListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] A list of frontend IP
+ # configurations in a load balancer.
+ attr_accessor :value
+
+ # @return [String] The URL to get the next set of results.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [LoadBalancerFrontendIPConfigurationListResult] with next page
+ # content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for LoadBalancerFrontendIPConfigurationListResult class as Ruby
+ # Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'LoadBalancerFrontendIPConfigurationListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'LoadBalancerFrontendIPConfigurationListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'FrontendIPConfigurationElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'FrontendIPConfiguration'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb
index e200c10c9a..e076d1e4c9 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -81,6 +81,7 @@ def self.mapper()
},
next_link: {
required: false,
+ read_only: true,
serialized_name: 'nextLink',
type: {
name: 'String'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb
new file mode 100644
index 0000000000..3f02445ce4
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_load_balancing_rule_list_result.rb
@@ -0,0 +1,97 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Response for ListLoadBalancingRule API service call.
+ #
+ class LoadBalancerLoadBalancingRuleListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] A list of load balancing rules in a
+ # load balancer.
+ attr_accessor :value
+
+ # @return [String] The URL to get the next set of results.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [LoadBalancerLoadBalancingRuleListResult] with next page
+ # content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for LoadBalancerLoadBalancingRuleListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'LoadBalancerLoadBalancingRuleListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'LoadBalancerLoadBalancingRuleListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'LoadBalancingRuleElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'LoadBalancingRule'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb
new file mode 100644
index 0000000000..68c0e6cc4a
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_probe_list_result.rb
@@ -0,0 +1,95 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Response for ListProbe API service call.
+ #
+ class LoadBalancerProbeListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] A list of probes in a load balancer.
+ attr_accessor :value
+
+ # @return [String] The URL to get the next set of results.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [LoadBalancerProbeListResult] with next page content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for LoadBalancerProbeListResult class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'LoadBalancerProbeListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'LoadBalancerProbeListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'ProbeElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'Probe'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku.rb
new file mode 100644
index 0000000000..f66b2b8fb7
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku.rb
@@ -0,0 +1,45 @@
+# 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::ARM::Network
+ module Models
+ #
+ # SKU of a load balancer
+ #
+ class LoadBalancerSku
+
+ include MsRestAzure
+
+ # @return [LoadBalancerSkuName] Name of a load balancer SKU. Possible
+ # values include: 'Basic', 'Standard'
+ attr_accessor :name
+
+
+ #
+ # Mapper for LoadBalancerSku class as Ruby Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'LoadBalancerSku',
+ type: {
+ name: 'Composite',
+ class_name: 'LoadBalancerSku',
+ model_properties: {
+ name: {
+ required: false,
+ serialized_name: 'name',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku_name.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku_name.rb
new file mode 100644
index 0000000000..02008e65eb
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancer_sku_name.rb
@@ -0,0 +1,16 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Defines values for LoadBalancerSkuName
+ #
+ module LoadBalancerSkuName
+ Basic = "Basic"
+ Standard = "Standard"
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb
index 768f5b11e7..1117d6f32d 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_balancing_rule.rb
@@ -1,18 +1,17 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
module Azure::ARM::Network
module Models
#
- # A loag balancing rule for a load balancer.
+ # A load balancing rule for a load balancer.
#
- class LoadBalancingRule < MsRestAzure::SubResource
+ class LoadBalancingRule < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] A reference to frontend IP addresses.
attr_accessor :frontend_ipconfiguration
@@ -24,9 +23,8 @@ class LoadBalancingRule < MsRestAzure::SubResource
# the load balancing rule.
attr_accessor :probe
- # @return [TransportProtocol] The transport protocol for the external
- # endpoint. Possible values are 'Udp' or 'Tcp'. Possible values include:
- # 'Udp', 'Tcp'
+ # @return [TransportProtocol] Possible values include: 'Udp', 'Tcp',
+ # 'All'
attr_accessor :protocol
# @return [LoadDistribution] The load distribution policy for this rule.
@@ -35,12 +33,13 @@ class LoadBalancingRule < MsRestAzure::SubResource
attr_accessor :load_distribution
# @return [Integer] The port for the external endpoint. Port numbers for
- # each Rule must be unique within the Load Balancer. Acceptable values
- # are between 1 and 65534.
+ # each rule must be unique within the Load Balancer. Acceptable values
+ # are between 0 and 65534. Note that value 0 enables "Any Port"
attr_accessor :frontend_port
# @return [Integer] The port used for internal connections on the
- # endpoint. Acceptable values are between 1 and 65535.
+ # endpoint. Acceptable values are between 0 and 65535. Note that value 0
+ # enables "Any Port"
attr_accessor :backend_port
# @return [Integer] The timeout for the TCP idle connection. The value
@@ -55,6 +54,11 @@ class LoadBalancingRule < MsRestAzure::SubResource
# changed after you create the endpoint.
attr_accessor :enable_floating_ip
+ # @return [Boolean] Configures SNAT for the VMs in the backend pool to
+ # use the publicIP address specified in the frontend of the load
+ # balancing rule.
+ attr_accessor :disable_outbound_snat
+
# @return [String] Gets the provisioning state of the PublicIP resource.
# Possible values are: 'Updating', 'Deleting', and 'Failed'.
attr_accessor :provisioning_state
@@ -153,6 +157,13 @@ def self.mapper()
name: 'Boolean'
}
},
+ disable_outbound_snat: {
+ required: false,
+ serialized_name: 'properties.disableOutboundSnat',
+ type: {
+ name: 'Boolean'
+ }
+ },
provisioning_state: {
required: false,
serialized_name: 'properties.provisioningState',
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_distribution.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_distribution.rb
index ac8ce96b28..1aea8cfb9c 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_distribution.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/load_distribution.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway.rb
index ad61a08ba8..8c8b2aba4e 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A common class for general resource information
#
- class LocalNetworkGateway < MsRestAzure::Resource
+ class LocalNetworkGateway < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [AddressSpace] Local network site address space.
attr_accessor :local_network_address_space
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb
index 35213fe6ee..6ecc0cdde6 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/local_network_gateway_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -81,6 +81,7 @@ def self.mapper()
},
next_link: {
required: false,
+ read_only: true,
serialized_name: 'nextLink',
type: {
name: 'String'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface.rb
index 17715c49c9..d4e0723814 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# A network interface in a resource group.
#
- class NetworkInterface < MsRestAzure::Resource
+ class NetworkInterface < Resource
include MsRestAzure
- include MsRest::JSONable
# @return [SubResource] The reference of a virtual machine.
attr_accessor :virtual_machine
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_association.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_association.rb
index 3d73f396d8..1ea2071c59 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_association.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_association.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NetworkInterfaceAssociation
include MsRestAzure
- include MsRest::JSONable
# @return [String] Network interface ID.
attr_accessor :id
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb
index 0419d6ab28..4223330a7c 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_dns_settings.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -12,7 +12,6 @@ class NetworkInterfaceDnsSettings
include MsRestAzure
- include MsRest::JSONable
# @return [Array] List of DNS servers IP addresses. Use
# 'AzureProvidedDNS' to switch to azure provided DNS resolution.
# 'AzureProvidedDNS' value cannot be combined with other IPs, it must be
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb
index bdf6f54709..3289f69f71 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -8,11 +8,10 @@ module Models
#
# IPConfiguration in a network interface.
#
- class NetworkInterfaceIPConfiguration < MsRestAzure::SubResource
+ class NetworkInterfaceIPConfiguration < SubResource
include MsRestAzure
- include MsRest::JSONable
# @return [Array] The reference of
# ApplicationGatewayBackendAddressPool resource.
attr_accessor :application_gateway_backend_address_pools
@@ -25,7 +24,7 @@ class NetworkInterfaceIPConfiguration < MsRestAzure::SubResource
# LoadBalancerInboundNatRules.
attr_accessor :load_balancer_inbound_nat_rules
- # @return [String]
+ # @return [String] Private IP address of the IP configuration.
attr_accessor :private_ipaddress
# @return [IPAllocationMethod] Defines how a private IP address is
@@ -39,17 +38,24 @@ class NetworkInterfaceIPConfiguration < MsRestAzure::SubResource
# Possible values include: 'IPv4', 'IPv6'
attr_accessor :private_ipaddress_version
- # @return [Subnet]
+ # @return [Subnet] Subnet bound to the IP configuration.
attr_accessor :subnet
# @return [Boolean] Gets whether this is a primary customer address on
# the network interface.
attr_accessor :primary
- # @return [PublicIPAddress]
+ # @return [PublicIPAddress] Public IP address bound to the IP
+ # configuration.
attr_accessor :public_ipaddress
- # @return [String]
+ # @return [Array] Application security groups
+ # in which the IP configuration is included.
+ attr_accessor :application_security_groups
+
+ # @return [String] The provisioning state of the network interface IP
+ # configuration. Possible values are: 'Updating', 'Deleting', and
+ # 'Failed'.
attr_accessor :provisioning_state
# @return [String] The name of the resource that is unique within a
@@ -169,6 +175,21 @@ def self.mapper()
class_name: 'PublicIPAddress'
}
},
+ application_security_groups: {
+ required: false,
+ serialized_name: 'properties.applicationSecurityGroups',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'ApplicationSecurityGroupElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'ApplicationSecurityGroup'
+ }
+ }
+ }
+ },
provisioning_state: {
required: false,
serialized_name: 'properties.provisioningState',
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb
new file mode 100644
index 0000000000..65a807c3ce
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_ipconfiguration_list_result.rb
@@ -0,0 +1,98 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Response for list ip configurations API service call.
+ #
+ class NetworkInterfaceIPConfigurationListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] A list of ip
+ # configurations.
+ attr_accessor :value
+
+ # @return [String] The URL to get the next set of results.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array] operation results.
+ #
+ def get_all_items
+ items = @value
+ page = self
+ while page.next_link != nil do
+ page = page.get_next_page
+ items.concat(page.value)
+ end
+ items
+ end
+
+ #
+ # Gets the next page of results.
+ #
+ # @return [NetworkInterfaceIPConfigurationListResult] with next page
+ # content.
+ #
+ def get_next_page
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
+ unless response.nil?
+ @next_link = response.body.next_link
+ @value = response.body.value
+ self
+ end
+ end
+
+ #
+ # Mapper for NetworkInterfaceIPConfigurationListResult class as Ruby
+ # Hash.
+ # This will be used for serialization/deserialization.
+ #
+ def self.mapper()
+ {
+ required: false,
+ serialized_name: 'NetworkInterfaceIPConfigurationListResult',
+ type: {
+ name: 'Composite',
+ class_name: 'NetworkInterfaceIPConfigurationListResult',
+ model_properties: {
+ value: {
+ required: false,
+ serialized_name: 'value',
+ type: {
+ name: 'Sequence',
+ element: {
+ required: false,
+ serialized_name: 'NetworkInterfaceIPConfigurationElementType',
+ type: {
+ name: 'Composite',
+ class_name: 'NetworkInterfaceIPConfiguration'
+ }
+ }
+ }
+ },
+ next_link: {
+ required: false,
+ read_only: true,
+ serialized_name: 'nextLink',
+ type: {
+ name: 'String'
+ }
+ }
+ }
+ }
+ }
+ end
+ end
+ end
+end
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb
index 3631658947..f4501b83c4 100644
--- a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_list_result.rb
@@ -1,5 +1,5 @@
# encoding: utf-8
-# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
+# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
@@ -81,6 +81,7 @@ def self.mapper()
},
next_link: {
required: false,
+ read_only: true,
serialized_name: 'nextLink',
type: {
name: 'String'
diff --git a/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb
new file mode 100644
index 0000000000..73f2166caa
--- /dev/null
+++ b/management/azure_mgmt_network/lib/generated/azure_mgmt_network/models/network_interface_load_balancer_list_result.rb
@@ -0,0 +1,96 @@
+# 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::ARM::Network
+ module Models
+ #
+ # Response for list ip configurations API service call.
+ #
+ class NetworkInterfaceLoadBalancerListResult
+
+ include MsRestAzure
+
+ include MsRest::JSONable
+ # @return [Array] A list of load balancers.
+ attr_accessor :value
+
+ # @return [String] The URL to get the next set of results.
+ attr_accessor :next_link
+
+ # return [Proc] with next page method call.
+ attr_accessor :next_method
+
+ #
+ # Gets the rest of the items for the request, enabling auto-pagination.
+ #
+ # @return [Array