From 0b6453822affad6c5e410b109dc37cc27af8ca72 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 22 Jan 2018 18:32:30 +0000 Subject: [PATCH 1/2] Generated from cb9c18b988dd67894653a34dc55b7978403b120a --- .../lib/2016-05-16/build.json | 342 +++++++++++++++++ .../generated/azure_mgmt_analysis_services.rb | 10 +- .../analysis_services_management_client.rb | 4 +- .../models/analysis_services_server.rb | 13 - ...lysis_services_server_update_parameters.rb | 6 - .../models/analysis_services_servers.rb | 3 - ...eck_server_name_availability_parameters.rb | 61 +++ .../check_server_name_availability_result.rb | 64 ++++ .../models/error_response.rb | 54 +++ .../models/operation_status.rb | 95 +++++ .../models/resource.rb | 8 - .../models/resource_sku.rb | 3 - .../models/server_administrators.rb | 3 - .../sku_details_for_existing_resource.rb | 2 - ...numeration_for_existing_resource_result.rb | 3 - ...sku_enumeration_for_new_resource_result.rb | 3 - .../azure_mgmt_analysis_services/servers.rb | 338 ++++++++++++++--- .../azure_mgmt_analysis_services/version.rb | 8 + .../lib/2017-07-14/build.json | 342 +++++++++++++++++ .../generated/azure_mgmt_analysis_services.rb | 16 +- .../analysis_services_management_client.rb | 4 +- .../models/analysis_services_server.rb | 14 - ...lysis_services_server_update_parameters.rb | 7 - .../models/analysis_services_servers.rb | 3 - ...eck_server_name_availability_parameters.rb | 61 +++ .../check_server_name_availability_result.rb | 64 ++++ .../models/error_response.rb | 54 +++ .../models/gateway_details.rb | 4 - .../models/gateway_error.rb | 3 - .../models/gateway_list_status_error.rb | 2 - .../models/gateway_list_status_live.rb | 2 - .../models/operation_status.rb | 95 +++++ .../models/resource.rb | 8 - .../models/resource_sku.rb | 3 - .../models/server_administrators.rb | 3 - .../sku_details_for_existing_resource.rb | 2 - ...numeration_for_existing_resource_result.rb | 3 - ...sku_enumeration_for_new_resource_result.rb | 3 - .../azure_mgmt_analysis_services/servers.rb | 350 +++++++++++++++--- .../azure_mgmt_analysis_services/version.rb | 8 + 40 files changed, 1857 insertions(+), 214 deletions(-) create mode 100644 management/azure_mgmt_analysis_services/lib/2016-05-16/build.json create mode 100644 management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.rb create mode 100644 management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.rb create mode 100644 management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/error_response.rb create mode 100644 management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/operation_status.rb create mode 100644 management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/version.rb create mode 100644 management/azure_mgmt_analysis_services/lib/2017-07-14/build.json create mode 100644 management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.rb create mode 100644 management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.rb create mode 100644 management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/error_response.rb create mode 100644 management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/operation_status.rb create mode 100644 management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/version.rb diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/build.json b/management/azure_mgmt_analysis_services/lib/2016-05-16/build.json new file mode 100644 index 0000000000..12ff066211 --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/build.json @@ -0,0 +1,342 @@ +{ + "autorest": [ + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest-core", + "version": "2.0.4235", + "engines": { + "node": ">=7.10.0" + }, + "dependencies": {}, + "optionalDependencies": {}, + "devDependencies": { + "@types/commonmark": "^0.27.0", + "@types/js-yaml": "^3.10.0", + "@types/jsonpath": "^0.1.29", + "@types/node": "^8.0.53", + "@types/source-map": "0.5.0", + "@types/yargs": "^8.0.2", + "@types/z-schema": "^3.16.31", + "dts-generator": "^2.1.0", + "mocha": "^4.0.1", + "mocha-typescript": "^1.1.7", + "shx": "0.2.2", + "static-link": "^0.2.3", + "vscode-jsonrpc": "^3.3.1" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "_integrity": null, + "_shasum": "9139fd4763f79db103b22c077dab96452a54b7fe", + "_shrinkwrap": null, + "bin": { + "autorest-core": "./dist/app.js", + "autorest-language-service": "dist/language-service/language-service.js" + }, + "_id": "@microsoft.azure/autorest-core@2.0.4235", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "_requested": { + "type": "directory", + "where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.3564.6451002730096.personal-lock", + "options": { + "port": 64323, + "host": "2130712241", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.3564.6451002730096.personal-lock:64323" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.0.21", + "dependencies": { + "dotnet-2.0.0": "^1.3.2" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.1.1", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_integrity": null, + "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.0.21", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.3564.6451002730096.personal-lock", + "options": { + "port": 64323, + "host": "2130712241", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.3564.6451002730096.personal-lock:64323" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.1.22", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_integrity": null, + "_shasum": "ca425289fa38a210d279729048a4a91673f09c67", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.1.22", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.3564.6451002730096.personal-lock", + "options": { + "port": 64323, + "host": "2130712241", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.3564.6451002730096.personal-lock:64323" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.ruby", + "version": "3.0.20", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/autorest.testserver": "^1.9.2", + "autorest": "^2.0.0", + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_integrity": null, + "_shasum": "f5b24eb17914aad0e8d2da581642044a6088d905", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.ruby@3.0.20", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_requested": { + "type": "directory", + "where": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "raw": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_where": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.3564.6451002730096.personal-lock", + "options": { + "port": 64323, + "host": "2130712241", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.3564.6451002730096.personal-lock:64323" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + } + ], + "autorest_bootstrap": {} +} \ No newline at end of file diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services.rb index 5df778c1b2..12205e2f6c 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services.rb @@ -24,11 +24,15 @@ module Azure::AnalysisServices::Mgmt::V2016_05_16 autoload :AnalysisServicesManagementClient, '2016-05-16/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb' module Models - autoload :ServerAdministrators, '2016-05-16/generated/azure_mgmt_analysis_services/models/server_administrators.rb' - autoload :AnalysisServicesServerUpdateParameters, '2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb' + autoload :CheckServerNameAvailabilityParameters, '2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.rb' + autoload :CheckServerNameAvailabilityResult, '2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.rb' autoload :Resource, '2016-05-16/generated/azure_mgmt_analysis_services/models/resource.rb' - autoload :SkuEnumerationForNewResourceResult, '2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb' + autoload :ErrorResponse, '2016-05-16/generated/azure_mgmt_analysis_services/models/error_response.rb' autoload :AnalysisServicesServers, '2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb' + autoload :OperationStatus, '2016-05-16/generated/azure_mgmt_analysis_services/models/operation_status.rb' + autoload :AnalysisServicesServerUpdateParameters, '2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb' + autoload :SkuEnumerationForNewResourceResult, '2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb' + autoload :ServerAdministrators, '2016-05-16/generated/azure_mgmt_analysis_services/models/server_administrators.rb' autoload :SkuDetailsForExistingResource, '2016-05-16/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb' autoload :ResourceSku, '2016-05-16/generated/azure_mgmt_analysis_services/models/resource_sku.rb' autoload :SkuEnumerationForExistingResourceResult, '2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb' diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb index bcbf5d02c5..ecf2810cb2 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb @@ -121,7 +121,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_analysis_services' - sdk_information = "#{sdk_information}/0.15.2" + if defined? Azure::AnalysisServices::Mgmt::V2016_05_16::VERSION + sdk_information = "#{sdk_information}/#{Azure::AnalysisServices::Mgmt::V2016_05_16::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb index 0cba633f8d..b7bfdafec4 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb @@ -42,7 +42,6 @@ class AnalysisServicesServer < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AnalysisServicesServer', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'AnalysisServicesServer', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -59,7 +57,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -68,7 +65,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -77,7 +73,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -85,7 +80,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -94,13 +88,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -110,7 +102,6 @@ def self.mapper() } }, as_administrators: { - client_side_validation: true, required: false, serialized_name: 'properties.asAdministrators', type: { @@ -119,7 +110,6 @@ def self.mapper() } }, backup_blob_container_uri: { - client_side_validation: true, required: false, serialized_name: 'properties.backupBlobContainerUri', type: { @@ -127,7 +117,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.state', @@ -136,7 +125,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -145,7 +133,6 @@ def self.mapper() } }, server_full_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.serverFullName', diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb index 2d3a0acdba..15c13a6e40 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb @@ -32,7 +32,6 @@ class AnalysisServicesServerUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AnalysisServicesServerUpdateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'AnalysisServicesServerUpdateParameters', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -49,13 +47,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -65,7 +61,6 @@ def self.mapper() } }, as_administrators: { - client_side_validation: true, required: false, serialized_name: 'properties.asAdministrators', type: { @@ -74,7 +69,6 @@ def self.mapper() } }, backup_blob_container_uri: { - client_side_validation: true, required: false, serialized_name: 'properties.backupBlobContainerUri', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb index 3dce0f6bdd..7183cc5c4e 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb @@ -23,7 +23,6 @@ class AnalysisServicesServers # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AnalysisServicesServers', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'AnalysisServicesServers', model_properties: { value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AnalysisServicesServerElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.rb new file mode 100644 index 0000000000..645ed4dfbb --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.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::AnalysisServices::Mgmt::V2016_05_16 + module Models + # + # Details of server name request body. + # + class CheckServerNameAvailabilityParameters + + include MsRestAzure + + # @return [String] Name for checking availability. + attr_accessor :name + + # @return [String] The resource type of azure analysis services. Default + # value: 'Microsoft.AnalysisServices/servers' . + attr_accessor :type + + + # + # Mapper for CheckServerNameAvailabilityParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CheckServerNameAvailabilityParameters', + type: { + name: 'Composite', + class_name: 'CheckServerNameAvailabilityParameters', + model_properties: { + name: { + required: false, + serialized_name: 'name', + constraints: { + MaxLength: 63, + MinLength: 3, + Pattern: '^[a-z][a-z0-9]*$' + }, + type: { + name: 'String' + } + }, + type: { + required: false, + serialized_name: 'type', + default_value: 'Microsoft.AnalysisServices/servers', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.rb new file mode 100644 index 0000000000..db47ea5a90 --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.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::AnalysisServices::Mgmt::V2016_05_16 + module Models + # + # The checking result of server name availibility. + # + class CheckServerNameAvailabilityResult + + include MsRestAzure + + # @return [Boolean] Indicator of available of the server name. + attr_accessor :name_available + + # @return [String] The reason of unavailability. + attr_accessor :reason + + # @return [String] The detailed message of the request unavailability. + attr_accessor :message + + + # + # Mapper for CheckServerNameAvailabilityResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CheckServerNameAvailabilityResult', + type: { + name: 'Composite', + class_name: 'CheckServerNameAvailabilityResult', + 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_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/error_response.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/error_response.rb new file mode 100644 index 0000000000..27975a16eb --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/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::AnalysisServices::Mgmt::V2016_05_16 + 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/2016-05-16/generated/azure_mgmt_analysis_services/models/operation_status.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/operation_status.rb new file mode 100644 index 0000000000..3ac2c8ab1e --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/operation_status.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::AnalysisServices::Mgmt::V2016_05_16 + module Models + # + # The status of operation. + # + class OperationStatus + + include MsRestAzure + + # @return [String] The operation Id. + attr_accessor :id + + # @return [String] The operation name. + attr_accessor :name + + # @return [String] The start time of the operation. + attr_accessor :start_time + + # @return [String] The end time of the operation. + attr_accessor :end_time + + # @return [String] The status of the operation. + attr_accessor :status + + # @return [ErrorResponse] The error detail of the operation if any. + attr_accessor :error + + + # + # Mapper for OperationStatus class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationStatus', + type: { + name: 'Composite', + class_name: 'OperationStatus', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + start_time: { + required: false, + serialized_name: 'startTime', + type: { + name: 'String' + } + }, + end_time: { + required: false, + serialized_name: 'endTime', + type: { + name: 'String' + } + }, + status: { + required: false, + serialized_name: 'status', + type: { + name: 'String' + } + }, + error: { + required: false, + serialized_name: 'error', + type: { + name: 'Composite', + class_name: 'ErrorResponse' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource.rb index 7941411688..d84509a644 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource.rb @@ -39,7 +39,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -56,7 +54,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -65,7 +62,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -74,7 +70,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -91,13 +85,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource_sku.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource_sku.rb index f5381bf340..d0817ea84d 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource_sku.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/resource_sku.rb @@ -27,7 +27,6 @@ class ResourceSku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceSku', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'ResourceSku', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, tier: { - client_side_validation: true, required: false, serialized_name: 'tier', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/server_administrators.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/server_administrators.rb index e403fb0df1..34964414ef 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/server_administrators.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/server_administrators.rb @@ -22,7 +22,6 @@ class ServerAdministrators # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServerAdministrators', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'ServerAdministrators', model_properties: { members: { - client_side_validation: true, required: false, serialized_name: 'members', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb index e05849a5bb..a2e2aecfe4 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb @@ -22,7 +22,6 @@ class SkuDetailsForExistingResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SkuDetailsForExistingResource', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'SkuDetailsForExistingResource', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb index 7e248778c7..608bc52540 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb @@ -23,7 +23,6 @@ class SkuEnumerationForExistingResourceResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SkuEnumerationForExistingResourceResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'SkuEnumerationForExistingResourceResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SkuDetailsForExistingResourceElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb index 09c0842ef5..458b3c294c 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb @@ -23,7 +23,6 @@ class SkuEnumerationForNewResourceResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SkuEnumerationForNewResourceResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'SkuEnumerationForNewResourceResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ResourceSkuElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb index 8c02071016..355f900753 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/servers.rb @@ -73,13 +73,7 @@ def get_details_with_http_info(resource_group_name, server_name, custom_headers # def get_details_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -410,9 +404,6 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers = # def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).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? @@ -678,13 +669,7 @@ def list_skus_for_existing_with_http_info(resource_group_name, server_name, cust # def list_skus_for_existing_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -734,6 +719,299 @@ def list_skus_for_existing_async(resource_group_name, server_name, custom_header promise.execute end + # + # Check the name availability in the target location. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param server_parameters [CheckServerNameAvailabilityParameters] Contains the + # information used to provision the Analysis Services server. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CheckServerNameAvailabilityResult] operation results. + # + def check_name_availability(location, server_parameters, custom_headers = nil) + response = check_name_availability_async(location, server_parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Check the name availability in the target location. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param server_parameters [CheckServerNameAvailabilityParameters] Contains the + # information used to provision 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 check_name_availability_with_http_info(location, server_parameters, custom_headers = nil) + check_name_availability_async(location, server_parameters, custom_headers).value! + end + + # + # Check the name availability in the target location. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param server_parameters [CheckServerNameAvailabilityParameters] Contains the + # information used to provision 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 check_name_availability_async(location, server_parameters, custom_headers = nil) + fail ArgumentError, 'location is nil' if location.nil? + fail ArgumentError, 'server_parameters is nil' if server_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::AnalysisServices::Mgmt::V2016_05_16::Models::CheckServerNameAvailabilityParameters.mapper() + request_content = @client.serialize(request_mapper, server_parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/checkNameAvailability' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'location' => location,'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::AnalysisServices::Mgmt::V2016_05_16::Models::CheckServerNameAvailabilityResult.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 the result of the specified operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def list_operation_results(location, operation_id, custom_headers = nil) + response = list_operation_results_async(location, operation_id, custom_headers).value! + nil + end + + # + # List the result of the specified operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @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_operation_results_with_http_info(location, operation_id, custom_headers = nil) + list_operation_results_async(location, operation_id, custom_headers).value! + end + + # + # List the result of the specified operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @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_operation_results_async(location, operation_id, custom_headers = nil) + fail ArgumentError, 'location is nil' if location.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.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.AnalysisServices/locations/{location}/operationresults/{operationId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'location' => location,'operationId' => operation_id,'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 || 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? + + result + end + + promise.execute + end + + # + # List the status of operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationStatus] operation results. + # + def list_operation_statuses(location, operation_id, custom_headers = nil) + response = list_operation_statuses_async(location, operation_id, custom_headers).value! + response.body unless response.nil? + end + + # + # List the status of operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @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_operation_statuses_with_http_info(location, operation_id, custom_headers = nil) + list_operation_statuses_async(location, operation_id, custom_headers).value! + end + + # + # List the status of operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @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_operation_statuses_async(location, operation_id, custom_headers = nil) + fail ArgumentError, 'location is nil' if location.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.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.AnalysisServices/locations/{location}/operationstatuses/{operationId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'location' => location,'operationId' => operation_id,'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 || 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::AnalysisServices::Mgmt::V2016_05_16::Models::OperationStatus.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 == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::AnalysisServices::Mgmt::V2016_05_16::Models::OperationStatus.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 + # # Provisions the specified Analysis Services server based on the configuration # specified in the request. @@ -793,13 +1071,7 @@ def begin_create_with_http_info(resource_group_name, server_name, server_paramet # def begin_create_async(resource_group_name, server_name, server_parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil? fail ArgumentError, 'server_parameters is nil' if server_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? @@ -918,13 +1190,7 @@ def begin_delete_with_http_info(resource_group_name, server_name, custom_headers # def begin_delete_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -1020,13 +1286,7 @@ def begin_update_with_http_info(resource_group_name, server_name, server_update_ # def begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil? fail ArgumentError, 'server_update_parameters is nil' if server_update_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? @@ -1145,13 +1405,7 @@ def begin_suspend_with_http_info(resource_group_name, server_name, custom_header # def begin_suspend_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -1240,13 +1494,7 @@ def begin_resume_with_http_info(resource_group_name, server_name, custom_headers # def begin_resume_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/version.rb b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/version.rb new file mode 100644 index 0000000000..435d5796d2 --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/generated/azure_mgmt_analysis_services/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::AnalysisServices::Mgmt::V2016_05_16 + VERSION = '0.15.2' +end diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/build.json b/management/azure_mgmt_analysis_services/lib/2017-07-14/build.json new file mode 100644 index 0000000000..d6c0108667 --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/build.json @@ -0,0 +1,342 @@ +{ + "autorest": [ + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest-core", + "version": "2.0.4235", + "engines": { + "node": ">=7.10.0" + }, + "dependencies": {}, + "optionalDependencies": {}, + "devDependencies": { + "@types/commonmark": "^0.27.0", + "@types/js-yaml": "^3.10.0", + "@types/jsonpath": "^0.1.29", + "@types/node": "^8.0.53", + "@types/source-map": "0.5.0", + "@types/yargs": "^8.0.2", + "@types/z-schema": "^3.16.31", + "dts-generator": "^2.1.0", + "mocha": "^4.0.1", + "mocha-typescript": "^1.1.7", + "shx": "0.2.2", + "static-link": "^0.2.3", + "vscode-jsonrpc": "^3.3.1" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "_integrity": null, + "_shasum": "9139fd4763f79db103b22c077dab96452a54b7fe", + "_shrinkwrap": null, + "bin": { + "autorest-core": "./dist/app.js", + "autorest-language-service": "dist/language-service/language-service.js" + }, + "_id": "@microsoft.azure/autorest-core@2.0.4235", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "_requested": { + "type": "directory", + "where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4235/node_modules/@microsoft.azure/autorest-core" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.8665.577453583093.personal-lock", + "options": { + "port": 57054, + "host": "2130737660", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.8665.577453583093.personal-lock:57054" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.0.21", + "dependencies": { + "dotnet-2.0.0": "^1.3.2" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.1.1", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_integrity": null, + "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.0.21", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.8665.577453583093.personal-lock", + "options": { + "port": 57054, + "host": "2130737660", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.8665.577453583093.personal-lock:57054" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.modeler", + "version": "2.1.22", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_integrity": null, + "_shasum": "ca425289fa38a210d279729048a4a91673f09c67", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.modeler@2.1.22", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_requested": { + "type": "directory", + "where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.8665.577453583093.personal-lock", + "options": { + "port": 57054, + "host": "2130737660", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.8665.577453583093.personal-lock:57054" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + }, + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest.ruby", + "version": "3.0.20", + "dependencies": { + "dotnet-2.0.0": "^1.4.4" + }, + "optionalDependencies": {}, + "devDependencies": { + "@microsoft.azure/autorest.testserver": "^1.9.2", + "autorest": "^2.0.0", + "coffee-script": "^1.11.1", + "dotnet-sdk-2.0.0": "^1.4.4", + "gulp": "^3.9.1", + "gulp-filter": "^5.0.0", + "gulp-line-ending-corrector": "^1.0.1", + "iced-coffee-script": "^108.0.11", + "marked": "^0.3.6", + "marked-terminal": "^2.0.0", + "moment": "^2.17.1", + "run-sequence": "*", + "shx": "^0.2.2", + "through2-parallel": "^0.1.3", + "yargs": "^8.0.2", + "yarn": "^1.0.2" + }, + "bundleDependencies": false, + "peerDependencies": {}, + "deprecated": false, + "_resolved": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_integrity": null, + "_shasum": "f5b24eb17914aad0e8d2da581642044a6088d905", + "_shrinkwrap": null, + "bin": null, + "_id": "@microsoft.azure/autorest.ruby@3.0.20", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_requested": { + "type": "directory", + "where": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "raw": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby", + "_where": "/root/.autorest/@microsoft.azure_autorest.ruby@3.0.20/node_modules/@microsoft.azure/autorest.ruby" + }, + "extensionManager": { + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.8665.577453583093.personal-lock", + "options": { + "port": 57054, + "host": "2130737660", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.8665.577453583093.personal-lock:57054" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" + }, + "installationPath": "/root/.autorest" + } + ], + "autorest_bootstrap": {} +} \ No newline at end of file diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services.rb index 836bb09f51..2aa1844863 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services.rb @@ -24,17 +24,21 @@ module Azure::AnalysisServices::Mgmt::V2017_07_14 autoload :AnalysisServicesManagementClient, '2017-07-14/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb' module Models - autoload :AnalysisServicesServerUpdateParameters, '2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb' - autoload :GatewayListStatusLive, '2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb' - autoload :Resource, '2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb' autoload :GatewayError, '2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_error.rb' - autoload :AnalysisServicesServers, '2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb' autoload :GatewayListStatusError, '2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb' + autoload :Resource, '2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb' + autoload :CheckServerNameAvailabilityParameters, '2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.rb' + autoload :AnalysisServicesServers, '2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb' + autoload :CheckServerNameAvailabilityResult, '2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.rb' autoload :GatewayDetails, '2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_details.rb' - autoload :SkuEnumerationForNewResourceResult, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb' + autoload :ErrorResponse, '2017-07-14/generated/azure_mgmt_analysis_services/models/error_response.rb' + autoload :GatewayListStatusLive, '2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb' + autoload :OperationStatus, '2017-07-14/generated/azure_mgmt_analysis_services/models/operation_status.rb' autoload :ServerAdministrators, '2017-07-14/generated/azure_mgmt_analysis_services/models/server_administrators.rb' - autoload :SkuDetailsForExistingResource, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb' + autoload :SkuEnumerationForNewResourceResult, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb' autoload :ResourceSku, '2017-07-14/generated/azure_mgmt_analysis_services/models/resource_sku.rb' + autoload :SkuDetailsForExistingResource, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb' + autoload :AnalysisServicesServerUpdateParameters, '2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb' autoload :SkuEnumerationForExistingResourceResult, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb' autoload :AnalysisServicesServer, '2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb' autoload :SkuTier, '2017-07-14/generated/azure_mgmt_analysis_services/models/sku_tier.rb' diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb index 0a6709705e..2ecd5d0528 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/analysis_services_management_client.rb @@ -121,7 +121,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_analysis_services' - sdk_information = "#{sdk_information}/0.15.1" + if defined? Azure::AnalysisServices::Mgmt::V2017_07_14::VERSION + sdk_information = "#{sdk_information}/#{Azure::AnalysisServices::Mgmt::V2017_07_14::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb index 946cedc902..5d2d9cd360 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server.rb @@ -46,7 +46,6 @@ class AnalysisServicesServer < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AnalysisServicesServer', type: { @@ -54,7 +53,6 @@ def self.mapper() class_name: 'AnalysisServicesServer', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -63,7 +61,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -72,7 +69,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -81,7 +77,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -89,7 +84,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -98,13 +92,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -114,7 +106,6 @@ def self.mapper() } }, as_administrators: { - client_side_validation: true, required: false, serialized_name: 'properties.asAdministrators', type: { @@ -123,7 +114,6 @@ def self.mapper() } }, backup_blob_container_uri: { - client_side_validation: true, required: false, serialized_name: 'properties.backupBlobContainerUri', type: { @@ -131,7 +121,6 @@ def self.mapper() } }, gateway_details: { - client_side_validation: true, required: false, serialized_name: 'properties.gatewayDetails', type: { @@ -140,7 +129,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.state', @@ -149,7 +137,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.provisioningState', @@ -158,7 +145,6 @@ def self.mapper() } }, server_full_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.serverFullName', diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb index a488c9aa55..45bda0ec72 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_server_update_parameters.rb @@ -36,7 +36,6 @@ class AnalysisServicesServerUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AnalysisServicesServerUpdateParameters', type: { @@ -44,7 +43,6 @@ def self.mapper() class_name: 'AnalysisServicesServerUpdateParameters', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { @@ -53,13 +51,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, as_administrators: { - client_side_validation: true, required: false, serialized_name: 'properties.asAdministrators', type: { @@ -78,7 +73,6 @@ def self.mapper() } }, backup_blob_container_uri: { - client_side_validation: true, required: false, serialized_name: 'properties.backupBlobContainerUri', type: { @@ -86,7 +80,6 @@ def self.mapper() } }, gateway_details: { - client_side_validation: true, required: false, serialized_name: 'properties.gatewayDetails', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb index ad64f7850d..a43eaf9386 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/analysis_services_servers.rb @@ -23,7 +23,6 @@ class AnalysisServicesServers # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AnalysisServicesServers', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'AnalysisServicesServers', model_properties: { value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AnalysisServicesServerElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.rb new file mode 100644 index 0000000000..1ce9128381 --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_parameters.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::AnalysisServices::Mgmt::V2017_07_14 + module Models + # + # Details of server name request body. + # + class CheckServerNameAvailabilityParameters + + include MsRestAzure + + # @return [String] Name for checking availability. + attr_accessor :name + + # @return [String] The resource type of azure analysis services. Default + # value: 'Microsoft.AnalysisServices/servers' . + attr_accessor :type + + + # + # Mapper for CheckServerNameAvailabilityParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CheckServerNameAvailabilityParameters', + type: { + name: 'Composite', + class_name: 'CheckServerNameAvailabilityParameters', + model_properties: { + name: { + required: false, + serialized_name: 'name', + constraints: { + MaxLength: 63, + MinLength: 3, + Pattern: '^[a-z][a-z0-9]*$' + }, + type: { + name: 'String' + } + }, + type: { + required: false, + serialized_name: 'type', + default_value: 'Microsoft.AnalysisServices/servers', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.rb new file mode 100644 index 0000000000..0ae8a68b10 --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/check_server_name_availability_result.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::AnalysisServices::Mgmt::V2017_07_14 + module Models + # + # The checking result of server name availibility. + # + class CheckServerNameAvailabilityResult + + include MsRestAzure + + # @return [Boolean] Indicator of available of the server name. + attr_accessor :name_available + + # @return [String] The reason of unavailability. + attr_accessor :reason + + # @return [String] The detailed message of the request unavailability. + attr_accessor :message + + + # + # Mapper for CheckServerNameAvailabilityResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'CheckServerNameAvailabilityResult', + type: { + name: 'Composite', + class_name: 'CheckServerNameAvailabilityResult', + 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_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/error_response.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/error_response.rb new file mode 100644 index 0000000000..34fc52f1e6 --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/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::AnalysisServices::Mgmt::V2017_07_14 + 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/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_details.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_details.rb index a5829180fc..8196ffb9c2 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_details.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_details.rb @@ -29,7 +29,6 @@ class GatewayDetails # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GatewayDetails', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'GatewayDetails', model_properties: { gateway_resource_id: { - client_side_validation: true, required: false, serialized_name: 'gatewayResourceId', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, gateway_object_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'gatewayObjectId', @@ -54,7 +51,6 @@ def self.mapper() } }, dmts_cluster_uri: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'dmtsClusterUri', diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_error.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_error.rb index 525bd53a05..5814b0d806 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_error.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_error.rb @@ -25,7 +25,6 @@ class GatewayError # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GatewayError', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'GatewayError', model_properties: { code: { - client_side_validation: true, required: false, serialized_name: 'code', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, message: { - client_side_validation: true, required: false, serialized_name: 'message', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb index cd5ecda825..8a47a8ce08 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_error.rb @@ -22,7 +22,6 @@ class GatewayListStatusError # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GatewayListStatusError', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'GatewayListStatusError', model_properties: { error: { - client_side_validation: true, required: false, serialized_name: 'error', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb index ad7ca87b7a..4a2dd5d554 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/gateway_list_status_live.rb @@ -23,7 +23,6 @@ class GatewayListStatusLive # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'GatewayListStatusLive', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'GatewayListStatusLive', model_properties: { status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/operation_status.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/operation_status.rb new file mode 100644 index 0000000000..69e6298829 --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/operation_status.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::AnalysisServices::Mgmt::V2017_07_14 + module Models + # + # The status of operation. + # + class OperationStatus + + include MsRestAzure + + # @return [String] The operation Id. + attr_accessor :id + + # @return [String] The operation name. + attr_accessor :name + + # @return [String] The start time of the operation. + attr_accessor :start_time + + # @return [String] The end time of the operation. + attr_accessor :end_time + + # @return [String] The status of the operation. + attr_accessor :status + + # @return [ErrorResponse] The error detail of the operation if any. + attr_accessor :error + + + # + # Mapper for OperationStatus class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'OperationStatus', + type: { + name: 'Composite', + class_name: 'OperationStatus', + model_properties: { + id: { + required: false, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + start_time: { + required: false, + serialized_name: 'startTime', + type: { + name: 'String' + } + }, + end_time: { + required: false, + serialized_name: 'endTime', + type: { + name: 'String' + } + }, + status: { + required: false, + serialized_name: 'status', + type: { + name: 'String' + } + }, + error: { + required: false, + serialized_name: 'error', + type: { + name: 'Composite', + class_name: 'ErrorResponse' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb index 6234dcb50d..0cc3679f14 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource.rb @@ -39,7 +39,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -56,7 +54,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -65,7 +62,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -74,7 +70,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: true, serialized_name: 'sku', type: { @@ -91,13 +85,11 @@ def self.mapper() } }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource_sku.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource_sku.rb index 9682e02bdc..372e56e295 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource_sku.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/resource_sku.rb @@ -27,7 +27,6 @@ class ResourceSku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ResourceSku', type: { @@ -35,7 +34,6 @@ def self.mapper() class_name: 'ResourceSku', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -43,7 +41,6 @@ def self.mapper() } }, tier: { - client_side_validation: true, required: false, serialized_name: 'tier', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/server_administrators.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/server_administrators.rb index f983a78fbd..b56bf9e5b2 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/server_administrators.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/server_administrators.rb @@ -22,7 +22,6 @@ class ServerAdministrators # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ServerAdministrators', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'ServerAdministrators', model_properties: { members: { - client_side_validation: true, required: false, serialized_name: 'members', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb index 1e3ce3856c..23a014864a 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_details_for_existing_resource.rb @@ -22,7 +22,6 @@ class SkuDetailsForExistingResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SkuDetailsForExistingResource', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'SkuDetailsForExistingResource', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'sku', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb index 93819e1231..3f3f0ec366 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_existing_resource_result.rb @@ -23,7 +23,6 @@ class SkuEnumerationForExistingResourceResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SkuEnumerationForExistingResourceResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'SkuEnumerationForExistingResourceResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'SkuDetailsForExistingResourceElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb index 9d4cc78d4a..9e15f9c169 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/models/sku_enumeration_for_new_resource_result.rb @@ -23,7 +23,6 @@ class SkuEnumerationForNewResourceResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SkuEnumerationForNewResourceResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'SkuEnumerationForNewResourceResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ResourceSkuElementType', type: { diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/servers.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/servers.rb index d45f49a042..ab073cb032 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/servers.rb +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/servers.rb @@ -73,13 +73,7 @@ def get_details_with_http_info(resource_group_name, server_name, custom_headers # def get_details_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -410,9 +404,6 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers = # def list_by_resource_group_async(resource_group_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).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? @@ -678,13 +669,7 @@ def list_skus_for_existing_with_http_info(resource_group_name, server_name, cust # def list_skus_for_existing_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -784,13 +769,7 @@ def list_gateway_status_with_http_info(resource_group_name, server_name, custom_ # 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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -889,13 +868,7 @@ def dissociate_gateway_with_http_info(resource_group_name, server_name, custom_h # 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, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -935,6 +908,299 @@ def dissociate_gateway_async(resource_group_name, server_name, custom_headers = promise.execute end + # + # Check the name availability in the target location. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param server_parameters [CheckServerNameAvailabilityParameters] Contains the + # information used to provision the Analysis Services server. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [CheckServerNameAvailabilityResult] operation results. + # + def check_name_availability(location, server_parameters, custom_headers = nil) + response = check_name_availability_async(location, server_parameters, custom_headers).value! + response.body unless response.nil? + end + + # + # Check the name availability in the target location. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param server_parameters [CheckServerNameAvailabilityParameters] Contains the + # information used to provision 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 check_name_availability_with_http_info(location, server_parameters, custom_headers = nil) + check_name_availability_async(location, server_parameters, custom_headers).value! + end + + # + # Check the name availability in the target location. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param server_parameters [CheckServerNameAvailabilityParameters] Contains the + # information used to provision 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 check_name_availability_async(location, server_parameters, custom_headers = nil) + fail ArgumentError, 'location is nil' if location.nil? + fail ArgumentError, 'server_parameters is nil' if server_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::AnalysisServices::Mgmt::V2017_07_14::Models::CheckServerNameAvailabilityParameters.mapper() + request_content = @client.serialize(request_mapper, server_parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.AnalysisServices/locations/{location}/checkNameAvailability' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'location' => location,'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::AnalysisServices::Mgmt::V2017_07_14::Models::CheckServerNameAvailabilityResult.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 the result of the specified operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # + def list_operation_results(location, operation_id, custom_headers = nil) + response = list_operation_results_async(location, operation_id, custom_headers).value! + nil + end + + # + # List the result of the specified operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @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_operation_results_with_http_info(location, operation_id, custom_headers = nil) + list_operation_results_async(location, operation_id, custom_headers).value! + end + + # + # List the result of the specified operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @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_operation_results_async(location, operation_id, custom_headers = nil) + fail ArgumentError, 'location is nil' if location.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.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.AnalysisServices/locations/{location}/operationresults/{operationId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'location' => location,'operationId' => operation_id,'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 || 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? + + result + end + + promise.execute + end + + # + # List the status of operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [OperationStatus] operation results. + # + def list_operation_statuses(location, operation_id, custom_headers = nil) + response = list_operation_statuses_async(location, operation_id, custom_headers).value! + response.body unless response.nil? + end + + # + # List the status of operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @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_operation_statuses_with_http_info(location, operation_id, custom_headers = nil) + list_operation_statuses_async(location, operation_id, custom_headers).value! + end + + # + # List the status of operation. + # + # @param location [String] The region name which the operation will lookup + # into. + # @param operation_id [String] The target operation Id. + # @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_operation_statuses_async(location, operation_id, custom_headers = nil) + fail ArgumentError, 'location is nil' if location.nil? + fail ArgumentError, 'operation_id is nil' if operation_id.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.AnalysisServices/locations/{location}/operationstatuses/{operationId}' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'location' => location,'operationId' => operation_id,'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 || 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::AnalysisServices::Mgmt::V2017_07_14::Models::OperationStatus.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 == 202 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::AnalysisServices::Mgmt::V2017_07_14::Models::OperationStatus.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 + # # Provisions the specified Analysis Services server based on the configuration # specified in the request. @@ -994,13 +1260,7 @@ def begin_create_with_http_info(resource_group_name, server_name, server_paramet # def begin_create_async(resource_group_name, server_name, server_parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil? fail ArgumentError, 'server_parameters is nil' if server_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? @@ -1119,13 +1379,7 @@ def begin_delete_with_http_info(resource_group_name, server_name, custom_headers # def begin_delete_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -1221,13 +1475,7 @@ def begin_update_with_http_info(resource_group_name, server_name, server_update_ # def begin_update_async(resource_group_name, server_name, server_update_parameters, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).nil? fail ArgumentError, 'server_update_parameters is nil' if server_update_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? @@ -1346,13 +1594,7 @@ def begin_suspend_with_http_info(resource_group_name, server_name, custom_header # def begin_suspend_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? @@ -1441,13 +1683,7 @@ def begin_resume_with_http_info(resource_group_name, server_name, custom_headers # def begin_resume_async(resource_group_name, server_name, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1 - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil? fail ArgumentError, 'server_name is nil' if server_name.nil? - fail ArgumentError, "'server_name' should satisfy the constraint - 'MaxLength': '63'" if !server_name.nil? && server_name.length > 63 - fail ArgumentError, "'server_name' should satisfy the constraint - 'MinLength': '3'" if !server_name.nil? && server_name.length < 3 - fail ArgumentError, "'server_name' should satisfy the constraint - 'Pattern': '^[a-z][a-z0-9]*$'" if !server_name.nil? && server_name.match(Regexp.new('^^[a-z][a-z0-9]*$$')).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? diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/version.rb b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/version.rb new file mode 100644 index 0000000000..8bc23937e7 --- /dev/null +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/generated/azure_mgmt_analysis_services/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::AnalysisServices::Mgmt::V2017_07_14 + VERSION = '0.15.2' +end From fca52566ff1e7920af4f8d9070a1ebbc70a2809f Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 22 Jan 2018 18:34:28 +0000 Subject: [PATCH 2/2] Generated from cb9c18b988dd67894653a34dc55b7978403b120a --- .../lib/2016-05-16/build.json | 32 +++++++++---------- .../lib/2017-07-14/build.json | 32 +++++++++---------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/management/azure_mgmt_analysis_services/lib/2016-05-16/build.json b/management/azure_mgmt_analysis_services/lib/2016-05-16/build.json index 12ff066211..2bbe1c2592 100644 --- a/management/azure_mgmt_analysis_services/lib/2016-05-16/build.json +++ b/management/azure_mgmt_analysis_services/lib/2016-05-16/build.json @@ -72,13 +72,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.3564.6451002730096.personal-lock", + "name": "_root_.autorest.3162.229661527767.personal-lock", "options": { - "port": 64323, - "host": "2130712241", + "port": 61847, + "host": "2130745241", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.3564.6451002730096.personal-lock:64323" + "pipe": "/tmp/pipe__root_.autorest.3162.229661527767.personal-lock:61847" }, "file": "/tmp/_root_.autorest.lock" }, @@ -155,13 +155,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.3564.6451002730096.personal-lock", + "name": "_root_.autorest.3162.229661527767.personal-lock", "options": { - "port": 64323, - "host": "2130712241", + "port": 61847, + "host": "2130745241", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.3564.6451002730096.personal-lock:64323" + "pipe": "/tmp/pipe__root_.autorest.3162.229661527767.personal-lock:61847" }, "file": "/tmp/_root_.autorest.lock" }, @@ -238,13 +238,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.3564.6451002730096.personal-lock", + "name": "_root_.autorest.3162.229661527767.personal-lock", "options": { - "port": 64323, - "host": "2130712241", + "port": 61847, + "host": "2130745241", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.3564.6451002730096.personal-lock:64323" + "pipe": "/tmp/pipe__root_.autorest.3162.229661527767.personal-lock:61847" }, "file": "/tmp/_root_.autorest.lock" }, @@ -323,13 +323,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.3564.6451002730096.personal-lock", + "name": "_root_.autorest.3162.229661527767.personal-lock", "options": { - "port": 64323, - "host": "2130712241", + "port": 61847, + "host": "2130745241", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.3564.6451002730096.personal-lock:64323" + "pipe": "/tmp/pipe__root_.autorest.3162.229661527767.personal-lock:61847" }, "file": "/tmp/_root_.autorest.lock" }, diff --git a/management/azure_mgmt_analysis_services/lib/2017-07-14/build.json b/management/azure_mgmt_analysis_services/lib/2017-07-14/build.json index d6c0108667..272117d5d3 100644 --- a/management/azure_mgmt_analysis_services/lib/2017-07-14/build.json +++ b/management/azure_mgmt_analysis_services/lib/2017-07-14/build.json @@ -72,13 +72,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.8665.577453583093.personal-lock", + "name": "_root_.autorest.1898.8834215376626.personal-lock", "options": { - "port": 57054, - "host": "2130737660", + "port": 5868, + "host": "2130713086", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.8665.577453583093.personal-lock:57054" + "pipe": "/tmp/pipe__root_.autorest.1898.8834215376626.personal-lock:5868" }, "file": "/tmp/_root_.autorest.lock" }, @@ -155,13 +155,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.8665.577453583093.personal-lock", + "name": "_root_.autorest.1898.8834215376626.personal-lock", "options": { - "port": 57054, - "host": "2130737660", + "port": 5868, + "host": "2130713086", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.8665.577453583093.personal-lock:57054" + "pipe": "/tmp/pipe__root_.autorest.1898.8834215376626.personal-lock:5868" }, "file": "/tmp/_root_.autorest.lock" }, @@ -238,13 +238,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.8665.577453583093.personal-lock", + "name": "_root_.autorest.1898.8834215376626.personal-lock", "options": { - "port": 57054, - "host": "2130737660", + "port": 5868, + "host": "2130713086", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.8665.577453583093.personal-lock:57054" + "pipe": "/tmp/pipe__root_.autorest.1898.8834215376626.personal-lock:5868" }, "file": "/tmp/_root_.autorest.lock" }, @@ -323,13 +323,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.8665.577453583093.personal-lock", + "name": "_root_.autorest.1898.8834215376626.personal-lock", "options": { - "port": 57054, - "host": "2130737660", + "port": 5868, + "host": "2130713086", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.8665.577453583093.personal-lock:57054" + "pipe": "/tmp/pipe__root_.autorest.1898.8834215376626.personal-lock:5868" }, "file": "/tmp/_root_.autorest.lock" },