diff --git a/management/azure_mgmt_automation/lib/2015-10-31/build.json b/management/azure_mgmt_automation/lib/2015-10-31/build.json new file mode 100644 index 0000000000..2a6aba4074 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/build.json @@ -0,0 +1,337 @@ +{ + "autorest": [ + { + "resolvedInfo": null, + "packageMetadata": { + "name": "@microsoft.azure/autorest-core", + "version": "2.0.4216", + "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", + "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.4216/node_modules/@microsoft.azure/autorest-core", + "_shasum": "f6b97454df552dfa54bd0df23f8309665be5fd4c", + "_shrinkwrap": null, + "bin": { + "autorest-core": "./dist/app.js", + "autorest-language-service": "dist/language-service/language-service.js" + }, + "_id": "@microsoft.azure/autorest-core@2.0.4216", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", + "_requested": { + "type": "directory", + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core" + }, + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/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.6860.7206199681705.personal-lock", + "options": { + "port": 61757, + "host": "2130726296", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.6860.7206199681705.personal-lock:61757" + }, + "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", + "_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": "/git-restapi", + "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.6860.7206199681705.personal-lock", + "options": { + "port": 61757, + "host": "2130726296", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.6860.7206199681705.personal-lock:61757" + }, + "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", + "_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": "/git-restapi", + "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.6860.7206199681705.personal-lock", + "options": { + "port": 61757, + "host": "2130726296", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.6860.7206199681705.personal-lock:61757" + }, + "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", + "_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": "/git-restapi", + "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.6860.7206199681705.personal-lock", + "options": { + "port": 61757, + "host": "2130726296", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.6860.7206199681705.personal-lock:61757" + }, + "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_automation/lib/2015-10-31/generated/azure_mgmt_automation.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation.rb index 81eaa4cbf6..0655c70cb2 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation.rb @@ -52,112 +52,113 @@ module Azure::Automation::Mgmt::V2015_10_31 autoload :AutomationClient, '2015-10-31/generated/azure_mgmt_automation/automation_client.rb' module Models + autoload :DscCompilationJobCreateParameters, '2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb' autoload :DscCompilationJob, '2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb' - autoload :ErrorResponse, '2015-10-31/generated/azure_mgmt_automation/models/error_response.rb' + autoload :UsageCounterName, '2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.rb' autoload :DscCompilationJobListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb' - autoload :Usage, '2015-10-31/generated/azure_mgmt_automation/models/usage.rb' + autoload :UsageListResult, '2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb' autoload :DscConfigurationListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb' - autoload :Statistics, '2015-10-31/generated/azure_mgmt_automation/models/statistics.rb' + autoload :StatisticsListResult, '2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb' autoload :DscConfigurationCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb' - autoload :RunbookParameter, '2015-10-31/generated/azure_mgmt_automation/models/runbook_parameter.rb' + autoload :ContentHash, '2015-10-31/generated/azure_mgmt_automation/models/content_hash.rb' autoload :DscMetaConfiguration, '2015-10-31/generated/azure_mgmt_automation/models/dsc_meta_configuration.rb' - autoload :ContentLink, '2015-10-31/generated/azure_mgmt_automation/models/content_link.rb' + autoload :RunbookDraft, '2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb' autoload :DscNodeConfigurationCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb' - autoload :ContentHash, '2015-10-31/generated/azure_mgmt_automation/models/content_hash.rb' autoload :ModuleErrorInfo, '2015-10-31/generated/azure_mgmt_automation/models/module_error_info.rb' - autoload :RunbookDraft, '2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb' + autoload :DscNodeConfiguration, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb' + autoload :DscNodeExtensionHandlerAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb' + autoload :DscNodeConfigurationListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb' autoload :DscNodeConfigurationAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb' - autoload :WebhookCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb' autoload :ContentSource, '2015-10-31/generated/azure_mgmt_automation/models/content_source.rb' - autoload :DscNodeConfiguration, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb' autoload :WebhookListResult, '2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb' - autoload :DscNodeConfigurationListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb' - autoload :Webhook, '2015-10-31/generated/azure_mgmt_automation/models/webhook.rb' autoload :DscNodeListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb' - autoload :AutomationAccountListResult, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb' + autoload :WebhookUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb' autoload :DscNodeUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb' - autoload :Operation, '2015-10-31/generated/azure_mgmt_automation/models/operation.rb' + autoload :AutomationAccountListResult, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb' autoload :DscReportError, '2015-10-31/generated/azure_mgmt_automation/models/dsc_report_error.rb' - autoload :AutomationAccountCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb' + autoload :Operation, '2015-10-31/generated/azure_mgmt_automation/models/operation.rb' autoload :DscReportResourceNavigation, '2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb' - autoload :Certificate, '2015-10-31/generated/azure_mgmt_automation/models/certificate.rb' + autoload :AutomationAccountCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb' autoload :DscReportResource, '2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource.rb' - autoload :CertificateUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb' + autoload :Certificate, '2015-10-31/generated/azure_mgmt_automation/models/certificate.rb' autoload :DscNodeReport, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report.rb' - autoload :ConnectionTypeAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb' + autoload :CertificateUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb' autoload :DscNodeReportListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb' - autoload :ConnectionListResult, '2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb' + autoload :ConnectionTypeAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb' autoload :HybridRunbookWorker, '2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb' - autoload :ConnectionCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb' + autoload :ConnectionListResult, '2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb' autoload :RunAsCredentialAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/run_as_credential_association_property.rb' - autoload :ConnectionType, '2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb' + autoload :ConnectionCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb' autoload :HybridRunbookWorkerGroup, '2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb' - autoload :ConnectionTypeCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb' + autoload :ConnectionType, '2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb' autoload :HybridRunbookWorkerGroupsListResult, '2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb' - autoload :CredentialListResult, '2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb' + autoload :ConnectionTypeCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb' autoload :HybridRunbookWorkerGroupUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb' - autoload :CredentialCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb' + autoload :CredentialListResult, '2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb' autoload :RunbookAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/runbook_association_property.rb' - autoload :ActivityParameterSet, '2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb' + autoload :CredentialCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb' autoload :Job, '2015-10-31/generated/azure_mgmt_automation/models/job.rb' - autoload :Activity, '2015-10-31/generated/azure_mgmt_automation/models/activity.rb' + autoload :ActivityParameterSet, '2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb' autoload :JobCreateParameters, '2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb' - autoload :AdvancedScheduleMonthlyOccurrence, '2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb' + autoload :Activity, '2015-10-31/generated/azure_mgmt_automation/models/activity.rb' autoload :JobListResult, '2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb' - autoload :AgentRegistrationKeys, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb' + autoload :AdvancedScheduleMonthlyOccurrence, '2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb' autoload :ScheduleAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb' - autoload :AgentRegistrationRegenerateKeyParameter, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb' + autoload :AgentRegistrationKeys, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb' autoload :JobScheduleCreateParameters, '2015-10-31/generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb' - autoload :DscCompilationJobCreateParameters, '2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb' + autoload :AgentRegistrationRegenerateKeyParameter, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb' autoload :JobSchedule, '2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb' - autoload :UsageListResult, '2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb' + autoload :ErrorResponse, '2015-10-31/generated/azure_mgmt_automation/models/error_response.rb' autoload :JobScheduleListResult, '2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb' + autoload :Statistics, '2015-10-31/generated/azure_mgmt_automation/models/statistics.rb' autoload :JobStream, '2015-10-31/generated/azure_mgmt_automation/models/job_stream.rb' - autoload :DscConfigurationParameter, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb' + autoload :ContentLink, '2015-10-31/generated/azure_mgmt_automation/models/content_link.rb' autoload :JobStreamListResult, '2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb' - autoload :Resource, '2015-10-31/generated/azure_mgmt_automation/models/resource.rb' + autoload :Webhook, '2015-10-31/generated/azure_mgmt_automation/models/webhook.rb' + autoload :DscConfigurationParameter, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb' autoload :ModuleCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb' - autoload :OperationListResult, '2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb' + autoload :Resource, '2015-10-31/generated/azure_mgmt_automation/models/resource.rb' autoload :ModuleListResult, '2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb' - autoload :CertificateListResult, '2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb' + autoload :OperationListResult, '2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb' autoload :ModuleUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/module_update_parameters.rb' - autoload :Connection, '2015-10-31/generated/azure_mgmt_automation/models/connection.rb' + autoload :CertificateListResult, '2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb' autoload :RunbookDraftUndoEditResult, '2015-10-31/generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb' - autoload :FieldDefinition, '2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb' + autoload :Connection, '2015-10-31/generated/azure_mgmt_automation/models/connection.rb' autoload :RunbookCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb' - autoload :Credential, '2015-10-31/generated/azure_mgmt_automation/models/credential.rb' + autoload :FieldDefinition, '2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb' autoload :RunbookCreateOrUpdateDraftProperties, '2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb' - autoload :ActivityParameter, '2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb' + autoload :Credential, '2015-10-31/generated/azure_mgmt_automation/models/credential.rb' autoload :RunbookCreateOrUpdateDraftParameters, '2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb' - autoload :ActivityListResult, '2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb' + autoload :ActivityParameter, '2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb' autoload :RunbookUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/runbook_update_parameters.rb' - autoload :AgentRegistration, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb' + autoload :ActivityListResult, '2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb' autoload :RunbookListResult, '2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb' - autoload :UsageCounterName, '2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.rb' + autoload :AgentRegistration, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb' autoload :ScheduleCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb' - autoload :WebhookUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb' + autoload :Usage, '2015-10-31/generated/azure_mgmt_automation/models/usage.rb' autoload :Schedule, '2015-10-31/generated/azure_mgmt_automation/models/schedule.rb' - autoload :OperationDisplay, '2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb' + autoload :WebhookCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb' + autoload :Sku, '2015-10-31/generated/azure_mgmt_automation/models/sku.rb' autoload :ScheduleUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb' - autoload :CertificateCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb' + autoload :AutomationAccountUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb' autoload :ScheduleListResult, '2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb' - autoload :ConnectionTypeListResult, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb' + autoload :ConnectionUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb' autoload :SubResource, '2015-10-31/generated/azure_mgmt_automation/models/sub_resource.rb' - autoload :ActivityOutputType, '2015-10-31/generated/azure_mgmt_automation/models/activity_output_type.rb' + autoload :CredentialUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb' autoload :TestJobCreateParameters, '2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb' - autoload :DscConfigurationAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb' + autoload :AdvancedSchedule, '2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule.rb' autoload :TestJob, '2015-10-31/generated/azure_mgmt_automation/models/test_job.rb' - autoload :Sku, '2015-10-31/generated/azure_mgmt_automation/models/sku.rb' + autoload :RunbookParameter, '2015-10-31/generated/azure_mgmt_automation/models/runbook_parameter.rb' autoload :TypeField, '2015-10-31/generated/azure_mgmt_automation/models/type_field.rb' - autoload :ConnectionUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb' + autoload :CertificateCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb' autoload :TypeFieldListResult, '2015-10-31/generated/azure_mgmt_automation/models/type_field_list_result.rb' - autoload :AdvancedSchedule, '2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule.rb' + autoload :ActivityOutputType, '2015-10-31/generated/azure_mgmt_automation/models/activity_output_type.rb' autoload :VariableCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb' - autoload :AutomationAccountUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb' + autoload :OperationDisplay, '2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb' autoload :Variable, '2015-10-31/generated/azure_mgmt_automation/models/variable.rb' - autoload :StatisticsListResult, '2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb' + autoload :DscConfigurationAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb' autoload :VariableListResult, '2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb' - autoload :CredentialUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb' + autoload :ConnectionTypeListResult, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb' autoload :VariableUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb' autoload :Runbook, '2015-10-31/generated/azure_mgmt_automation/models/runbook.rb' autoload :ModuleModel, '2015-10-31/generated/azure_mgmt_automation/models/module_model.rb' diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb index 51d204fa3f..f6104b617a 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb @@ -25,7 +25,6 @@ def initialize(client) # Retrieve the activity in the module identified by module name and activity # name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param activity_name [String] The name of activity. @@ -34,8 +33,8 @@ def initialize(client) # # @return [Activity] operation results. # - def get(resource_group_name, automation_account_name, module_name, activity_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers).value! + def get(automation_account_name, module_name, activity_name, custom_headers = nil) + response = get_async(automation_account_name, module_name, activity_name, custom_headers).value! response.body unless response.nil? end @@ -43,7 +42,6 @@ def get(resource_group_name, automation_account_name, module_name, activity_name # Retrieve the activity in the module identified by module name and activity # name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param activity_name [String] The name of activity. @@ -52,15 +50,14 @@ def get(resource_group_name, automation_account_name, module_name, activity_name # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, module_name, activity_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, module_name, activity_name, custom_headers).value! + def get_with_http_info(automation_account_name, module_name, activity_name, custom_headers = nil) + get_async(automation_account_name, module_name, activity_name, custom_headers).value! end # # Retrieve the activity in the module identified by module name and activity # name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param activity_name [String] The name of activity. @@ -69,9 +66,8 @@ def get_with_http_info(resource_group_name, automation_account_name, module_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, module_name, activity_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, module_name, activity_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'module_name is nil' if module_name.nil? fail ArgumentError, 'activity_name is nil' if activity_name.nil? @@ -90,7 +86,7 @@ def get_async(resource_group_name, automation_account_name, module_name, activit options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'activityName' => activity_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'activityName' => activity_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -127,7 +123,6 @@ def get_async(resource_group_name, automation_account_name, module_name, activit # # Retrieve a list of activities in the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -135,15 +130,14 @@ def get_async(resource_group_name, automation_account_name, module_name, activit # # @return [Array] operation results. # - def list_by_module(resource_group_name, automation_account_name, module_name, custom_headers = nil) - first_page = list_by_module_as_lazy(resource_group_name, automation_account_name, module_name, custom_headers) + def list_by_module(automation_account_name, module_name, custom_headers = nil) + first_page = list_by_module_as_lazy(automation_account_name, module_name, custom_headers) first_page.get_all_items end # # Retrieve a list of activities in the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -151,14 +145,13 @@ def list_by_module(resource_group_name, automation_account_name, module_name, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_module_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers = nil) - list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def list_by_module_with_http_info(automation_account_name, module_name, custom_headers = nil) + list_by_module_async(automation_account_name, module_name, custom_headers).value! end # # Retrieve a list of activities in the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -166,9 +159,8 @@ def list_by_module_with_http_info(resource_group_name, automation_account_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_module_async(resource_group_name, automation_account_name, module_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_module_async(automation_account_name, module_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'module_name is nil' if module_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -186,7 +178,7 @@ def list_by_module_async(resource_group_name, automation_account_name, module_na options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -310,7 +302,6 @@ def list_by_module_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of activities in the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -319,8 +310,8 @@ def list_by_module_next_async(next_page_link, custom_headers = nil) # @return [ActivityListResult] which provide lazy access to pages of the # response. # - def list_by_module_as_lazy(resource_group_name, automation_account_name, module_name, custom_headers = nil) - response = list_by_module_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def list_by_module_as_lazy(automation_account_name, module_name, custom_headers = nil) + response = list_by_module_async(automation_account_name, module_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb index 1e2b5a70ee..c672e7eee8 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb @@ -24,45 +24,41 @@ def initialize(client) # # Retrieve the automation agent registration information. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [AgentRegistration] operation results. # - def get(resource_group_name, automation_account_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, custom_headers).value! + def get(automation_account_name, custom_headers = nil) + response = get_async(automation_account_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the automation agent registration information. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, custom_headers).value! + def get_with_http_info(automation_account_name, custom_headers = nil) + get_async(automation_account_name, custom_headers).value! end # # Retrieve the automation agent registration information. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -79,7 +75,7 @@ def get_async(resource_group_name, automation_account_name, custom_headers = nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -116,7 +112,6 @@ def get_async(resource_group_name, automation_account_name, custom_headers = nil # # Regenerate a primary or secondary agent registration key # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the # agent registration key to be regenerated @@ -125,15 +120,14 @@ def get_async(resource_group_name, automation_account_name, custom_headers = nil # # @return [AgentRegistration] operation results. # - def regenerate_key(resource_group_name, automation_account_name, parameters, custom_headers = nil) - response = regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers).value! + def regenerate_key(automation_account_name, parameters, custom_headers = nil) + response = regenerate_key_async(automation_account_name, parameters, custom_headers).value! response.body unless response.nil? end # # Regenerate a primary or secondary agent registration key # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the # agent registration key to be regenerated @@ -142,14 +136,13 @@ def regenerate_key(resource_group_name, automation_account_name, parameters, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers = nil) - regenerate_key_async(resource_group_name, automation_account_name, parameters, custom_headers).value! + def regenerate_key_with_http_info(automation_account_name, parameters, custom_headers = nil) + regenerate_key_async(automation_account_name, parameters, custom_headers).value! end # # Regenerate a primary or secondary agent registration key # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the # agent registration key to be regenerated @@ -158,9 +151,8 @@ def regenerate_key_with_http_info(resource_group_name, automation_account_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def regenerate_key_async(resource_group_name, automation_account_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def regenerate_key_async(automation_account_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -186,7 +178,7 @@ def regenerate_key_async(resource_group_name, automation_account_name, parameter options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb index 078be18b75..4af2928248 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb @@ -68,7 +68,6 @@ def update_with_http_info(resource_group_name, automation_account_name, paramete # def update_async(resource_group_name, automation_account_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -179,7 +178,6 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # def create_or_update_async(resource_group_name, automation_account_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -290,7 +288,6 @@ def delete_with_http_info(resource_group_name, automation_account_name, custom_h # def delete_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -372,7 +369,6 @@ def get_with_http_info(resource_group_name, automation_account_name, custom_head # def get_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -461,7 +457,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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb index 0e46d6ebe9..61941a9c04 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb @@ -25,6 +25,9 @@ class AutomationClient < MsRestAzure::AzureServiceClient # for every service call. attr_accessor :subscription_id + # @return [String] The resource group name. + attr_accessor :resource_group_name + # @return [String] Gets or sets the preferred language for the response. attr_accessor :accept_language @@ -236,7 +239,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_automation' - sdk_information = "#{sdk_information}/0.15.2" + if defined? Azure::Automation::Mgmt::V2015_10_31::VERSION + sdk_information = "#{sdk_information}/#{Azure::Automation::Mgmt::V2015_10_31::VERSION}" + end add_user_agent_information(sdk_information) end end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb index adbadb4c0d..9c6ffc2a9f 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb @@ -24,22 +24,20 @@ def initialize(client) # # Delete the certificate. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The name of certificate. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value! + def delete(automation_account_name, certificate_name, custom_headers = nil) + response = delete_async(automation_account_name, certificate_name, custom_headers).value! nil end # # Delete the certificate. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The name of certificate. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -47,14 +45,13 @@ def delete(resource_group_name, automation_account_name, certificate_name, custo # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value! + def delete_with_http_info(automation_account_name, certificate_name, custom_headers = nil) + delete_async(automation_account_name, certificate_name, custom_headers).value! end # # Delete the certificate. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The name of certificate. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -62,9 +59,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, certific # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, certificate_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, certificate_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'certificate_name is nil' if certificate_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -82,7 +78,7 @@ def delete_async(resource_group_name, automation_account_name, certificate_name, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -109,7 +105,6 @@ def delete_async(resource_group_name, automation_account_name, certificate_name, # # Retrieve the certificate identified by certificate name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The name of certificate. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -117,15 +112,14 @@ def delete_async(resource_group_name, automation_account_name, certificate_name, # # @return [Certificate] operation results. # - def get(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value! + def get(automation_account_name, certificate_name, custom_headers = nil) + response = get_async(automation_account_name, certificate_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the certificate identified by certificate name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The name of certificate. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -133,14 +127,13 @@ def get(resource_group_name, automation_account_name, certificate_name, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value! + def get_with_http_info(automation_account_name, certificate_name, custom_headers = nil) + get_async(automation_account_name, certificate_name, custom_headers).value! end # # Retrieve the certificate identified by certificate name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The name of certificate. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -148,9 +141,8 @@ def get_with_http_info(resource_group_name, automation_account_name, certificate # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, certificate_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, certificate_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'certificate_name is nil' if certificate_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -168,7 +160,7 @@ def get_async(resource_group_name, automation_account_name, certificate_name, cu options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -205,7 +197,6 @@ def get_async(resource_group_name, automation_account_name, certificate_name, cu # # Create a certificate. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the create or # update certificate operation. @@ -216,15 +207,14 @@ def get_async(resource_group_name, automation_account_name, certificate_name, cu # # @return [Certificate] operation results. # - def create_or_update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, certificate_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, certificate_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create a certificate. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the create or # update certificate operation. @@ -235,14 +225,13 @@ def create_or_update(resource_group_name, automation_account_name, certificate_n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, certificate_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, certificate_name, parameters, custom_headers).value! end # # Create a certificate. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the create or # update certificate operation. @@ -253,9 +242,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, certificate_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, certificate_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'certificate_name is nil' if certificate_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -282,7 +270,7 @@ def create_or_update_async(resource_group_name, automation_account_name, certifi options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -330,7 +318,6 @@ def create_or_update_async(resource_group_name, automation_account_name, certifi # # Update a certificate. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the update # certificate operation. @@ -341,15 +328,14 @@ def create_or_update_async(resource_group_name, automation_account_name, certifi # # @return [Certificate] operation results. # - def update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value! + def update(automation_account_name, certificate_name, parameters, custom_headers = nil) + response = update_async(automation_account_name, certificate_name, parameters, custom_headers).value! response.body unless response.nil? end # # Update a certificate. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the update # certificate operation. @@ -360,14 +346,13 @@ def update(resource_group_name, automation_account_name, certificate_name, param # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, certificate_name, parameters, custom_headers = nil) + update_async(automation_account_name, certificate_name, parameters, custom_headers).value! end # # Update a certificate. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the update # certificate operation. @@ -378,9 +363,8 @@ def update_with_http_info(resource_group_name, automation_account_name, certific # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, certificate_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, certificate_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'certificate_name is nil' if certificate_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -407,7 +391,7 @@ def update_async(resource_group_name, automation_account_name, certificate_name, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -445,45 +429,41 @@ def update_async(resource_group_name, automation_account_name, certificate_name, # # Retrieve a list of certificates. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of certificates. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of certificates. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -500,7 +480,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -624,7 +604,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of certificates. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -632,8 +611,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [CertificateListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb index 455acc7118..eec0f0b1b9 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Delete the connection. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The name of connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -32,15 +31,14 @@ def initialize(client) # # @return [Connection] operation results. # - def delete(resource_group_name, automation_account_name, connection_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, connection_name, custom_headers).value! + def delete(automation_account_name, connection_name, custom_headers = nil) + response = delete_async(automation_account_name, connection_name, custom_headers).value! response.body unless response.nil? end # # Delete the connection. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The name of connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -48,14 +46,13 @@ def delete(resource_group_name, automation_account_name, connection_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, connection_name, custom_headers).value! + def delete_with_http_info(automation_account_name, connection_name, custom_headers = nil) + delete_async(automation_account_name, connection_name, custom_headers).value! end # # Delete the connection. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The name of connection. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -63,9 +60,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, connecti # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, connection_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, connection_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'connection_name is nil' if connection_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -83,7 +79,7 @@ def delete_async(resource_group_name, automation_account_name, connection_name, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -120,7 +116,6 @@ def delete_async(resource_group_name, automation_account_name, connection_name, # # Retrieve the connection identified by connection name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The name of connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -128,15 +123,14 @@ def delete_async(resource_group_name, automation_account_name, connection_name, # # @return [Connection] operation results. # - def get(resource_group_name, automation_account_name, connection_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, connection_name, custom_headers).value! + def get(automation_account_name, connection_name, custom_headers = nil) + response = get_async(automation_account_name, connection_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the connection identified by connection name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The name of connection. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -144,14 +138,13 @@ def get(resource_group_name, automation_account_name, connection_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, connection_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, connection_name, custom_headers).value! + def get_with_http_info(automation_account_name, connection_name, custom_headers = nil) + get_async(automation_account_name, connection_name, custom_headers).value! end # # Retrieve the connection identified by connection name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The name of connection. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -159,9 +152,8 @@ def get_with_http_info(resource_group_name, automation_account_name, connection_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, connection_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, connection_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'connection_name is nil' if connection_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -179,7 +171,7 @@ def get_async(resource_group_name, automation_account_name, connection_name, cus options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -216,7 +208,6 @@ def get_async(resource_group_name, automation_account_name, connection_name, cus # # Create or update a connection. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the create or # update connection operation. @@ -227,15 +218,14 @@ def get_async(resource_group_name, automation_account_name, connection_name, cus # # @return [Connection] operation results. # - def create_or_update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, connection_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, connection_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create or update a connection. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the create or # update connection operation. @@ -246,14 +236,13 @@ def create_or_update(resource_group_name, automation_account_name, connection_na # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, connection_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, connection_name, parameters, custom_headers).value! end # # Create or update a connection. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the create or # update connection operation. @@ -264,9 +253,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, connection_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, connection_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'connection_name is nil' if connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -293,7 +281,7 @@ def create_or_update_async(resource_group_name, automation_account_name, connect options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -341,7 +329,6 @@ def create_or_update_async(resource_group_name, automation_account_name, connect # # Update a connection. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the update a # connection operation. @@ -352,15 +339,14 @@ def create_or_update_async(resource_group_name, automation_account_name, connect # # @return [Connection] operation results. # - def update(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value! + def update(automation_account_name, connection_name, parameters, custom_headers = nil) + response = update_async(automation_account_name, connection_name, parameters, custom_headers).value! response.body unless response.nil? end # # Update a connection. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the update a # connection operation. @@ -371,14 +357,13 @@ def update(resource_group_name, automation_account_name, connection_name, parame # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, connection_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, connection_name, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, connection_name, parameters, custom_headers = nil) + update_async(automation_account_name, connection_name, parameters, custom_headers).value! end # # Update a connection. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the update a # connection operation. @@ -389,9 +374,8 @@ def update_with_http_info(resource_group_name, automation_account_name, connecti # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, connection_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, connection_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'connection_name is nil' if connection_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -418,7 +402,7 @@ def update_async(resource_group_name, automation_account_name, connection_name, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -456,45 +440,41 @@ def update_async(resource_group_name, automation_account_name, connection_name, # # Retrieve a list of connections. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of connections. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of connections. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -511,7 +491,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -635,7 +615,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of connections. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -643,8 +622,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [ConnectionListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb index a9d9f0cf86..685357475d 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb @@ -24,22 +24,20 @@ def initialize(client) # # Delete the connectiontype. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The name of connectiontype. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value! + def delete(automation_account_name, connection_type_name, custom_headers = nil) + response = delete_async(automation_account_name, connection_type_name, custom_headers).value! nil end # # Delete the connectiontype. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The name of connectiontype. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -47,14 +45,13 @@ def delete(resource_group_name, automation_account_name, connection_type_name, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value! + def delete_with_http_info(automation_account_name, connection_type_name, custom_headers = nil) + delete_async(automation_account_name, connection_type_name, custom_headers).value! end # # Delete the connectiontype. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The name of connectiontype. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -62,9 +59,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, connecti # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, connection_type_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, connection_type_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'connection_type_name is nil' if connection_type_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -82,7 +78,7 @@ def delete_async(resource_group_name, automation_account_name, connection_type_n options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -109,7 +105,6 @@ def delete_async(resource_group_name, automation_account_name, connection_type_n # # Retrieve the connectiontype identified by connectiontype name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The name of connectiontype. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -117,15 +112,14 @@ def delete_async(resource_group_name, automation_account_name, connection_type_n # # @return [ConnectionType] operation results. # - def get(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value! + def get(automation_account_name, connection_type_name, custom_headers = nil) + response = get_async(automation_account_name, connection_type_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the connectiontype identified by connectiontype name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The name of connectiontype. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -133,14 +127,13 @@ def get(resource_group_name, automation_account_name, connection_type_name, cust # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, connection_type_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, connection_type_name, custom_headers).value! + def get_with_http_info(automation_account_name, connection_type_name, custom_headers = nil) + get_async(automation_account_name, connection_type_name, custom_headers).value! end # # Retrieve the connectiontype identified by connectiontype name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The name of connectiontype. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -148,9 +141,8 @@ def get_with_http_info(resource_group_name, automation_account_name, connection_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, connection_type_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, connection_type_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'connection_type_name is nil' if connection_type_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -168,7 +160,7 @@ def get_async(resource_group_name, automation_account_name, connection_type_name options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -205,7 +197,6 @@ def get_async(resource_group_name, automation_account_name, connection_type_name # # Create a connectiontype. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The parameters supplied to the create or # update connectiontype operation. @@ -216,15 +207,14 @@ def get_async(resource_group_name, automation_account_name, connection_type_name # # @return [ConnectionType] operation results. # - def create_or_update(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, connection_type_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, connection_type_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create a connectiontype. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The parameters supplied to the create or # update connectiontype operation. @@ -235,14 +225,13 @@ def create_or_update(resource_group_name, automation_account_name, connection_ty # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, connection_type_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, connection_type_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, connection_type_name, parameters, custom_headers).value! end # # Create a connectiontype. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The parameters supplied to the create or # update connectiontype operation. @@ -253,9 +242,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, connection_type_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, connection_type_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'connection_type_name is nil' if connection_type_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -282,7 +270,7 @@ def create_or_update_async(resource_group_name, automation_account_name, connect options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -330,45 +318,41 @@ def create_or_update_async(resource_group_name, automation_account_name, connect # # Retrieve a list of connectiontypes. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of connectiontypes. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of connectiontypes. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -385,7 +369,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -509,7 +493,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of connectiontypes. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -517,8 +500,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [ConnectionTypeListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb index d0ee09c13e..3e10e797c6 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb @@ -24,22 +24,20 @@ def initialize(client) # # Delete the credential. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The name of credential. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, credential_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, credential_name, custom_headers).value! + def delete(automation_account_name, credential_name, custom_headers = nil) + response = delete_async(automation_account_name, credential_name, custom_headers).value! nil end # # Delete the credential. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The name of credential. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -47,14 +45,13 @@ def delete(resource_group_name, automation_account_name, credential_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, credential_name, custom_headers).value! + def delete_with_http_info(automation_account_name, credential_name, custom_headers = nil) + delete_async(automation_account_name, credential_name, custom_headers).value! end # # Delete the credential. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The name of credential. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -62,9 +59,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, credenti # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, credential_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, credential_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'credential_name is nil' if credential_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -82,7 +78,7 @@ def delete_async(resource_group_name, automation_account_name, credential_name, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -109,7 +105,6 @@ def delete_async(resource_group_name, automation_account_name, credential_name, # # Retrieve the credential identified by credential name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The name of credential. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -117,15 +112,14 @@ def delete_async(resource_group_name, automation_account_name, credential_name, # # @return [Credential] operation results. # - def get(resource_group_name, automation_account_name, credential_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, credential_name, custom_headers).value! + def get(automation_account_name, credential_name, custom_headers = nil) + response = get_async(automation_account_name, credential_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the credential identified by credential name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The name of credential. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -133,14 +127,13 @@ def get(resource_group_name, automation_account_name, credential_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, credential_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, credential_name, custom_headers).value! + def get_with_http_info(automation_account_name, credential_name, custom_headers = nil) + get_async(automation_account_name, credential_name, custom_headers).value! end # # Retrieve the credential identified by credential name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The name of credential. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -148,9 +141,8 @@ def get_with_http_info(resource_group_name, automation_account_name, credential_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, credential_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, credential_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'credential_name is nil' if credential_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -168,7 +160,7 @@ def get_async(resource_group_name, automation_account_name, credential_name, cus options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -205,7 +197,6 @@ def get_async(resource_group_name, automation_account_name, credential_name, cus # # Create a credential. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the create or # update credential operation. @@ -216,15 +207,14 @@ def get_async(resource_group_name, automation_account_name, credential_name, cus # # @return [Credential] operation results. # - def create_or_update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, credential_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, credential_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create a credential. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the create or # update credential operation. @@ -235,14 +225,13 @@ def create_or_update(resource_group_name, automation_account_name, credential_na # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, credential_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, credential_name, parameters, custom_headers).value! end # # Create a credential. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the create or # update credential operation. @@ -253,9 +242,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, credential_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, credential_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'credential_name is nil' if credential_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -282,7 +270,7 @@ def create_or_update_async(resource_group_name, automation_account_name, credent options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -330,7 +318,6 @@ def create_or_update_async(resource_group_name, automation_account_name, credent # # Update a credential. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the Update # credential operation. @@ -341,15 +328,14 @@ def create_or_update_async(resource_group_name, automation_account_name, credent # # @return [Credential] operation results. # - def update(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value! + def update(automation_account_name, credential_name, parameters, custom_headers = nil) + response = update_async(automation_account_name, credential_name, parameters, custom_headers).value! response.body unless response.nil? end # # Update a credential. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the Update # credential operation. @@ -360,14 +346,13 @@ def update(resource_group_name, automation_account_name, credential_name, parame # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, credential_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, credential_name, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, credential_name, parameters, custom_headers = nil) + update_async(automation_account_name, credential_name, parameters, custom_headers).value! end # # Update a credential. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the Update # credential operation. @@ -378,9 +363,8 @@ def update_with_http_info(resource_group_name, automation_account_name, credenti # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, credential_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, credential_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'credential_name is nil' if credential_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -407,7 +391,7 @@ def update_async(resource_group_name, automation_account_name, credential_name, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -445,45 +429,41 @@ def update_async(resource_group_name, automation_account_name, credential_name, # # Retrieve a list of credentials. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of credentials. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of credentials. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -500,7 +480,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -624,7 +604,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of credentials. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -632,8 +611,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [CredentialListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb index cad568548b..7f7fbe1e32 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Creates the Dsc compilation job of the configuration. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param compilation_job_id The the DSC configuration Id. # @param parameters [DscCompilationJobCreateParameters] The parameters supplied @@ -34,15 +33,14 @@ def initialize(client) # # @return [DscCompilationJob] operation results. # - def create(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers = nil) - response = create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers).value! + def create(automation_account_name, compilation_job_id, parameters, custom_headers = nil) + response = create_async(automation_account_name, compilation_job_id, parameters, custom_headers).value! response.body unless response.nil? end # # Creates the Dsc compilation job of the configuration. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param compilation_job_id The the DSC configuration Id. # @param parameters [DscCompilationJobCreateParameters] The parameters supplied @@ -52,14 +50,13 @@ def create(resource_group_name, automation_account_name, compilation_job_id, par # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers = nil) - create_async(resource_group_name, automation_account_name, compilation_job_id, parameters, custom_headers).value! + def create_with_http_info(automation_account_name, compilation_job_id, parameters, custom_headers = nil) + create_async(automation_account_name, compilation_job_id, parameters, custom_headers).value! end # # Creates the Dsc compilation job of the configuration. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param compilation_job_id The the DSC configuration Id. # @param parameters [DscCompilationJobCreateParameters] The parameters supplied @@ -69,9 +66,8 @@ def create_with_http_info(resource_group_name, automation_account_name, compilat # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, automation_account_name, compilation_job_id, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_async(automation_account_name, compilation_job_id, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'compilation_job_id is nil' if compilation_job_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -98,7 +94,7 @@ def create_async(resource_group_name, automation_account_name, compilation_job_i options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -136,7 +132,6 @@ def create_async(resource_group_name, automation_account_name, compilation_job_i # # Retrieve the Dsc configuration compilation job identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param compilation_job_id The Dsc configuration compilation job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -144,15 +139,14 @@ def create_async(resource_group_name, automation_account_name, compilation_job_i # # @return [DscCompilationJob] operation results. # - def get(resource_group_name, automation_account_name, compilation_job_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers).value! + def get(automation_account_name, compilation_job_id, custom_headers = nil) + response = get_async(automation_account_name, compilation_job_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the Dsc configuration compilation job identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param compilation_job_id The Dsc configuration compilation job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -160,14 +154,13 @@ def get(resource_group_name, automation_account_name, compilation_job_id, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, compilation_job_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers).value! + def get_with_http_info(automation_account_name, compilation_job_id, custom_headers = nil) + get_async(automation_account_name, compilation_job_id, custom_headers).value! end # # Retrieve the Dsc configuration compilation job identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param compilation_job_id The Dsc configuration compilation job id. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -175,9 +168,8 @@ def get_with_http_info(resource_group_name, automation_account_name, compilation # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, compilation_job_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, compilation_job_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'compilation_job_id is nil' if compilation_job_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -195,7 +187,7 @@ def get_async(resource_group_name, automation_account_name, compilation_job_id, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -232,7 +224,6 @@ def get_async(resource_group_name, automation_account_name, compilation_job_id, # # Retrieve a list of dsc compilation jobs. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -240,15 +231,14 @@ def get_async(resource_group_name, automation_account_name, compilation_job_id, # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(automation_account_name, filter = nil, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, filter, custom_headers) first_page.get_all_items end # # Retrieve a list of dsc compilation jobs. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -256,14 +246,13 @@ def list_by_automation_account(resource_group_name, automation_account_name, fil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, filter = nil, custom_headers = nil) + list_by_automation_account_async(automation_account_name, filter, custom_headers).value! end # # Retrieve a list of dsc compilation jobs. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -271,9 +260,8 @@ def list_by_automation_account_with_http_info(resource_group_name, automation_ac # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, filter = nil, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -290,7 +278,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -327,7 +315,6 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam # # Retrieve the job stream identified by job stream id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param job_stream_id [String] The job stream id. @@ -336,15 +323,14 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam # # @return [JobStream] operation results. # - def get_stream(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - response = get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value! + def get_stream(automation_account_name, job_id, job_stream_id, custom_headers = nil) + response = get_stream_async(automation_account_name, job_id, job_stream_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the job stream identified by job stream id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param job_stream_id [String] The job stream id. @@ -353,14 +339,13 @@ def get_stream(resource_group_name, automation_account_name, job_id, job_stream_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_stream_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value! + def get_stream_with_http_info(automation_account_name, job_id, job_stream_id, custom_headers = nil) + get_stream_async(automation_account_name, job_id, job_stream_id, custom_headers).value! end # # Retrieve the job stream identified by job stream id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param job_stream_id [String] The job stream id. @@ -369,9 +354,8 @@ def get_stream_with_http_info(resource_group_name, automation_account_name, job_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_stream_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_stream_async(automation_account_name, job_id, job_stream_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil? @@ -390,7 +374,7 @@ def get_stream_async(resource_group_name, automation_account_name, job_id, job_s options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -514,7 +498,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of dsc compilation jobs. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -523,8 +506,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [DscCompilationJobListResult] which provide lazy access to pages of # the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, filter = nil, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, filter, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb index 34175a7bcf..513f901de8 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb @@ -24,22 +24,20 @@ def initialize(client) # # Delete the dsc configuration identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def delete(automation_account_name, configuration_name, custom_headers = nil) + response = delete_async(automation_account_name, configuration_name, custom_headers).value! nil end # # Delete the dsc configuration identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -47,14 +45,13 @@ def delete(resource_group_name, automation_account_name, configuration_name, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def delete_with_http_info(automation_account_name, configuration_name, custom_headers = nil) + delete_async(automation_account_name, configuration_name, custom_headers).value! end # # Delete the dsc configuration identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The configuration name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -62,9 +59,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, configur # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, configuration_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, configuration_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'configuration_name is nil' if configuration_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -82,7 +78,7 @@ def delete_async(resource_group_name, automation_account_name, configuration_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -109,7 +105,6 @@ def delete_async(resource_group_name, automation_account_name, configuration_nam # # Retrieve the configuration identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -117,15 +112,14 @@ def delete_async(resource_group_name, automation_account_name, configuration_nam # # @return [DscConfiguration] operation results. # - def get(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def get(automation_account_name, configuration_name, custom_headers = nil) + response = get_async(automation_account_name, configuration_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the configuration identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -133,14 +127,13 @@ def get(resource_group_name, automation_account_name, configuration_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def get_with_http_info(automation_account_name, configuration_name, custom_headers = nil) + get_async(automation_account_name, configuration_name, custom_headers).value! end # # Retrieve the configuration identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The configuration name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -148,9 +141,8 @@ def get_with_http_info(resource_group_name, automation_account_name, configurati # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, configuration_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, configuration_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'configuration_name is nil' if configuration_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -168,7 +160,7 @@ def get_async(resource_group_name, automation_account_name, configuration_name, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -205,7 +197,6 @@ def get_async(resource_group_name, automation_account_name, configuration_name, # # Create the configuration identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The create or update parameters for # configuration. @@ -216,15 +207,14 @@ def get_async(resource_group_name, automation_account_name, configuration_name, # # @return [DscConfiguration] operation results. # - def create_or_update(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, configuration_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, configuration_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create the configuration identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The create or update parameters for # configuration. @@ -235,14 +225,13 @@ def create_or_update(resource_group_name, automation_account_name, configuration # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, configuration_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, configuration_name, parameters, custom_headers).value! end # # Create the configuration identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The create or update parameters for # configuration. @@ -253,9 +242,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, configuration_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, configuration_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'configuration_name is nil' if configuration_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -282,7 +270,7 @@ def create_or_update_async(resource_group_name, automation_account_name, configu options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -330,7 +318,6 @@ def create_or_update_async(resource_group_name, automation_account_name, configu # # Retrieve the configuration script identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -338,15 +325,14 @@ def create_or_update_async(resource_group_name, automation_account_name, configu # # @return [NOT_IMPLEMENTED] operation results. # - def get_content(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - response = get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def get_content(automation_account_name, configuration_name, custom_headers = nil) + response = get_content_async(automation_account_name, configuration_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the configuration script identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -354,14 +340,13 @@ def get_content(resource_group_name, automation_account_name, configuration_name # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers = nil) - get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value! + def get_content_with_http_info(automation_account_name, configuration_name, custom_headers = nil) + get_content_async(automation_account_name, configuration_name, custom_headers).value! end # # Retrieve the configuration script identified by configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The configuration name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -369,9 +354,8 @@ def get_content_with_http_info(resource_group_name, automation_account_name, con # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_content_async(resource_group_name, automation_account_name, configuration_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_content_async(automation_account_name, configuration_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'configuration_name is nil' if configuration_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -389,7 +373,7 @@ def get_content_async(resource_group_name, automation_account_name, configuratio options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -411,7 +395,6 @@ def get_content_async(resource_group_name, automation_account_name, configuratio begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -433,45 +416,41 @@ def get_content_async(resource_group_name, automation_account_name, configuratio # # Retrieve a list of configurations. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of configurations. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of configurations. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -488,7 +467,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -612,7 +591,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of configurations. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -620,8 +598,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [DscConfigurationListResult] which provide lazy access to pages of # the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb index 916ab837f2..492ec709b5 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb @@ -24,22 +24,20 @@ def initialize(client) # # Delete the Dsc node configurations by node configuration. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The Dsc node configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value! + def delete(automation_account_name, node_configuration_name, custom_headers = nil) + response = delete_async(automation_account_name, node_configuration_name, custom_headers).value! nil end # # Delete the Dsc node configurations by node configuration. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The Dsc node configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -47,14 +45,13 @@ def delete(resource_group_name, automation_account_name, node_configuration_name # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value! + def delete_with_http_info(automation_account_name, node_configuration_name, custom_headers = nil) + delete_async(automation_account_name, node_configuration_name, custom_headers).value! end # # Delete the Dsc node configurations by node configuration. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The Dsc node configuration name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -62,9 +59,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, node_con # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, node_configuration_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, node_configuration_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'node_configuration_name is nil' if node_configuration_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -82,7 +78,7 @@ def delete_async(resource_group_name, automation_account_name, node_configuratio options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -109,7 +105,6 @@ def delete_async(resource_group_name, automation_account_name, node_configuratio # # Retrieve the Dsc node configurations by node configuration. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The Dsc node configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -117,15 +112,14 @@ def delete_async(resource_group_name, automation_account_name, node_configuratio # # @return [DscNodeConfiguration] operation results. # - def get(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value! + def get(automation_account_name, node_configuration_name, custom_headers = nil) + response = get_async(automation_account_name, node_configuration_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the Dsc node configurations by node configuration. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The Dsc node configuration name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -133,14 +127,13 @@ def get(resource_group_name, automation_account_name, node_configuration_name, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, node_configuration_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, node_configuration_name, custom_headers).value! + def get_with_http_info(automation_account_name, node_configuration_name, custom_headers = nil) + get_async(automation_account_name, node_configuration_name, custom_headers).value! end # # Retrieve the Dsc node configurations by node configuration. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The Dsc node configuration name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -148,9 +141,8 @@ def get_with_http_info(resource_group_name, automation_account_name, node_config # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, node_configuration_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, node_configuration_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'node_configuration_name is nil' if node_configuration_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -168,7 +160,7 @@ def get_async(resource_group_name, automation_account_name, node_configuration_n options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -205,7 +197,6 @@ def get_async(resource_group_name, automation_account_name, node_configuration_n # # Create the node configuration identified by node configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The create or update parameters for # configuration. @@ -216,15 +207,14 @@ def get_async(resource_group_name, automation_account_name, node_configuration_n # # @return [DscNodeConfiguration] operation results. # - def create_or_update(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, node_configuration_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, node_configuration_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create the node configuration identified by node configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The create or update parameters for # configuration. @@ -235,14 +225,13 @@ def create_or_update(resource_group_name, automation_account_name, node_configur # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, node_configuration_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, node_configuration_name, parameters, custom_headers).value! end # # Create the node configuration identified by node configuration name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The create or update parameters for # configuration. @@ -253,9 +242,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, node_configuration_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, node_configuration_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'node_configuration_name is nil' if node_configuration_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -282,7 +270,7 @@ def create_or_update_async(resource_group_name, automation_account_name, node_co options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -330,7 +318,6 @@ def create_or_update_async(resource_group_name, automation_account_name, node_co # # Retrieve a list of dsc node configurations. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -338,15 +325,14 @@ def create_or_update_async(resource_group_name, automation_account_name, node_co # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(automation_account_name, filter = nil, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, filter, custom_headers) first_page.get_all_items end # # Retrieve a list of dsc node configurations. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -354,14 +340,13 @@ def list_by_automation_account(resource_group_name, automation_account_name, fil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, filter = nil, custom_headers = nil) + list_by_automation_account_async(automation_account_name, filter, custom_headers).value! end # # Retrieve a list of dsc node configurations. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -369,9 +354,8 @@ def list_by_automation_account_with_http_info(resource_group_name, automation_ac # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, filter = nil, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -388,7 +372,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -512,7 +496,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of dsc node configurations. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -521,8 +504,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [DscNodeConfigurationListResult] which provide lazy access to pages # of the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, filter = nil, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, filter, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb index fb7f8efc02..a13934601a 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Delete the dsc node identified by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] Automation account name. # @param node_id [String] The node id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -32,15 +31,14 @@ def initialize(client) # # @return [DscNode] operation results. # - def delete(resource_group_name, automation_account_name, node_id, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, node_id, custom_headers).value! + def delete(automation_account_name, node_id, custom_headers = nil) + response = delete_async(automation_account_name, node_id, custom_headers).value! response.body unless response.nil? end # # Delete the dsc node identified by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] Automation account name. # @param node_id [String] The node id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -48,14 +46,13 @@ def delete(resource_group_name, automation_account_name, node_id, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, node_id, custom_headers).value! + def delete_with_http_info(automation_account_name, node_id, custom_headers = nil) + delete_async(automation_account_name, node_id, custom_headers).value! end # # Delete the dsc node identified by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] Automation account name. # @param node_id [String] The node id. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -63,9 +60,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, node_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, node_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, node_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'node_id is nil' if node_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -83,7 +79,7 @@ def delete_async(resource_group_name, automation_account_name, node_id, custom_h options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -120,7 +116,6 @@ def delete_async(resource_group_name, automation_account_name, node_id, custom_h # # Retrieve the dsc node identified by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The node id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -128,15 +123,14 @@ def delete_async(resource_group_name, automation_account_name, node_id, custom_h # # @return [DscNode] operation results. # - def get(resource_group_name, automation_account_name, node_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, node_id, custom_headers).value! + def get(automation_account_name, node_id, custom_headers = nil) + response = get_async(automation_account_name, node_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the dsc node identified by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The node id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -144,14 +138,13 @@ def get(resource_group_name, automation_account_name, node_id, custom_headers = # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, node_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, node_id, custom_headers).value! + def get_with_http_info(automation_account_name, node_id, custom_headers = nil) + get_async(automation_account_name, node_id, custom_headers).value! end # # Retrieve the dsc node identified by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The node id. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -159,9 +152,8 @@ def get_with_http_info(resource_group_name, automation_account_name, node_id, cu # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, node_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, node_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'node_id is nil' if node_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -179,7 +171,7 @@ def get_async(resource_group_name, automation_account_name, node_id, custom_head options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -216,7 +208,6 @@ def get_async(resource_group_name, automation_account_name, node_id, custom_head # # Update the dsc node. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] Parameters supplied to the update dsc node. # @param parameters [DscNodeUpdateParameters] Parameters supplied to the update @@ -226,15 +217,14 @@ def get_async(resource_group_name, automation_account_name, node_id, custom_head # # @return [DscNode] operation results. # - def update(resource_group_name, automation_account_name, node_id, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers).value! + def update(automation_account_name, node_id, parameters, custom_headers = nil) + response = update_async(automation_account_name, node_id, parameters, custom_headers).value! response.body unless response.nil? end # # Update the dsc node. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] Parameters supplied to the update dsc node. # @param parameters [DscNodeUpdateParameters] Parameters supplied to the update @@ -244,14 +234,13 @@ def update(resource_group_name, automation_account_name, node_id, parameters, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, node_id, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, node_id, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, node_id, parameters, custom_headers = nil) + update_async(automation_account_name, node_id, parameters, custom_headers).value! end # # Update the dsc node. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] Parameters supplied to the update dsc node. # @param parameters [DscNodeUpdateParameters] Parameters supplied to the update @@ -261,9 +250,8 @@ def update_with_http_info(resource_group_name, automation_account_name, node_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, node_id, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, node_id, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'node_id is nil' if node_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -290,7 +278,7 @@ def update_async(resource_group_name, automation_account_name, node_id, paramete options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -328,7 +316,6 @@ def update_async(resource_group_name, automation_account_name, node_id, paramete # # Retrieve a list of dsc nodes. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -336,15 +323,14 @@ def update_async(resource_group_name, automation_account_name, node_id, paramete # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(automation_account_name, filter = nil, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, filter, custom_headers) first_page.get_all_items end # # Retrieve a list of dsc nodes. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -352,14 +338,13 @@ def list_by_automation_account(resource_group_name, automation_account_name, fil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, filter = nil, custom_headers = nil) + list_by_automation_account_async(automation_account_name, filter, custom_headers).value! end # # Retrieve a list of dsc nodes. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -367,9 +352,8 @@ def list_by_automation_account_with_http_info(resource_group_name, automation_ac # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, filter = nil, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -386,7 +370,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -510,7 +494,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of dsc nodes. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -519,8 +502,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [DscNodeListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, filter = nil, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, filter, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb index ca0923fbec..df85a0a064 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb @@ -24,7 +24,6 @@ def initialize(client) # # Retrieve a list of fields of a given type identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param type_name [String] The name of type. @@ -33,15 +32,14 @@ def initialize(client) # # @return [TypeFieldListResult] operation results. # - def list_by_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) - response = list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value! + def list_by_type(automation_account_name, module_name, type_name, custom_headers = nil) + response = list_by_type_async(automation_account_name, module_name, type_name, custom_headers).value! response.body unless response.nil? end # # Retrieve a list of fields of a given type identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param type_name [String] The name of type. @@ -50,14 +48,13 @@ def list_by_type(resource_group_name, automation_account_name, module_name, type # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) - list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value! + def list_by_type_with_http_info(automation_account_name, module_name, type_name, custom_headers = nil) + list_by_type_async(automation_account_name, module_name, type_name, custom_headers).value! end # # Retrieve a list of fields of a given type identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param type_name [String] The name of type. @@ -66,9 +63,8 @@ def list_by_type_with_http_info(resource_group_name, automation_account_name, mo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_type_async(resource_group_name, automation_account_name, module_name, type_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_type_async(automation_account_name, module_name, type_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'module_name is nil' if module_name.nil? fail ArgumentError, 'type_name is nil' if type_name.nil? @@ -87,7 +83,7 @@ def list_by_type_async(resource_group_name, automation_account_name, module_name options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb index 2676e431a2..450efe4ee3 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Delete a hybrid runbook worker group. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] Automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -32,15 +31,14 @@ def initialize(client) # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! + def delete(automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) + response = delete_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! nil end # # Delete a hybrid runbook worker group. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] Automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -49,14 +47,13 @@ def delete(resource_group_name, automation_account_name, hybrid_runbook_worker_g # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! + def delete_with_http_info(automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) + delete_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! end # # Delete a hybrid runbook worker group. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] Automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -65,9 +62,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, hybrid_r # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -85,7 +81,7 @@ def delete_async(resource_group_name, automation_account_name, hybrid_runbook_wo options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -112,7 +108,6 @@ def delete_async(resource_group_name, automation_account_name, hybrid_runbook_wo # # Retrieve a hybrid runbook worker group. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -121,15 +116,14 @@ def delete_async(resource_group_name, automation_account_name, hybrid_runbook_wo # # @return [HybridRunbookWorkerGroup] operation results. # - def get(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! + def get(automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) + response = get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! response.body unless response.nil? end # # Retrieve a hybrid runbook worker group. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -138,14 +132,13 @@ def get(resource_group_name, automation_account_name, hybrid_runbook_worker_grou # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! + def get_with_http_info(automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) + get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value! end # # Retrieve a hybrid runbook worker group. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -154,9 +147,8 @@ def get_with_http_info(resource_group_name, automation_account_name, hybrid_runb # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -174,7 +166,7 @@ def get_async(resource_group_name, automation_account_name, hybrid_runbook_worke options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -211,7 +203,6 @@ def get_async(resource_group_name, automation_account_name, hybrid_runbook_worke # # Update a hybrid runbook worker group. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -222,15 +213,14 @@ def get_async(resource_group_name, automation_account_name, hybrid_runbook_worke # # @return [HybridRunbookWorkerGroup] operation results. # - def update(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value! + def update(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil) + response = update_async(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value! response.body unless response.nil? end # # Update a hybrid runbook worker group. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -241,14 +231,13 @@ def update(resource_group_name, automation_account_name, hybrid_runbook_worker_g # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil) + update_async(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value! end # # Update a hybrid runbook worker group. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -259,9 +248,8 @@ def update_with_http_info(resource_group_name, automation_account_name, hybrid_r # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -288,7 +276,7 @@ def update_async(resource_group_name, automation_account_name, hybrid_runbook_wo options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -326,45 +314,41 @@ def update_async(resource_group_name, automation_account_name, hybrid_runbook_wo # # Retrieve a list of hybrid runbook worker groups. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of hybrid runbook worker groups. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of hybrid runbook worker groups. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -381,7 +365,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -505,7 +489,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of hybrid runbook worker groups. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -513,8 +496,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [HybridRunbookWorkerGroupsListResult] which provide lazy access to # pages of the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb index 88babb5188..b8daa3df1b 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Retrieve the job output identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -32,15 +31,14 @@ def initialize(client) # # @return [NOT_IMPLEMENTED] operation results. # - def get_output(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = get_output_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_output(automation_account_name, job_id, custom_headers = nil) + response = get_output_async(automation_account_name, job_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the job output identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -48,14 +46,13 @@ def get_output(resource_group_name, automation_account_name, job_id, custom_head # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_output_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - get_output_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_output_with_http_info(automation_account_name, job_id, custom_headers = nil) + get_output_async(automation_account_name, job_id, custom_headers).value! end # # Retrieve the job output identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job id. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -63,9 +60,8 @@ def get_output_with_http_info(resource_group_name, automation_account_name, job_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_output_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_output_async(automation_account_name, job_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -83,7 +79,7 @@ def get_output_async(resource_group_name, automation_account_name, job_id, custo options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -105,7 +101,6 @@ def get_output_async(resource_group_name, automation_account_name, job_id, custo begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -127,7 +122,6 @@ def get_output_async(resource_group_name, automation_account_name, job_id, custo # # Retrieve the runbook content of the job identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -135,15 +129,14 @@ def get_output_async(resource_group_name, automation_account_name, job_id, custo # # @return [NOT_IMPLEMENTED] operation results. # - def get_runbook_content(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_runbook_content(automation_account_name, job_id, custom_headers = nil) + response = get_runbook_content_async(automation_account_name, job_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the runbook content of the job identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -151,14 +144,13 @@ def get_runbook_content(resource_group_name, automation_account_name, job_id, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_runbook_content_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_runbook_content_with_http_info(automation_account_name, job_id, custom_headers = nil) + get_runbook_content_async(automation_account_name, job_id, custom_headers).value! end # # Retrieve the runbook content of the job identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job id. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -166,9 +158,8 @@ def get_runbook_content_with_http_info(resource_group_name, automation_account_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_runbook_content_async(automation_account_name, job_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -186,7 +177,7 @@ def get_runbook_content_async(resource_group_name, automation_account_name, job_ options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -208,7 +199,6 @@ def get_runbook_content_async(resource_group_name, automation_account_name, job_ begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -230,22 +220,20 @@ def get_runbook_content_async(resource_group_name, automation_account_name, job_ # # Suspend the job identified by jobId. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def suspend(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = suspend_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def suspend(automation_account_name, job_id, custom_headers = nil) + response = suspend_async(automation_account_name, job_id, custom_headers).value! nil end # # Suspend the job identified by jobId. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -253,14 +241,13 @@ def suspend(resource_group_name, automation_account_name, job_id, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def suspend_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - suspend_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def suspend_with_http_info(automation_account_name, job_id, custom_headers = nil) + suspend_async(automation_account_name, job_id, custom_headers).value! end # # Suspend the job identified by jobId. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -268,9 +255,8 @@ def suspend_with_http_info(resource_group_name, automation_account_name, job_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def suspend_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def suspend_async(automation_account_name, job_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -288,7 +274,7 @@ def suspend_async(resource_group_name, automation_account_name, job_id, custom_h options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -315,22 +301,20 @@ def suspend_async(resource_group_name, automation_account_name, job_id, custom_h # # Stop the job identified by jobId. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def stop(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = stop_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def stop(automation_account_name, job_id, custom_headers = nil) + response = stop_async(automation_account_name, job_id, custom_headers).value! nil end # # Stop the job identified by jobId. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -338,14 +322,13 @@ def stop(resource_group_name, automation_account_name, job_id, custom_headers = # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - stop_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def stop_with_http_info(automation_account_name, job_id, custom_headers = nil) + stop_async(automation_account_name, job_id, custom_headers).value! end # # Stop the job identified by jobId. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -353,9 +336,8 @@ def stop_with_http_info(resource_group_name, automation_account_name, job_id, cu # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def stop_async(automation_account_name, job_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -373,7 +355,7 @@ def stop_async(resource_group_name, automation_account_name, job_id, custom_head options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -400,7 +382,6 @@ def stop_async(resource_group_name, automation_account_name, job_id, custom_head # # Retrieve the job identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -408,15 +389,14 @@ def stop_async(resource_group_name, automation_account_name, job_id, custom_head # # @return [Job] operation results. # - def get(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get(automation_account_name, job_id, custom_headers = nil) + response = get_async(automation_account_name, job_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the job identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -424,14 +404,13 @@ def get(resource_group_name, automation_account_name, job_id, custom_headers = n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def get_with_http_info(automation_account_name, job_id, custom_headers = nil) + get_async(automation_account_name, job_id, custom_headers).value! end # # Retrieve the job identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -439,9 +418,8 @@ def get_with_http_info(resource_group_name, automation_account_name, job_id, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, job_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -459,7 +437,7 @@ def get_async(resource_group_name, automation_account_name, job_id, custom_heade options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -496,7 +474,6 @@ def get_async(resource_group_name, automation_account_name, job_id, custom_heade # # Create a job of the runbook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param parameters [JobCreateParameters] The parameters supplied to the create @@ -506,15 +483,14 @@ def get_async(resource_group_name, automation_account_name, job_id, custom_heade # # @return [Job] operation results. # - def create(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil) - response = create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers).value! + def create(automation_account_name, job_id, parameters, custom_headers = nil) + response = create_async(automation_account_name, job_id, parameters, custom_headers).value! response.body unless response.nil? end # # Create a job of the runbook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param parameters [JobCreateParameters] The parameters supplied to the create @@ -524,14 +500,13 @@ def create(resource_group_name, automation_account_name, job_id, parameters, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil) - create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers).value! + def create_with_http_info(automation_account_name, job_id, parameters, custom_headers = nil) + create_async(automation_account_name, job_id, parameters, custom_headers).value! end # # Create a job of the runbook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param parameters [JobCreateParameters] The parameters supplied to the create @@ -541,9 +516,8 @@ def create_with_http_info(resource_group_name, automation_account_name, job_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, automation_account_name, job_id, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_async(automation_account_name, job_id, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -570,7 +544,7 @@ def create_async(resource_group_name, automation_account_name, job_id, parameter options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -608,7 +582,6 @@ def create_async(resource_group_name, automation_account_name, job_id, parameter # # Retrieve a list of jobs. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -616,15 +589,14 @@ def create_async(resource_group_name, automation_account_name, job_id, parameter # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(automation_account_name, filter = nil, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, filter, custom_headers) first_page.get_all_items end # # Retrieve a list of jobs. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -632,14 +604,13 @@ def list_by_automation_account(resource_group_name, automation_account_name, fil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, filter = nil, custom_headers = nil) + list_by_automation_account_async(automation_account_name, filter, custom_headers).value! end # # Retrieve a list of jobs. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -647,9 +618,8 @@ def list_by_automation_account_with_http_info(resource_group_name, automation_ac # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, filter = nil, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -666,7 +636,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -703,22 +673,20 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam # # Resume the job identified by jobId. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def resume(resource_group_name, automation_account_name, job_id, custom_headers = nil) - response = resume_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def resume(automation_account_name, job_id, custom_headers = nil) + response = resume_async(automation_account_name, job_id, custom_headers).value! nil end # # Resume the job identified by jobId. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -726,14 +694,13 @@ def resume(resource_group_name, automation_account_name, job_id, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def resume_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) - resume_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + def resume_with_http_info(automation_account_name, job_id, custom_headers = nil) + resume_async(automation_account_name, job_id, custom_headers).value! end # # Resume the job identified by jobId. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -741,9 +708,8 @@ def resume_with_http_info(resource_group_name, automation_account_name, job_id, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def resume_async(resource_group_name, automation_account_name, job_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def resume_async(automation_account_name, job_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -761,7 +727,7 @@ def resume_async(resource_group_name, automation_account_name, job_id, custom_he options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -875,7 +841,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of jobs. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -883,8 +848,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # @return [JobListResult] which provide lazy access to pages of the response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, filter = nil, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, filter, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb index 36333ba884..0812bfba8c 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb @@ -24,22 +24,20 @@ def initialize(client) # # Delete the job schedule identified by job schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value! + def delete(automation_account_name, job_schedule_id, custom_headers = nil) + response = delete_async(automation_account_name, job_schedule_id, custom_headers).value! nil end # # Delete the job schedule identified by job schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -47,14 +45,13 @@ def delete(resource_group_name, automation_account_name, job_schedule_id, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value! + def delete_with_http_info(automation_account_name, job_schedule_id, custom_headers = nil) + delete_async(automation_account_name, job_schedule_id, custom_headers).value! end # # Delete the job schedule identified by job schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -62,9 +59,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, job_sche # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, job_schedule_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_schedule_id is nil' if job_schedule_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -82,7 +78,7 @@ def delete_async(resource_group_name, automation_account_name, job_schedule_id, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -109,7 +105,6 @@ def delete_async(resource_group_name, automation_account_name, job_schedule_id, # # Retrieve the job schedule identified by job schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -117,15 +112,14 @@ def delete_async(resource_group_name, automation_account_name, job_schedule_id, # # @return [JobSchedule] operation results. # - def get(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value! + def get(automation_account_name, job_schedule_id, custom_headers = nil) + response = get_async(automation_account_name, job_schedule_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the job schedule identified by job schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -133,14 +127,13 @@ def get(resource_group_name, automation_account_name, job_schedule_id, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers).value! + def get_with_http_info(automation_account_name, job_schedule_id, custom_headers = nil) + get_async(automation_account_name, job_schedule_id, custom_headers).value! end # # Retrieve the job schedule identified by job schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -148,9 +141,8 @@ def get_with_http_info(resource_group_name, automation_account_name, job_schedul # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, job_schedule_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, job_schedule_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_schedule_id is nil' if job_schedule_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -168,7 +160,7 @@ def get_async(resource_group_name, automation_account_name, job_schedule_id, cus options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -205,7 +197,6 @@ def get_async(resource_group_name, automation_account_name, job_schedule_id, cus # # Create a job schedule. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param parameters [JobScheduleCreateParameters] The parameters supplied to @@ -215,15 +206,14 @@ def get_async(resource_group_name, automation_account_name, job_schedule_id, cus # # @return [JobSchedule] operation results. # - def create(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers = nil) - response = create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers).value! + def create(automation_account_name, job_schedule_id, parameters, custom_headers = nil) + response = create_async(automation_account_name, job_schedule_id, parameters, custom_headers).value! response.body unless response.nil? end # # Create a job schedule. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param parameters [JobScheduleCreateParameters] The parameters supplied to @@ -233,14 +223,13 @@ def create(resource_group_name, automation_account_name, job_schedule_id, parame # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers = nil) - create_async(resource_group_name, automation_account_name, job_schedule_id, parameters, custom_headers).value! + def create_with_http_info(automation_account_name, job_schedule_id, parameters, custom_headers = nil) + create_async(automation_account_name, job_schedule_id, parameters, custom_headers).value! end # # Create a job schedule. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param parameters [JobScheduleCreateParameters] The parameters supplied to @@ -250,9 +239,8 @@ def create_with_http_info(resource_group_name, automation_account_name, job_sche # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, automation_account_name, job_schedule_id, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_async(automation_account_name, job_schedule_id, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_schedule_id is nil' if job_schedule_id.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -279,7 +267,7 @@ def create_async(resource_group_name, automation_account_name, job_schedule_id, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -317,45 +305,41 @@ def create_async(resource_group_name, automation_account_name, job_schedule_id, # # Retrieve a list of job schedules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of job schedules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of job schedules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -372,7 +356,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -496,7 +480,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of job schedules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -504,8 +487,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [JobScheduleListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb index 340a6c0396..9886469614 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Retrieve the job stream identified by job stream id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job id. # @param job_stream_id [String] The job stream id. @@ -33,15 +32,14 @@ def initialize(client) # # @return [JobStream] operation results. # - def get(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value! + def get(automation_account_name, job_id, job_stream_id, custom_headers = nil) + response = get_async(automation_account_name, job_id, job_stream_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the job stream identified by job stream id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job id. # @param job_stream_id [String] The job stream id. @@ -50,14 +48,13 @@ def get(resource_group_name, automation_account_name, job_id, job_stream_id, cus # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers).value! + def get_with_http_info(automation_account_name, job_id, job_stream_id, custom_headers = nil) + get_async(automation_account_name, job_id, job_stream_id, custom_headers).value! end # # Retrieve the job stream identified by job stream id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job id. # @param job_stream_id [String] The job stream id. @@ -66,9 +63,8 @@ def get_with_http_info(resource_group_name, automation_account_name, job_id, job # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, job_id, job_stream_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, job_id, job_stream_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil? @@ -87,7 +83,7 @@ def get_async(resource_group_name, automation_account_name, job_id, job_stream_i options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -124,7 +120,6 @@ def get_async(resource_group_name, automation_account_name, job_id, job_stream_i # # Retrieve a list of jobs streams identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job Id. # @param filter [String] The filter to apply on the operation. @@ -133,15 +128,14 @@ def get_async(resource_group_name, automation_account_name, job_id, job_stream_i # # @return [Array] operation results. # - def list_by_job(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil) - first_page = list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter, custom_headers) + def list_by_job(automation_account_name, job_id, filter = nil, custom_headers = nil) + first_page = list_by_job_as_lazy(automation_account_name, job_id, filter, custom_headers) first_page.get_all_items end # # Retrieve a list of jobs streams identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job Id. # @param filter [String] The filter to apply on the operation. @@ -150,14 +144,13 @@ def list_by_job(resource_group_name, automation_account_name, job_id, filter = n # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_job_with_http_info(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil) - list_by_job_async(resource_group_name, automation_account_name, job_id, filter, custom_headers).value! + def list_by_job_with_http_info(automation_account_name, job_id, filter = nil, custom_headers = nil) + list_by_job_async(automation_account_name, job_id, filter, custom_headers).value! end # # Retrieve a list of jobs streams identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job Id. # @param filter [String] The filter to apply on the operation. @@ -166,9 +159,8 @@ def list_by_job_with_http_info(resource_group_name, automation_account_name, job # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_job_async(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_job_async(automation_account_name, job_id, filter = nil, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'job_id is nil' if job_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -186,7 +178,7 @@ def list_by_job_async(resource_group_name, automation_account_name, job_id, filt options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -310,7 +302,6 @@ def list_by_job_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of jobs streams identified by job id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param job_id [String] The job Id. # @param filter [String] The filter to apply on the operation. @@ -320,8 +311,8 @@ def list_by_job_next_async(next_page_link, custom_headers = nil) # @return [JobStreamListResult] which provide lazy access to pages of the # response. # - def list_by_job_as_lazy(resource_group_name, automation_account_name, job_id, filter = nil, custom_headers = nil) - response = list_by_job_async(resource_group_name, automation_account_name, job_id, filter, custom_headers).value! + def list_by_job_as_lazy(automation_account_name, job_id, filter = nil, custom_headers = nil) + response = list_by_job_async(automation_account_name, job_id, filter, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity.rb index 6f300591e7..d3d7a55c73 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity.rb @@ -45,7 +45,6 @@ class Activity # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Activity', type: { @@ -53,7 +52,6 @@ def self.mapper() class_name: 'Activity', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -61,7 +59,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -70,7 +67,6 @@ def self.mapper() } }, definition: { - client_side_validation: true, required: false, serialized_name: 'properties.definition', type: { @@ -78,13 +74,11 @@ def self.mapper() } }, parameter_sets: { - client_side_validation: true, required: false, serialized_name: 'properties.parameterSets', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ActivityParameterSetElementType', type: { @@ -95,13 +89,11 @@ def self.mapper() } }, output_types: { - client_side_validation: true, required: false, serialized_name: 'properties.outputTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ActivityOutputTypeElementType', type: { @@ -112,7 +104,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -120,7 +111,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -128,7 +118,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb index fbc23ddee0..5fac33cc56 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ActivityListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ActivityListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ActivityElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_output_type.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_output_type.rb index 132cf6d476..9a54ba7e4b 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_output_type.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_output_type.rb @@ -25,7 +25,6 @@ class ActivityOutputType # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ActivityOutputType', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ActivityOutputType', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb index ae573711e9..e27f43b1d2 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb @@ -58,7 +58,6 @@ class ActivityParameter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ActivityParameter', type: { @@ -66,7 +65,6 @@ def self.mapper() class_name: 'ActivityParameter', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -74,7 +72,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, is_mandatory: { - client_side_validation: true, required: false, serialized_name: 'isMandatory', type: { @@ -90,7 +86,6 @@ def self.mapper() } }, is_dynamic: { - client_side_validation: true, required: false, serialized_name: 'isDynamic', type: { @@ -98,7 +93,6 @@ def self.mapper() } }, position: { - client_side_validation: true, required: false, serialized_name: 'position', type: { @@ -106,7 +100,6 @@ def self.mapper() } }, value_from_pipeline: { - client_side_validation: true, required: false, serialized_name: 'valueFromPipeline', type: { @@ -114,7 +107,6 @@ def self.mapper() } }, value_from_pipeline_by_property_name: { - client_side_validation: true, required: false, serialized_name: 'valueFromPipelineByPropertyName', type: { @@ -122,7 +114,6 @@ def self.mapper() } }, value_from_remaining_arguments: { - client_side_validation: true, required: false, serialized_name: 'valueFromRemainingArguments', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb index 8db0c86a43..2d6811be57 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb @@ -26,7 +26,6 @@ class ActivityParameterSet # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ActivityParameterSet', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ActivityParameterSet', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -42,13 +40,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'parameters', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ActivityParameterElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule.rb index 71ccbc1894..86cf073326 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule.rb @@ -31,7 +31,6 @@ class AdvancedSchedule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AdvancedSchedule', type: { @@ -39,13 +38,11 @@ def self.mapper() class_name: 'AdvancedSchedule', model_properties: { week_days: { - client_side_validation: true, required: false, serialized_name: 'weekDays', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -55,13 +52,11 @@ def self.mapper() } }, month_days: { - client_side_validation: true, required: false, serialized_name: 'monthDays', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'NumberElementType', type: { @@ -71,13 +66,11 @@ def self.mapper() } }, monthly_occurrences: { - client_side_validation: true, required: false, serialized_name: 'monthlyOccurrences', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AdvancedScheduleMonthlyOccurrenceElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb index 969f9afd4c..aeb7f4958c 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb @@ -29,7 +29,6 @@ class AdvancedScheduleMonthlyOccurrence # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AdvancedScheduleMonthlyOccurrence', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'AdvancedScheduleMonthlyOccurrence', model_properties: { occurrence: { - client_side_validation: true, required: false, serialized_name: 'occurrence', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, day: { - client_side_validation: true, required: false, serialized_name: 'day', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb index 8dde8d071f..fbce0285f1 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb @@ -32,7 +32,6 @@ class AgentRegistration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AgentRegistration', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'AgentRegistration', model_properties: { dsc_meta_configuration: { - client_side_validation: true, required: false, serialized_name: 'dscMetaConfiguration', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, endpoint: { - client_side_validation: true, required: false, serialized_name: 'endpoint', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, keys: { - client_side_validation: true, required: false, serialized_name: 'keys', type: { @@ -65,7 +61,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb index 4187efceef..8b099cdac3 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb @@ -25,7 +25,6 @@ class AgentRegistrationKeys # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AgentRegistrationKeys', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'AgentRegistrationKeys', model_properties: { primary: { - client_side_validation: true, required: false, serialized_name: 'primary', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, secondary: { - client_side_validation: true, required: false, serialized_name: 'secondary', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb index 16e700cdaa..add6d88654 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb @@ -34,7 +34,6 @@ class AgentRegistrationRegenerateKeyParameter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AgentRegistrationRegenerateKeyParameter', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'AgentRegistrationRegenerateKeyParameter', model_properties: { key_name: { - client_side_validation: true, required: true, serialized_name: 'keyName', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -66,13 +62,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb index efa3b2cec7..12a7211831 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb @@ -41,7 +41,6 @@ class AutomationAccount < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AutomationAccount', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'AutomationAccount', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -58,7 +56,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -67,7 +64,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -76,7 +72,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -84,13 +79,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: { @@ -100,7 +93,6 @@ def self.mapper() } }, sku: { - client_side_validation: true, required: false, serialized_name: 'properties.sku', type: { @@ -109,7 +101,6 @@ def self.mapper() } }, last_modified_by: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedBy', type: { @@ -117,7 +108,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.state', @@ -126,7 +116,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -135,7 +124,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -144,7 +132,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -152,7 +139,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, serialized_name: 'etag', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb index 8eddf0498a..75a54c9b56 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb @@ -34,7 +34,6 @@ class AutomationAccountCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AutomationAccountCreateOrUpdateParameters', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'AutomationAccountCreateOrUpdateParameters', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'properties.sku', type: { @@ -51,7 +49,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -59,7 +56,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -67,13 +63,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb index 3e8d008ce8..a4bae1ab0e 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AutomationAccountListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'AutomationAccountListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'AutomationAccountElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb index f0ba325829..0bc8e67f13 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb @@ -32,7 +32,6 @@ class AutomationAccountUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'AutomationAccountUpdateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'AutomationAccountUpdateParameters', model_properties: { sku: { - client_side_validation: true, required: false, serialized_name: 'properties.sku', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -57,7 +54,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -65,13 +61,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb index ef0a35d8ce..73e67ee70c 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb @@ -43,7 +43,6 @@ class Certificate # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Certificate', type: { @@ -51,7 +50,6 @@ def self.mapper() class_name: 'Certificate', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -60,7 +58,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -69,7 +66,6 @@ def self.mapper() } }, thumbprint: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.thumbprint', @@ -78,7 +74,6 @@ def self.mapper() } }, expiry_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.expiryTime', @@ -87,7 +82,6 @@ def self.mapper() } }, is_exportable: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.isExportable', @@ -96,7 +90,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -105,7 +98,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -114,7 +106,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb index 9248ff0379..031c03358e 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb @@ -37,7 +37,6 @@ class CertificateCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateCreateOrUpdateParameters', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'CertificateCreateOrUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -53,7 +51,6 @@ def self.mapper() } }, base64value: { - client_side_validation: true, required: true, serialized_name: 'properties.base64Value', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -69,7 +65,6 @@ def self.mapper() } }, thumbprint: { - client_side_validation: true, required: false, serialized_name: 'properties.thumbprint', type: { @@ -77,7 +72,6 @@ def self.mapper() } }, is_exportable: { - client_side_validation: true, required: false, serialized_name: 'properties.isExportable', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb index a57fbf669c..893d263a95 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'CertificateListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CertificateElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb index 9565a02449..9f678700f6 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb @@ -25,7 +25,6 @@ class CertificateUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CertificateUpdateParameters', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'CertificateUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb index e78d38d2dc..5563b24dff 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb @@ -42,7 +42,6 @@ class Connection # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Connection', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'Connection', 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() } }, connection_type: { - client_side_validation: true, required: false, serialized_name: 'properties.connectionType', type: { @@ -77,14 +73,12 @@ def self.mapper() } }, field_definition_values: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.fieldDefinitionValues', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -94,7 +88,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -103,7 +96,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -112,7 +104,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb index 9227d7822b..eca922b537 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb @@ -33,7 +33,6 @@ class ConnectionCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ConnectionCreateOrUpdateParameters', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'ConnectionCreateOrUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -57,7 +54,6 @@ def self.mapper() } }, connection_type: { - client_side_validation: true, required: true, serialized_name: 'properties.connectionType', type: { @@ -66,13 +62,11 @@ def self.mapper() } }, field_definition_values: { - client_side_validation: true, required: false, serialized_name: 'properties.fieldDefinitionValues', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb index faca238a13..750ac015a4 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ConnectionListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ConnectionListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ConnectionElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb index 15c0514e85..9a3402d2a3 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb @@ -42,7 +42,6 @@ class ConnectionType # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ConnectionType', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'ConnectionType', 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() } }, is_global: { - client_side_validation: true, required: false, serialized_name: 'properties.isGlobal', type: { @@ -76,14 +72,12 @@ def self.mapper() } }, field_definitions: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.fieldDefinitions', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'FieldDefinitionElementType', type: { @@ -94,7 +88,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -103,7 +96,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -111,7 +103,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb index 71afe1e648..041b8c0c7b 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb @@ -22,7 +22,6 @@ class ConnectionTypeAssociationProperty # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ConnectionTypeAssociationProperty', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ConnectionTypeAssociationProperty', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb index f9009d3e9a..0a032246ef 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb @@ -31,7 +31,6 @@ class ConnectionTypeCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ConnectionTypeCreateOrUpdateParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'ConnectionTypeCreateOrUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, is_global: { - client_side_validation: true, required: false, serialized_name: 'properties.isGlobal', type: { @@ -55,13 +52,11 @@ def self.mapper() } }, field_definitions: { - client_side_validation: true, required: true, serialized_name: 'properties.fieldDefinitions', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'FieldDefinitionElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb index c2b0bae935..01f44bf888 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ConnectionTypeListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'ConnectionTypeListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ConnectionTypeElementType', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb index 0ef72b45d4..3883e2e6c1 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb @@ -29,7 +29,6 @@ class ConnectionUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ConnectionUpdateParameters', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ConnectionUpdateParameters', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -53,13 +50,11 @@ def self.mapper() } }, field_definition_values: { - client_side_validation: true, required: false, serialized_name: 'properties.fieldDefinitionValues', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_hash.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_hash.rb index 977a493014..e9e55471a7 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_hash.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_hash.rb @@ -26,7 +26,6 @@ class ContentHash # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContentHash', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'ContentHash', model_properties: { algorithm: { - client_side_validation: true, required: true, serialized_name: 'algorithm', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: true, serialized_name: 'value', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_link.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_link.rb index eb40617360..0d2d13bb46 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_link.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_link.rb @@ -28,7 +28,6 @@ class ContentLink # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContentLink', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'ContentLink', model_properties: { uri: { - client_side_validation: true, required: false, serialized_name: 'uri', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, content_hash: { - client_side_validation: true, required: false, serialized_name: 'contentHash', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, version: { - client_side_validation: true, required: false, serialized_name: 'version', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_source.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_source.rb index 01f5030614..50f989ff44 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_source.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/content_source.rb @@ -33,7 +33,6 @@ class ContentSource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ContentSource', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'ContentSource', model_properties: { hash: { - client_side_validation: true, required: false, serialized_name: 'hash', type: { @@ -50,7 +48,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { @@ -66,7 +62,6 @@ def self.mapper() } }, version: { - client_side_validation: true, required: false, serialized_name: 'version', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb index 6ed4c03e36..1e1e78e62f 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb @@ -37,7 +37,6 @@ class Credential # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Credential', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'Credential', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -54,7 +52,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, user_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.userName', @@ -71,7 +67,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -80,7 +75,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -89,7 +83,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb index 5500db9696..1f9481209c 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb @@ -31,7 +31,6 @@ class CredentialCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CredentialCreateOrUpdateParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'CredentialCreateOrUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, user_name: { - client_side_validation: true, required: true, serialized_name: 'properties.userName', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: true, serialized_name: 'properties.password', type: { @@ -63,7 +59,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb index 667a50d95b..10211925ef 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CredentialListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'CredentialListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'CredentialElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb index 9d218a7f0b..2b64f973fd 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb @@ -31,7 +31,6 @@ class CredentialUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'CredentialUpdateParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'CredentialUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, user_name: { - client_side_validation: true, required: false, serialized_name: 'properties.userName', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, password: { - client_side_validation: true, required: false, serialized_name: 'properties.password', type: { @@ -63,7 +59,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb index 286d05899b..c1182946c5 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb @@ -63,7 +63,6 @@ class DscCompilationJob # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscCompilationJob', type: { @@ -71,7 +70,6 @@ def self.mapper() class_name: 'DscCompilationJob', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -80,7 +78,6 @@ def self.mapper() } }, configuration: { - client_side_validation: true, required: false, serialized_name: 'properties.configuration', type: { @@ -89,7 +86,6 @@ def self.mapper() } }, started_by: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.startedBy', @@ -98,7 +94,6 @@ def self.mapper() } }, job_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.jobId', @@ -107,7 +102,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -116,7 +110,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -124,7 +117,6 @@ def self.mapper() } }, status_details: { - client_side_validation: true, required: false, serialized_name: 'properties.statusDetails', type: { @@ -132,7 +124,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.startTime', @@ -141,7 +132,6 @@ def self.mapper() } }, end_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.endTime', @@ -150,7 +140,6 @@ def self.mapper() } }, exception: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.exception', @@ -159,7 +148,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -168,7 +156,6 @@ def self.mapper() } }, last_status_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastStatusModifiedTime', @@ -177,13 +164,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb index 96ab28f6ef..70e4f48077 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb @@ -20,6 +20,10 @@ class DscCompilationJobCreateParameters # job. attr_accessor :parameters + # @return [Boolean] If a new build version of NodeConfiguration is + # required. + attr_accessor :new_node_configuration_build_version_required + # @return [String] Gets or sets name of the resource. attr_accessor :name @@ -37,7 +41,6 @@ class DscCompilationJobCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscCompilationJobCreateParameters', type: { @@ -45,7 +48,6 @@ def self.mapper() class_name: 'DscCompilationJobCreateParameters', model_properties: { configuration: { - client_side_validation: true, required: true, serialized_name: 'properties.configuration', type: { @@ -54,13 +56,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -69,8 +69,14 @@ def self.mapper() } } }, + new_node_configuration_build_version_required: { + required: false, + serialized_name: 'properties.newNodeConfigurationBuildVersionRequired', + type: { + name: 'Boolean' + } + }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -78,7 +84,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -86,13 +91,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb index 3e6406860b..ab4217215f 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscCompilationJobListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'DscCompilationJobListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DscCompilationJobElementType', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb index fceb2ec102..03bc28cb9d 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb @@ -53,7 +53,6 @@ class DscConfiguration < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscConfiguration', type: { @@ -61,7 +60,6 @@ def self.mapper() class_name: 'DscConfiguration', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -70,7 +68,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -79,7 +76,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -88,7 +84,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -96,13 +91,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: { @@ -112,7 +105,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -121,7 +113,6 @@ def self.mapper() } }, job_count: { - client_side_validation: true, required: false, serialized_name: 'properties.jobCount', type: { @@ -129,13 +120,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'DscConfigurationParameterElementType', type: { @@ -146,7 +135,6 @@ def self.mapper() } }, source: { - client_side_validation: true, required: false, serialized_name: 'properties.source', type: { @@ -155,7 +143,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'properties.state', type: { @@ -163,7 +150,6 @@ def self.mapper() } }, log_verbose: { - client_side_validation: true, required: false, serialized_name: 'properties.logVerbose', type: { @@ -171,7 +157,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -179,7 +164,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -187,7 +171,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -195,7 +178,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, serialized_name: 'etag', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb index c1187e1c45..6a1419cb91 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb @@ -22,7 +22,6 @@ class DscConfigurationAssociationProperty # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscConfigurationAssociationProperty', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'DscConfigurationAssociationProperty', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb index e5f05311c0..29ccc44702 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb @@ -45,7 +45,6 @@ class DscConfigurationCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscConfigurationCreateOrUpdateParameters', type: { @@ -53,7 +52,6 @@ def self.mapper() class_name: 'DscConfigurationCreateOrUpdateParameters', model_properties: { log_verbose: { - client_side_validation: true, required: false, serialized_name: 'properties.logVerbose', type: { @@ -61,7 +59,6 @@ def self.mapper() } }, log_progress: { - client_side_validation: true, required: false, serialized_name: 'properties.logProgress', type: { @@ -69,7 +66,6 @@ def self.mapper() } }, source: { - client_side_validation: true, required: true, serialized_name: 'properties.source', type: { @@ -78,13 +74,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'DscConfigurationParameterElementType', type: { @@ -95,7 +89,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -103,7 +96,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -111,7 +103,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -119,13 +110,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb index 5a725fca6e..9916d7cf28 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscConfigurationListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'DscConfigurationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DscConfigurationElementType', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb index 5b122cb336..7e0138eaa4 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb @@ -32,7 +32,6 @@ class DscConfigurationParameter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscConfigurationParameter', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'DscConfigurationParameter', model_properties: { type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, is_mandatory: { - client_side_validation: true, required: false, serialized_name: 'isMandatory', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, position: { - client_side_validation: true, required: false, serialized_name: 'position', type: { @@ -64,7 +60,6 @@ def self.mapper() } }, default_value: { - client_side_validation: true, required: false, serialized_name: 'defaultValue', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_meta_configuration.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_meta_configuration.rb index 0e69adf36e..56705fc23f 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_meta_configuration.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_meta_configuration.rb @@ -47,7 +47,6 @@ class DscMetaConfiguration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscMetaConfiguration', type: { @@ -55,7 +54,6 @@ def self.mapper() class_name: 'DscMetaConfiguration', model_properties: { configuration_mode_frequency_mins: { - client_side_validation: true, required: false, serialized_name: 'configurationModeFrequencyMins', type: { @@ -63,7 +61,6 @@ def self.mapper() } }, reboot_node_if_needed: { - client_side_validation: true, required: false, serialized_name: 'rebootNodeIfNeeded', type: { @@ -71,7 +68,6 @@ def self.mapper() } }, configuration_mode: { - client_side_validation: true, required: false, serialized_name: 'configurationMode', type: { @@ -79,7 +75,6 @@ def self.mapper() } }, action_after_reboot: { - client_side_validation: true, required: false, serialized_name: 'actionAfterReboot', type: { @@ -87,7 +82,6 @@ def self.mapper() } }, certificate_id: { - client_side_validation: true, required: false, serialized_name: 'certificateId', type: { @@ -95,7 +89,6 @@ def self.mapper() } }, refresh_frequency_mins: { - client_side_validation: true, required: false, serialized_name: 'refreshFrequencyMins', type: { @@ -103,7 +96,6 @@ def self.mapper() } }, allow_module_overwrite: { - client_side_validation: true, required: false, serialized_name: 'allowModuleOverwrite', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb index 5c3c07964a..b06411a9f8 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb @@ -37,6 +37,10 @@ class DscNode < Resource # @return [String] Gets or sets the etag of the resource. attr_accessor :etag + # @return [Array] Gets or + # sets the list of extensionHandler properties for a Node. + attr_accessor :extension_handler + # # Mapper for DscNode class as Ruby Hash. @@ -44,7 +48,6 @@ class DscNode < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNode', type: { @@ -52,7 +55,6 @@ def self.mapper() class_name: 'DscNode', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -61,7 +63,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -70,7 +71,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -79,7 +79,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -87,13 +86,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: { @@ -103,7 +100,6 @@ def self.mapper() } }, last_seen: { - client_side_validation: true, required: false, serialized_name: 'lastSeen', type: { @@ -111,7 +107,6 @@ def self.mapper() } }, registration_time: { - client_side_validation: true, required: false, serialized_name: 'registrationTime', type: { @@ -119,7 +114,6 @@ def self.mapper() } }, ip: { - client_side_validation: true, required: false, serialized_name: 'ip', type: { @@ -127,7 +121,6 @@ def self.mapper() } }, account_id: { - client_side_validation: true, required: false, serialized_name: 'accountId', type: { @@ -135,7 +128,6 @@ def self.mapper() } }, node_configuration: { - client_side_validation: true, required: false, serialized_name: 'nodeConfiguration', type: { @@ -144,7 +136,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -152,7 +143,6 @@ def self.mapper() } }, node_id: { - client_side_validation: true, required: false, serialized_name: 'nodeId', type: { @@ -160,12 +150,26 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, serialized_name: 'etag', type: { name: 'String' } + }, + extension_handler: { + required: false, + serialized_name: 'extensionHandler', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'DscNodeExtensionHandlerAssociationPropertyElementType', + type: { + name: 'Composite', + class_name: 'DscNodeExtensionHandlerAssociationProperty' + } + } + } } } } diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb index 7f105bf859..a5f5faa4b2 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb @@ -35,7 +35,6 @@ class DscNodeConfiguration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeConfiguration', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'DscNodeConfiguration', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -51,7 +49,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'lastModifiedTime', type: { @@ -59,7 +56,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'creationTime', type: { @@ -67,7 +63,6 @@ def self.mapper() } }, configuration: { - client_side_validation: true, required: false, serialized_name: 'configuration', type: { @@ -76,7 +71,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb index 96ab509871..3ae237e679 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb @@ -22,7 +22,6 @@ class DscNodeConfigurationAssociationProperty # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeConfigurationAssociationProperty', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'DscNodeConfigurationAssociationProperty', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb index 3648099384..75e70e793a 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb @@ -23,6 +23,10 @@ class DscNodeConfigurationCreateOrUpdateParameters # configuration of the node. attr_accessor :configuration + # @return [Boolean] If a new build version of NodeConfiguration is + # required. + attr_accessor :new_node_configuration_build_version_required + # # Mapper for DscNodeConfigurationCreateOrUpdateParameters class as Ruby @@ -31,7 +35,6 @@ class DscNodeConfigurationCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeConfigurationCreateOrUpdateParameters', type: { @@ -39,7 +42,6 @@ def self.mapper() class_name: 'DscNodeConfigurationCreateOrUpdateParameters', model_properties: { source: { - client_side_validation: true, required: true, serialized_name: 'source', type: { @@ -48,7 +50,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -56,13 +57,19 @@ def self.mapper() } }, configuration: { - client_side_validation: true, required: true, serialized_name: 'configuration', type: { name: 'Composite', class_name: 'DscConfigurationAssociationProperty' } + }, + new_node_configuration_build_version_required: { + required: false, + serialized_name: 'newNodeConfigurationBuildVersionRequired', + type: { + name: 'Boolean' + } } } } diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb index 61556eac1e..5a7950a31b 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeConfigurationListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'DscNodeConfigurationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DscNodeConfigurationElementType', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb new file mode 100644 index 0000000000..8285f282b3 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb @@ -0,0 +1,55 @@ +# 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::Automation::Mgmt::V2015_10_31 + module Models + # + # The dsc extensionHandler property associated with the node + # + class DscNodeExtensionHandlerAssociationProperty + + include MsRestAzure + + # @return [String] Gets or sets the name of the extension handler. + attr_accessor :name + + # @return [String] Gets or sets the version of the extension handler. + attr_accessor :version + + + # + # Mapper for DscNodeExtensionHandlerAssociationProperty class as Ruby + # Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DscNodeExtensionHandlerAssociationProperty', + type: { + name: 'Composite', + class_name: 'DscNodeExtensionHandlerAssociationProperty', + model_properties: { + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + version: { + required: false, + serialized_name: 'version', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb index 2685d72675..9a243aeec8 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'DscNodeListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DscNodeElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report.rb index 9a10e5507a..3349c0a4d1 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report.rb @@ -86,7 +86,6 @@ class DscNodeReport # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeReport', type: { @@ -94,7 +93,6 @@ def self.mapper() class_name: 'DscNodeReport', model_properties: { end_time: { - client_side_validation: true, required: false, serialized_name: 'endTime', type: { @@ -102,7 +100,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'lastModifiedTime', type: { @@ -110,7 +107,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'startTime', type: { @@ -118,7 +114,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -126,7 +121,6 @@ def self.mapper() } }, report_id: { - client_side_validation: true, required: false, serialized_name: 'reportId', type: { @@ -134,7 +128,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -142,7 +135,6 @@ def self.mapper() } }, refresh_mode: { - client_side_validation: true, required: false, serialized_name: 'refreshMode', type: { @@ -150,7 +142,6 @@ def self.mapper() } }, reboot_requested: { - client_side_validation: true, required: false, serialized_name: 'rebootRequested', type: { @@ -158,7 +149,6 @@ def self.mapper() } }, report_format_version: { - client_side_validation: true, required: false, serialized_name: 'reportFormatVersion', type: { @@ -166,7 +156,6 @@ def self.mapper() } }, configuration_version: { - client_side_validation: true, required: false, serialized_name: 'configurationVersion', type: { @@ -174,7 +163,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -182,13 +170,11 @@ def self.mapper() } }, errors: { - client_side_validation: true, required: false, serialized_name: 'errors', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DscReportErrorElementType', type: { @@ -199,13 +185,11 @@ def self.mapper() } }, resources: { - client_side_validation: true, required: false, serialized_name: 'resources', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DscReportResourceElementType', type: { @@ -216,7 +200,6 @@ def self.mapper() } }, meta_configuration: { - client_side_validation: true, required: false, serialized_name: 'metaConfiguration', type: { @@ -225,7 +208,6 @@ def self.mapper() } }, host_name: { - client_side_validation: true, required: false, serialized_name: 'hostName', type: { @@ -233,13 +215,11 @@ def self.mapper() } }, i_pv4addresses: { - client_side_validation: true, required: false, serialized_name: 'iPV4Addresses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -249,13 +229,11 @@ def self.mapper() } }, i_pv6addresses: { - client_side_validation: true, required: false, serialized_name: 'iPV6Addresses', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -265,7 +243,6 @@ def self.mapper() } }, number_of_resources: { - client_side_validation: true, required: false, serialized_name: 'numberOfResources', type: { @@ -273,7 +250,6 @@ def self.mapper() } }, raw_errors: { - client_side_validation: true, required: false, serialized_name: 'rawErrors', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb index b55b5ed231..7beefdd912 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeReportListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'DscNodeReportListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DscNodeReportElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb index 727a6ec125..9b5a4c5b09 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb @@ -26,7 +26,6 @@ class DscNodeUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeUpdateParameters', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'DscNodeUpdateParameters', model_properties: { node_id: { - client_side_validation: true, required: false, serialized_name: 'nodeId', type: { @@ -42,7 +40,6 @@ def self.mapper() } }, node_configuration: { - client_side_validation: true, required: false, serialized_name: 'nodeConfiguration', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_error.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_error.rb index f3960f9c9e..4acf2dc3ff 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_error.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_error.rb @@ -38,7 +38,6 @@ class DscReportError # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscReportError', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'DscReportError', model_properties: { error_source: { - client_side_validation: true, required: false, serialized_name: 'errorSource', type: { @@ -54,7 +52,6 @@ def self.mapper() } }, resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, error_code: { - client_side_validation: true, required: false, serialized_name: 'errorCode', type: { @@ -70,7 +66,6 @@ def self.mapper() } }, error_message: { - client_side_validation: true, required: false, serialized_name: 'errorMessage', type: { @@ -78,7 +73,6 @@ def self.mapper() } }, locale: { - client_side_validation: true, required: false, serialized_name: 'locale', type: { @@ -86,7 +80,6 @@ def self.mapper() } }, error_details: { - client_side_validation: true, required: false, serialized_name: 'errorDetails', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource.rb index bd1240a819..6aa03ba100 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource.rb @@ -50,7 +50,6 @@ class DscReportResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscReportResource', type: { @@ -58,7 +57,6 @@ def self.mapper() class_name: 'DscReportResource', model_properties: { resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', type: { @@ -66,7 +64,6 @@ def self.mapper() } }, source_info: { - client_side_validation: true, required: false, serialized_name: 'sourceInfo', type: { @@ -74,13 +71,11 @@ def self.mapper() } }, depends_on: { - client_side_validation: true, required: false, serialized_name: 'dependsOn', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DscReportResourceNavigationElementType', type: { @@ -91,7 +86,6 @@ def self.mapper() } }, module_name: { - client_side_validation: true, required: false, serialized_name: 'moduleName', type: { @@ -99,7 +93,6 @@ def self.mapper() } }, module_version: { - client_side_validation: true, required: false, serialized_name: 'moduleVersion', type: { @@ -107,7 +100,6 @@ def self.mapper() } }, resource_name: { - client_side_validation: true, required: false, serialized_name: 'resourceName', type: { @@ -115,7 +107,6 @@ def self.mapper() } }, error: { - client_side_validation: true, required: false, serialized_name: 'error', type: { @@ -123,7 +114,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -131,7 +121,6 @@ def self.mapper() } }, duration_in_seconds: { - client_side_validation: true, required: false, serialized_name: 'durationInSeconds', type: { @@ -139,7 +128,6 @@ def self.mapper() } }, start_date: { - client_side_validation: true, required: false, serialized_name: 'startDate', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb index 72746277fd..f3b208bf3a 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb @@ -22,7 +22,6 @@ class DscReportResourceNavigation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscReportResourceNavigation', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'DscReportResourceNavigation', model_properties: { resource_id: { - client_side_validation: true, required: false, serialized_name: 'resourceId', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/error_response.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/error_response.rb index 80fa71a3ea..71129c6fd9 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/error_response.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/error_response.rb @@ -25,7 +25,6 @@ class ErrorResponse # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ErrorResponse', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ErrorResponse', 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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb index 8a16109256..527b0b2fae 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb @@ -31,7 +31,6 @@ class FieldDefinition # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'FieldDefinition', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'FieldDefinition', model_properties: { is_encrypted: { - client_side_validation: true, required: false, serialized_name: 'isEncrypted', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, is_optional: { - client_side_validation: true, required: false, serialized_name: 'isOptional', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: true, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb index a7699733a8..9723dfc3e7 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb @@ -29,7 +29,6 @@ class HybridRunbookWorker # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HybridRunbookWorker', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'HybridRunbookWorker', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, ip: { - client_side_validation: true, required: false, serialized_name: 'ip', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, registration_time: { - client_side_validation: true, required: false, serialized_name: 'registrationTime', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb index ead5e2377b..30bd460fb3 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb @@ -33,7 +33,6 @@ class HybridRunbookWorkerGroup # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HybridRunbookWorkerGroup', type: { @@ -41,7 +40,6 @@ def self.mapper() class_name: 'HybridRunbookWorkerGroup', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -57,13 +54,11 @@ def self.mapper() } }, hybrid_runbook_workers: { - client_side_validation: true, required: false, serialized_name: 'hybridRunbookWorkers', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HybridRunbookWorkerElementType', type: { @@ -74,7 +69,6 @@ def self.mapper() } }, credential: { - client_side_validation: true, required: false, serialized_name: 'credential', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb index b4b790a033..615713477e 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb @@ -23,7 +23,6 @@ class HybridRunbookWorkerGroupUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HybridRunbookWorkerGroupUpdateParameters', type: { @@ -31,7 +30,6 @@ def self.mapper() class_name: 'HybridRunbookWorkerGroupUpdateParameters', model_properties: { credential: { - client_side_validation: true, required: false, serialized_name: 'credential', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb index f3e2ce87c1..6fc46568f3 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb @@ -58,7 +58,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HybridRunbookWorkerGroupsListResult', type: { @@ -66,13 +65,11 @@ def self.mapper() class_name: 'HybridRunbookWorkerGroupsListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'HybridRunbookWorkerGroupElementType', type: { @@ -83,7 +80,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb index 1730b1d0b9..003d94440e 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb @@ -67,7 +67,6 @@ class Job # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Job', type: { @@ -75,7 +74,6 @@ def self.mapper() class_name: 'Job', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -83,7 +81,6 @@ def self.mapper() } }, runbook: { - client_side_validation: true, required: false, serialized_name: 'properties.runbook', type: { @@ -92,7 +89,6 @@ def self.mapper() } }, started_by: { - client_side_validation: true, required: false, serialized_name: 'properties.startedBy', type: { @@ -100,7 +96,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { @@ -108,7 +103,6 @@ def self.mapper() } }, job_id: { - client_side_validation: true, required: false, serialized_name: 'properties.jobId', type: { @@ -116,7 +110,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -124,7 +117,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -132,7 +124,6 @@ def self.mapper() } }, status_details: { - client_side_validation: true, required: false, serialized_name: 'properties.statusDetails', type: { @@ -140,7 +131,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'properties.startTime', type: { @@ -148,7 +138,6 @@ def self.mapper() } }, end_time: { - client_side_validation: true, required: false, serialized_name: 'properties.endTime', type: { @@ -156,7 +145,6 @@ def self.mapper() } }, exception: { - client_side_validation: true, required: false, serialized_name: 'properties.exception', type: { @@ -164,7 +152,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -172,7 +159,6 @@ def self.mapper() } }, last_status_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastStatusModifiedTime', type: { @@ -180,13 +166,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb index 5f389635a1..ea7f84c571 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb @@ -40,7 +40,6 @@ class JobCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'JobCreateParameters', type: { @@ -48,7 +47,6 @@ def self.mapper() class_name: 'JobCreateParameters', model_properties: { runbook: { - client_side_validation: true, required: true, serialized_name: 'properties.runbook', type: { @@ -57,13 +55,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -73,7 +69,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { @@ -81,7 +76,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -89,7 +83,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -97,13 +90,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb index 3d7c9b8bf1..7bc98a481f 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'JobListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'JobListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'JobElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb index da6461cbb2..e2cff03459 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb @@ -39,7 +39,6 @@ class JobSchedule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'JobSchedule', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'JobSchedule', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -55,7 +53,6 @@ def self.mapper() } }, job_schedule_id: { - client_side_validation: true, required: false, serialized_name: 'properties.jobScheduleId', type: { @@ -63,7 +60,6 @@ def self.mapper() } }, schedule: { - client_side_validation: true, required: false, serialized_name: 'properties.schedule', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, runbook: { - client_side_validation: true, required: false, serialized_name: 'properties.runbook', type: { @@ -81,7 +76,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { @@ -89,13 +83,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb index c6bc17f3c1..60b37cfa03 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb @@ -32,7 +32,6 @@ class JobScheduleCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'JobScheduleCreateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'JobScheduleCreateParameters', model_properties: { schedule: { - client_side_validation: true, required: true, serialized_name: 'properties.schedule', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, runbook: { - client_side_validation: true, required: true, serialized_name: 'properties.runbook', type: { @@ -58,7 +55,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { @@ -66,13 +62,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb index eb6c340320..cd6a72ee3c 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'JobScheduleListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'JobScheduleListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'JobScheduleElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream.rb index 8dd893ee3e..3410324d04 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream.rb @@ -42,7 +42,6 @@ class JobStream # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'JobStream', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'JobStream', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -58,7 +56,6 @@ def self.mapper() } }, job_stream_id: { - client_side_validation: true, required: false, serialized_name: 'properties.jobStreamId', type: { @@ -66,7 +63,6 @@ def self.mapper() } }, time: { - client_side_validation: true, required: false, serialized_name: 'properties.time', type: { @@ -74,7 +70,6 @@ def self.mapper() } }, stream_type: { - client_side_validation: true, required: false, serialized_name: 'properties.streamType', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, stream_text: { - client_side_validation: true, required: false, serialized_name: 'properties.streamText', type: { @@ -90,7 +84,6 @@ def self.mapper() } }, summary: { - client_side_validation: true, required: false, serialized_name: 'properties.summary', type: { @@ -98,13 +91,11 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'properties.value', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'ObjectElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb index 71e65eee38..7c7044372d 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'JobStreamListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'JobStreamListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'JobStreamElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb index 83b3cabca9..4ddb97a215 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb @@ -32,7 +32,6 @@ class ModuleCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ModuleCreateOrUpdateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'ModuleCreateOrUpdateParameters', model_properties: { content_link: { - client_side_validation: true, required: true, serialized_name: 'properties.contentLink', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -57,7 +54,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -65,13 +61,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_error_info.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_error_info.rb index 36e26c2224..7189382c95 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_error_info.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_error_info.rb @@ -25,7 +25,6 @@ class ModuleErrorInfo # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ModuleErrorInfo', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'ModuleErrorInfo', 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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb index 73356ee4a2..80d4846561 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ModuleListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ModuleListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ModuleModelElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb index 26c73468d2..dab8368923 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb @@ -58,7 +58,6 @@ class ModuleModel < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Module', type: { @@ -66,7 +65,6 @@ def self.mapper() class_name: 'ModuleModel', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -75,7 +73,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -84,7 +81,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -93,7 +89,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -101,13 +96,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: { @@ -117,7 +110,6 @@ def self.mapper() } }, is_global: { - client_side_validation: true, required: false, serialized_name: 'properties.isGlobal', type: { @@ -125,7 +117,6 @@ def self.mapper() } }, version: { - client_side_validation: true, required: false, serialized_name: 'properties.version', type: { @@ -133,7 +124,6 @@ def self.mapper() } }, size_in_bytes: { - client_side_validation: true, required: false, serialized_name: 'properties.sizeInBytes', type: { @@ -141,7 +131,6 @@ def self.mapper() } }, activity_count: { - client_side_validation: true, required: false, serialized_name: 'properties.activityCount', type: { @@ -149,7 +138,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -158,7 +146,6 @@ def self.mapper() } }, content_link: { - client_side_validation: true, required: false, serialized_name: 'properties.contentLink', type: { @@ -167,7 +154,6 @@ def self.mapper() } }, error: { - client_side_validation: true, required: false, serialized_name: 'properties.error', type: { @@ -176,7 +162,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -184,7 +169,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -192,7 +176,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -200,7 +183,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, serialized_name: 'etag', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_update_parameters.rb index 41c7b1f476..4651ed0eed 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/module_update_parameters.rb @@ -32,7 +32,6 @@ class ModuleUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ModuleUpdateParameters', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'ModuleUpdateParameters', model_properties: { content_link: { - client_side_validation: true, required: false, serialized_name: 'properties.contentLink', type: { @@ -49,7 +47,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -57,7 +54,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -65,13 +61,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation.rb index 3403810e46..36d07ef1f6 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation.rb @@ -25,7 +25,6 @@ class Operation # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'Operation', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, display: { - client_side_validation: true, required: false, serialized_name: 'display', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb index 07e3de21a9..d4207de353 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb @@ -29,7 +29,6 @@ class OperationDisplay # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Operation_display', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'OperationDisplay', model_properties: { provider: { - client_side_validation: true, required: false, serialized_name: 'provider', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, resource: { - client_side_validation: true, required: false, serialized_name: 'resource', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, operation: { - client_side_validation: true, required: false, serialized_name: 'operation', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb index daf5d03f8b..b8635bd76f 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb @@ -23,7 +23,6 @@ class OperationListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'OperationListResult', type: { @@ -31,13 +30,11 @@ def self.mapper() class_name: 'OperationListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'OperationElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb index 0d94ef68ce..3d14dd6a16 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb @@ -34,7 +34,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -51,7 +49,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -60,7 +57,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -69,7 +65,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -77,13 +72,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/run_as_credential_association_property.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/run_as_credential_association_property.rb index ba864398ee..324329750d 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/run_as_credential_association_property.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/run_as_credential_association_property.rb @@ -22,7 +22,6 @@ class RunAsCredentialAssociationProperty # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunAsCredentialAssociationProperty', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'RunAsCredentialAssociationProperty', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb index 9aa1c81411..e9f91e5ffa 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb @@ -73,7 +73,6 @@ class Runbook < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Runbook', type: { @@ -81,7 +80,6 @@ def self.mapper() class_name: 'Runbook', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -90,7 +88,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -99,7 +96,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -108,7 +104,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: true, serialized_name: 'location', type: { @@ -116,13 +111,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: { @@ -132,7 +125,6 @@ def self.mapper() } }, runbook_type: { - client_side_validation: true, required: false, serialized_name: 'properties.runbookType', type: { @@ -140,7 +132,6 @@ def self.mapper() } }, publish_content_link: { - client_side_validation: true, required: false, serialized_name: 'properties.publishContentLink', type: { @@ -149,7 +140,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'properties.state', type: { @@ -157,7 +147,6 @@ def self.mapper() } }, log_verbose: { - client_side_validation: true, required: false, serialized_name: 'properties.logVerbose', type: { @@ -165,7 +154,6 @@ def self.mapper() } }, log_progress: { - client_side_validation: true, required: false, serialized_name: 'properties.logProgress', type: { @@ -173,7 +161,6 @@ def self.mapper() } }, log_activity_trace: { - client_side_validation: true, required: false, serialized_name: 'properties.logActivityTrace', type: { @@ -181,7 +168,6 @@ def self.mapper() } }, job_count: { - client_side_validation: true, required: false, serialized_name: 'properties.jobCount', type: { @@ -189,13 +175,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'RunbookParameterElementType', type: { @@ -206,13 +190,11 @@ def self.mapper() } }, output_types: { - client_side_validation: true, required: false, serialized_name: 'properties.outputTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -222,7 +204,6 @@ def self.mapper() } }, draft: { - client_side_validation: true, required: false, serialized_name: 'properties.draft', type: { @@ -231,7 +212,6 @@ def self.mapper() } }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -240,7 +220,6 @@ def self.mapper() } }, last_modified_by: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedBy', type: { @@ -248,7 +227,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -256,7 +234,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -264,7 +241,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -272,7 +248,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, serialized_name: 'etag', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_association_property.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_association_property.rb index 978101ee27..f1a8fac2f2 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_association_property.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_association_property.rb @@ -22,7 +22,6 @@ class RunbookAssociationProperty # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunbookAssociationProperty', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'RunbookAssociationProperty', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb index 089fb38dae..6f7528daf6 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb @@ -22,7 +22,6 @@ class RunbookCreateOrUpdateDraftParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunbookCreateOrUpdateDraftParameters', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'RunbookCreateOrUpdateDraftParameters', model_properties: { runbook_content: { - client_side_validation: true, required: true, serialized_name: 'runbookContent', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb index 23f416b147..da34684877 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb @@ -41,7 +41,6 @@ class RunbookCreateOrUpdateDraftProperties # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunbookCreateOrUpdateDraftProperties', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'RunbookCreateOrUpdateDraftProperties', model_properties: { log_verbose: { - client_side_validation: true, required: false, serialized_name: 'logVerbose', type: { @@ -57,7 +55,6 @@ def self.mapper() } }, log_progress: { - client_side_validation: true, required: false, serialized_name: 'logProgress', type: { @@ -65,7 +62,6 @@ def self.mapper() } }, runbook_type: { - client_side_validation: true, required: true, serialized_name: 'runbookType', type: { @@ -73,7 +69,6 @@ def self.mapper() } }, draft: { - client_side_validation: true, required: true, serialized_name: 'draft', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'description', type: { @@ -90,7 +84,6 @@ def self.mapper() } }, log_activity_trace: { - client_side_validation: true, required: false, serialized_name: 'logActivityTrace', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb index caa6fd581d..443032129e 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb @@ -53,7 +53,6 @@ class RunbookCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunbookCreateOrUpdateParameters', type: { @@ -61,7 +60,6 @@ def self.mapper() class_name: 'RunbookCreateOrUpdateParameters', model_properties: { log_verbose: { - client_side_validation: true, required: false, serialized_name: 'properties.logVerbose', type: { @@ -69,7 +67,6 @@ def self.mapper() } }, log_progress: { - client_side_validation: true, required: false, serialized_name: 'properties.logProgress', type: { @@ -77,7 +74,6 @@ def self.mapper() } }, runbook_type: { - client_side_validation: true, required: true, serialized_name: 'properties.runbookType', type: { @@ -85,7 +81,6 @@ def self.mapper() } }, draft: { - client_side_validation: true, required: false, serialized_name: 'properties.draft', type: { @@ -94,7 +89,6 @@ def self.mapper() } }, publish_content_link: { - client_side_validation: true, required: false, serialized_name: 'properties.publishContentLink', type: { @@ -103,7 +97,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -111,7 +104,6 @@ def self.mapper() } }, log_activity_trace: { - client_side_validation: true, required: false, serialized_name: 'properties.logActivityTrace', type: { @@ -119,7 +111,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -127,7 +118,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -135,13 +125,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb index 6091555bf0..2429b73c66 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb @@ -39,7 +39,6 @@ class RunbookDraft # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunbookDraft', type: { @@ -47,7 +46,6 @@ def self.mapper() class_name: 'RunbookDraft', model_properties: { in_edit: { - client_side_validation: true, required: false, serialized_name: 'inEdit', type: { @@ -55,7 +53,6 @@ def self.mapper() } }, draft_content_link: { - client_side_validation: true, required: false, serialized_name: 'draftContentLink', type: { @@ -64,7 +61,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'creationTime', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'lastModifiedTime', type: { @@ -80,13 +75,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'RunbookParameterElementType', type: { @@ -97,13 +90,11 @@ def self.mapper() } }, output_types: { - client_side_validation: true, required: false, serialized_name: 'outputTypes', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb index 5ef623ba61..b952dd6b07 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb @@ -38,7 +38,6 @@ class RunbookDraftUndoEditResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunbookDraftUndoEditResult', type: { @@ -46,7 +45,6 @@ def self.mapper() class_name: 'RunbookDraftUndoEditResult', model_properties: { status_code: { - client_side_validation: true, required: false, serialized_name: 'statusCode', type: { @@ -55,7 +53,6 @@ def self.mapper() } }, request_id: { - client_side_validation: true, required: false, serialized_name: 'requestId', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb index fb91cb281a..3e627bd301 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunbookListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'RunbookListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'RunbookElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_parameter.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_parameter.rb index 075a5b07a1..fac9351b4a 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_parameter.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_parameter.rb @@ -32,7 +32,6 @@ class RunbookParameter # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunbookParameter', type: { @@ -40,7 +39,6 @@ def self.mapper() class_name: 'RunbookParameter', model_properties: { type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { @@ -48,7 +46,6 @@ def self.mapper() } }, is_mandatory: { - client_side_validation: true, required: false, serialized_name: 'isMandatory', type: { @@ -56,7 +53,6 @@ def self.mapper() } }, position: { - client_side_validation: true, required: false, serialized_name: 'position', type: { @@ -64,7 +60,6 @@ def self.mapper() } }, default_value: { - client_side_validation: true, required: false, serialized_name: 'defaultValue', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_update_parameters.rb index 5bf4d397e0..fda367d44f 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_update_parameters.rb @@ -42,7 +42,6 @@ class RunbookUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'RunbookUpdateParameters', type: { @@ -50,7 +49,6 @@ def self.mapper() class_name: 'RunbookUpdateParameters', model_properties: { description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -58,7 +56,6 @@ def self.mapper() } }, log_verbose: { - client_side_validation: true, required: false, serialized_name: 'properties.logVerbose', type: { @@ -66,7 +63,6 @@ def self.mapper() } }, log_progress: { - client_side_validation: true, required: false, serialized_name: 'properties.logProgress', type: { @@ -74,7 +70,6 @@ def self.mapper() } }, log_activity_trace: { - client_side_validation: true, required: false, serialized_name: 'properties.logActivityTrace', type: { @@ -82,7 +77,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -90,7 +84,6 @@ def self.mapper() } }, location: { - client_side_validation: true, required: false, serialized_name: 'location', type: { @@ -98,13 +91,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_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb index b85cef5d4b..cf50491d65 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb @@ -69,7 +69,6 @@ class Schedule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Schedule', type: { @@ -77,7 +76,6 @@ def self.mapper() class_name: 'Schedule', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -85,7 +83,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -93,7 +90,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'properties.startTime', type: { @@ -101,7 +97,6 @@ def self.mapper() } }, start_time_offset_minutes: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.startTimeOffsetMinutes', @@ -110,7 +105,6 @@ def self.mapper() } }, expiry_time: { - client_side_validation: true, required: false, serialized_name: 'properties.expiryTime', type: { @@ -118,7 +112,6 @@ def self.mapper() } }, expiry_time_offset_minutes: { - client_side_validation: true, required: false, serialized_name: 'properties.expiryTimeOffsetMinutes', type: { @@ -126,7 +119,6 @@ def self.mapper() } }, is_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isEnabled', default_value: false, @@ -135,7 +127,6 @@ def self.mapper() } }, next_run: { - client_side_validation: true, required: false, serialized_name: 'properties.nextRun', type: { @@ -143,7 +134,6 @@ def self.mapper() } }, next_run_offset_minutes: { - client_side_validation: true, required: false, serialized_name: 'properties.nextRunOffsetMinutes', type: { @@ -151,7 +141,6 @@ def self.mapper() } }, interval: { - client_side_validation: true, required: false, serialized_name: 'properties.interval', type: { @@ -159,7 +148,6 @@ def self.mapper() } }, frequency: { - client_side_validation: true, required: false, serialized_name: 'properties.frequency', type: { @@ -167,7 +155,6 @@ def self.mapper() } }, time_zone: { - client_side_validation: true, required: false, serialized_name: 'properties.timeZone', type: { @@ -175,7 +162,6 @@ def self.mapper() } }, advanced_schedule: { - client_side_validation: true, required: false, serialized_name: 'properties.advancedSchedule', type: { @@ -184,7 +170,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -192,7 +177,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -200,7 +184,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb index 642d1896d1..1a85f5271a 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb @@ -22,7 +22,6 @@ class ScheduleAssociationProperty # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ScheduleAssociationProperty', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'ScheduleAssociationProperty', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb index 9b443eb034..5edead8e2a 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb @@ -27,8 +27,8 @@ class ScheduleCreateOrUpdateParameters # @return Gets or sets the interval of the schedule. attr_accessor :interval - # @return [ScheduleFrequency] Gets or sets the frequency of the schedule. - # Possible values include: 'OneTime', 'Day', 'Hour', 'Week', 'Month' + # @return [ScheduleFrequency] Possible values include: 'OneTime', 'Day', + # 'Hour', 'Week', 'Month' attr_accessor :frequency # @return [String] Gets or sets the time zone of the schedule. @@ -44,7 +44,6 @@ class ScheduleCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ScheduleCreateOrUpdateParameters', type: { @@ -52,7 +51,6 @@ def self.mapper() class_name: 'ScheduleCreateOrUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -60,7 +58,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -68,7 +65,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: true, serialized_name: 'properties.startTime', type: { @@ -76,7 +72,6 @@ def self.mapper() } }, expiry_time: { - client_side_validation: true, required: false, serialized_name: 'properties.expiryTime', type: { @@ -84,7 +79,6 @@ def self.mapper() } }, interval: { - client_side_validation: true, required: false, serialized_name: 'properties.interval', type: { @@ -92,7 +86,6 @@ def self.mapper() } }, frequency: { - client_side_validation: true, required: true, serialized_name: 'properties.frequency', type: { @@ -100,7 +93,6 @@ def self.mapper() } }, time_zone: { - client_side_validation: true, required: false, serialized_name: 'properties.timeZone', type: { @@ -108,7 +100,6 @@ def self.mapper() } }, advanced_schedule: { - client_side_validation: true, required: false, serialized_name: 'properties.advancedSchedule', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb index e28ed26115..6d0c71fd9d 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ScheduleListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'ScheduleListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'ScheduleElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb index bdc821d3b7..65bb2730f8 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb @@ -29,7 +29,6 @@ class ScheduleUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ScheduleUpdateParameters', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'ScheduleUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, is_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isEnabled', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/sku.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/sku.rb index 172ea1dc1c..562ae2aaf5 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/sku.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/sku.rb @@ -29,7 +29,6 @@ class Sku # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Sku', type: { @@ -37,7 +36,6 @@ def self.mapper() class_name: 'Sku', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -45,7 +43,6 @@ def self.mapper() } }, family: { - client_side_validation: true, required: false, serialized_name: 'family', type: { @@ -53,7 +50,6 @@ def self.mapper() } }, capacity: { - client_side_validation: true, required: false, serialized_name: 'capacity', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics.rb index 1083c85178..a65383efde 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics.rb @@ -34,7 +34,6 @@ class Statistics # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Statistics', type: { @@ -42,7 +41,6 @@ def self.mapper() class_name: 'Statistics', model_properties: { counter_property: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'counterProperty', @@ -51,7 +49,6 @@ def self.mapper() } }, counter_value: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'counterValue', @@ -60,7 +57,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'startTime', @@ -69,7 +65,6 @@ def self.mapper() } }, end_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'endTime', @@ -78,7 +73,6 @@ def self.mapper() } }, id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb index a3ca9e88a2..37b95bda8a 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb @@ -22,7 +22,6 @@ class StatisticsListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'StatisticsListResult', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'StatisticsListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'StatisticsElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/sub_resource.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/sub_resource.rb index ab6e1876cd..04c27da184 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/sub_resource.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/sub_resource.rb @@ -22,7 +22,6 @@ class SubResource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'SubResource', type: { @@ -30,7 +29,6 @@ def self.mapper() class_name: 'SubResource', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb index 762900170b..c9496d8763 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb @@ -52,7 +52,6 @@ class TestJob # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TestJob', type: { @@ -60,7 +59,6 @@ def self.mapper() class_name: 'TestJob', model_properties: { creation_time: { - client_side_validation: true, required: false, serialized_name: 'creationTime', type: { @@ -68,7 +66,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -76,7 +73,6 @@ def self.mapper() } }, status_details: { - client_side_validation: true, required: false, serialized_name: 'statusDetails', type: { @@ -84,7 +80,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'runOn', type: { @@ -92,7 +87,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'startTime', type: { @@ -100,7 +94,6 @@ def self.mapper() } }, end_time: { - client_side_validation: true, required: false, serialized_name: 'endTime', type: { @@ -108,7 +101,6 @@ def self.mapper() } }, exception: { - client_side_validation: true, required: false, serialized_name: 'exception', type: { @@ -116,7 +108,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'lastModifiedTime', type: { @@ -124,7 +115,6 @@ def self.mapper() } }, last_status_modified_time: { - client_side_validation: true, required: false, serialized_name: 'lastStatusModifiedTime', type: { @@ -132,13 +122,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb index 9e7e471a24..df79051965 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb @@ -30,7 +30,6 @@ class TestJobCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TestJobCreateParameters', type: { @@ -38,7 +37,6 @@ def self.mapper() class_name: 'TestJobCreateParameters', model_properties: { runbook_name: { - client_side_validation: true, required: true, serialized_name: 'runbookName', type: { @@ -46,13 +44,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -62,7 +58,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'runOn', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field.rb index 327199f509..af9d0edffb 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field.rb @@ -25,7 +25,6 @@ class TypeField # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TypeField', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'TypeField', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, serialized_name: 'type', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field_list_result.rb index 5b8c256c3c..ab8d409aeb 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field_list_result.rb @@ -22,7 +22,6 @@ class TypeFieldListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TypeFieldListResult', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'TypeFieldListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'TypeFieldElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb index f4b9426321..5f7fe01cb6 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb @@ -37,7 +37,6 @@ class Usage # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Usage', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'Usage', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -53,7 +51,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -62,7 +59,6 @@ def self.mapper() } }, unit: { - client_side_validation: true, required: false, serialized_name: 'unit', type: { @@ -70,7 +66,6 @@ def self.mapper() } }, current_value: { - client_side_validation: true, required: false, serialized_name: 'currentValue', type: { @@ -78,7 +73,6 @@ def self.mapper() } }, limit: { - client_side_validation: true, required: false, serialized_name: 'limit', type: { @@ -86,7 +80,6 @@ def self.mapper() } }, throttle_status: { - client_side_validation: true, required: false, serialized_name: 'throttleStatus', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.rb index 4067683ac8..a4aba2a0c3 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.rb @@ -25,7 +25,6 @@ class UsageCounterName # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageCounterName', type: { @@ -33,7 +32,6 @@ def self.mapper() class_name: 'UsageCounterName', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { @@ -41,7 +39,6 @@ def self.mapper() } }, localized_value: { - client_side_validation: true, required: false, serialized_name: 'localizedValue', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb index 3f575f82ba..04d9c92632 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb @@ -22,7 +22,6 @@ class UsageListResult # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'UsageListResult', type: { @@ -30,13 +29,11 @@ def self.mapper() class_name: 'UsageListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'UsageElementType', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb index 9ac05a1daf..197ca682a7 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb @@ -40,7 +40,6 @@ class Variable # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Variable', type: { @@ -48,7 +47,6 @@ def self.mapper() class_name: 'Variable', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -56,7 +54,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -64,7 +61,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'properties.value', type: { @@ -72,7 +68,6 @@ def self.mapper() } }, is_encrypted: { - client_side_validation: true, required: false, serialized_name: 'properties.isEncrypted', type: { @@ -80,7 +75,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -88,7 +82,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -96,7 +89,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb index 568c9e5f60..b5cb34c889 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb @@ -31,7 +31,6 @@ class VariableCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VariableCreateOrUpdateParameters', type: { @@ -39,7 +38,6 @@ def self.mapper() class_name: 'VariableCreateOrUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -47,7 +45,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'properties.value', type: { @@ -55,7 +52,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -63,7 +59,6 @@ def self.mapper() } }, is_encrypted: { - client_side_validation: true, required: false, serialized_name: 'properties.isEncrypted', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb index f823545241..394af0fea8 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VariableListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'VariableListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'VariableElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb index d2ee5916ad..0718cfafc0 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb @@ -28,7 +28,6 @@ class VariableUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'VariableUpdateParameters', type: { @@ -36,7 +35,6 @@ def self.mapper() class_name: 'VariableUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -44,7 +42,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'properties.value', type: { @@ -52,7 +49,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb index 2a17124781..4f403c0681 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb @@ -60,7 +60,6 @@ class Webhook # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Webhook', type: { @@ -68,7 +67,6 @@ def self.mapper() class_name: 'Webhook', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -76,7 +74,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -84,7 +81,6 @@ def self.mapper() } }, is_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isEnabled', default_value: false, @@ -93,7 +89,6 @@ def self.mapper() } }, uri: { - client_side_validation: true, required: false, serialized_name: 'properties.uri', type: { @@ -101,7 +96,6 @@ def self.mapper() } }, expiry_time: { - client_side_validation: true, required: false, serialized_name: 'properties.expiryTime', type: { @@ -109,7 +103,6 @@ def self.mapper() } }, last_invoked_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastInvokedTime', type: { @@ -117,13 +110,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -133,7 +124,6 @@ def self.mapper() } }, runbook: { - client_side_validation: true, required: false, serialized_name: 'properties.runbook', type: { @@ -142,7 +132,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { @@ -150,7 +139,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -158,7 +146,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -166,7 +153,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb index e481021093..7ac47b42f8 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb @@ -43,7 +43,6 @@ class WebhookCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'WebhookCreateOrUpdateParameters', type: { @@ -51,7 +50,6 @@ def self.mapper() class_name: 'WebhookCreateOrUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -59,7 +57,6 @@ def self.mapper() } }, is_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isEnabled', type: { @@ -67,7 +64,6 @@ def self.mapper() } }, uri: { - client_side_validation: true, required: false, serialized_name: 'properties.uri', type: { @@ -75,7 +71,6 @@ def self.mapper() } }, expiry_time: { - client_side_validation: true, required: false, serialized_name: 'properties.expiryTime', type: { @@ -83,13 +78,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -99,7 +92,6 @@ def self.mapper() } }, runbook: { - client_side_validation: true, required: false, serialized_name: 'properties.runbook', type: { @@ -108,7 +100,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb index d29f6d9c5e..202feff8bc 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb @@ -57,7 +57,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'WebhookListResult', type: { @@ -65,13 +64,11 @@ def self.mapper() class_name: 'WebhookListResult', model_properties: { value: { - client_side_validation: true, required: false, serialized_name: 'value', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'WebhookElementType', type: { @@ -82,7 +79,6 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb index 9642953cf9..b6a86d62da 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb @@ -37,7 +37,6 @@ class WebhookUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'WebhookUpdateParameters', type: { @@ -45,7 +44,6 @@ def self.mapper() class_name: 'WebhookUpdateParameters', model_properties: { name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -53,7 +51,6 @@ def self.mapper() } }, is_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isEnabled', type: { @@ -61,7 +58,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { @@ -69,13 +65,11 @@ def self.mapper() } }, parameters: { - client_side_validation: true, required: false, serialized_name: 'properties.parameters', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -85,7 +79,6 @@ def self.mapper() } }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb index 05606c2120..54009746db 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb @@ -24,22 +24,20 @@ def initialize(client) # # Delete the module by name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The module name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, module_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def delete(automation_account_name, module_name, custom_headers = nil) + response = delete_async(automation_account_name, module_name, custom_headers).value! nil end # # Delete the module by name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The module name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -47,14 +45,13 @@ def delete(resource_group_name, automation_account_name, module_name, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def delete_with_http_info(automation_account_name, module_name, custom_headers = nil) + delete_async(automation_account_name, module_name, custom_headers).value! end # # Delete the module by name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The module name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -62,9 +59,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, module_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, module_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, module_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'module_name is nil' if module_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -82,7 +78,7 @@ def delete_async(resource_group_name, automation_account_name, module_name, cust options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -109,7 +105,6 @@ def delete_async(resource_group_name, automation_account_name, module_name, cust # # Retrieve the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The module name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -117,15 +112,14 @@ def delete_async(resource_group_name, automation_account_name, module_name, cust # # @return [ModuleModel] operation results. # - def get(resource_group_name, automation_account_name, module_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def get(automation_account_name, module_name, custom_headers = nil) + response = get_async(automation_account_name, module_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The module name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -133,14 +127,13 @@ def get(resource_group_name, automation_account_name, module_name, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, module_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, module_name, custom_headers).value! + def get_with_http_info(automation_account_name, module_name, custom_headers = nil) + get_async(automation_account_name, module_name, custom_headers).value! end # # Retrieve the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The module name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -148,9 +141,8 @@ def get_with_http_info(resource_group_name, automation_account_name, module_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, module_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, module_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'module_name is nil' if module_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -168,7 +160,7 @@ def get_async(resource_group_name, automation_account_name, module_name, custom_ options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -205,7 +197,6 @@ def get_async(resource_group_name, automation_account_name, module_name, custom_ # # Create or Update the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param parameters [ModuleCreateOrUpdateParameters] The create or update @@ -215,15 +206,14 @@ def get_async(resource_group_name, automation_account_name, module_name, custom_ # # @return [ModuleModel] operation results. # - def create_or_update(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, module_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, module_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create or Update the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param parameters [ModuleCreateOrUpdateParameters] The create or update @@ -233,14 +223,13 @@ def create_or_update(resource_group_name, automation_account_name, module_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, module_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, module_name, parameters, custom_headers).value! end # # Create or Update the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param parameters [ModuleCreateOrUpdateParameters] The create or update @@ -250,9 +239,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, module_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, module_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'module_name is nil' if module_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -279,7 +267,7 @@ def create_or_update_async(resource_group_name, automation_account_name, module_ options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -327,7 +315,6 @@ def create_or_update_async(resource_group_name, automation_account_name, module_ # # Update the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param parameters [ModuleUpdateParameters] The update parameters for module. @@ -336,15 +323,14 @@ def create_or_update_async(resource_group_name, automation_account_name, module_ # # @return [ModuleModel] operation results. # - def update(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value! + def update(automation_account_name, module_name, parameters, custom_headers = nil) + response = update_async(automation_account_name, module_name, parameters, custom_headers).value! response.body unless response.nil? end # # Update the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param parameters [ModuleUpdateParameters] The update parameters for module. @@ -353,14 +339,13 @@ def update(resource_group_name, automation_account_name, module_name, parameters # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, module_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, module_name, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, module_name, parameters, custom_headers = nil) + update_async(automation_account_name, module_name, parameters, custom_headers).value! end # # Update the module identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param parameters [ModuleUpdateParameters] The update parameters for module. @@ -369,9 +354,8 @@ def update_with_http_info(resource_group_name, automation_account_name, module_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, module_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, module_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'module_name is nil' if module_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -398,7 +382,7 @@ def update_async(resource_group_name, automation_account_name, module_name, para options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -436,45 +420,41 @@ def update_async(resource_group_name, automation_account_name, module_name, para # # Retrieve a list of modules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of modules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of modules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -491,7 +471,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -615,7 +595,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of modules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -623,8 +602,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [ModuleListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb index f06b71e719..f5c189ad20 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb @@ -24,7 +24,6 @@ def initialize(client) # # Retrieve the Dsc node report list by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The parameters supplied to the list operation. # @param filter [String] The filter to apply on the operation. @@ -33,15 +32,14 @@ def initialize(client) # # @return [Array] operation results. # - def list_by_node(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil) - first_page = list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter, custom_headers) + def list_by_node(automation_account_name, node_id, filter = nil, custom_headers = nil) + first_page = list_by_node_as_lazy(automation_account_name, node_id, filter, custom_headers) first_page.get_all_items end # # Retrieve the Dsc node report list by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The parameters supplied to the list operation. # @param filter [String] The filter to apply on the operation. @@ -50,14 +48,13 @@ def list_by_node(resource_group_name, automation_account_name, node_id, filter = # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_node_with_http_info(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil) - list_by_node_async(resource_group_name, automation_account_name, node_id, filter, custom_headers).value! + def list_by_node_with_http_info(automation_account_name, node_id, filter = nil, custom_headers = nil) + list_by_node_async(automation_account_name, node_id, filter, custom_headers).value! end # # Retrieve the Dsc node report list by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The parameters supplied to the list operation. # @param filter [String] The filter to apply on the operation. @@ -66,9 +63,8 @@ def list_by_node_with_http_info(resource_group_name, automation_account_name, no # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_node_async(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_node_async(automation_account_name, node_id, filter = nil, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'node_id is nil' if node_id.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -86,7 +82,7 @@ def list_by_node_async(resource_group_name, automation_account_name, node_id, fi options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -123,7 +119,6 @@ def list_by_node_async(resource_group_name, automation_account_name, node_id, fi # # Retrieve the Dsc node report data by node id and report id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -132,15 +127,14 @@ def list_by_node_async(resource_group_name, automation_account_name, node_id, fi # # @return [DscNodeReport] operation results. # - def get(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value! + def get(automation_account_name, node_id, report_id, custom_headers = nil) + response = get_async(automation_account_name, node_id, report_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the Dsc node report data by node id and report id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -149,14 +143,13 @@ def get(resource_group_name, automation_account_name, node_id, report_id, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value! + def get_with_http_info(automation_account_name, node_id, report_id, custom_headers = nil) + get_async(automation_account_name, node_id, report_id, custom_headers).value! end # # Retrieve the Dsc node report data by node id and report id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -165,9 +158,8 @@ def get_with_http_info(resource_group_name, automation_account_name, node_id, re # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, node_id, report_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'node_id is nil' if node_id.nil? fail ArgumentError, 'report_id is nil' if report_id.nil? @@ -186,7 +178,7 @@ def get_async(resource_group_name, automation_account_name, node_id, report_id, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -223,7 +215,6 @@ def get_async(resource_group_name, automation_account_name, node_id, report_id, # # Retrieve the Dsc node reports by node id and report id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -232,15 +223,14 @@ def get_async(resource_group_name, automation_account_name, node_id, report_id, # # @return [NOT_IMPLEMENTED] operation results. # - def get_content(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - response = get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value! + def get_content(automation_account_name, node_id, report_id, custom_headers = nil) + response = get_content_async(automation_account_name, node_id, report_id, custom_headers).value! response.body unless response.nil? end # # Retrieve the Dsc node reports by node id and report id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -249,14 +239,13 @@ def get_content(resource_group_name, automation_account_name, node_id, report_id # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers).value! + def get_content_with_http_info(automation_account_name, node_id, report_id, custom_headers = nil) + get_content_async(automation_account_name, node_id, report_id, custom_headers).value! end # # Retrieve the Dsc node reports by node id and report id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -265,9 +254,8 @@ def get_content_with_http_info(resource_group_name, automation_account_name, nod # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_content_async(resource_group_name, automation_account_name, node_id, report_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_content_async(automation_account_name, node_id, report_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'node_id is nil' if node_id.nil? fail ArgumentError, 'report_id is nil' if report_id.nil? @@ -286,7 +274,7 @@ def get_content_async(resource_group_name, automation_account_name, node_id, rep options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -308,7 +296,6 @@ def get_content_async(resource_group_name, automation_account_name, node_id, rep begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -417,7 +404,6 @@ def list_by_node_next_async(next_page_link, custom_headers = nil) # # Retrieve the Dsc node report list by node id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param node_id [String] The parameters supplied to the list operation. # @param filter [String] The filter to apply on the operation. @@ -427,8 +413,8 @@ def list_by_node_next_async(next_page_link, custom_headers = nil) # @return [DscNodeReportListResult] which provide lazy access to pages of the # response. # - def list_by_node_as_lazy(resource_group_name, automation_account_name, node_id, filter = nil, custom_headers = nil) - response = list_by_node_async(resource_group_name, automation_account_name, node_id, filter, custom_headers).value! + def list_by_node_as_lazy(automation_account_name, node_id, filter = nil, custom_headers = nil) + response = list_by_node_async(automation_account_name, node_id, filter, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb index 8d42fb4c13..cf5e450518 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb @@ -24,7 +24,6 @@ def initialize(client) # # Retrieve a list of fields of a given type identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param type_name [String] The name of type. @@ -33,15 +32,14 @@ def initialize(client) # # @return [TypeFieldListResult] operation results. # - def list_fields_by_module_and_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) - response = list_fields_by_module_and_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value! + def list_fields_by_module_and_type(automation_account_name, module_name, type_name, custom_headers = nil) + response = list_fields_by_module_and_type_async(automation_account_name, module_name, type_name, custom_headers).value! response.body unless response.nil? end # # Retrieve a list of fields of a given type identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param type_name [String] The name of type. @@ -50,14 +48,13 @@ def list_fields_by_module_and_type(resource_group_name, automation_account_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_fields_by_module_and_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil) - list_fields_by_module_and_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value! + def list_fields_by_module_and_type_with_http_info(automation_account_name, module_name, type_name, custom_headers = nil) + list_fields_by_module_and_type_async(automation_account_name, module_name, type_name, custom_headers).value! end # # Retrieve a list of fields of a given type identified by module name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param type_name [String] The name of type. @@ -66,9 +63,8 @@ def list_fields_by_module_and_type_with_http_info(resource_group_name, automatio # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_fields_by_module_and_type_async(resource_group_name, automation_account_name, module_name, type_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_fields_by_module_and_type_async(automation_account_name, module_name, type_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'module_name is nil' if module_name.nil? fail ArgumentError, 'type_name is nil' if type_name.nil? @@ -87,7 +83,7 @@ def list_fields_by_module_and_type_async(resource_group_name, automation_account options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -124,7 +120,6 @@ def list_fields_by_module_and_type_async(resource_group_name, automation_account # # Retrieve a list of fields of a given type across all accessible modules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param type_name [String] The name of type. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -132,15 +127,14 @@ def list_fields_by_module_and_type_async(resource_group_name, automation_account # # @return [TypeFieldListResult] operation results. # - def list_fields_by_type(resource_group_name, automation_account_name, type_name, custom_headers = nil) - response = list_fields_by_type_async(resource_group_name, automation_account_name, type_name, custom_headers).value! + def list_fields_by_type(automation_account_name, type_name, custom_headers = nil) + response = list_fields_by_type_async(automation_account_name, type_name, custom_headers).value! response.body unless response.nil? end # # Retrieve a list of fields of a given type across all accessible modules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param type_name [String] The name of type. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -148,14 +142,13 @@ def list_fields_by_type(resource_group_name, automation_account_name, type_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_fields_by_type_with_http_info(resource_group_name, automation_account_name, type_name, custom_headers = nil) - list_fields_by_type_async(resource_group_name, automation_account_name, type_name, custom_headers).value! + def list_fields_by_type_with_http_info(automation_account_name, type_name, custom_headers = nil) + list_fields_by_type_async(automation_account_name, type_name, custom_headers).value! end # # Retrieve a list of fields of a given type across all accessible modules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param type_name [String] The name of type. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -163,9 +156,8 @@ def list_fields_by_type_with_http_info(resource_group_name, automation_account_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_fields_by_type_async(resource_group_name, automation_account_name, type_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_fields_by_type_async(automation_account_name, type_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'type_name is nil' if type_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -183,7 +175,7 @@ def list_fields_by_type_async(resource_group_name, automation_account_name, type options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb index 22841fe75f..592e1b8ffa 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Retrieve the content of runbook draft identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -32,15 +31,14 @@ def initialize(client) # # @return [NOT_IMPLEMENTED] operation results. # - def get_content(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_content(automation_account_name, runbook_name, custom_headers = nil) + response = get_content_async(automation_account_name, runbook_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the content of runbook draft identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -48,14 +46,13 @@ def get_content(resource_group_name, automation_account_name, runbook_name, cust # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_content_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + get_content_async(automation_account_name, runbook_name, custom_headers).value! end # # Retrieve the content of runbook draft identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -63,9 +60,8 @@ def get_content_with_http_info(resource_group_name, automation_account_name, run # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_content_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_content_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -83,7 +79,7 @@ def get_content_async(resource_group_name, automation_account_name, runbook_name options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -105,7 +101,6 @@ def get_content_async(resource_group_name, automation_account_name, runbook_name begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -127,20 +122,18 @@ def get_content_async(resource_group_name, automation_account_name, runbook_name # # Updates the runbook draft with runbookStream as its content. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param runbook_content The runbook draft content. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - def create_or_update(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers).value! + def create_or_update(automation_account_name, runbook_name, runbook_content, custom_headers = nil) + response = create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers).value! nil end # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param runbook_content The runbook draft content. @@ -150,9 +143,9 @@ def create_or_update(resource_group_name, automation_account_name, runbook_name, # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) + def create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers = nil) # Send request - promise = begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers) + promise = begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -169,7 +162,6 @@ def create_or_update_async(resource_group_name, automation_account_name, runbook # # Retrieve the runbook draft identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -177,15 +169,14 @@ def create_or_update_async(resource_group_name, automation_account_name, runbook # # @return [RunbookDraft] operation results. # - def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get(automation_account_name, runbook_name, custom_headers = nil) + response = get_async(automation_account_name, runbook_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the runbook draft identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -193,14 +184,13 @@ def get(resource_group_name, automation_account_name, runbook_name, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + get_async(automation_account_name, runbook_name, custom_headers).value! end # # Retrieve the runbook draft identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -208,9 +198,8 @@ def get_with_http_info(resource_group_name, automation_account_name, runbook_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -228,7 +217,7 @@ def get_async(resource_group_name, automation_account_name, runbook_name, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -265,7 +254,6 @@ def get_async(resource_group_name, automation_account_name, runbook_name, custom # # Publish runbook draft. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. @@ -274,13 +262,12 @@ def get_async(resource_group_name, automation_account_name, runbook_name, custom # # @return [Runbook] operation results. # - def publish(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def publish(automation_account_name, runbook_name, custom_headers = nil) + response = publish_async(automation_account_name, runbook_name, custom_headers).value! response.body unless response.nil? end # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. @@ -290,9 +277,9 @@ def publish(resource_group_name, automation_account_name, runbook_name, custom_h # @return [Concurrent::Promise] promise which provides async access to http # response. # - def publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + def publish_async(automation_account_name, runbook_name, custom_headers = nil) # Send request - promise = begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers) + promise = begin_publish_async(automation_account_name, runbook_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. @@ -311,7 +298,6 @@ def publish_async(resource_group_name, automation_account_name, runbook_name, cu # # Retrieve the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -319,15 +305,14 @@ def publish_async(resource_group_name, automation_account_name, runbook_name, cu # # @return [RunbookDraftUndoEditResult] operation results. # - def undo_edit(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = undo_edit_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def undo_edit(automation_account_name, runbook_name, custom_headers = nil) + response = undo_edit_async(automation_account_name, runbook_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -335,14 +320,13 @@ def undo_edit(resource_group_name, automation_account_name, runbook_name, custom # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def undo_edit_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - undo_edit_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def undo_edit_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + undo_edit_async(automation_account_name, runbook_name, custom_headers).value! end # # Retrieve the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -350,9 +334,8 @@ def undo_edit_with_http_info(resource_group_name, automation_account_name, runbo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def undo_edit_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def undo_edit_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -370,7 +353,7 @@ def undo_edit_async(resource_group_name, automation_account_name, runbook_name, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -407,7 +390,6 @@ def undo_edit_async(resource_group_name, automation_account_name, runbook_name, # # Updates the runbook draft with runbookStream as its content. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param runbook_content The runbook draft content. @@ -415,15 +397,14 @@ def undo_edit_async(resource_group_name, automation_account_name, runbook_name, # will be added to the HTTP request. # # - def begin_create_or_update(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) - response = begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers).value! + def begin_create_or_update(automation_account_name, runbook_name, runbook_content, custom_headers = nil) + response = begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers).value! nil end # # Updates the runbook draft with runbookStream as its content. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param runbook_content The runbook draft content. @@ -432,14 +413,13 @@ def begin_create_or_update(resource_group_name, automation_account_name, runbook # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) - begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers).value! + def begin_create_or_update_with_http_info(automation_account_name, runbook_name, runbook_content, custom_headers = nil) + begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers).value! end # # Updates the runbook draft with runbookStream as its content. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param runbook_content The runbook draft content. @@ -448,9 +428,8 @@ def begin_create_or_update_with_http_info(resource_group_name, automation_accoun # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, 'runbook_content is nil' if runbook_content.nil? @@ -468,7 +447,6 @@ def begin_create_or_update_async(resource_group_name, automation_account_name, r # Serialize Request request_mapper = { - client_side_validation: true, required: true, serialized_name: 'runbookContent', type: { @@ -484,7 +462,7 @@ def begin_create_or_update_async(resource_group_name, automation_account_name, r options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -512,7 +490,6 @@ def begin_create_or_update_async(resource_group_name, automation_account_name, r # # Publish runbook draft. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. @@ -521,15 +498,14 @@ def begin_create_or_update_async(resource_group_name, automation_account_name, r # # @return [Runbook] operation results. # - def begin_publish(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def begin_publish(automation_account_name, runbook_name, custom_headers = nil) + response = begin_publish_async(automation_account_name, runbook_name, custom_headers).value! response.body unless response.nil? end # # Publish runbook draft. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. @@ -538,14 +514,13 @@ def begin_publish(resource_group_name, automation_account_name, runbook_name, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_publish_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def begin_publish_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + begin_publish_async(automation_account_name, runbook_name, custom_headers).value! end # # Publish runbook draft. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. @@ -554,9 +529,8 @@ def begin_publish_with_http_info(resource_group_name, automation_account_name, r # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_publish_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def begin_publish_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -574,7 +548,7 @@ def begin_publish_async(resource_group_name, automation_account_name, runbook_na options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb index 12d9d90ded..85174090d0 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Retrieve the content of runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -32,15 +31,14 @@ def initialize(client) # # @return [NOT_IMPLEMENTED] operation results. # - def get_content(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_content(automation_account_name, runbook_name, custom_headers = nil) + response = get_content_async(automation_account_name, runbook_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the content of runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -48,14 +46,13 @@ def get_content(resource_group_name, automation_account_name, runbook_name, cust # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_content_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + get_content_async(automation_account_name, runbook_name, custom_headers).value! end # # Retrieve the content of runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -63,9 +60,8 @@ def get_content_with_http_info(resource_group_name, automation_account_name, run # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_content_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_content_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -83,7 +79,7 @@ def get_content_async(resource_group_name, automation_account_name, runbook_name options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -105,7 +101,6 @@ def get_content_async(resource_group_name, automation_account_name, runbook_name begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -127,7 +122,6 @@ def get_content_async(resource_group_name, automation_account_name, runbook_name # # Retrieve the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -135,15 +129,14 @@ def get_content_async(resource_group_name, automation_account_name, runbook_name # # @return [Runbook] operation results. # - def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get(automation_account_name, runbook_name, custom_headers = nil) + response = get_async(automation_account_name, runbook_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -151,14 +144,13 @@ def get(resource_group_name, automation_account_name, runbook_name, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + get_async(automation_account_name, runbook_name, custom_headers).value! end # # Retrieve the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -166,9 +158,8 @@ def get_with_http_info(resource_group_name, automation_account_name, runbook_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -186,7 +177,7 @@ def get_async(resource_group_name, automation_account_name, runbook_name, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -223,7 +214,6 @@ def get_async(resource_group_name, automation_account_name, runbook_name, custom # # Create the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookCreateOrUpdateParameters] The create or update @@ -233,15 +223,14 @@ def get_async(resource_group_name, automation_account_name, runbook_name, custom # will be added to the HTTP request. # # - def create_or_update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, runbook_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, runbook_name, parameters, custom_headers).value! nil end # # Create the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookCreateOrUpdateParameters] The create or update @@ -252,14 +241,13 @@ def create_or_update(resource_group_name, automation_account_name, runbook_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, runbook_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, runbook_name, parameters, custom_headers).value! end # # Create the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookCreateOrUpdateParameters] The create or update @@ -270,9 +258,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, runbook_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, runbook_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -299,7 +286,7 @@ def create_or_update_async(resource_group_name, automation_account_name, runbook options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -327,7 +314,6 @@ def create_or_update_async(resource_group_name, automation_account_name, runbook # # Update the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookUpdateParameters] The update parameters for @@ -337,15 +323,14 @@ def create_or_update_async(resource_group_name, automation_account_name, runbook # # @return [Runbook] operation results. # - def update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def update(automation_account_name, runbook_name, parameters, custom_headers = nil) + response = update_async(automation_account_name, runbook_name, parameters, custom_headers).value! response.body unless response.nil? end # # Update the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookUpdateParameters] The update parameters for @@ -355,14 +340,13 @@ def update(resource_group_name, automation_account_name, runbook_name, parameter # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, runbook_name, parameters, custom_headers = nil) + update_async(automation_account_name, runbook_name, parameters, custom_headers).value! end # # Update the runbook identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookUpdateParameters] The update parameters for @@ -372,9 +356,8 @@ def update_with_http_info(resource_group_name, automation_account_name, runbook_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, runbook_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, runbook_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -401,7 +384,7 @@ def update_async(resource_group_name, automation_account_name, runbook_name, par options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -439,22 +422,20 @@ def update_async(resource_group_name, automation_account_name, runbook_name, par # # Delete the runbook by name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def delete(automation_account_name, runbook_name, custom_headers = nil) + response = delete_async(automation_account_name, runbook_name, custom_headers).value! nil end # # Delete the runbook by name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -462,14 +443,13 @@ def delete(resource_group_name, automation_account_name, runbook_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def delete_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + delete_async(automation_account_name, runbook_name, custom_headers).value! end # # Delete the runbook by name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -477,9 +457,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, runbook_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -497,7 +476,7 @@ def delete_async(resource_group_name, automation_account_name, runbook_name, cus options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -524,45 +503,41 @@ def delete_async(resource_group_name, automation_account_name, runbook_name, cus # # Retrieve a list of runbooks. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of runbooks. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of runbooks. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -579,7 +554,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -703,7 +678,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of runbooks. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -711,8 +685,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [RunbookListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb index 98da341f11..0409ac4fe5 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Create a schedule. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied @@ -34,15 +33,14 @@ def initialize(client) # # @return [Schedule] operation results. # - def create_or_update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, schedule_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, schedule_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create a schedule. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied @@ -52,14 +50,13 @@ def create_or_update(resource_group_name, automation_account_name, schedule_name # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, schedule_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, schedule_name, parameters, custom_headers).value! end # # Create a schedule. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied @@ -69,9 +66,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, schedule_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, schedule_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'schedule_name is nil' if schedule_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -98,7 +94,7 @@ def create_or_update_async(resource_group_name, automation_account_name, schedul options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -136,7 +132,6 @@ def create_or_update_async(resource_group_name, automation_account_name, schedul # # Update the schedule identified by schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleUpdateParameters] The parameters supplied to the @@ -146,15 +141,14 @@ def create_or_update_async(resource_group_name, automation_account_name, schedul # # @return [Schedule] operation results. # - def update(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value! + def update(automation_account_name, schedule_name, parameters, custom_headers = nil) + response = update_async(automation_account_name, schedule_name, parameters, custom_headers).value! response.body unless response.nil? end # # Update the schedule identified by schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleUpdateParameters] The parameters supplied to the @@ -164,14 +158,13 @@ def update(resource_group_name, automation_account_name, schedule_name, paramete # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, schedule_name, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, schedule_name, parameters, custom_headers = nil) + update_async(automation_account_name, schedule_name, parameters, custom_headers).value! end # # Update the schedule identified by schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleUpdateParameters] The parameters supplied to the @@ -181,9 +174,8 @@ def update_with_http_info(resource_group_name, automation_account_name, schedule # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, schedule_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, schedule_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'schedule_name is nil' if schedule_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -210,7 +202,7 @@ def update_async(resource_group_name, automation_account_name, schedule_name, pa options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -248,7 +240,6 @@ def update_async(resource_group_name, automation_account_name, schedule_name, pa # # Retrieve the schedule identified by schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -256,15 +247,14 @@ def update_async(resource_group_name, automation_account_name, schedule_name, pa # # @return [Schedule] operation results. # - def get(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value! + def get(automation_account_name, schedule_name, custom_headers = nil) + response = get_async(automation_account_name, schedule_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the schedule identified by schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -272,14 +262,13 @@ def get(resource_group_name, automation_account_name, schedule_name, custom_head # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value! + def get_with_http_info(automation_account_name, schedule_name, custom_headers = nil) + get_async(automation_account_name, schedule_name, custom_headers).value! end # # Retrieve the schedule identified by schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -287,9 +276,8 @@ def get_with_http_info(resource_group_name, automation_account_name, schedule_na # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, schedule_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, schedule_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'schedule_name is nil' if schedule_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -307,7 +295,7 @@ def get_async(resource_group_name, automation_account_name, schedule_name, custo options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -344,22 +332,20 @@ def get_async(resource_group_name, automation_account_name, schedule_name, custo # # Delete the schedule identified by schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value! + def delete(automation_account_name, schedule_name, custom_headers = nil) + response = delete_async(automation_account_name, schedule_name, custom_headers).value! nil end # # Delete the schedule identified by schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -367,14 +353,13 @@ def delete(resource_group_name, automation_account_name, schedule_name, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, schedule_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, schedule_name, custom_headers).value! + def delete_with_http_info(automation_account_name, schedule_name, custom_headers = nil) + delete_async(automation_account_name, schedule_name, custom_headers).value! end # # Delete the schedule identified by schedule name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -382,9 +367,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, schedule # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, schedule_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, schedule_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'schedule_name is nil' if schedule_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -402,7 +386,7 @@ def delete_async(resource_group_name, automation_account_name, schedule_name, cu options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -429,45 +413,41 @@ def delete_async(resource_group_name, automation_account_name, schedule_name, cu # # Retrieve a list of schedules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of schedules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of schedules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -484,7 +464,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -608,7 +588,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of schedules. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -616,8 +595,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [ScheduleListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb index 187c1b51e5..bcaf0bf069 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb @@ -65,7 +65,6 @@ def list_by_automation_account_with_http_info(resource_group_name, automation_ac # def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - 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, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb index a133159cf1..648132a7a2 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb @@ -24,7 +24,6 @@ def initialize(client) # # Retrieve a test job streams identified by runbook name and stream id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param job_stream_id [String] The job stream id. @@ -33,15 +32,14 @@ def initialize(client) # # @return [JobStream] operation results. # - def get(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers).value! + def get(automation_account_name, runbook_name, job_stream_id, custom_headers = nil) + response = get_async(automation_account_name, runbook_name, job_stream_id, custom_headers).value! response.body unless response.nil? end # # Retrieve a test job streams identified by runbook name and stream id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param job_stream_id [String] The job stream id. @@ -50,14 +48,13 @@ def get(resource_group_name, automation_account_name, runbook_name, job_stream_i # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil) - get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers).value! + def get_with_http_info(automation_account_name, runbook_name, job_stream_id, custom_headers = nil) + get_async(automation_account_name, runbook_name, job_stream_id, custom_headers).value! end # # Retrieve a test job streams identified by runbook name and stream id. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param job_stream_id [String] The job stream id. @@ -66,9 +63,8 @@ def get_with_http_info(resource_group_name, automation_account_name, runbook_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, runbook_name, job_stream_id, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil? @@ -87,7 +83,7 @@ def get_async(resource_group_name, automation_account_name, runbook_name, job_st options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -124,7 +120,6 @@ def get_async(resource_group_name, automation_account_name, runbook_name, job_st # # Retrieve a list of test job streams identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param filter [String] The filter to apply on the operation. @@ -133,15 +128,14 @@ def get_async(resource_group_name, automation_account_name, runbook_name, job_st # # @return [Array] operation results. # - def list_by_test_job(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil) - first_page = list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter, custom_headers) + def list_by_test_job(automation_account_name, runbook_name, filter = nil, custom_headers = nil) + first_page = list_by_test_job_as_lazy(automation_account_name, runbook_name, filter, custom_headers) first_page.get_all_items end # # Retrieve a list of test job streams identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param filter [String] The filter to apply on the operation. @@ -150,14 +144,13 @@ def list_by_test_job(resource_group_name, automation_account_name, runbook_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_test_job_with_http_info(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil) - list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter, custom_headers).value! + def list_by_test_job_with_http_info(automation_account_name, runbook_name, filter = nil, custom_headers = nil) + list_by_test_job_async(automation_account_name, runbook_name, filter, custom_headers).value! end # # Retrieve a list of test job streams identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param filter [String] The filter to apply on the operation. @@ -166,9 +159,8 @@ def list_by_test_job_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_test_job_async(automation_account_name, runbook_name, filter = nil, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -186,7 +178,7 @@ def list_by_test_job_async(resource_group_name, automation_account_name, runbook options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -310,7 +302,6 @@ def list_by_test_job_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of test job streams identified by runbook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param filter [String] The filter to apply on the operation. @@ -320,8 +311,8 @@ def list_by_test_job_next_async(next_page_link, custom_headers = nil) # @return [JobStreamListResult] which provide lazy access to pages of the # response. # - def list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil) - response = list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter, custom_headers).value! + def list_by_test_job_as_lazy(automation_account_name, runbook_name, filter = nil, custom_headers = nil) + response = list_by_test_job_async(automation_account_name, runbook_name, filter, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb index 6b0b019fc2..72a1e85a5d 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb @@ -24,7 +24,6 @@ def initialize(client) # # Create a test job of the runbook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the create test job # operation. @@ -35,15 +34,14 @@ def initialize(client) # # @return [TestJob] operation results. # - def create(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - response = create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def create(automation_account_name, runbook_name, parameters, custom_headers = nil) + response = create_async(automation_account_name, runbook_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create a test job of the runbook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the create test job # operation. @@ -54,14 +52,13 @@ def create(resource_group_name, automation_account_name, runbook_name, parameter # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) - create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value! + def create_with_http_info(automation_account_name, runbook_name, parameters, custom_headers = nil) + create_async(automation_account_name, runbook_name, parameters, custom_headers).value! end # # Create a test job of the runbook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the create test job # operation. @@ -72,9 +69,8 @@ def create_with_http_info(resource_group_name, automation_account_name, runbook_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_async(resource_group_name, automation_account_name, runbook_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_async(automation_account_name, runbook_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -101,7 +97,7 @@ def create_async(resource_group_name, automation_account_name, runbook_name, par options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -139,7 +135,6 @@ def create_async(resource_group_name, automation_account_name, runbook_name, par # # Retrieve the test job for the specified runbook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -147,15 +142,14 @@ def create_async(resource_group_name, automation_account_name, runbook_name, par # # @return [TestJob] operation results. # - def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get(automation_account_name, runbook_name, custom_headers = nil) + response = get_async(automation_account_name, runbook_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the test job for the specified runbook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -163,14 +157,13 @@ def get(resource_group_name, automation_account_name, runbook_name, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def get_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + get_async(automation_account_name, runbook_name, custom_headers).value! end # # Retrieve the test job for the specified runbook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -178,9 +171,8 @@ def get_with_http_info(resource_group_name, automation_account_name, runbook_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -198,7 +190,7 @@ def get_async(resource_group_name, automation_account_name, runbook_name, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -235,22 +227,20 @@ def get_async(resource_group_name, automation_account_name, runbook_name, custom # # Resume the test job. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def resume(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def resume(automation_account_name, runbook_name, custom_headers = nil) + response = resume_async(automation_account_name, runbook_name, custom_headers).value! nil end # # Resume the test job. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -258,14 +248,13 @@ def resume(resource_group_name, automation_account_name, runbook_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def resume_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def resume_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + resume_async(automation_account_name, runbook_name, custom_headers).value! end # # Resume the test job. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -273,9 +262,8 @@ def resume_with_http_info(resource_group_name, automation_account_name, runbook_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def resume_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def resume_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -293,7 +281,7 @@ def resume_async(resource_group_name, automation_account_name, runbook_name, cus options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -320,22 +308,20 @@ def resume_async(resource_group_name, automation_account_name, runbook_name, cus # # Stop the test job. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def stop(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def stop(automation_account_name, runbook_name, custom_headers = nil) + response = stop_async(automation_account_name, runbook_name, custom_headers).value! nil end # # Stop the test job. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -343,14 +329,13 @@ def stop(resource_group_name, automation_account_name, runbook_name, custom_head # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def stop_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + stop_async(automation_account_name, runbook_name, custom_headers).value! end # # Stop the test job. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -358,9 +343,8 @@ def stop_with_http_info(resource_group_name, automation_account_name, runbook_na # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def stop_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def stop_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -378,7 +362,7 @@ def stop_async(resource_group_name, automation_account_name, runbook_name, custo options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -405,22 +389,20 @@ def stop_async(resource_group_name, automation_account_name, runbook_name, custo # # Suspend the test job. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def suspend(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - response = suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def suspend(automation_account_name, runbook_name, custom_headers = nil) + response = suspend_async(automation_account_name, runbook_name, custom_headers).value! nil end # # Suspend the test job. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -428,14 +410,13 @@ def suspend(resource_group_name, automation_account_name, runbook_name, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def suspend_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) - suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value! + def suspend_with_http_info(automation_account_name, runbook_name, custom_headers = nil) + suspend_async(automation_account_name, runbook_name, custom_headers).value! end # # Suspend the test job. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -443,9 +424,8 @@ def suspend_with_http_info(resource_group_name, automation_account_name, runbook # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def suspend_async(resource_group_name, automation_account_name, runbook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def suspend_async(automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'runbook_name is nil' if runbook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -463,7 +443,7 @@ def suspend_async(resource_group_name, automation_account_name, runbook_name, cu options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb index 2740bbea8b..4c8bdcdc5c 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb @@ -62,7 +62,6 @@ def list_by_automation_account_with_http_info(resource_group_name, automation_ac # def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb index e65dfced58..9624731c75 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb @@ -24,7 +24,6 @@ def initialize(client) # # Create a variable. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied @@ -34,15 +33,14 @@ def initialize(client) # # @return [Variable] operation results. # - def create_or_update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, variable_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, variable_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create a variable. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied @@ -52,14 +50,13 @@ def create_or_update(resource_group_name, automation_account_name, variable_name # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, variable_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, variable_name, parameters, custom_headers).value! end # # Create a variable. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied @@ -69,9 +66,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, variable_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, variable_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'variable_name is nil' if variable_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -98,7 +94,7 @@ def create_or_update_async(resource_group_name, automation_account_name, variabl options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -146,7 +142,6 @@ def create_or_update_async(resource_group_name, automation_account_name, variabl # # Update a variable. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableUpdateParameters] The parameters supplied to the @@ -156,15 +151,14 @@ def create_or_update_async(resource_group_name, automation_account_name, variabl # # @return [Variable] operation results. # - def update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value! + def update(automation_account_name, variable_name, parameters, custom_headers = nil) + response = update_async(automation_account_name, variable_name, parameters, custom_headers).value! response.body unless response.nil? end # # Update a variable. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableUpdateParameters] The parameters supplied to the @@ -174,14 +168,13 @@ def update(resource_group_name, automation_account_name, variable_name, paramete # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, variable_name, parameters, custom_headers = nil) + update_async(automation_account_name, variable_name, parameters, custom_headers).value! end # # Update a variable. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableUpdateParameters] The parameters supplied to the @@ -191,9 +184,8 @@ def update_with_http_info(resource_group_name, automation_account_name, variable # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, variable_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, variable_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'variable_name is nil' if variable_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -220,7 +212,7 @@ def update_async(resource_group_name, automation_account_name, variable_name, pa options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -258,22 +250,20 @@ def update_async(resource_group_name, automation_account_name, variable_name, pa # # Delete the variable. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The name of variable. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, variable_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, variable_name, custom_headers).value! + def delete(automation_account_name, variable_name, custom_headers = nil) + response = delete_async(automation_account_name, variable_name, custom_headers).value! nil end # # Delete the variable. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The name of variable. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -281,14 +271,13 @@ def delete(resource_group_name, automation_account_name, variable_name, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, variable_name, custom_headers).value! + def delete_with_http_info(automation_account_name, variable_name, custom_headers = nil) + delete_async(automation_account_name, variable_name, custom_headers).value! end # # Delete the variable. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The name of variable. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -296,9 +285,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, variable # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, variable_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, variable_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'variable_name is nil' if variable_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -316,7 +304,7 @@ def delete_async(resource_group_name, automation_account_name, variable_name, cu options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -343,7 +331,6 @@ def delete_async(resource_group_name, automation_account_name, variable_name, cu # # Retrieve the variable identified by variable name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The name of variable. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -351,15 +338,14 @@ def delete_async(resource_group_name, automation_account_name, variable_name, cu # # @return [Variable] operation results. # - def get(resource_group_name, automation_account_name, variable_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, variable_name, custom_headers).value! + def get(automation_account_name, variable_name, custom_headers = nil) + response = get_async(automation_account_name, variable_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the variable identified by variable name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The name of variable. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -367,14 +353,13 @@ def get(resource_group_name, automation_account_name, variable_name, custom_head # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, variable_name, custom_headers).value! + def get_with_http_info(automation_account_name, variable_name, custom_headers = nil) + get_async(automation_account_name, variable_name, custom_headers).value! end # # Retrieve the variable identified by variable name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The name of variable. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -382,9 +367,8 @@ def get_with_http_info(resource_group_name, automation_account_name, variable_na # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, variable_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, variable_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'variable_name is nil' if variable_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -402,7 +386,7 @@ def get_async(resource_group_name, automation_account_name, variable_name, custo options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -439,45 +423,41 @@ def get_async(resource_group_name, automation_account_name, variable_name, custo # # Retrieve a list of variables. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers) + def list_by_automation_account(automation_account_name, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers) first_page.get_all_items end # # Retrieve a list of variables. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, custom_headers = nil) + list_by_automation_account_async(automation_account_name, custom_headers).value! end # # Retrieve a list of variables. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -494,7 +474,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -618,7 +598,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of variables. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. @@ -626,8 +605,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [VariableListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/version.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/version.rb new file mode 100644 index 0000000000..d8f23eb710 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/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::Automation::Mgmt::V2015_10_31 + VERSION = '0.15.2' +end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb index bdb21f6ade..a69c4bcc45 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb @@ -24,45 +24,41 @@ def initialize(client) # # Generates a Uri for use in creating a webhook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [String] operation results. # - def generate_uri(resource_group_name, automation_account_name, custom_headers = nil) - response = generate_uri_async(resource_group_name, automation_account_name, custom_headers).value! + def generate_uri(automation_account_name, custom_headers = nil) + response = generate_uri_async(automation_account_name, custom_headers).value! response.body unless response.nil? end # # Generates a Uri for use in creating a webhook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def generate_uri_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) - generate_uri_async(resource_group_name, automation_account_name, custom_headers).value! + def generate_uri_with_http_info(automation_account_name, custom_headers = nil) + generate_uri_async(automation_account_name, custom_headers).value! end # # Generates a Uri for use in creating a webhook. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def generate_uri_async(resource_group_name, automation_account_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def generate_uri_async(automation_account_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -79,7 +75,7 @@ def generate_uri_async(resource_group_name, automation_account_name, custom_head options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -101,7 +97,6 @@ def generate_uri_async(resource_group_name, automation_account_name, custom_head begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) result_mapper = { - client_side_validation: true, required: false, serialized_name: 'parsed_response', type: { @@ -123,22 +118,20 @@ def generate_uri_async(resource_group_name, automation_account_name, custom_head # # Delete the webhook by name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) - response = delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value! + def delete(automation_account_name, webhook_name, custom_headers = nil) + response = delete_async(automation_account_name, webhook_name, custom_headers).value! nil end # # Delete the webhook by name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -146,14 +139,13 @@ def delete(resource_group_name, automation_account_name, webhook_name, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) - delete_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value! + def delete_with_http_info(automation_account_name, webhook_name, custom_headers = nil) + delete_async(automation_account_name, webhook_name, custom_headers).value! end # # Delete the webhook by name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -161,9 +153,8 @@ def delete_with_http_info(resource_group_name, automation_account_name, webhook_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, webhook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(automation_account_name, webhook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'webhook_name is nil' if webhook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -181,7 +172,7 @@ def delete_async(resource_group_name, automation_account_name, webhook_name, cus options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -208,7 +199,6 @@ def delete_async(resource_group_name, automation_account_name, webhook_name, cus # # Retrieve the webhook identified by webhook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -216,15 +206,14 @@ def delete_async(resource_group_name, automation_account_name, webhook_name, cus # # @return [Webhook] operation results. # - def get(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) - response = get_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value! + def get(automation_account_name, webhook_name, custom_headers = nil) + response = get_async(automation_account_name, webhook_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the webhook identified by webhook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -232,14 +221,13 @@ def get(resource_group_name, automation_account_name, webhook_name, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(resource_group_name, automation_account_name, webhook_name, custom_headers = nil) - get_async(resource_group_name, automation_account_name, webhook_name, custom_headers).value! + def get_with_http_info(automation_account_name, webhook_name, custom_headers = nil) + get_async(automation_account_name, webhook_name, custom_headers).value! end # # Retrieve the webhook identified by webhook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -247,9 +235,8 @@ def get_with_http_info(resource_group_name, automation_account_name, webhook_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, webhook_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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(automation_account_name, webhook_name, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'webhook_name is nil' if webhook_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? @@ -267,7 +254,7 @@ def get_async(resource_group_name, automation_account_name, webhook_name, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -304,7 +291,6 @@ def get_async(resource_group_name, automation_account_name, webhook_name, custom # # Create the webhook identified by webhook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookCreateOrUpdateParameters] The create or update @@ -314,15 +300,14 @@ def get_async(resource_group_name, automation_account_name, webhook_name, custom # # @return [Webhook] operation results. # - def create_or_update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) - response = create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value! + def create_or_update(automation_account_name, webhook_name, parameters, custom_headers = nil) + response = create_or_update_async(automation_account_name, webhook_name, parameters, custom_headers).value! response.body unless response.nil? end # # Create the webhook identified by webhook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookCreateOrUpdateParameters] The create or update @@ -332,14 +317,13 @@ def create_or_update(resource_group_name, automation_account_name, webhook_name, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) - create_or_update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value! + def create_or_update_with_http_info(automation_account_name, webhook_name, parameters, custom_headers = nil) + create_or_update_async(automation_account_name, webhook_name, parameters, custom_headers).value! end # # Create the webhook identified by webhook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookCreateOrUpdateParameters] The create or update @@ -349,9 +333,8 @@ def create_or_update_with_http_info(resource_group_name, automation_account_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def create_or_update_async(resource_group_name, automation_account_name, webhook_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(automation_account_name, webhook_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'webhook_name is nil' if webhook_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -378,7 +361,7 @@ def create_or_update_async(resource_group_name, automation_account_name, webhook options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -426,7 +409,6 @@ def create_or_update_async(resource_group_name, automation_account_name, webhook # # Update the webhook identified by webhook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookUpdateParameters] The update parameters for @@ -436,15 +418,14 @@ def create_or_update_async(resource_group_name, automation_account_name, webhook # # @return [Webhook] operation results. # - def update(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) - response = update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value! + def update(automation_account_name, webhook_name, parameters, custom_headers = nil) + response = update_async(automation_account_name, webhook_name, parameters, custom_headers).value! response.body unless response.nil? end # # Update the webhook identified by webhook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookUpdateParameters] The update parameters for @@ -454,14 +435,13 @@ def update(resource_group_name, automation_account_name, webhook_name, parameter # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers = nil) - update_async(resource_group_name, automation_account_name, webhook_name, parameters, custom_headers).value! + def update_with_http_info(automation_account_name, webhook_name, parameters, custom_headers = nil) + update_async(automation_account_name, webhook_name, parameters, custom_headers).value! end # # Update the webhook identified by webhook name. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookUpdateParameters] The update parameters for @@ -471,9 +451,8 @@ def update_with_http_info(resource_group_name, automation_account_name, webhook_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, webhook_name, 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 - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(automation_account_name, webhook_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, 'webhook_name is nil' if webhook_name.nil? fail ArgumentError, 'parameters is nil' if parameters.nil? @@ -500,7 +479,7 @@ def update_async(resource_group_name, automation_account_name, webhook_name, par options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -538,7 +517,6 @@ def update_async(resource_group_name, automation_account_name, webhook_name, par # # Retrieve a list of webhooks. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -546,15 +524,14 @@ def update_async(resource_group_name, automation_account_name, webhook_name, par # # @return [Array] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers) + def list_by_automation_account(automation_account_name, filter = nil, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(automation_account_name, filter, custom_headers) first_page.get_all_items end # # Retrieve a list of webhooks. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -562,14 +539,13 @@ def list_by_automation_account(resource_group_name, automation_account_name, fil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_with_http_info(automation_account_name, filter = nil, custom_headers = nil) + list_by_automation_account_async(automation_account_name, filter, custom_headers).value! end # # Retrieve a list of webhooks. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param [Hash{String => String}] A hash of custom headers that will be added @@ -577,9 +553,8 @@ def list_by_automation_account_with_http_info(resource_group_name, automation_ac # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? - fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(automation_account_name, filter = nil, custom_headers = nil) + fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? @@ -596,7 +571,7 @@ def list_by_automation_account_async(resource_group_name, automation_account_nam options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -720,7 +695,6 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # # Retrieve a list of webhooks. # - # @param resource_group_name [String] The resource group name. # @param automation_account_name [String] The automation account name. # @param filter [String] The filter to apply on the operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that @@ -729,8 +703,8 @@ def list_by_automation_account_next_async(next_page_link, custom_headers = nil) # @return [WebhookListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value! + def list_by_automation_account_as_lazy(automation_account_name, filter = nil, custom_headers = nil) + response = list_by_automation_account_async(automation_account_name, filter, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link|