diff --git a/azure_sdk/lib/azure_sdk.rb b/azure_sdk/lib/azure_sdk.rb index 4de13c3d8b..3d3eabaa94 100644 --- a/azure_sdk/lib/azure_sdk.rb +++ b/azure_sdk/lib/azure_sdk.rb @@ -2,5 +2,5 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. -require 'latest/latest_profile_client' require 'v2017_03_09/v2017_03_09_profile_client' +require 'latest/latest_profile_client' diff --git a/azure_sdk/lib/latest/modules/automation_profile_module.rb b/azure_sdk/lib/latest/modules/automation_profile_module.rb index 9aa7f7b23a..ee7a62c84f 100644 --- a/azure_sdk/lib/latest/modules/automation_profile_module.rb +++ b/azure_sdk/lib/latest/modules/automation_profile_module.rb @@ -11,11 +11,13 @@ module Mgmt Operations = Azure::Automation::Mgmt::V2015_10_31::Operations StatisticsOperations = Azure::Automation::Mgmt::V2015_10_31::StatisticsOperations Usages = Azure::Automation::Mgmt::V2015_10_31::Usages + Keys = Azure::Automation::Mgmt::V2015_10_31::Keys CertificateOperations = Azure::Automation::Mgmt::V2015_10_31::CertificateOperations ConnectionOperations = Azure::Automation::Mgmt::V2015_10_31::ConnectionOperations ConnectionTypeOperations = Azure::Automation::Mgmt::V2015_10_31::ConnectionTypeOperations CredentialOperations = Azure::Automation::Mgmt::V2015_10_31::CredentialOperations DscCompilationJobOperations = Azure::Automation::Mgmt::V2015_10_31::DscCompilationJobOperations + DscCompilationJobStream = Azure::Automation::Mgmt::V2015_10_31::DscCompilationJobStream DscConfigurationOperations = Azure::Automation::Mgmt::V2015_10_31::DscConfigurationOperations AgentRegistrationInformation = Azure::Automation::Mgmt::V2015_10_31::AgentRegistrationInformation DscNodeOperations = Azure::Automation::Mgmt::V2015_10_31::DscNodeOperations @@ -25,6 +27,7 @@ module Mgmt JobOperations = Azure::Automation::Mgmt::V2015_10_31::JobOperations JobStreamOperations = Azure::Automation::Mgmt::V2015_10_31::JobStreamOperations JobScheduleOperations = Azure::Automation::Mgmt::V2015_10_31::JobScheduleOperations + LinkedWorkspaceOperations = Azure::Automation::Mgmt::V2015_10_31::LinkedWorkspaceOperations ActivityOperations = Azure::Automation::Mgmt::V2015_10_31::ActivityOperations ModuleModelOperations = Azure::Automation::Mgmt::V2015_10_31::ModuleModelOperations ObjectDataTypes = Azure::Automation::Mgmt::V2015_10_31::ObjectDataTypes @@ -32,125 +35,136 @@ module Mgmt RunbookDraftOperations = Azure::Automation::Mgmt::V2015_10_31::RunbookDraftOperations RunbookOperations = Azure::Automation::Mgmt::V2015_10_31::RunbookOperations TestJobStreams = Azure::Automation::Mgmt::V2015_10_31::TestJobStreams - TestJobs = Azure::Automation::Mgmt::V2015_10_31::TestJobs + TestJobOperations = Azure::Automation::Mgmt::V2015_10_31::TestJobOperations ScheduleOperations = Azure::Automation::Mgmt::V2015_10_31::ScheduleOperations VariableOperations = Azure::Automation::Mgmt::V2015_10_31::VariableOperations WebhookOperations = Azure::Automation::Mgmt::V2015_10_31::WebhookOperations module Models + AgentRegistration = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + ErrorResponse = Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + AgentRegistrationRegenerateKeyParameter = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter + KeyListResult = Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult DscCompilationJobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters - DscCompilationJob = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob - UsageCounterName = Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName + Usage = Azure::Automation::Mgmt::V2015_10_31::Models::Usage DscCompilationJobListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobListResult - UsageListResult = Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult + Statistics = Azure::Automation::Mgmt::V2015_10_31::Models::Statistics DscConfigurationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationListResult - StatisticsListResult = Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult + RunbookAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookAssociationProperty DscConfigurationCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters - ContentHash = Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash - DscMetaConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration - RunbookDraft = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft - DscNodeConfigurationCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters - ModuleErrorInfo = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo - DscNodeConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration - DscNodeExtensionHandlerAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + AgentRegistrationKeys = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeys + Key = Azure::Automation::Mgmt::V2015_10_31::Models::Key + DscConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationAssociationProperty + UsageCounterName = Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName DscNodeConfigurationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationListResult - DscNodeConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty - ContentSource = Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource - WebhookListResult = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult + UsageListResult = Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult + DscNodeConfigurationCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters + StatisticsListResult = Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult DscNodeListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult - Sku = Azure::Automation::Mgmt::V2015_10_31::Models::Sku + TypeFieldListResult = Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult + RunbookParameter = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter + TypeField = Azure::Automation::Mgmt::V2015_10_31::Models::TypeField + ContentLink = Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink + VariableCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters + WebhookUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters + DscConfigurationUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationUpdateParameters + WebhookListResult = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult + DscMetaConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration + DscConfigurationParameter = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationParameter + DscNodeConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty + VariableUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters + DscNodeExtensionHandlerAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + VariableListResult = Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult DscNodeUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters - AutomationAccountListResult = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult + OperationDisplay = Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay DscReportError = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportError - Operation = Azure::Automation::Mgmt::V2015_10_31::Models::Operation + OperationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult DscReportResourceNavigation = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResourceNavigation - AutomationAccountCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters + AutomationAccountUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters DscReportResource = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResource - Certificate = Azure::Automation::Mgmt::V2015_10_31::Models::Certificate - DscNodeReport = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport CertificateUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters + DscNodeReport = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport + ConnectionListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionListResult DscNodeReportListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReportListResult - ConnectionTypeAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty + ConnectionCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters HybridRunbookWorker = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorker - ConnectionListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionListResult + ConnectionType = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType RunAsCredentialAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::RunAsCredentialAssociationProperty - ConnectionCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters + ConnectionTypeCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters HybridRunbookWorkerGroup = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroup - ConnectionType = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType + CredentialUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters HybridRunbookWorkerGroupsListResult = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupsListResult - ConnectionTypeCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters + ActivityParameter = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter HybridRunbookWorkerGroupUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupUpdateParameters - CredentialListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialListResult - RunbookAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookAssociationProperty - CredentialCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters + ActivityOutputType = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType Job = Azure::Automation::Mgmt::V2015_10_31::Models::Job - ActivityParameterSet = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet + ActivityListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult JobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::JobCreateParameters - Activity = Azure::Automation::Mgmt::V2015_10_31::Models::Activity + AdvancedSchedule = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule JobListResult = Azure::Automation::Mgmt::V2015_10_31::Models::JobListResult - AdvancedScheduleMonthlyOccurrence = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence ScheduleAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleAssociationProperty - AgentRegistrationKeys = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeys + Resource = Azure::Automation::Mgmt::V2015_10_31::Models::Resource JobScheduleCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleCreateParameters - AgentRegistrationRegenerateKeyParameter = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter + RunbookDraft = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft JobSchedule = Azure::Automation::Mgmt::V2015_10_31::Models::JobSchedule - ErrorResponse = Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + ContentSource = Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource JobScheduleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleListResult - Statistics = Azure::Automation::Mgmt::V2015_10_31::Models::Statistics + Sku = Azure::Automation::Mgmt::V2015_10_31::Models::Sku JobStream = Azure::Automation::Mgmt::V2015_10_31::Models::JobStream - ContentLink = Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink + Operation = Azure::Automation::Mgmt::V2015_10_31::Models::Operation JobStreamListResult = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult - Webhook = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook - DscConfigurationParameter = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationParameter + CertificateListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult + LinkedWorkspace = Azure::Automation::Mgmt::V2015_10_31::Models::LinkedWorkspace + ConnectionUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters ModuleCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleCreateOrUpdateParameters - WebhookUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters + ConnectionTypeListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeListResult ModuleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleListResult - OperationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult + CredentialCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters ModuleUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters - CertificateListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult + Activity = Azure::Automation::Mgmt::V2015_10_31::Models::Activity RunbookDraftUndoEditResult = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraftUndoEditResult - Connection = Azure::Automation::Mgmt::V2015_10_31::Models::Connection + JobProvisioningStateProperty = Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningStateProperty RunbookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters - FieldDefinition = Azure::Automation::Mgmt::V2015_10_31::Models::FieldDefinition + ContentHash = Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash RunbookCreateOrUpdateDraftProperties = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties - Credential = Azure::Automation::Mgmt::V2015_10_31::Models::Credential + WebhookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters RunbookCreateOrUpdateDraftParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftParameters - ActivityParameter = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter + AutomationAccountCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters RunbookUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters - ActivityListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult + FieldDefinition = Azure::Automation::Mgmt::V2015_10_31::Models::FieldDefinition RunbookListResult = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookListResult - AgentRegistration = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + ActivityParameterSet = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet ScheduleCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters - Usage = Azure::Automation::Mgmt::V2015_10_31::Models::Usage + ConnectionTypeAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty Schedule = Azure::Automation::Mgmt::V2015_10_31::Models::Schedule - WebhookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters - Resource = Azure::Automation::Mgmt::V2015_10_31::Models::Resource + AutomationAccountListResult = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult ScheduleUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters - AutomationAccountUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters + CredentialListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialListResult ScheduleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleListResult - ConnectionUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters + ModuleErrorInfo = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo SubResource = Azure::Automation::Mgmt::V2015_10_31::Models::SubResource - CredentialUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters + AdvancedScheduleMonthlyOccurrence = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence TestJobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters - AdvancedSchedule = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule - TestJob = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob - RunbookParameter = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter - TypeField = Azure::Automation::Mgmt::V2015_10_31::Models::TypeField CertificateCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters - TypeFieldListResult = Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult - ActivityOutputType = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType - VariableCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters - OperationDisplay = Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay + TestJob = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob + ProxyResource = Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource + Webhook = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook Variable = Azure::Automation::Mgmt::V2015_10_31::Models::Variable - DscConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationAssociationProperty - VariableListResult = Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult - ConnectionTypeListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeListResult - VariableUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters + DscCompilationJob = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob + Credential = Azure::Automation::Mgmt::V2015_10_31::Models::Credential + Connection = Azure::Automation::Mgmt::V2015_10_31::Models::Connection + Certificate = Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + TrackedResource = Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource Runbook = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook ModuleModel = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel - DscNode = Azure::Automation::Mgmt::V2015_10_31::Models::DscNode DscConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration AutomationAccount = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccount + DscNode = Azure::Automation::Mgmt::V2015_10_31::Models::DscNode + DscNodeConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration + AutomationKeyName = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName + AutomationKeyPermissions = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyPermissions + JobProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState + JobStatus = Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus RunbookTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum RunbookState = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookState RunbookProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookProvisioningState @@ -162,14 +176,14 @@ module Models AutomationAccountState = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountState ScheduleDay = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay AgentRegistrationKeyName = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName - JobStatus = Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus + GroupTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::GroupTypeEnum JobStreamType = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamType HttpStatusCode = Azure::Automation::Mgmt::V2015_10_31::Models::HttpStatusCode ScheduleFrequency = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleFrequency end class AutomationManagementClass - attr_reader :automation_account_operations, :operations, :statistics_operations, :usages, :certificate_operations, :connection_operations, :connection_type_operations, :credential_operations, :dsc_compilation_job_operations, :dsc_configuration_operations, :agent_registration_information, :dsc_node_operations, :node_reports, :dsc_node_configuration_operations, :hybrid_runbook_worker_group_operations, :job_operations, :job_stream_operations, :job_schedule_operations, :activity_operations, :module_model_operations, :object_data_types, :fields, :runbook_draft_operations, :runbook_operations, :test_job_streams, :test_jobs, :schedule_operations, :variable_operations, :webhook_operations, :configurable, :base_url, :options, :model_classes + attr_reader :automation_account_operations, :operations, :statistics_operations, :usages, :keys, :certificate_operations, :connection_operations, :connection_type_operations, :credential_operations, :dsc_compilation_job_operations, :dsc_compilation_job_stream, :dsc_configuration_operations, :agent_registration_information, :dsc_node_operations, :node_reports, :dsc_node_configuration_operations, :hybrid_runbook_worker_group_operations, :job_operations, :job_stream_operations, :job_schedule_operations, :linked_workspace_operations, :activity_operations, :module_model_operations, :object_data_types, :fields, :runbook_draft_operations, :runbook_operations, :test_job_streams, :test_job_operations, :schedule_operations, :variable_operations, :webhook_operations, :configurable, :base_url, :options, :model_classes def initialize(configurable, base_url=nil, options=nil) @configurable, @base_url, @options = configurable, base_url, options @@ -183,11 +197,13 @@ def initialize(configurable, base_url=nil, options=nil) @operations = @client_0.operations @statistics_operations = @client_0.statistics_operations @usages = @client_0.usages + @keys = @client_0.keys @certificate_operations = @client_0.certificate_operations @connection_operations = @client_0.connection_operations @connection_type_operations = @client_0.connection_type_operations @credential_operations = @client_0.credential_operations @dsc_compilation_job_operations = @client_0.dsc_compilation_job_operations + @dsc_compilation_job_stream = @client_0.dsc_compilation_job_stream @dsc_configuration_operations = @client_0.dsc_configuration_operations @agent_registration_information = @client_0.agent_registration_information @dsc_node_operations = @client_0.dsc_node_operations @@ -197,6 +213,7 @@ def initialize(configurable, base_url=nil, options=nil) @job_operations = @client_0.job_operations @job_stream_operations = @client_0.job_stream_operations @job_schedule_operations = @client_0.job_schedule_operations + @linked_workspace_operations = @client_0.linked_workspace_operations @activity_operations = @client_0.activity_operations @module_model_operations = @client_0.module_model_operations @object_data_types = @client_0.object_data_types @@ -204,7 +221,7 @@ def initialize(configurable, base_url=nil, options=nil) @runbook_draft_operations = @client_0.runbook_draft_operations @runbook_operations = @client_0.runbook_operations @test_job_streams = @client_0.test_job_streams - @test_jobs = @client_0.test_jobs + @test_job_operations = @client_0.test_job_operations @schedule_operations = @client_0.schedule_operations @variable_operations = @client_0.variable_operations @webhook_operations = @client_0.webhook_operations @@ -226,329 +243,347 @@ def method_missing(method, *args) end class ModelClasses + def agent_registration + Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + end + def error_response + Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + end + def agent_registration_regenerate_key_parameter + Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter + end + def key_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult + end def dsc_compilation_job_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters end - def dsc_compilation_job - Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob - end - def usage_counter_name - Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName + def usage + Azure::Automation::Mgmt::V2015_10_31::Models::Usage end def dsc_compilation_job_list_result Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobListResult end - def usage_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult + def statistics + Azure::Automation::Mgmt::V2015_10_31::Models::Statistics end def dsc_configuration_list_result Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationListResult end - def statistics_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult + def runbook_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookAssociationProperty end def dsc_configuration_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters end - def content_hash - Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash + def agent_registration_keys + Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeys end - def dsc_meta_configuration - Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration + def key + Azure::Automation::Mgmt::V2015_10_31::Models::Key end - def runbook_draft - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft + def dsc_configuration_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationAssociationProperty + end + def usage_counter_name + Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName + end + def dsc_node_configuration_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationListResult + end + def usage_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult end def dsc_node_configuration_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters end - def module_error_info - Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo + def statistics_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult end - def dsc_node_configuration - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration + def dsc_node_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult end - def dsc_node_extension_handler_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + def type_field_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult end - def dsc_node_configuration_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationListResult + def runbook_parameter + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter end - def dsc_node_configuration_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty + def type_field + Azure::Automation::Mgmt::V2015_10_31::Models::TypeField end - def content_source - Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource + def content_link + Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink + end + def variable_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters + end + def webhook_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters + end + def dsc_configuration_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationUpdateParameters end def webhook_list_result Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult end - def dsc_node_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult + def dsc_meta_configuration + Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration end - def sku - Azure::Automation::Mgmt::V2015_10_31::Models::Sku + def dsc_configuration_parameter + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationParameter + end + def dsc_node_configuration_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty + end + def variable_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters + end + def dsc_node_extension_handler_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + end + def variable_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult end def dsc_node_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters end - def automation_account_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult + def operation_display + Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay end def dsc_report_error Azure::Automation::Mgmt::V2015_10_31::Models::DscReportError end - def operation - Azure::Automation::Mgmt::V2015_10_31::Models::Operation + def operation_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult end def dsc_report_resource_navigation Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResourceNavigation end - def automation_account_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters + def automation_account_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters end def dsc_report_resource Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResource end - def certificate - Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + def certificate_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters end def dsc_node_report Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport end - def certificate_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters + def connection_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionListResult end def dsc_node_report_list_result Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReportListResult end - def connection_type_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty + def connection_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters end def hybrid_runbook_worker Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorker end - def connection_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionListResult + def connection_type + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType end def run_as_credential_association_property Azure::Automation::Mgmt::V2015_10_31::Models::RunAsCredentialAssociationProperty end - def connection_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters + def connection_type_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters end def hybrid_runbook_worker_group Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroup end - def connection_type - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType + def credential_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters end def hybrid_runbook_worker_groups_list_result Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupsListResult end - def connection_type_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters + def activity_parameter + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter end def hybrid_runbook_worker_group_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupUpdateParameters end - def credential_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::CredentialListResult - end - def runbook_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookAssociationProperty - end - def credential_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters + def activity_output_type + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType end def job Azure::Automation::Mgmt::V2015_10_31::Models::Job end - def activity_parameter_set - Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet + def activity_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult end def job_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::JobCreateParameters end - def activity - Azure::Automation::Mgmt::V2015_10_31::Models::Activity + def advanced_schedule + Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule end def job_list_result Azure::Automation::Mgmt::V2015_10_31::Models::JobListResult end - def advanced_schedule_monthly_occurrence - Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence - end def schedule_association_property Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleAssociationProperty end - def agent_registration_keys - Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeys + def resource + Azure::Automation::Mgmt::V2015_10_31::Models::Resource end def job_schedule_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleCreateParameters end - def agent_registration_regenerate_key_parameter - Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter + def runbook_draft + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft end def job_schedule Azure::Automation::Mgmt::V2015_10_31::Models::JobSchedule end - def error_response - Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + def content_source + Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource end def job_schedule_list_result Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleListResult end - def statistics - Azure::Automation::Mgmt::V2015_10_31::Models::Statistics + def sku + Azure::Automation::Mgmt::V2015_10_31::Models::Sku end def job_stream Azure::Automation::Mgmt::V2015_10_31::Models::JobStream end - def content_link - Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink + def operation + Azure::Automation::Mgmt::V2015_10_31::Models::Operation end def job_stream_list_result Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult end - def webhook - Azure::Automation::Mgmt::V2015_10_31::Models::Webhook + def certificate_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult end - def dsc_configuration_parameter - Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationParameter + def linked_workspace + Azure::Automation::Mgmt::V2015_10_31::Models::LinkedWorkspace + end + def connection_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters end def module_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ModuleCreateOrUpdateParameters end - def webhook_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters + def connection_type_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeListResult end def module_list_result Azure::Automation::Mgmt::V2015_10_31::Models::ModuleListResult end - def operation_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult + def credential_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters end def module_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters end - def certificate_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult + def activity + Azure::Automation::Mgmt::V2015_10_31::Models::Activity end def runbook_draft_undo_edit_result Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraftUndoEditResult end - def connection - Azure::Automation::Mgmt::V2015_10_31::Models::Connection + def job_provisioning_state_property + Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningStateProperty end def runbook_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters end - def field_definition - Azure::Automation::Mgmt::V2015_10_31::Models::FieldDefinition + def content_hash + Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash end def runbook_create_or_update_draft_properties Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties end - def credential - Azure::Automation::Mgmt::V2015_10_31::Models::Credential + def webhook_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters end def runbook_create_or_update_draft_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftParameters end - def activity_parameter - Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter + def automation_account_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters end def runbook_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters end - def activity_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult + def field_definition + Azure::Automation::Mgmt::V2015_10_31::Models::FieldDefinition end def runbook_list_result Azure::Automation::Mgmt::V2015_10_31::Models::RunbookListResult end - def agent_registration - Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + def activity_parameter_set + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet end def schedule_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters end - def usage - Azure::Automation::Mgmt::V2015_10_31::Models::Usage + def connection_type_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty end def schedule Azure::Automation::Mgmt::V2015_10_31::Models::Schedule end - def webhook_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters - end - def resource - Azure::Automation::Mgmt::V2015_10_31::Models::Resource + def automation_account_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult end def schedule_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters end - def automation_account_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters + def credential_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::CredentialListResult end def schedule_list_result Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleListResult end - def connection_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters + def module_error_info + Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo end def sub_resource Azure::Automation::Mgmt::V2015_10_31::Models::SubResource end - def credential_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters + def advanced_schedule_monthly_occurrence + Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence end def test_job_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters end - def advanced_schedule - Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule - end - def test_job - Azure::Automation::Mgmt::V2015_10_31::Models::TestJob - end - def runbook_parameter - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter - end - def type_field - Azure::Automation::Mgmt::V2015_10_31::Models::TypeField - end def certificate_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters end - def type_field_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult + def test_job + Azure::Automation::Mgmt::V2015_10_31::Models::TestJob end - def activity_output_type - Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType + def proxy_resource + Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource end - def variable_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters - end - def operation_display - Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay + def webhook + Azure::Automation::Mgmt::V2015_10_31::Models::Webhook end def variable Azure::Automation::Mgmt::V2015_10_31::Models::Variable end - def dsc_configuration_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationAssociationProperty + def dsc_compilation_job + Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob end - def variable_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult + def credential + Azure::Automation::Mgmt::V2015_10_31::Models::Credential end - def connection_type_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeListResult + def connection + Azure::Automation::Mgmt::V2015_10_31::Models::Connection end - def variable_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters + def certificate + Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + end + def tracked_resource + Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource end def runbook Azure::Automation::Mgmt::V2015_10_31::Models::Runbook @@ -556,15 +591,30 @@ def runbook def module_model Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel end - def dsc_node - Azure::Automation::Mgmt::V2015_10_31::Models::DscNode - end def dsc_configuration Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration end def automation_account Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccount end + def dsc_node + Azure::Automation::Mgmt::V2015_10_31::Models::DscNode + end + def dsc_node_configuration + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration + end + def automation_key_name + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName + end + def automation_key_permissions + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyPermissions + end + def job_provisioning_state + Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState + end + def job_status + Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus + end def runbook_type_enum Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum end @@ -598,8 +648,8 @@ def schedule_day def agent_registration_key_name Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName end - def job_status - Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus + def group_type_enum + Azure::Automation::Mgmt::V2015_10_31::Models::GroupTypeEnum end def job_stream_type Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamType 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 119409a4ab..d932dc69d3 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 @@ -24,11 +24,13 @@ module Azure::Automation::Mgmt::V2015_10_31 autoload :Operations, '2015-10-31/generated/azure_mgmt_automation/operations.rb' autoload :StatisticsOperations, '2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb' autoload :Usages, '2015-10-31/generated/azure_mgmt_automation/usages.rb' + autoload :Keys, '2015-10-31/generated/azure_mgmt_automation/keys.rb' autoload :CertificateOperations, '2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb' autoload :ConnectionOperations, '2015-10-31/generated/azure_mgmt_automation/connection_operations.rb' autoload :ConnectionTypeOperations, '2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb' autoload :CredentialOperations, '2015-10-31/generated/azure_mgmt_automation/credential_operations.rb' autoload :DscCompilationJobOperations, '2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb' + autoload :DscCompilationJobStream, '2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb' autoload :DscConfigurationOperations, '2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb' autoload :AgentRegistrationInformation, '2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb' autoload :DscNodeOperations, '2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb' @@ -38,6 +40,7 @@ module Azure::Automation::Mgmt::V2015_10_31 autoload :JobOperations, '2015-10-31/generated/azure_mgmt_automation/job_operations.rb' autoload :JobStreamOperations, '2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb' autoload :JobScheduleOperations, '2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb' + autoload :LinkedWorkspaceOperations, '2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb' autoload :ActivityOperations, '2015-10-31/generated/azure_mgmt_automation/activity_operations.rb' autoload :ModuleModelOperations, '2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb' autoload :ObjectDataTypes, '2015-10-31/generated/azure_mgmt_automation/object_data_types.rb' @@ -45,126 +48,137 @@ module Azure::Automation::Mgmt::V2015_10_31 autoload :RunbookDraftOperations, '2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb' autoload :RunbookOperations, '2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb' autoload :TestJobStreams, '2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb' - autoload :TestJobs, '2015-10-31/generated/azure_mgmt_automation/test_jobs.rb' + autoload :TestJobOperations, '2015-10-31/generated/azure_mgmt_automation/test_job_operations.rb' autoload :ScheduleOperations, '2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb' autoload :VariableOperations, '2015-10-31/generated/azure_mgmt_automation/variable_operations.rb' autoload :WebhookOperations, '2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb' autoload :AutomationClient, '2015-10-31/generated/azure_mgmt_automation/automation_client.rb' module Models + autoload :AgentRegistration, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb' + autoload :ErrorResponse, '2015-10-31/generated/azure_mgmt_automation/models/error_response.rb' + autoload :AgentRegistrationRegenerateKeyParameter, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb' + autoload :KeyListResult, '2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb' 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 :UsageCounterName, '2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.rb' + autoload :Usage, '2015-10-31/generated/azure_mgmt_automation/models/usage.rb' autoload :DscCompilationJobListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb' - autoload :UsageListResult, '2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb' + autoload :Statistics, '2015-10-31/generated/azure_mgmt_automation/models/statistics.rb' autoload :DscConfigurationListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb' - autoload :StatisticsListResult, '2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb' + autoload :RunbookAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/runbook_association_property.rb' autoload :DscConfigurationCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.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 :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 :ModuleErrorInfo, '2015-10-31/generated/azure_mgmt_automation/models/module_error_info.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 :AgentRegistrationKeys, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb' + autoload :Key, '2015-10-31/generated/azure_mgmt_automation/models/key.rb' + autoload :DscConfigurationAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb' + autoload :UsageCounterName, '2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.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 :ContentSource, '2015-10-31/generated/azure_mgmt_automation/models/content_source.rb' - autoload :WebhookListResult, '2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb' + autoload :UsageListResult, '2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb' + autoload :DscNodeConfigurationCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb' + autoload :StatisticsListResult, '2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb' autoload :DscNodeListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb' - autoload :Sku, '2015-10-31/generated/azure_mgmt_automation/models/sku.rb' + autoload :TypeFieldListResult, '2015-10-31/generated/azure_mgmt_automation/models/type_field_list_result.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 :ContentLink, '2015-10-31/generated/azure_mgmt_automation/models/content_link.rb' + autoload :VariableCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb' + autoload :WebhookUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb' + autoload :DscConfigurationUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb' + autoload :WebhookListResult, '2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb' + autoload :DscMetaConfiguration, '2015-10-31/generated/azure_mgmt_automation/models/dsc_meta_configuration.rb' + autoload :DscConfigurationParameter, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb' + autoload :DscNodeConfigurationAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb' + autoload :VariableUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb' + autoload :DscNodeExtensionHandlerAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb' + autoload :VariableListResult, '2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb' autoload :DscNodeUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb' - autoload :AutomationAccountListResult, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb' + autoload :OperationDisplay, '2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb' autoload :DscReportError, '2015-10-31/generated/azure_mgmt_automation/models/dsc_report_error.rb' - autoload :Operation, '2015-10-31/generated/azure_mgmt_automation/models/operation.rb' + autoload :OperationListResult, '2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb' autoload :DscReportResourceNavigation, '2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb' - autoload :AutomationAccountCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb' + autoload :AutomationAccountUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb' autoload :DscReportResource, '2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource.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 :CertificateUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb' + autoload :DscNodeReport, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report.rb' + autoload :ConnectionListResult, '2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb' autoload :DscNodeReportListResult, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb' - autoload :ConnectionTypeAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb' + autoload :ConnectionCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb' autoload :HybridRunbookWorker, '2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb' - autoload :ConnectionListResult, '2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb' + autoload :ConnectionType, '2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb' autoload :RunAsCredentialAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/run_as_credential_association_property.rb' - autoload :ConnectionCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb' + autoload :ConnectionTypeCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb' autoload :HybridRunbookWorkerGroup, '2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb' - autoload :ConnectionType, '2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb' + autoload :CredentialUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb' autoload :HybridRunbookWorkerGroupsListResult, '2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb' - autoload :ConnectionTypeCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb' + autoload :ActivityParameter, '2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb' autoload :HybridRunbookWorkerGroupUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_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 :CredentialCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb' + autoload :ActivityOutputType, '2015-10-31/generated/azure_mgmt_automation/models/activity_output_type.rb' autoload :Job, '2015-10-31/generated/azure_mgmt_automation/models/job.rb' - autoload :ActivityParameterSet, '2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb' + autoload :ActivityListResult, '2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb' autoload :JobCreateParameters, '2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb' - autoload :Activity, '2015-10-31/generated/azure_mgmt_automation/models/activity.rb' + autoload :AdvancedSchedule, '2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule.rb' autoload :JobListResult, '2015-10-31/generated/azure_mgmt_automation/models/job_list_result.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 :AgentRegistrationKeys, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb' + autoload :Resource, '2015-10-31/generated/azure_mgmt_automation/models/resource.rb' autoload :JobScheduleCreateParameters, '2015-10-31/generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb' - autoload :AgentRegistrationRegenerateKeyParameter, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb' + autoload :RunbookDraft, '2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb' autoload :JobSchedule, '2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb' - autoload :ErrorResponse, '2015-10-31/generated/azure_mgmt_automation/models/error_response.rb' + autoload :ContentSource, '2015-10-31/generated/azure_mgmt_automation/models/content_source.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 :Sku, '2015-10-31/generated/azure_mgmt_automation/models/sku.rb' autoload :JobStream, '2015-10-31/generated/azure_mgmt_automation/models/job_stream.rb' - autoload :ContentLink, '2015-10-31/generated/azure_mgmt_automation/models/content_link.rb' + autoload :Operation, '2015-10-31/generated/azure_mgmt_automation/models/operation.rb' autoload :JobStreamListResult, '2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.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 :CertificateListResult, '2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb' + autoload :LinkedWorkspace, '2015-10-31/generated/azure_mgmt_automation/models/linked_workspace.rb' + autoload :ConnectionUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb' autoload :ModuleCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb' - autoload :WebhookUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb' + autoload :ConnectionTypeListResult, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb' autoload :ModuleListResult, '2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb' - autoload :OperationListResult, '2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb' + autoload :CredentialCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb' autoload :ModuleUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/module_update_parameters.rb' - autoload :CertificateListResult, '2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb' + autoload :Activity, '2015-10-31/generated/azure_mgmt_automation/models/activity.rb' autoload :RunbookDraftUndoEditResult, '2015-10-31/generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb' - autoload :Connection, '2015-10-31/generated/azure_mgmt_automation/models/connection.rb' + autoload :JobProvisioningStateProperty, '2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state_property.rb' autoload :RunbookCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb' - autoload :FieldDefinition, '2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb' + autoload :ContentHash, '2015-10-31/generated/azure_mgmt_automation/models/content_hash.rb' autoload :RunbookCreateOrUpdateDraftProperties, '2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb' - autoload :Credential, '2015-10-31/generated/azure_mgmt_automation/models/credential.rb' + autoload :WebhookCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb' autoload :RunbookCreateOrUpdateDraftParameters, '2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb' - autoload :ActivityParameter, '2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb' + autoload :AutomationAccountCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb' autoload :RunbookUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/runbook_update_parameters.rb' - autoload :ActivityListResult, '2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb' + autoload :FieldDefinition, '2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb' autoload :RunbookListResult, '2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb' - autoload :AgentRegistration, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb' + autoload :ActivityParameterSet, '2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb' autoload :ScheduleCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb' - autoload :Usage, '2015-10-31/generated/azure_mgmt_automation/models/usage.rb' + autoload :ConnectionTypeAssociationProperty, '2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb' autoload :Schedule, '2015-10-31/generated/azure_mgmt_automation/models/schedule.rb' - autoload :WebhookCreateOrUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb' - autoload :Resource, '2015-10-31/generated/azure_mgmt_automation/models/resource.rb' + autoload :AutomationAccountListResult, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb' autoload :ScheduleUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb' - autoload :AutomationAccountUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb' + autoload :CredentialListResult, '2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb' autoload :ScheduleListResult, '2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb' - autoload :ConnectionUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb' + autoload :ModuleErrorInfo, '2015-10-31/generated/azure_mgmt_automation/models/module_error_info.rb' autoload :SubResource, '2015-10-31/generated/azure_mgmt_automation/models/sub_resource.rb' - autoload :CredentialUpdateParameters, '2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb' + autoload :AdvancedScheduleMonthlyOccurrence, '2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb' autoload :TestJobCreateParameters, '2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.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 :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 :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 :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 :OperationDisplay, '2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb' + autoload :TestJob, '2015-10-31/generated/azure_mgmt_automation/models/test_job.rb' + autoload :ProxyResource, '2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb' + autoload :Webhook, '2015-10-31/generated/azure_mgmt_automation/models/webhook.rb' autoload :Variable, '2015-10-31/generated/azure_mgmt_automation/models/variable.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 :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 :DscCompilationJob, '2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb' + autoload :Credential, '2015-10-31/generated/azure_mgmt_automation/models/credential.rb' + autoload :Connection, '2015-10-31/generated/azure_mgmt_automation/models/connection.rb' + autoload :Certificate, '2015-10-31/generated/azure_mgmt_automation/models/certificate.rb' + autoload :TrackedResource, '2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.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' - autoload :DscNode, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb' autoload :DscConfiguration, '2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb' autoload :AutomationAccount, '2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb' + autoload :DscNode, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb' + autoload :DscNodeConfiguration, '2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb' + autoload :AutomationKeyName, '2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb' + autoload :AutomationKeyPermissions, '2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb' + autoload :JobProvisioningState, '2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb' + autoload :JobStatus, '2015-10-31/generated/azure_mgmt_automation/models/job_status.rb' autoload :RunbookTypeEnum, '2015-10-31/generated/azure_mgmt_automation/models/runbook_type_enum.rb' autoload :RunbookState, '2015-10-31/generated/azure_mgmt_automation/models/runbook_state.rb' autoload :RunbookProvisioningState, '2015-10-31/generated/azure_mgmt_automation/models/runbook_provisioning_state.rb' @@ -176,7 +190,7 @@ module Models autoload :AutomationAccountState, '2015-10-31/generated/azure_mgmt_automation/models/automation_account_state.rb' autoload :ScheduleDay, '2015-10-31/generated/azure_mgmt_automation/models/schedule_day.rb' autoload :AgentRegistrationKeyName, '2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb' - autoload :JobStatus, '2015-10-31/generated/azure_mgmt_automation/models/job_status.rb' + autoload :GroupTypeEnum, '2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb' autoload :JobStreamType, '2015-10-31/generated/azure_mgmt_automation/models/job_stream_type.rb' autoload :HttpStatusCode, '2015-10-31/generated/azure_mgmt_automation/models/http_status_code.rb' autoload :ScheduleFrequency, '2015-10-31/generated/azure_mgmt_automation/models/schedule_frequency.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 51f9c7d9bc..93d0e0d883 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,6 +25,7 @@ def initialize(client) # Retrieve the activity in the module identified by module name and activity # name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -33,8 +34,8 @@ def initialize(client) # # @return [Activity] operation results. # - def get(automation_account_name, module_name, activity_name, custom_headers:nil) - response = get_async(automation_account_name, module_name, activity_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end @@ -42,6 +43,7 @@ def get(automation_account_name, module_name, activity_name, custom_headers:nil) # Retrieve the activity in the module identified by module name and activity # name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -50,14 +52,15 @@ def get(automation_account_name, module_name, activity_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve the activity in the module identified by module name and activity # name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -66,9 +69,8 @@ def get_with_http_info(automation_account_name, module_name, activity_name, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -77,7 +79,6 @@ def get_async(automation_account_name, module_name, activity_name, custom_header request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -88,7 +89,7 @@ def get_async(automation_account_name, module_name, activity_name, custom_header options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'activityName' => activity_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -125,6 +126,7 @@ def get_async(automation_account_name, module_name, activity_name, custom_header # # Retrieve a list of activities in the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -132,14 +134,15 @@ def get_async(automation_account_name, module_name, activity_name, custom_header # # @return [Array] operation results. # - 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:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of activities in the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -147,13 +150,14 @@ def list_by_module(automation_account_name, module_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve a list of activities in the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -161,9 +165,8 @@ def list_by_module_with_http_info(automation_account_name, module_name, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -171,7 +174,6 @@ def list_by_module_async(automation_account_name, module_name, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -182,7 +184,7 @@ def list_by_module_async(automation_account_name, module_name, custom_headers:ni options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -226,8 +228,8 @@ def list_by_module_async(automation_account_name, module_name, custom_headers:ni # # @return [ActivityListResult] operation results. # - def list_by_module_next(next_page_link, custom_headers:nil) - response = list_by_module_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_module_next(next_page_link, custom_headers = nil) + response = list_by_module_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -241,8 +243,8 @@ def list_by_module_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_module_next_with_http_info(next_page_link, custom_headers:nil) - list_by_module_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_module_next_with_http_info(next_page_link, custom_headers = nil) + list_by_module_next_async(next_page_link, custom_headers).value! end # @@ -255,12 +257,11 @@ def list_by_module_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_module_next_async(next_page_link, custom_headers:nil) + def list_by_module_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,6 +308,7 @@ 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] Name of an Azure Resource group. # @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 @@ -315,12 +317,12 @@ 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(automation_account_name, module_name, custom_headers:nil) - response = list_by_module_async(automation_account_name, module_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_module_next_async(next_page_link, custom_headers:custom_headers) + list_by_module_next_async(next_page_link, custom_headers) end page end 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 7b04696944..f118e4e6ce 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,49 +24,50 @@ def initialize(client) # # Retrieve the automation agent registration information. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - response = get_async(automation_account_name, custom_headers:custom_headers).value! + def get(resource_group_name, automation_account_name, custom_headers = nil) + response = get_async(resource_group_name, automation_account_name, custom_headers).value! response.body unless response.nil? end # # Retrieve the automation agent registration information. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - get_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the automation agent registration information. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -77,7 +78,7 @@ def get_async(automation_account_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -114,6 +115,7 @@ def get_async(automation_account_name, custom_headers:nil) # # Regenerate a primary or secondary agent registration key # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the # agent registration key to be regenerated @@ -122,14 +124,15 @@ def get_async(automation_account_name, custom_headers:nil) # # @return [AgentRegistration] operation results. # - def regenerate_key(automation_account_name, parameters, custom_headers:nil) - response = regenerate_key_async(automation_account_name, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Regenerate a primary or secondary agent registration key # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the # agent registration key to be regenerated @@ -138,13 +141,14 @@ def regenerate_key(automation_account_name, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def regenerate_key_with_http_info(automation_account_name, parameters, custom_headers:nil) - regenerate_key_async(automation_account_name, parameters, custom_headers:custom_headers).value! + 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! end # # Regenerate a primary or secondary agent registration key # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param parameters [AgentRegistrationRegenerateKeyParameter] The name of the # agent registration key to be regenerated @@ -153,9 +157,8 @@ def regenerate_key_with_http_info(automation_account_name, parameters, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -163,12 +166,13 @@ def regenerate_key_async(automation_account_name, parameters, custom_headers:nil request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -180,7 +184,7 @@ def regenerate_key_async(automation_account_name, parameters, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 58ff1bcaef..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 @@ -33,8 +33,8 @@ def initialize(client) # # @return [AutomationAccount] operation results. # - def update(resource_group_name, automation_account_name, parameters, custom_headers:nil) - response = update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! + def update(resource_group_name, automation_account_name, parameters, custom_headers = nil) + response = update_async(resource_group_name, automation_account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -50,8 +50,8 @@ def update(resource_group_name, automation_account_name, parameters, custom_head # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil) - update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! + def update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers = nil) + update_async(resource_group_name, automation_account_name, parameters, custom_headers).value! end # @@ -66,9 +66,8 @@ def update_with_http_info(resource_group_name, automation_account_name, paramete # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def update_async(resource_group_name, automation_account_name, parameters, custom_headers:nil) + 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? @@ -76,12 +75,13 @@ def update_async(resource_group_name, automation_account_name, parameters, custo request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -141,8 +141,8 @@ def update_async(resource_group_name, automation_account_name, parameters, custo # # @return [AutomationAccount] operation results. # - def create_or_update(resource_group_name, automation_account_name, parameters, custom_headers:nil) - response = create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! + def create_or_update(resource_group_name, automation_account_name, parameters, custom_headers = nil) + response = create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers).value! response.body unless response.nil? end @@ -159,8 +159,8 @@ def create_or_update(resource_group_name, automation_account_name, parameters, c # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_or_update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers:nil) - create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers:custom_headers).value! + def create_or_update_with_http_info(resource_group_name, automation_account_name, parameters, custom_headers = nil) + create_or_update_async(resource_group_name, automation_account_name, parameters, custom_headers).value! end # @@ -176,9 +176,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, parameters, custom_headers:nil) + 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? @@ -186,12 +185,13 @@ def create_or_update_async(resource_group_name, automation_account_name, paramet request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -257,8 +257,8 @@ def create_or_update_async(resource_group_name, automation_account_name, paramet # will be added to the HTTP request. # # - def delete(resource_group_name, automation_account_name, custom_headers:nil) - response = delete_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! + def delete(resource_group_name, automation_account_name, custom_headers = nil) + response = delete_async(resource_group_name, automation_account_name, custom_headers).value! nil end @@ -272,8 +272,8 @@ def delete(resource_group_name, automation_account_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(resource_group_name, automation_account_name, custom_headers:nil) - delete_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! + def delete_with_http_info(resource_group_name, automation_account_name, custom_headers = nil) + delete_async(resource_group_name, automation_account_name, custom_headers).value! end # @@ -286,16 +286,14 @@ def delete_with_http_info(resource_group_name, automation_account_name, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def delete_async(resource_group_name, automation_account_name, custom_headers:nil) + 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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -340,8 +338,8 @@ def delete_async(resource_group_name, automation_account_name, custom_headers:ni # # @return [AutomationAccount] operation results. # - def get(resource_group_name, automation_account_name, custom_headers:nil) - response = get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! + def get(resource_group_name, automation_account_name, custom_headers = nil) + response = get_async(resource_group_name, automation_account_name, custom_headers).value! response.body unless response.nil? end @@ -355,8 +353,8 @@ def get(resource_group_name, automation_account_name, custom_headers:nil) # # @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:custom_headers).value! + 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! end # @@ -369,16 +367,14 @@ def get_with_http_info(resource_group_name, automation_account_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def get_async(resource_group_name, automation_account_name, custom_headers:nil) + 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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -432,8 +428,8 @@ def get_async(resource_group_name, automation_account_name, custom_headers:nil) # # @return [Array] operation results. # - def list_by_resource_group(resource_group_name, custom_headers:nil) - first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers) + def list_by_resource_group(resource_group_name, custom_headers = nil) + first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers) first_page.get_all_items end @@ -446,8 +442,8 @@ def list_by_resource_group(resource_group_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil) - list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil) + list_by_resource_group_async(resource_group_name, custom_headers).value! end # @@ -459,15 +455,13 @@ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_async(resource_group_name, custom_headers:nil) + def list_by_resource_group_async(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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -522,8 +516,8 @@ def list_by_resource_group_async(resource_group_name, custom_headers:nil) # # @return [Array] operation results. # - def list(custom_headers:nil) - first_page = list_as_lazy(custom_headers:custom_headers) + def list(custom_headers = nil) + first_page = list_as_lazy(custom_headers) first_page.get_all_items end @@ -537,8 +531,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -551,13 +545,12 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -612,8 +605,8 @@ def list_async(custom_headers:nil) # # @return [AutomationAccountListResult] operation results. # - def list_by_resource_group_next(next_page_link, custom_headers:nil) - response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_resource_group_next(next_page_link, custom_headers = nil) + response = list_by_resource_group_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -627,8 +620,8 @@ def list_by_resource_group_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil) - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil) + list_by_resource_group_next_async(next_page_link, custom_headers).value! end # @@ -641,12 +634,11 @@ def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_resource_group_next_async(next_page_link, custom_headers:nil) + def list_by_resource_group_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -702,8 +694,8 @@ def list_by_resource_group_next_async(next_page_link, custom_headers:nil) # # @return [AutomationAccountListResult] operation results. # - def list_next(next_page_link, custom_headers:nil) - response = list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next(next_page_link, custom_headers = nil) + response = list_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -719,8 +711,8 @@ def list_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_next_with_http_info(next_page_link, custom_headers:nil) - list_next_async(next_page_link, custom_headers:custom_headers).value! + def list_next_with_http_info(next_page_link, custom_headers = nil) + list_next_async(next_page_link, custom_headers).value! end # @@ -735,12 +727,11 @@ def list_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_next_async(next_page_link, custom_headers:nil) + def list_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -794,12 +785,12 @@ def list_next_async(next_page_link, custom_headers:nil) # @return [AutomationAccountListResult] which provide lazy access to pages of # the response. # - def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) - response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value! + def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil) + response = list_by_resource_group_async(resource_group_name, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers) + list_by_resource_group_next_async(next_page_link, custom_headers) end page end @@ -816,12 +807,12 @@ def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil) # @return [AutomationAccountListResult] which provide lazy access to pages of # the response. # - def list_as_lazy(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list_as_lazy(custom_headers = nil) + response = list_async(custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_next_async(next_page_link, custom_headers:custom_headers) + list_next_async(next_page_link, custom_headers) end page end 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 1b711e8416..1fb49fb531 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,9 +25,6 @@ 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 @@ -51,6 +48,9 @@ class AutomationClient < MsRestAzure::AzureServiceClient # @return [Usages] usages attr_reader :usages + # @return [Keys] keys + attr_reader :keys + # @return [CertificateOperations] certificate_operations attr_reader :certificate_operations @@ -66,6 +66,9 @@ class AutomationClient < MsRestAzure::AzureServiceClient # @return [DscCompilationJobOperations] dsc_compilation_job_operations attr_reader :dsc_compilation_job_operations + # @return [DscCompilationJobStream] dsc_compilation_job_stream + attr_reader :dsc_compilation_job_stream + # @return [DscConfigurationOperations] dsc_configuration_operations attr_reader :dsc_configuration_operations @@ -95,6 +98,9 @@ class AutomationClient < MsRestAzure::AzureServiceClient # @return [JobScheduleOperations] job_schedule_operations attr_reader :job_schedule_operations + # @return [LinkedWorkspaceOperations] linked_workspace_operations + attr_reader :linked_workspace_operations + # @return [ActivityOperations] activity_operations attr_reader :activity_operations @@ -116,8 +122,8 @@ class AutomationClient < MsRestAzure::AzureServiceClient # @return [TestJobStreams] test_job_streams attr_reader :test_job_streams - # @return [TestJobs] test_jobs - attr_reader :test_jobs + # @return [TestJobOperations] test_job_operations + attr_reader :test_job_operations # @return [ScheduleOperations] schedule_operations attr_reader :schedule_operations @@ -145,11 +151,13 @@ def initialize(credentials = nil, base_url = nil, options = nil) @operations = Operations.new(self) @statistics_operations = StatisticsOperations.new(self) @usages = Usages.new(self) + @keys = Keys.new(self) @certificate_operations = CertificateOperations.new(self) @connection_operations = ConnectionOperations.new(self) @connection_type_operations = ConnectionTypeOperations.new(self) @credential_operations = CredentialOperations.new(self) @dsc_compilation_job_operations = DscCompilationJobOperations.new(self) + @dsc_compilation_job_stream = DscCompilationJobStream.new(self) @dsc_configuration_operations = DscConfigurationOperations.new(self) @agent_registration_information = AgentRegistrationInformation.new(self) @dsc_node_operations = DscNodeOperations.new(self) @@ -159,6 +167,7 @@ def initialize(credentials = nil, base_url = nil, options = nil) @job_operations = JobOperations.new(self) @job_stream_operations = JobStreamOperations.new(self) @job_schedule_operations = JobScheduleOperations.new(self) + @linked_workspace_operations = LinkedWorkspaceOperations.new(self) @activity_operations = ActivityOperations.new(self) @module_model_operations = ModuleModelOperations.new(self) @object_data_types = ObjectDataTypes.new(self) @@ -166,7 +175,7 @@ def initialize(credentials = nil, base_url = nil, options = nil) @runbook_draft_operations = RunbookDraftOperations.new(self) @runbook_operations = RunbookOperations.new(self) @test_job_streams = TestJobStreams.new(self) - @test_jobs = TestJobs.new(self) + @test_job_operations = TestJobOperations.new(self) @schedule_operations = ScheduleOperations.new(self) @variable_operations = VariableOperations.new(self) @webhook_operations = WebhookOperations.new(self) @@ -223,9 +232,6 @@ def make_request_async(method, path, options = {}) fail ArgumentError, 'path is nil' if path.nil? request_url = options[:base_url] || @base_url - if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?) - @request_headers['Content-Type'] = options[:headers]['Content-Type'] - end request_headers = @request_headers request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil? @@ -242,7 +248,9 @@ def make_request_async(method, path, options = {}) # def add_telemetry sdk_information = 'azure_mgmt_automation' - sdk_information = "#{sdk_information}/0.16.0" + 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 5dddc31aaa..6db6f8a294 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,20 +24,22 @@ def initialize(client) # # Delete the certificate. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, certificate_name, custom_headers:nil) - response = delete_async(automation_account_name, certificate_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the certificate. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -45,13 +47,14 @@ def delete(automation_account_name, certificate_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, certificate_name, custom_headers:nil) - delete_async(automation_account_name, certificate_name, custom_headers:custom_headers).value! + 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! end # # Delete the certificate. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -59,9 +62,8 @@ def delete_with_http_info(automation_account_name, certificate_name, custom_head # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -69,7 +71,6 @@ def delete_async(automation_account_name, certificate_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -80,7 +81,7 @@ def delete_async(automation_account_name, certificate_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -107,6 +108,7 @@ def delete_async(automation_account_name, certificate_name, custom_headers:nil) # # Retrieve the certificate identified by certificate name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -114,14 +116,15 @@ def delete_async(automation_account_name, certificate_name, custom_headers:nil) # # @return [Certificate] operation results. # - def get(automation_account_name, certificate_name, custom_headers:nil) - response = get_async(automation_account_name, certificate_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the certificate identified by certificate name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -129,13 +132,14 @@ def get(automation_account_name, certificate_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, certificate_name, custom_headers:nil) - get_async(automation_account_name, certificate_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the certificate identified by certificate name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -143,9 +147,8 @@ def get_with_http_info(automation_account_name, certificate_name, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -153,7 +156,6 @@ def get_async(automation_account_name, certificate_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -164,7 +166,7 @@ def get_async(automation_account_name, certificate_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -201,6 +203,7 @@ def get_async(automation_account_name, certificate_name, custom_headers:nil) # # Create a certificate. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the create or # update certificate operation. @@ -211,14 +214,15 @@ def get_async(automation_account_name, certificate_name, custom_headers:nil) # # @return [Certificate] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create a certificate. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the create or # update certificate operation. @@ -229,13 +233,14 @@ def create_or_update(automation_account_name, certificate_name, parameters, cust # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create a certificate. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the create or # update certificate operation. @@ -246,9 +251,8 @@ def create_or_update_with_http_info(automation_account_name, certificate_name, p # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -257,12 +261,13 @@ def create_or_update_async(automation_account_name, certificate_name, parameters request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -274,7 +279,7 @@ def create_or_update_async(automation_account_name, certificate_name, parameters options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -322,6 +327,7 @@ def create_or_update_async(automation_account_name, certificate_name, parameters # # Update a certificate. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the update # certificate operation. @@ -332,14 +338,15 @@ def create_or_update_async(automation_account_name, certificate_name, parameters # # @return [Certificate] operation results. # - def update(automation_account_name, certificate_name, parameters, custom_headers:nil) - response = update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Update a certificate. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the update # certificate operation. @@ -350,13 +357,14 @@ def update(automation_account_name, certificate_name, parameters, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(automation_account_name, certificate_name, parameters, custom_headers:nil) - update_async(automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value! + 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! end # # Update a certificate. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param certificate_name [String] The parameters supplied to the update # certificate operation. @@ -367,9 +375,8 @@ def update_with_http_info(automation_account_name, certificate_name, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -378,12 +385,13 @@ def update_async(automation_account_name, certificate_name, parameters, custom_h request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -395,7 +403,7 @@ def update_async(automation_account_name, certificate_name, parameters, custom_h options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'certificateName' => certificate_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -433,49 +441,50 @@ def update_async(automation_account_name, certificate_name, parameters, custom_h # # Retrieve a list of certificates. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of certificates. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of certificates. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -486,7 +495,7 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -530,8 +539,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [CertificateListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -545,8 +554,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -559,12 +568,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -611,6 +619,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of certificates. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -618,12 +627,12 @@ 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(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 2ce91677df..96e9090df7 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,6 +24,7 @@ def initialize(client) # # Delete the connection. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -31,14 +32,15 @@ def initialize(client) # # @return [Connection] operation results. # - def delete(automation_account_name, connection_name, custom_headers:nil) - response = delete_async(automation_account_name, connection_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Delete the connection. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -46,13 +48,14 @@ def delete(automation_account_name, connection_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, connection_name, custom_headers:nil) - delete_async(automation_account_name, connection_name, custom_headers:custom_headers).value! + 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! end # # Delete the connection. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -60,9 +63,8 @@ def delete_with_http_info(automation_account_name, connection_name, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -70,7 +72,6 @@ def delete_async(automation_account_name, connection_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -81,7 +82,7 @@ def delete_async(automation_account_name, connection_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -118,6 +119,7 @@ def delete_async(automation_account_name, connection_name, custom_headers:nil) # # Retrieve the connection identified by connection name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -125,14 +127,15 @@ def delete_async(automation_account_name, connection_name, custom_headers:nil) # # @return [Connection] operation results. # - def get(automation_account_name, connection_name, custom_headers:nil) - response = get_async(automation_account_name, connection_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the connection identified by connection name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -140,13 +143,14 @@ def get(automation_account_name, connection_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, connection_name, custom_headers:nil) - get_async(automation_account_name, connection_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the connection identified by connection name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -154,9 +158,8 @@ def get_with_http_info(automation_account_name, connection_name, custom_headers: # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -164,7 +167,6 @@ def get_async(automation_account_name, connection_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -175,7 +177,7 @@ def get_async(automation_account_name, connection_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -212,6 +214,7 @@ def get_async(automation_account_name, connection_name, custom_headers:nil) # # Create or update a connection. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the create or # update connection operation. @@ -222,14 +225,15 @@ def get_async(automation_account_name, connection_name, custom_headers:nil) # # @return [Connection] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create or update a connection. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the create or # update connection operation. @@ -240,13 +244,14 @@ def create_or_update(automation_account_name, connection_name, parameters, custo # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create or update a connection. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the create or # update connection operation. @@ -257,9 +262,8 @@ def create_or_update_with_http_info(automation_account_name, connection_name, pa # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -268,12 +272,13 @@ def create_or_update_async(automation_account_name, connection_name, parameters, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -285,7 +290,7 @@ def create_or_update_async(automation_account_name, connection_name, parameters, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -333,6 +338,7 @@ def create_or_update_async(automation_account_name, connection_name, parameters, # # Update a connection. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the update a # connection operation. @@ -343,14 +349,15 @@ def create_or_update_async(automation_account_name, connection_name, parameters, # # @return [Connection] operation results. # - def update(automation_account_name, connection_name, parameters, custom_headers:nil) - response = update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Update a connection. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the update a # connection operation. @@ -361,13 +368,14 @@ def update(automation_account_name, connection_name, parameters, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(automation_account_name, connection_name, parameters, custom_headers:nil) - update_async(automation_account_name, connection_name, parameters, custom_headers:custom_headers).value! + 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! end # # Update a connection. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param connection_name [String] The parameters supplied to the update a # connection operation. @@ -378,9 +386,8 @@ def update_with_http_info(automation_account_name, connection_name, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -389,12 +396,13 @@ def update_async(automation_account_name, connection_name, parameters, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -406,7 +414,7 @@ def update_async(automation_account_name, connection_name, parameters, custom_he options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionName' => connection_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -444,49 +452,50 @@ def update_async(automation_account_name, connection_name, parameters, custom_he # # Retrieve a list of connections. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of connections. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of connections. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -497,7 +506,7 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -541,8 +550,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [ConnectionListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -556,8 +565,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -570,12 +579,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -622,6 +630,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of connections. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -629,12 +638,12 @@ 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(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 7e5d7ec802..f8ad691909 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,20 +24,22 @@ def initialize(client) # # Delete the connectiontype. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, connection_type_name, custom_headers:nil) - response = delete_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the connectiontype. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -45,13 +47,14 @@ def delete(automation_account_name, connection_type_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, connection_type_name, custom_headers:nil) - delete_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value! + 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! end # # Delete the connectiontype. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -59,9 +62,8 @@ def delete_with_http_info(automation_account_name, connection_type_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -69,7 +71,6 @@ def delete_async(automation_account_name, connection_type_name, custom_headers:n request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -80,7 +81,7 @@ def delete_async(automation_account_name, connection_type_name, custom_headers:n options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -107,6 +108,7 @@ def delete_async(automation_account_name, connection_type_name, custom_headers:n # # Retrieve the connectiontype identified by connectiontype name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -114,14 +116,15 @@ def delete_async(automation_account_name, connection_type_name, custom_headers:n # # @return [ConnectionType] operation results. # - def get(automation_account_name, connection_type_name, custom_headers:nil) - response = get_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the connectiontype identified by connectiontype name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -129,13 +132,14 @@ def get(automation_account_name, connection_type_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, connection_type_name, custom_headers:nil) - get_async(automation_account_name, connection_type_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the connectiontype identified by connectiontype name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -143,9 +147,8 @@ def get_with_http_info(automation_account_name, connection_type_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -153,7 +156,6 @@ def get_async(automation_account_name, connection_type_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -164,7 +166,7 @@ def get_async(automation_account_name, connection_type_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -201,6 +203,7 @@ def get_async(automation_account_name, connection_type_name, custom_headers:nil) # # Create a connectiontype. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The parameters supplied to the create or # update connectiontype operation. @@ -211,14 +214,15 @@ def get_async(automation_account_name, connection_type_name, custom_headers:nil) # # @return [ConnectionType] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create a connectiontype. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The parameters supplied to the create or # update connectiontype operation. @@ -229,13 +233,14 @@ def create_or_update(automation_account_name, connection_type_name, parameters, # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create a connectiontype. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param connection_type_name [String] The parameters supplied to the create or # update connectiontype operation. @@ -246,9 +251,8 @@ def create_or_update_with_http_info(automation_account_name, connection_type_nam # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -257,12 +261,13 @@ def create_or_update_async(automation_account_name, connection_type_name, parame request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -274,7 +279,7 @@ def create_or_update_async(automation_account_name, connection_type_name, parame options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'connectionTypeName' => connection_type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -322,49 +327,50 @@ def create_or_update_async(automation_account_name, connection_type_name, parame # # Retrieve a list of connectiontypes. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of connectiontypes. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of connectiontypes. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -375,7 +381,7 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -419,8 +425,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [ConnectionTypeListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -434,8 +440,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -448,12 +454,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -500,6 +505,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of connectiontypes. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -507,12 +513,12 @@ 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(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 8aee79ae32..2bb01297e0 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,20 +24,22 @@ def initialize(client) # # Delete the credential. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, credential_name, custom_headers:nil) - response = delete_async(automation_account_name, credential_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the credential. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -45,13 +47,14 @@ def delete(automation_account_name, credential_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, credential_name, custom_headers:nil) - delete_async(automation_account_name, credential_name, custom_headers:custom_headers).value! + 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! end # # Delete the credential. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -59,9 +62,8 @@ def delete_with_http_info(automation_account_name, credential_name, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -69,7 +71,6 @@ def delete_async(automation_account_name, credential_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -80,7 +81,7 @@ def delete_async(automation_account_name, credential_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -107,6 +108,7 @@ def delete_async(automation_account_name, credential_name, custom_headers:nil) # # Retrieve the credential identified by credential name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -114,14 +116,15 @@ def delete_async(automation_account_name, credential_name, custom_headers:nil) # # @return [Credential] operation results. # - def get(automation_account_name, credential_name, custom_headers:nil) - response = get_async(automation_account_name, credential_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the credential identified by credential name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -129,13 +132,14 @@ def get(automation_account_name, credential_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, credential_name, custom_headers:nil) - get_async(automation_account_name, credential_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the credential identified by credential name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -143,9 +147,8 @@ def get_with_http_info(automation_account_name, credential_name, custom_headers: # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -153,7 +156,6 @@ def get_async(automation_account_name, credential_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -164,7 +166,7 @@ def get_async(automation_account_name, credential_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -201,6 +203,7 @@ def get_async(automation_account_name, credential_name, custom_headers:nil) # # Create a credential. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the create or # update credential operation. @@ -211,14 +214,15 @@ def get_async(automation_account_name, credential_name, custom_headers:nil) # # @return [Credential] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create a credential. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the create or # update credential operation. @@ -229,13 +233,14 @@ def create_or_update(automation_account_name, credential_name, parameters, custo # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create a credential. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the create or # update credential operation. @@ -246,9 +251,8 @@ def create_or_update_with_http_info(automation_account_name, credential_name, pa # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -257,12 +261,13 @@ def create_or_update_async(automation_account_name, credential_name, parameters, request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -274,7 +279,7 @@ def create_or_update_async(automation_account_name, credential_name, parameters, options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -322,6 +327,7 @@ def create_or_update_async(automation_account_name, credential_name, parameters, # # Update a credential. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the Update # credential operation. @@ -332,14 +338,15 @@ def create_or_update_async(automation_account_name, credential_name, parameters, # # @return [Credential] operation results. # - def update(automation_account_name, credential_name, parameters, custom_headers:nil) - response = update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Update a credential. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the Update # credential operation. @@ -350,13 +357,14 @@ def update(automation_account_name, credential_name, parameters, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(automation_account_name, credential_name, parameters, custom_headers:nil) - update_async(automation_account_name, credential_name, parameters, custom_headers:custom_headers).value! + 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! end # # Update a credential. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param credential_name [String] The parameters supplied to the Update # credential operation. @@ -367,9 +375,8 @@ def update_with_http_info(automation_account_name, credential_name, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -378,12 +385,13 @@ def update_async(automation_account_name, credential_name, parameters, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -395,7 +403,7 @@ def update_async(automation_account_name, credential_name, parameters, custom_he options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'credentialName' => credential_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -433,49 +441,50 @@ def update_async(automation_account_name, credential_name, parameters, custom_he # # Retrieve a list of credentials. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of credentials. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of credentials. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -486,7 +495,7 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -530,8 +539,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [CredentialListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -545,8 +554,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -559,12 +568,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -611,6 +619,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of credentials. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -618,12 +627,12 @@ 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(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 88fb96c112..67f223385e 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,6 +24,7 @@ def initialize(client) # # Creates the Dsc compilation job of the configuration. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param compilation_job_id The the DSC configuration Id. # @param parameters [DscCompilationJobCreateParameters] The parameters supplied @@ -33,14 +34,15 @@ def initialize(client) # # @return [DscCompilationJob] operation results. # - def create(automation_account_name, compilation_job_id, parameters, custom_headers:nil) - response = create_async(automation_account_name, compilation_job_id, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Creates the Dsc compilation job of the configuration. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param compilation_job_id The the DSC configuration Id. # @param parameters [DscCompilationJobCreateParameters] The parameters supplied @@ -50,13 +52,14 @@ def create(automation_account_name, compilation_job_id, parameters, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Creates the Dsc compilation job of the configuration. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param compilation_job_id The the DSC configuration Id. # @param parameters [DscCompilationJobCreateParameters] The parameters supplied @@ -66,9 +69,8 @@ def create_with_http_info(automation_account_name, compilation_job_id, parameter # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -77,12 +79,13 @@ def create_async(automation_account_name, compilation_job_id, parameters, custom request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -94,7 +97,7 @@ def create_async(automation_account_name, compilation_job_id, parameters, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -132,6 +135,7 @@ def create_async(automation_account_name, compilation_job_id, parameters, custom # # Retrieve the Dsc configuration compilation job identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -139,14 +143,15 @@ def create_async(automation_account_name, compilation_job_id, parameters, custom # # @return [DscCompilationJob] operation results. # - def get(automation_account_name, compilation_job_id, custom_headers:nil) - response = get_async(automation_account_name, compilation_job_id, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the Dsc configuration compilation job identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -154,13 +159,14 @@ def get(automation_account_name, compilation_job_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, compilation_job_id, custom_headers:nil) - get_async(automation_account_name, compilation_job_id, custom_headers:custom_headers).value! + 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! end # # Retrieve the Dsc configuration compilation job identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -168,9 +174,8 @@ def get_with_http_info(automation_account_name, compilation_job_id, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -178,7 +183,6 @@ def get_async(automation_account_name, compilation_job_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -189,7 +193,7 @@ def get_async(automation_account_name, compilation_job_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'compilationJobId' => compilation_job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -226,6 +230,7 @@ def get_async(automation_account_name, compilation_job_id, custom_headers:nil) # # Retrieve a list of dsc compilation jobs. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -233,14 +238,15 @@ def get_async(automation_account_name, compilation_job_id, custom_headers:nil) # # @return [Array] operation results. # - 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:filter, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of dsc compilation jobs. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -248,13 +254,14 @@ def list_by_automation_account(automation_account_name, filter:nil, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:filter, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of dsc compilation jobs. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -262,16 +269,14 @@ def list_by_automation_account_with_http_info(automation_account_name, filter:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -282,7 +287,7 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -319,6 +324,7 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom # # Retrieve the job stream identified by job stream id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param job_stream_id [String] The job stream id. @@ -327,14 +333,15 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom # # @return [JobStream] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the job stream identified by job stream id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param job_stream_id [String] The job stream id. @@ -343,13 +350,14 @@ def get_stream(automation_account_name, job_id, job_stream_id, custom_headers:ni # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve the job stream identified by job stream id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param job_stream_id [String] The job stream id. @@ -358,9 +366,8 @@ def get_stream_with_http_info(automation_account_name, job_id, job_stream_id, cu # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -369,7 +376,6 @@ def get_stream_async(automation_account_name, job_id, job_stream_id, custom_head request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -380,7 +386,7 @@ def get_stream_async(automation_account_name, job_id, job_stream_id, custom_head options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -424,8 +430,8 @@ def get_stream_async(automation_account_name, job_id, job_stream_id, custom_head # # @return [DscCompilationJobListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -439,8 +445,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -453,12 +459,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -505,6 +510,7 @@ 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] Name of an Azure Resource group. # @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 @@ -513,12 +519,12 @@ 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(automation_account_name, filter:nil, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb new file mode 100644 index 0000000000..7ae5b3de91 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb @@ -0,0 +1,120 @@ +# 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 + # + # Automation Client + # + class DscCompilationJobStream + include MsRestAzure + + # + # Creates and initializes a new instance of the DscCompilationJobStream class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [AutomationClient] reference to the AutomationClient + attr_reader :client + + # + # Retrieve all the job streams for the compilation Job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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. + # + # @return [JobStreamListResult] operation results. + # + def list_by_job(resource_group_name, automation_account_name, job_id, custom_headers = nil) + response = list_by_job_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + response.body unless response.nil? + end + + # + # Retrieve all the job streams for the compilation Job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def list_by_job_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil) + list_by_job_async(resource_group_name, automation_account_name, job_id, custom_headers).value! + end + + # + # Retrieve all the job streams for the compilation Job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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 + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def list_by_job_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, '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? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/' + + request_url = @base_url || @client.base_url + + 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}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_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 23ad5ca404..1b141ea50c 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,20 +24,22 @@ def initialize(client) # # Delete the dsc configuration identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, configuration_name, custom_headers:nil) - response = delete_async(automation_account_name, configuration_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the dsc configuration identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -45,13 +47,14 @@ def delete(automation_account_name, configuration_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, configuration_name, custom_headers:nil) - delete_async(automation_account_name, configuration_name, custom_headers:custom_headers).value! + 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! end # # Delete the dsc configuration identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -59,9 +62,8 @@ def delete_with_http_info(automation_account_name, configuration_name, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -69,7 +71,6 @@ def delete_async(automation_account_name, configuration_name, custom_headers:nil request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -80,7 +81,7 @@ def delete_async(automation_account_name, configuration_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -107,6 +108,7 @@ def delete_async(automation_account_name, configuration_name, custom_headers:nil # # Retrieve the configuration identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -114,14 +116,15 @@ def delete_async(automation_account_name, configuration_name, custom_headers:nil # # @return [DscConfiguration] operation results. # - def get(automation_account_name, configuration_name, custom_headers:nil) - response = get_async(automation_account_name, configuration_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the configuration identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -129,13 +132,14 @@ def get(automation_account_name, configuration_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, configuration_name, custom_headers:nil) - get_async(automation_account_name, configuration_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the configuration identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -143,9 +147,8 @@ def get_with_http_info(automation_account_name, configuration_name, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -153,7 +156,6 @@ def get_async(automation_account_name, configuration_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -164,7 +166,7 @@ def get_async(automation_account_name, configuration_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -201,6 +203,7 @@ def get_async(automation_account_name, configuration_name, custom_headers:nil) # # Create the configuration identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The create or update parameters for # configuration. @@ -211,14 +214,15 @@ def get_async(automation_account_name, configuration_name, custom_headers:nil) # # @return [DscConfiguration] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create the configuration identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The create or update parameters for # configuration. @@ -229,13 +233,14 @@ def create_or_update(automation_account_name, configuration_name, parameters, cu # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create the configuration identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param configuration_name [String] The create or update parameters for # configuration. @@ -246,9 +251,8 @@ def create_or_update_with_http_info(automation_account_name, configuration_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -257,12 +261,13 @@ def create_or_update_async(automation_account_name, configuration_name, paramete request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -274,7 +279,7 @@ def create_or_update_async(automation_account_name, configuration_name, paramete options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -319,24 +324,139 @@ def create_or_update_async(automation_account_name, configuration_name, paramete promise.execute end + # + # Create the configuration identified by configuration name. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @param automation_account_name [String] The automation account name. + # @param configuration_name [String] The create or update parameters for + # configuration. + # @param parameters [DscConfigurationUpdateParameters] The create or update + # parameters for configuration. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [DscConfiguration] operation results. + # + def update(resource_group_name, automation_account_name, configuration_name, parameters = nil, custom_headers = nil) + response = update_async(resource_group_name, 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] Name of an Azure Resource group. + # @param automation_account_name [String] The automation account name. + # @param configuration_name [String] The create or update parameters for + # configuration. + # @param parameters [DscConfigurationUpdateParameters] The create or update + # parameters for configuration. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def update_with_http_info(resource_group_name, automation_account_name, configuration_name, parameters = nil, custom_headers = nil) + update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers).value! + end + + # + # Create the configuration identified by configuration name. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @param automation_account_name [String] The automation account name. + # @param configuration_name [String] The create or update parameters for + # configuration. + # @param parameters [DscConfigurationUpdateParameters] The create or update + # parameters for configuration. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def update_async(resource_group_name, automation_account_name, configuration_name, parameters = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if 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? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationUpdateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}' + + request_url = @base_url || @client.base_url + + 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}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:patch, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + # # Retrieve the configuration script identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. # - # @return [NOT_IMPLEMENTED] operation results. + # @return [String] operation results. # - def get_content(automation_account_name, configuration_name, custom_headers:nil) - response = get_content_async(automation_account_name, configuration_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the configuration script identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -344,13 +464,14 @@ def get_content(automation_account_name, configuration_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(automation_account_name, configuration_name, custom_headers:nil) - get_content_async(automation_account_name, configuration_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the configuration script identified by configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -358,9 +479,8 @@ def get_content_with_http_info(automation_account_name, configuration_name, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -368,7 +488,6 @@ def get_content_async(automation_account_name, configuration_name, custom_header request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -379,7 +498,7 @@ def get_content_async(automation_account_name, configuration_name, custom_header options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -401,11 +520,10 @@ def get_content_async(automation_account_name, configuration_name, custom_header 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: { - name: 'Stream' + name: 'String' } } result.body = @client.deserialize(result_mapper, parsed_response) @@ -423,49 +541,62 @@ def get_content_async(automation_account_name, configuration_name, custom_header # # Retrieve a list of configurations. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. + # @param filter [String] The filter to apply on the operation. + # @param skip [Integer] The number of rows to skip. + # @param top [Integer] The the number of rows to take. + # @param inlinecount [String] Return total rows. # @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(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, skip = nil, top = nil, inlinecount = nil, custom_headers = nil) + first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, skip, top, inlinecount, custom_headers) first_page.get_all_items end # # Retrieve a list of configurations. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. + # @param filter [String] The filter to apply on the operation. + # @param skip [Integer] The number of rows to skip. + # @param top [Integer] The the number of rows to take. + # @param inlinecount [String] Return total rows. # @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(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, skip = nil, top = nil, inlinecount = nil, custom_headers = nil) + list_by_automation_account_async(resource_group_name, automation_account_name, filter, skip, top, inlinecount, custom_headers).value! end # # Retrieve a list of configurations. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. + # @param filter [String] The filter to apply on the operation. + # @param skip [Integer] The number of rows to skip. + # @param top [Integer] The the number of rows to take. + # @param inlinecount [String] Return total rows. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, skip = nil, top = nil, inlinecount = nil, custom_headers = nil) + fail ArgumentError, 'resource_group_name is nil' if 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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -476,8 +607,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + query_params: {'api-version' => @client.api_version,'$filter' => filter,'$skip' => skip,'$top' => top,'$inlinecount' => inlinecount}, headers: request_headers.merge(custom_headers || {}), base_url: request_url } @@ -520,8 +651,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [DscConfigurationListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -535,8 +666,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -549,12 +680,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -601,19 +731,24 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of configurations. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. + # @param filter [String] The filter to apply on the operation. + # @param skip [Integer] The number of rows to skip. + # @param top [Integer] The the number of rows to take. + # @param inlinecount [String] Return total rows. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [DscConfigurationListResult] which provide lazy access to pages of # the response. # - def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, skip = nil, top = nil, inlinecount = nil, custom_headers = nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, skip, top, inlinecount, custom_headers).value! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 395b92e73a..5ac6eeebc0 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,20 +24,22 @@ def initialize(client) # # Delete the Dsc node configurations by node configuration. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, node_configuration_name, custom_headers:nil) - response = delete_async(automation_account_name, node_configuration_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the Dsc node configurations by node configuration. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -45,13 +47,14 @@ def delete(automation_account_name, node_configuration_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, node_configuration_name, custom_headers:nil) - delete_async(automation_account_name, node_configuration_name, custom_headers:custom_headers).value! + 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! end # # Delete the Dsc node configurations by node configuration. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -59,9 +62,8 @@ def delete_with_http_info(automation_account_name, node_configuration_name, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -69,7 +71,6 @@ def delete_async(automation_account_name, node_configuration_name, custom_header request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -80,7 +81,7 @@ def delete_async(automation_account_name, node_configuration_name, custom_header options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -107,6 +108,7 @@ def delete_async(automation_account_name, node_configuration_name, custom_header # # Retrieve the Dsc node configurations by node configuration. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -114,14 +116,15 @@ def delete_async(automation_account_name, node_configuration_name, custom_header # # @return [DscNodeConfiguration] operation results. # - def get(automation_account_name, node_configuration_name, custom_headers:nil) - response = get_async(automation_account_name, node_configuration_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the Dsc node configurations by node configuration. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -129,13 +132,14 @@ def get(automation_account_name, node_configuration_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, node_configuration_name, custom_headers:nil) - get_async(automation_account_name, node_configuration_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the Dsc node configurations by node configuration. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -143,9 +147,8 @@ def get_with_http_info(automation_account_name, node_configuration_name, custom_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -153,7 +156,6 @@ def get_async(automation_account_name, node_configuration_name, custom_headers:n request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -164,7 +166,7 @@ def get_async(automation_account_name, node_configuration_name, custom_headers:n options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -201,6 +203,7 @@ def get_async(automation_account_name, node_configuration_name, custom_headers:n # # Create the node configuration identified by node configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The create or update parameters for # configuration. @@ -211,14 +214,15 @@ def get_async(automation_account_name, node_configuration_name, custom_headers:n # # @return [DscNodeConfiguration] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create the node configuration identified by node configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The create or update parameters for # configuration. @@ -229,13 +233,14 @@ def create_or_update(automation_account_name, node_configuration_name, parameter # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create the node configuration identified by node configuration name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param node_configuration_name [String] The create or update parameters for # configuration. @@ -246,9 +251,8 @@ def create_or_update_with_http_info(automation_account_name, node_configuration_ # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -257,12 +261,13 @@ def create_or_update_async(automation_account_name, node_configuration_name, par request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -274,7 +279,7 @@ def create_or_update_async(automation_account_name, node_configuration_name, par options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeConfigurationName' => node_configuration_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -286,7 +291,7 @@ def create_or_update_async(automation_account_name, node_configuration_name, par http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 || status_code == 201 + unless status_code == 200 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end @@ -302,16 +307,6 @@ def create_or_update_async(automation_account_name, node_configuration_name, par fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) end end - # Deserialize Response - if status_code == 201 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration.mapper() - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -322,6 +317,7 @@ def create_or_update_async(automation_account_name, node_configuration_name, par # # Retrieve a list of dsc node configurations. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -329,14 +325,15 @@ def create_or_update_async(automation_account_name, node_configuration_name, par # # @return [Array] operation results. # - 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:filter, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of dsc node configurations. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -344,13 +341,14 @@ def list_by_automation_account(automation_account_name, filter:nil, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:filter, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of dsc node configurations. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -358,16 +356,14 @@ def list_by_automation_account_with_http_info(automation_account_name, filter:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -378,7 +374,7 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -422,8 +418,8 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom # # @return [DscNodeConfigurationListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -437,8 +433,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -451,12 +447,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -503,6 +498,7 @@ 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] Name of an Azure Resource group. # @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 @@ -511,12 +507,12 @@ 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(automation_account_name, filter:nil, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 221e9170fe..db60f6d0b7 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,6 +24,7 @@ def initialize(client) # # Delete the dsc node identified by node id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -31,14 +32,15 @@ def initialize(client) # # @return [DscNode] operation results. # - def delete(automation_account_name, node_id, custom_headers:nil) - response = delete_async(automation_account_name, node_id, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Delete the dsc node identified by node id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -46,13 +48,14 @@ def delete(automation_account_name, node_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, node_id, custom_headers:nil) - delete_async(automation_account_name, node_id, custom_headers:custom_headers).value! + 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! end # # Delete the dsc node identified by node id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -60,9 +63,8 @@ def delete_with_http_info(automation_account_name, node_id, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -70,7 +72,6 @@ def delete_async(automation_account_name, node_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -81,7 +82,7 @@ def delete_async(automation_account_name, node_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -118,6 +119,7 @@ def delete_async(automation_account_name, node_id, custom_headers:nil) # # Retrieve the dsc node identified by node id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -125,14 +127,15 @@ def delete_async(automation_account_name, node_id, custom_headers:nil) # # @return [DscNode] operation results. # - def get(automation_account_name, node_id, custom_headers:nil) - response = get_async(automation_account_name, node_id, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the dsc node identified by node id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -140,13 +143,14 @@ def get(automation_account_name, node_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, node_id, custom_headers:nil) - get_async(automation_account_name, node_id, custom_headers:custom_headers).value! + 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! end # # Retrieve the dsc node identified by node id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -154,9 +158,8 @@ def get_with_http_info(automation_account_name, node_id, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -164,7 +167,6 @@ def get_async(automation_account_name, node_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -175,7 +177,7 @@ def get_async(automation_account_name, node_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -212,6 +214,7 @@ def get_async(automation_account_name, node_id, custom_headers:nil) # # Update the dsc node. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -221,14 +224,15 @@ def get_async(automation_account_name, node_id, custom_headers:nil) # # @return [DscNode] operation results. # - def update(automation_account_name, node_id, parameters, custom_headers:nil) - response = update_async(automation_account_name, node_id, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Update the dsc node. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -238,13 +242,14 @@ def update(automation_account_name, node_id, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(automation_account_name, node_id, parameters, custom_headers:nil) - update_async(automation_account_name, node_id, parameters, custom_headers:custom_headers).value! + 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! end # # Update the dsc node. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -254,9 +259,8 @@ def update_with_http_info(automation_account_name, node_id, parameters, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -265,12 +269,13 @@ def update_async(automation_account_name, node_id, parameters, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -282,7 +287,7 @@ def update_async(automation_account_name, node_id, parameters, custom_headers:ni options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -320,6 +325,7 @@ def update_async(automation_account_name, node_id, parameters, custom_headers:ni # # Retrieve a list of dsc nodes. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -327,14 +333,15 @@ def update_async(automation_account_name, node_id, parameters, custom_headers:ni # # @return [Array] operation results. # - 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:filter, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of dsc nodes. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -342,13 +349,14 @@ def list_by_automation_account(automation_account_name, filter:nil, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:filter, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of dsc nodes. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -356,16 +364,14 @@ def list_by_automation_account_with_http_info(automation_account_name, filter:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -376,7 +382,7 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -420,8 +426,8 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom # # @return [DscNodeListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -435,8 +441,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -449,12 +455,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -501,6 +506,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of dsc nodes. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -509,12 +515,12 @@ 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(automation_account_name, filter:nil, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 00fbf40444..310af14dc6 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,6 +24,7 @@ def initialize(client) # # Retrieve a list of fields of a given type identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -32,14 +33,15 @@ def initialize(client) # # @return [TypeFieldListResult] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve a list of fields of a given type identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -48,13 +50,14 @@ def list_by_type(automation_account_name, module_name, type_name, custom_headers # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve a list of fields of a given type identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -63,9 +66,8 @@ def list_by_type_with_http_info(automation_account_name, module_name, type_name, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -74,7 +76,6 @@ def list_by_type_async(automation_account_name, module_name, type_name, custom_h request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -85,7 +86,7 @@ def list_by_type_async(automation_account_name, module_name, type_name, custom_h options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 3b27ae59b2..a20122b846 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,6 +24,7 @@ def initialize(client) # # Delete a hybrid runbook worker group. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] Automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -31,14 +32,15 @@ def initialize(client) # will be added to the HTTP request. # # - 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:custom_headers).value! + 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! nil end # # Delete a hybrid runbook worker group. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] Automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -47,13 +49,14 @@ def delete(automation_account_name, hybrid_runbook_worker_group_name, custom_hea # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Delete a hybrid runbook worker group. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] Automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -62,9 +65,8 @@ def delete_with_http_info(automation_account_name, hybrid_runbook_worker_group_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -72,7 +74,6 @@ def delete_async(automation_account_name, hybrid_runbook_worker_group_name, cust request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -83,7 +84,7 @@ def delete_async(automation_account_name, hybrid_runbook_worker_group_name, cust options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -110,6 +111,7 @@ def delete_async(automation_account_name, hybrid_runbook_worker_group_name, cust # # Retrieve a hybrid runbook worker group. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -118,14 +120,15 @@ def delete_async(automation_account_name, hybrid_runbook_worker_group_name, cust # # @return [HybridRunbookWorkerGroup] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve a hybrid runbook worker group. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -134,13 +137,14 @@ def get(automation_account_name, hybrid_runbook_worker_group_name, custom_header # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve a hybrid runbook worker group. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -149,9 +153,8 @@ def get_with_http_info(automation_account_name, hybrid_runbook_worker_group_name # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -159,7 +162,6 @@ def get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_ request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -170,7 +172,7 @@ def get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_ options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -207,6 +209,7 @@ def get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_ # # Update a hybrid runbook worker group. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -217,14 +220,15 @@ def get_async(automation_account_name, hybrid_runbook_worker_group_name, custom_ # # @return [HybridRunbookWorkerGroup] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Update a hybrid runbook worker group. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -235,13 +239,14 @@ def update(automation_account_name, hybrid_runbook_worker_group_name, parameters # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Update a hybrid runbook worker group. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker # group name @@ -252,9 +257,8 @@ def update_with_http_info(automation_account_name, hybrid_runbook_worker_group_n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -263,12 +267,13 @@ def update_async(automation_account_name, hybrid_runbook_worker_group_name, para request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -280,7 +285,7 @@ def update_async(automation_account_name, hybrid_runbook_worker_group_name, para options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'hybridRunbookWorkerGroupName' => hybrid_runbook_worker_group_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -318,49 +323,53 @@ def update_async(automation_account_name, hybrid_runbook_worker_group_name, para # # Retrieve a list of hybrid runbook worker groups. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of hybrid runbook worker groups. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of hybrid runbook worker groups. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -371,8 +380,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => 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 } @@ -415,8 +424,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [HybridRunbookWorkerGroupsListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -430,8 +439,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -444,12 +453,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -496,19 +504,21 @@ 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] Name of an Azure Resource group. # @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 # will be added to the HTTP request. # # @return [HybridRunbookWorkerGroupsListResult] which provide lazy access to # pages of the response. # - def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 77be4530a5..abce1eff7b 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,6 +24,7 @@ def initialize(client) # # Retrieve the job output identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -31,14 +32,15 @@ def initialize(client) # # @return [NOT_IMPLEMENTED] operation results. # - def get_output(automation_account_name, job_id, custom_headers:nil) - response = get_output_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the job output identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -46,13 +48,14 @@ def get_output(automation_account_name, job_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_output_with_http_info(automation_account_name, job_id, custom_headers:nil) - get_output_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! end # # Retrieve the job output identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -60,9 +63,8 @@ def get_output_with_http_info(automation_account_name, job_id, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -70,7 +72,6 @@ def get_output_async(automation_account_name, job_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -81,7 +82,7 @@ def get_output_async(automation_account_name, job_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -103,7 +104,6 @@ def get_output_async(automation_account_name, job_id, custom_headers:nil) 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: { @@ -125,6 +125,7 @@ def get_output_async(automation_account_name, job_id, custom_headers:nil) # # Retrieve the runbook content of the job identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -132,14 +133,15 @@ def get_output_async(automation_account_name, job_id, custom_headers:nil) # # @return [NOT_IMPLEMENTED] operation results. # - def get_runbook_content(automation_account_name, job_id, custom_headers:nil) - response = get_runbook_content_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the runbook content of the job identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -147,13 +149,14 @@ def get_runbook_content(automation_account_name, job_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve the runbook content of the job identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -161,9 +164,8 @@ def get_runbook_content_with_http_info(automation_account_name, job_id, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -171,7 +173,6 @@ def get_runbook_content_async(automation_account_name, job_id, custom_headers:ni request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -182,7 +183,7 @@ def get_runbook_content_async(automation_account_name, job_id, custom_headers:ni options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -204,7 +205,6 @@ def get_runbook_content_async(automation_account_name, job_id, custom_headers:ni 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: { @@ -226,20 +226,22 @@ def get_runbook_content_async(automation_account_name, job_id, custom_headers:ni # # Suspend the job identified by jobId. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, job_id, custom_headers:nil) - response = suspend_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! nil end # # Suspend the job identified by jobId. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -247,13 +249,14 @@ def suspend(automation_account_name, job_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def suspend_with_http_info(automation_account_name, job_id, custom_headers:nil) - suspend_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! end # # Suspend the job identified by jobId. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -261,9 +264,8 @@ def suspend_with_http_info(automation_account_name, job_id, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -271,7 +273,6 @@ def suspend_async(automation_account_name, job_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -282,7 +283,7 @@ def suspend_async(automation_account_name, job_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -309,20 +310,22 @@ def suspend_async(automation_account_name, job_id, custom_headers:nil) # # Stop the job identified by jobId. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, job_id, custom_headers:nil) - response = stop_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! nil end # # Stop the job identified by jobId. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -330,13 +333,14 @@ def stop(automation_account_name, job_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def stop_with_http_info(automation_account_name, job_id, custom_headers:nil) - stop_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! end # # Stop the job identified by jobId. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -344,9 +348,8 @@ def stop_with_http_info(automation_account_name, job_id, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -354,7 +357,6 @@ def stop_async(automation_account_name, job_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -365,7 +367,7 @@ def stop_async(automation_account_name, job_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -392,6 +394,7 @@ def stop_async(automation_account_name, job_id, custom_headers:nil) # # Retrieve the job identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -399,14 +402,15 @@ def stop_async(automation_account_name, job_id, custom_headers:nil) # # @return [Job] operation results. # - def get(automation_account_name, job_id, custom_headers:nil) - response = get_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the job identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -414,13 +418,14 @@ def get(automation_account_name, job_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, job_id, custom_headers:nil) - get_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! end # # Retrieve the job identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -428,9 +433,8 @@ def get_with_http_info(automation_account_name, job_id, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -438,7 +442,6 @@ def get_async(automation_account_name, job_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -449,7 +452,7 @@ def get_async(automation_account_name, job_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -486,6 +489,7 @@ def get_async(automation_account_name, job_id, custom_headers:nil) # # Create a job of the runbook. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param parameters [JobCreateParameters] The parameters supplied to the create @@ -495,14 +499,15 @@ def get_async(automation_account_name, job_id, custom_headers:nil) # # @return [Job] operation results. # - def create(automation_account_name, job_id, parameters, custom_headers:nil) - response = create_async(automation_account_name, job_id, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Create a job of the runbook. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param parameters [JobCreateParameters] The parameters supplied to the create @@ -512,13 +517,14 @@ def create(automation_account_name, job_id, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def create_with_http_info(automation_account_name, job_id, parameters, custom_headers:nil) - create_async(automation_account_name, job_id, parameters, custom_headers:custom_headers).value! + 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! end # # Create a job of the runbook. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param job_id The job id. # @param parameters [JobCreateParameters] The parameters supplied to the create @@ -528,9 +534,8 @@ def create_with_http_info(automation_account_name, job_id, parameters, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -539,12 +544,13 @@ def create_async(automation_account_name, job_id, parameters, custom_headers:nil request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -556,7 +562,7 @@ def create_async(automation_account_name, job_id, parameters, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -594,6 +600,7 @@ def create_async(automation_account_name, job_id, parameters, custom_headers:nil # # Retrieve a list of jobs. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -601,14 +608,15 @@ def create_async(automation_account_name, job_id, parameters, custom_headers:nil # # @return [Array] operation results. # - 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:filter, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of jobs. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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,13 +624,14 @@ def list_by_automation_account(automation_account_name, filter:nil, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:filter, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of jobs. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -630,16 +639,14 @@ def list_by_automation_account_with_http_info(automation_account_name, filter:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -650,7 +657,7 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -687,20 +694,22 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom # # Resume the job identified by jobId. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, job_id, custom_headers:nil) - response = resume_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! nil end # # Resume the job identified by jobId. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -708,13 +717,14 @@ def resume(automation_account_name, job_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def resume_with_http_info(automation_account_name, job_id, custom_headers:nil) - resume_async(automation_account_name, job_id, custom_headers:custom_headers).value! + 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! end # # Resume the job identified by jobId. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -722,9 +732,8 @@ def resume_with_http_info(automation_account_name, job_id, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -732,7 +741,6 @@ def resume_async(automation_account_name, job_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -743,7 +751,7 @@ def resume_async(automation_account_name, job_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -777,8 +785,8 @@ def resume_async(automation_account_name, job_id, custom_headers:nil) # # @return [JobListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -792,8 +800,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -806,12 +814,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -858,6 +865,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of jobs. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -865,12 +873,12 @@ 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(automation_account_name, filter:nil, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 99fd95cc3e..23464f5a8c 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,20 +24,22 @@ def initialize(client) # # Delete the job schedule identified by job schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, job_schedule_id, custom_headers:nil) - response = delete_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value! + 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! nil end # # Delete the job schedule identified by job schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -45,13 +47,14 @@ def delete(automation_account_name, job_schedule_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, job_schedule_id, custom_headers:nil) - delete_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value! + 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! end # # Delete the job schedule identified by job schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -59,9 +62,8 @@ def delete_with_http_info(automation_account_name, job_schedule_id, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -69,7 +71,6 @@ def delete_async(automation_account_name, job_schedule_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -80,7 +81,7 @@ def delete_async(automation_account_name, job_schedule_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -107,6 +108,7 @@ def delete_async(automation_account_name, job_schedule_id, custom_headers:nil) # # Retrieve the job schedule identified by job schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -114,14 +116,15 @@ def delete_async(automation_account_name, job_schedule_id, custom_headers:nil) # # @return [JobSchedule] operation results. # - def get(automation_account_name, job_schedule_id, custom_headers:nil) - response = get_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the job schedule identified by job schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -129,13 +132,14 @@ def get(automation_account_name, job_schedule_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, job_schedule_id, custom_headers:nil) - get_async(automation_account_name, job_schedule_id, custom_headers:custom_headers).value! + 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! end # # Retrieve the job schedule identified by job schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -143,9 +147,8 @@ def get_with_http_info(automation_account_name, job_schedule_id, custom_headers: # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -153,7 +156,6 @@ def get_async(automation_account_name, job_schedule_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -164,7 +166,7 @@ def get_async(automation_account_name, job_schedule_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -201,6 +203,7 @@ def get_async(automation_account_name, job_schedule_id, custom_headers:nil) # # Create a job schedule. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param parameters [JobScheduleCreateParameters] The parameters supplied to @@ -210,14 +213,15 @@ def get_async(automation_account_name, job_schedule_id, custom_headers:nil) # # @return [JobSchedule] operation results. # - def create(automation_account_name, job_schedule_id, parameters, custom_headers:nil) - response = create_async(automation_account_name, job_schedule_id, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Create a job schedule. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param parameters [JobScheduleCreateParameters] The parameters supplied to @@ -227,13 +231,14 @@ def create(automation_account_name, job_schedule_id, parameters, custom_headers: # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create a job schedule. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param job_schedule_id The job schedule name. # @param parameters [JobScheduleCreateParameters] The parameters supplied to @@ -243,9 +248,8 @@ def create_with_http_info(automation_account_name, job_schedule_id, parameters, # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -254,12 +258,13 @@ def create_async(automation_account_name, job_schedule_id, parameters, custom_he request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleCreateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -271,7 +276,7 @@ def create_async(automation_account_name, job_schedule_id, parameters, custom_he options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobScheduleId' => job_schedule_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -309,49 +314,53 @@ def create_async(automation_account_name, job_schedule_id, parameters, custom_he # # Retrieve a list of job schedules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 # will be added to the HTTP request. # # @return [Array] operation results. # - def list_by_automation_account(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of job schedules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of job schedules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -362,8 +371,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, - query_params: {'api-version' => @client.api_version}, + path_params: {'resourceGroupName' => 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 } @@ -406,8 +415,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [JobScheduleListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -421,8 +430,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -435,12 +444,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -487,19 +495,21 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of job schedules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 # will be added to the HTTP request. # # @return [JobScheduleListResult] which provide lazy access to pages of the # response. # - def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 519901fd0f..4fee4df865 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,6 +24,7 @@ def initialize(client) # # Retrieve the job stream identified by job stream id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -32,14 +33,15 @@ def initialize(client) # # @return [JobStream] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the job stream identified by job stream id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -48,13 +50,14 @@ def get(automation_account_name, job_id, job_stream_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve the job stream identified by job stream id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -63,9 +66,8 @@ def get_with_http_info(automation_account_name, job_id, job_stream_id, custom_he # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -74,7 +76,6 @@ def get_async(automation_account_name, job_id, job_stream_id, custom_headers:nil request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -85,7 +86,7 @@ def get_async(automation_account_name, job_id, job_stream_id, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -122,6 +123,7 @@ def get_async(automation_account_name, job_id, job_stream_id, custom_headers:nil # # Retrieve a list of jobs streams identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -130,14 +132,15 @@ def get_async(automation_account_name, job_id, job_stream_id, custom_headers:nil # # @return [Array] operation results. # - 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:filter, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of jobs streams identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -146,13 +149,14 @@ def list_by_job(automation_account_name, job_id, filter:nil, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:filter, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of jobs streams identified by job id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -161,9 +165,8 @@ def list_by_job_with_http_info(automation_account_name, job_id, filter:nil, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -171,7 +174,6 @@ def list_by_job_async(automation_account_name, job_id, filter:nil, custom_header request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -182,7 +184,7 @@ def list_by_job_async(automation_account_name, job_id, filter:nil, custom_header options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -226,8 +228,8 @@ def list_by_job_async(automation_account_name, job_id, filter:nil, custom_header # # @return [JobStreamListResult] operation results. # - def list_by_job_next(next_page_link, custom_headers:nil) - response = list_by_job_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_job_next(next_page_link, custom_headers = nil) + response = list_by_job_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -241,8 +243,8 @@ def list_by_job_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_job_next_with_http_info(next_page_link, custom_headers:nil) - list_by_job_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_job_next_with_http_info(next_page_link, custom_headers = nil) + list_by_job_next_async(next_page_link, custom_headers).value! end # @@ -255,12 +257,11 @@ def list_by_job_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_job_next_async(next_page_link, custom_headers:nil) + def list_by_job_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,6 +308,7 @@ 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] Name of an Azure Resource group. # @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. @@ -316,12 +318,12 @@ 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(automation_account_name, job_id, filter:nil, custom_headers:nil) - response = list_by_job_async(automation_account_name, job_id, filter:filter, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_job_next_async(next_page_link, custom_headers:custom_headers) + list_by_job_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb new file mode 100644 index 0000000000..830ec4d5ec --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb @@ -0,0 +1,116 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + # + # Automation Client + # + class Keys + include MsRestAzure + + # + # Creates and initializes a new instance of the Keys class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [AutomationClient] reference to the AutomationClient + attr_reader :client + + # + # Retrieve the automation keys for an account. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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 [KeyListResult] operation results. + # + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! + response.body unless response.nil? + end + + # + # Retrieve the automation keys for an account. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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! + end + + # + # Retrieve the automation keys for an account. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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, '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? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'resourceGroupName' => resource_group_name,'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 + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb new file mode 100644 index 0000000000..ca96884f84 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb @@ -0,0 +1,116 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + # + # Automation Client + # + class LinkedWorkspaceOperations + include MsRestAzure + + # + # Creates and initializes a new instance of the LinkedWorkspaceOperations class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [AutomationClient] reference to the AutomationClient + attr_reader :client + + # + # Retrieve the linked workspace for the account id. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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 [LinkedWorkspace] 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! + response.body unless response.nil? + end + + # + # Retrieve the linked workspace for the account id. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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! + end + + # + # Retrieve the linked workspace for the account id. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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, '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? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/linkedWorkspace' + + request_url = @base_url || @client.base_url + + 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}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::LinkedWorkspace.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + end +end diff --git a/management/azure_mgmt_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..6f5706d6d8 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 @@ -17,7 +17,7 @@ class AdvancedScheduleMonthlyOccurrence attr_accessor :occurrence # @return [ScheduleDay] Day of the occurrence. Must be one of monday, - # tuesday, wednesday,thursday, friday, saturday, sunday. Possible values + # tuesday, wednesday, thursday, friday, saturday, sunday. Possible values # include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', # 'Saturday', 'Sunday' attr_accessor :day @@ -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_key_name.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb index 347f7630a3..d247ac91be 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb @@ -9,8 +9,8 @@ module Models # Defines values for AgentRegistrationKeyName # module AgentRegistrationKeyName - Primary = "Primary" - Secondary = "Secondary" + Primary = "primary" + Secondary = "secondary" end end end 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..8fb5607852 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 @@ -13,8 +13,8 @@ class AgentRegistrationRegenerateKeyParameter include MsRestAzure # @return [AgentRegistrationKeyName] Gets or sets the agent registration - # key name - Primary or Secondary. Possible values include: 'Primary', - # 'Secondary' + # key name - primary or secondary. Possible values include: 'primary', + # 'secondary' attr_accessor :key_name # @return [String] Gets or sets the name of the resource. @@ -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..258662f728 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 @@ -8,7 +8,7 @@ module Models # # Definition of the automation account type. # - class AutomationAccount < Resource + class AutomationAccount < TrackedResource include MsRestAzure @@ -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', @@ -75,22 +71,12 @@ def self.mapper() name: 'String' } }, - location: { - client_side_validation: true, - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -99,8 +85,14 @@ def self.mapper() } } }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, 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/automation_key_name.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb new file mode 100644 index 0000000000..fea77defa3 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + module Models + # + # Defines values for AutomationKeyName + # + module AutomationKeyName + Primary = "primary" + Secondary = "secondary" + end + end +end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb new file mode 100644 index 0000000000..837dfbb687 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb @@ -0,0 +1,15 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + module Models + # + # Defines values for AutomationKeyPermissions + # + module AutomationKeyPermissions + Full = "Full" + end + end +end 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 05a3d20835..7ad8c98c93 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 @@ -8,19 +8,10 @@ module Models # # Definition of the certificate. # - class Certificate + class Certificate < ProxyResource include MsRestAzure - # @return [String] Gets the id of the resource. - attr_accessor :id - - # @return [String] Gets the name of the certificate. - attr_accessor :name - - # @return [String] Resource type - attr_accessor :type - # @return [String] Gets the thumbprint of the certificate. attr_accessor :thumbprint @@ -46,7 +37,6 @@ class Certificate # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Certificate', type: { @@ -54,7 +44,6 @@ def self.mapper() class_name: 'Certificate', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -63,7 +52,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -72,7 +60,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -81,7 +68,6 @@ def self.mapper() } }, thumbprint: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.thumbprint', @@ -90,7 +76,6 @@ def self.mapper() } }, expiry_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.expiryTime', @@ -99,7 +84,6 @@ def self.mapper() } }, is_exportable: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.isExportable', @@ -108,7 +92,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -117,7 +100,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -126,7 +108,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 f84125fe7f..99eb87f3c6 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: false, 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 dfe2ce3c0b..87e3e24b0b 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 @@ -8,19 +8,10 @@ module Models # # Definition of the connection. # - class Connection + class Connection < ProxyResource include MsRestAzure - # @return [String] Gets the id of the resource. - attr_accessor :id - - # @return [String] Gets the name of the connection. - attr_accessor :name - - # @return [String] Resource type - attr_accessor :type - # @return [ConnectionTypeAssociationProperty] Gets or sets the # connectionType of the connection. attr_accessor :connection_type @@ -45,7 +36,6 @@ class Connection # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Connection', type: { @@ -53,7 +43,6 @@ def self.mapper() class_name: 'Connection', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -62,7 +51,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -71,7 +59,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -80,7 +67,6 @@ def self.mapper() } }, connection_type: { - client_side_validation: true, required: false, serialized_name: 'properties.connectionType', type: { @@ -89,14 +75,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: { @@ -106,7 +90,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -115,7 +98,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -124,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/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 91940830f2..5bf3bb701f 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 @@ -45,7 +45,6 @@ class ConnectionType # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'ConnectionType', type: { @@ -53,7 +52,6 @@ def self.mapper() class_name: 'ConnectionType', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -62,7 +60,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -71,7 +68,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -80,7 +76,6 @@ def self.mapper() } }, is_global: { - client_side_validation: true, required: false, serialized_name: 'properties.isGlobal', type: { @@ -88,14 +83,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: { @@ -106,7 +99,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -115,7 +107,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -123,7 +114,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 62f460f72e..ebd606492d 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 @@ -8,19 +8,10 @@ module Models # # Definition of the credential. # - class Credential + class Credential < ProxyResource include MsRestAzure - # @return [String] Gets the id of the resource. - attr_accessor :id - - # @return [String] Gets the name of the credential. - attr_accessor :name - - # @return [String] Resource type - attr_accessor :type - # @return [String] Gets the user name of the credential. attr_accessor :user_name @@ -40,7 +31,6 @@ class Credential # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Credential', type: { @@ -48,7 +38,6 @@ def self.mapper() class_name: 'Credential', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -57,7 +46,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -66,7 +54,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -75,7 +62,6 @@ def self.mapper() } }, user_name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.userName', @@ -84,7 +70,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -93,7 +78,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -102,7 +86,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 509f34ce5b..54e2a28283 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: false, 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..e4339828e2 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 @@ -8,13 +8,10 @@ module Models # # Definition of the Dsc Compilation job. # - class DscCompilationJob + class DscCompilationJob < ProxyResource include MsRestAzure - # @return [String] Gets the id of the resource. - attr_accessor :id - # @return [DscConfigurationAssociationProperty] Gets or sets the # configuration. attr_accessor :configuration @@ -28,6 +25,14 @@ class DscCompilationJob # @return [DateTime] Gets the creation time of the job. attr_accessor :creation_time + # @return [JobProvisioningStateProperty] The current provisioning state + # of the job. + attr_accessor :provisioning_state + + # @return [String] Gets or sets the runOn which specifies the group name + # where the job is to be executed. + attr_accessor :run_on + # @return [JobStatus] Gets or sets the status of the job. Possible values # include: 'New', 'Activating', 'Running', 'Completed', 'Failed', # 'Stopped', 'Blocked', 'Suspended', 'Disconnected', 'Suspending', @@ -63,7 +68,6 @@ class DscCompilationJob # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscCompilationJob', type: { @@ -71,7 +75,6 @@ def self.mapper() class_name: 'DscCompilationJob', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -79,8 +82,23 @@ def self.mapper() name: 'String' } }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, configuration: { - client_side_validation: true, required: false, serialized_name: 'properties.configuration', type: { @@ -89,7 +107,6 @@ def self.mapper() } }, started_by: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.startedBy', @@ -98,7 +115,6 @@ def self.mapper() } }, job_id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.jobId', @@ -107,7 +123,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.creationTime', @@ -115,8 +130,22 @@ def self.mapper() name: 'DateTime' } }, + provisioning_state: { + required: false, + serialized_name: 'properties.provisioningState', + type: { + name: 'Composite', + class_name: 'JobProvisioningStateProperty' + } + }, + run_on: { + required: false, + serialized_name: 'properties.runOn', + type: { + name: 'String' + } + }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -124,7 +153,6 @@ def self.mapper() } }, status_details: { - client_side_validation: true, required: false, serialized_name: 'properties.statusDetails', type: { @@ -132,7 +160,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.startTime', @@ -141,7 +168,6 @@ def self.mapper() } }, end_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.endTime', @@ -150,7 +176,6 @@ def self.mapper() } }, exception: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.exception', @@ -159,7 +184,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModifiedTime', @@ -168,7 +192,6 @@ def self.mapper() } }, last_status_modified_time: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastStatusModifiedTime', @@ -177,13 +200,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 4357a1d899..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 @@ -41,7 +41,6 @@ class DscCompilationJobCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscCompilationJobCreateParameters', type: { @@ -49,7 +48,6 @@ def self.mapper() class_name: 'DscCompilationJobCreateParameters', model_properties: { configuration: { - client_side_validation: true, required: true, serialized_name: 'properties.configuration', type: { @@ -58,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: { @@ -74,7 +70,6 @@ def self.mapper() } }, new_node_configuration_build_version_required: { - client_side_validation: true, required: false, serialized_name: 'properties.newNodeConfigurationBuildVersionRequired', 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/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..94e84ec9ce 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 @@ -8,7 +8,7 @@ module Models # # Definition of the configuration type. # - class DscConfiguration < Resource + class DscConfiguration < TrackedResource include MsRestAzure @@ -40,6 +40,9 @@ class DscConfiguration < Resource # @return [DateTime] Gets or sets the last modified time. attr_accessor :last_modified_time + # @return [Integer] Gets the number of compiled node configurations. + attr_accessor :node_configuration_count + # @return [String] Gets or sets the description. attr_accessor :description @@ -53,7 +56,6 @@ class DscConfiguration < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscConfiguration', type: { @@ -61,7 +63,6 @@ def self.mapper() class_name: 'DscConfiguration', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -70,7 +71,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -79,7 +79,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -87,22 +86,12 @@ def self.mapper() name: 'String' } }, - location: { - client_side_validation: true, - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -111,8 +100,14 @@ def self.mapper() } } }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, provisioning_state: { - client_side_validation: true, required: false, serialized_name: 'properties.provisioningState', type: { @@ -121,7 +116,6 @@ def self.mapper() } }, job_count: { - client_side_validation: true, required: false, serialized_name: 'properties.jobCount', type: { @@ -129,13 +123,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 +138,6 @@ def self.mapper() } }, source: { - client_side_validation: true, required: false, serialized_name: 'properties.source', type: { @@ -155,7 +146,6 @@ def self.mapper() } }, state: { - client_side_validation: true, required: false, serialized_name: 'properties.state', type: { @@ -163,7 +153,6 @@ def self.mapper() } }, log_verbose: { - client_side_validation: true, required: false, serialized_name: 'properties.logVerbose', type: { @@ -171,7 +160,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -179,15 +167,20 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { name: 'DateTime' } }, + node_configuration_count: { + required: false, + serialized_name: 'properties.nodeConfigurationCount', + type: { + name: 'Number' + } + }, description: { - client_side_validation: true, required: false, serialized_name: 'properties.description', type: { @@ -195,7 +188,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..7aa9c29e7f 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 @@ -20,6 +20,10 @@ class DscConfigurationListResult # @return [String] Gets or sets the next link. attr_accessor :next_link + # @return [Integer] Gets the total number of configurations matching + # filter criteria. + attr_accessor :total_count + # return [Proc] with next page method call. attr_accessor :next_method @@ -58,7 +62,6 @@ def get_next_page # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscConfigurationListResult', type: { @@ -66,13 +69,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,12 +84,18 @@ def self.mapper() } }, next_link: { - client_side_validation: true, required: false, serialized_name: 'nextLink', type: { name: 'String' } + }, + total_count: { + required: false, + serialized_name: 'totalCount', + type: { + name: 'Number' + } } } } 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_configuration_update_parameters.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb new file mode 100644 index 0000000000..5abc06f85f --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb @@ -0,0 +1,122 @@ +# 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 parameters supplied to the create or update configuration operation. + # + class DscConfigurationUpdateParameters + + include MsRestAzure + + # @return [Boolean] Gets or sets verbose log option. + attr_accessor :log_verbose + + # @return [Boolean] Gets or sets progress log option. + attr_accessor :log_progress + + # @return [ContentSource] Gets or sets the source. + attr_accessor :source + + # @return [Hash{String => DscConfigurationParameter}] Gets or sets the + # configuration parameters. + attr_accessor :parameters + + # @return [String] Gets or sets the description of the configuration. + attr_accessor :description + + # @return [String] Gets or sets name of the resource. + attr_accessor :name + + # @return [Hash{String => String}] Gets or sets the tags attached to the + # resource. + attr_accessor :tags + + + # + # Mapper for DscConfigurationUpdateParameters class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'DscConfigurationUpdateParameters', + type: { + name: 'Composite', + class_name: 'DscConfigurationUpdateParameters', + model_properties: { + log_verbose: { + required: false, + serialized_name: 'properties.logVerbose', + type: { + name: 'Boolean' + } + }, + log_progress: { + required: false, + serialized_name: 'properties.logProgress', + type: { + name: 'Boolean' + } + }, + source: { + required: true, + serialized_name: 'properties.source', + type: { + name: 'Composite', + class_name: 'ContentSource' + } + }, + parameters: { + required: false, + serialized_name: 'properties.parameters', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'DscConfigurationParameterElementType', + type: { + name: 'Composite', + class_name: 'DscConfigurationParameter' + } + } + } + }, + description: { + required: false, + serialized_name: 'properties.description', + type: { + name: 'String' + } + }, + name: { + required: false, + serialized_name: 'name', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_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 f2c460c14c..824f0ceb11 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 @@ -8,7 +8,7 @@ module Models # # Definition of the dsc node type. # - class DscNode < Resource + class DscNode < ProxyResource include MsRestAzure @@ -48,7 +48,6 @@ class DscNode < Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNode', type: { @@ -56,7 +55,6 @@ def self.mapper() class_name: 'DscNode', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -65,7 +63,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -74,7 +71,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -82,32 +78,7 @@ def self.mapper() name: 'String' } }, - location: { - client_side_validation: true, - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, - tags: { - client_side_validation: true, - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - client_side_validation: true, - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } - }, last_seen: { - client_side_validation: true, required: false, serialized_name: 'lastSeen', type: { @@ -115,7 +86,6 @@ def self.mapper() } }, registration_time: { - client_side_validation: true, required: false, serialized_name: 'registrationTime', type: { @@ -123,7 +93,6 @@ def self.mapper() } }, ip: { - client_side_validation: true, required: false, serialized_name: 'ip', type: { @@ -131,7 +100,6 @@ def self.mapper() } }, account_id: { - client_side_validation: true, required: false, serialized_name: 'accountId', type: { @@ -139,7 +107,6 @@ def self.mapper() } }, node_configuration: { - client_side_validation: true, required: false, serialized_name: 'nodeConfiguration', type: { @@ -148,7 +115,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -156,7 +122,6 @@ def self.mapper() } }, node_id: { - client_side_validation: true, required: false, serialized_name: 'nodeId', type: { @@ -164,7 +129,6 @@ def self.mapper() } }, etag: { - client_side_validation: true, required: false, serialized_name: 'etag', type: { @@ -172,13 +136,11 @@ def self.mapper() } }, extension_handler: { - client_side_validation: true, required: false, serialized_name: 'extensionHandler', type: { name: 'Sequence', element: { - client_side_validation: true, required: false, serialized_name: 'DscNodeExtensionHandlerAssociationPropertyElementType', type: { 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..15a3acf1bc 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 @@ -8,13 +8,10 @@ module Models # # Definition of the dsc node configuration. # - class DscNodeConfiguration + class DscNodeConfiguration < ProxyResource include MsRestAzure - # @return [String] Gets or sets the node configuration name. - attr_accessor :name - # @return [DateTime] Gets or sets the last modified time. attr_accessor :last_modified_time @@ -25,9 +22,6 @@ class DscNodeConfiguration # configuration of the node. attr_accessor :configuration - # @return [String] Gets or sets the id of the resource. - attr_accessor :id - # # Mapper for DscNodeConfiguration class as Ruby Hash. @@ -35,23 +29,37 @@ class DscNodeConfiguration # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeConfiguration', type: { name: 'Composite', class_name: 'DscNodeConfiguration', model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, name: { - client_side_validation: true, required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' } }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'lastModifiedTime', type: { @@ -59,7 +67,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'creationTime', type: { @@ -67,21 +74,12 @@ def self.mapper() } }, configuration: { - client_side_validation: true, required: false, serialized_name: 'configuration', type: { name: 'Composite', class_name: 'DscConfigurationAssociationProperty' } - }, - id: { - client_side_validation: true, - required: false, - serialized_name: 'id', - type: { - name: 'String' - } } } } 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 cf60049e4e..7b97cdb31f 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 @@ -16,7 +16,7 @@ class DscNodeConfigurationCreateOrUpdateParameters # @return [ContentSource] Gets or sets the source. attr_accessor :source - # @return [String] Gets or sets the type of the parameter. + # @return [String] Name of the node configuration. attr_accessor :name # @return [DscConfigurationAssociationProperty] Gets or sets the @@ -25,7 +25,7 @@ class DscNodeConfigurationCreateOrUpdateParameters # @return [Boolean] If a new build version of NodeConfiguration is # required. - attr_accessor :new_node_configuration_build_version_required + attr_accessor :increment_node_configuration_build # @@ -35,7 +35,6 @@ class DscNodeConfigurationCreateOrUpdateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeConfigurationCreateOrUpdateParameters', type: { @@ -43,7 +42,6 @@ def self.mapper() class_name: 'DscNodeConfigurationCreateOrUpdateParameters', model_properties: { source: { - client_side_validation: true, required: true, serialized_name: 'source', type: { @@ -52,7 +50,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: true, serialized_name: 'name', type: { @@ -60,7 +57,6 @@ def self.mapper() } }, configuration: { - client_side_validation: true, required: true, serialized_name: 'configuration', type: { @@ -68,10 +64,9 @@ def self.mapper() class_name: 'DscConfigurationAssociationProperty' } }, - new_node_configuration_build_version_required: { - client_side_validation: true, + increment_node_configuration_build: { required: false, - serialized_name: 'newNodeConfigurationBuildVersionRequired', + serialized_name: 'incrementNodeConfigurationBuild', 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 index 7bb5577ef5..8285f282b3 100644 --- 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 @@ -26,7 +26,6 @@ class DscNodeExtensionHandlerAssociationProperty # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'DscNodeExtensionHandlerAssociationProperty', type: { @@ -34,7 +33,6 @@ def self.mapper() class_name: 'DscNodeExtensionHandlerAssociationProperty', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -42,7 +40,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/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/group_type_enum.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb new file mode 100644 index 0000000000..e12cd156de --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb @@ -0,0 +1,16 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + module Models + # + # Defines values for GroupTypeEnum + # + module GroupTypeEnum + User = "User" + System = "System" + end + end +end 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..6d1e516efb 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 @@ -22,6 +22,9 @@ class HybridRunbookWorker # machine. attr_accessor :registration_time + # @return [DateTime] Last Heartbeat from the Worker + attr_accessor :last_seen_date_time + # # Mapper for HybridRunbookWorker class as Ruby Hash. @@ -29,7 +32,6 @@ class HybridRunbookWorker # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HybridRunbookWorker', type: { @@ -37,7 +39,6 @@ def self.mapper() class_name: 'HybridRunbookWorker', model_properties: { name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -45,7 +46,6 @@ def self.mapper() } }, ip: { - client_side_validation: true, required: false, serialized_name: 'ip', type: { @@ -53,12 +53,18 @@ def self.mapper() } }, registration_time: { - client_side_validation: true, required: false, serialized_name: 'registrationTime', type: { name: 'DateTime' } + }, + last_seen_date_time: { + required: false, + serialized_name: 'lastSeenDateTime', + type: { + name: 'DateTime' + } } } } 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..64eca2b9c0 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 @@ -26,6 +26,10 @@ class HybridRunbookWorkerGroup # worker group. attr_accessor :credential + # @return [GroupTypeEnum] Type of the HybridWorkerGroup. Possible values + # include: 'User', 'System' + attr_accessor :group_type + # # Mapper for HybridRunbookWorkerGroup class as Ruby Hash. @@ -33,7 +37,6 @@ class HybridRunbookWorkerGroup # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'HybridRunbookWorkerGroup', type: { @@ -41,7 +44,6 @@ def self.mapper() class_name: 'HybridRunbookWorkerGroup', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -49,7 +51,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, serialized_name: 'name', type: { @@ -57,13 +58,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,13 +73,19 @@ def self.mapper() } }, credential: { - client_side_validation: true, required: false, serialized_name: 'credential', type: { name: 'Composite', class_name: 'RunAsCredentialAssociationProperty' } + }, + group_type: { + required: false, + serialized_name: 'groupType', + type: { + name: 'String' + } } } } 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..09a7904207 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 @@ -12,7 +12,7 @@ class Job include MsRestAzure - # @return [String] Gets or sets the id of the resource. + # @return [String] Id of the resource. attr_accessor :id # @return [RunbookAssociationProperty] Gets or sets the runbook. @@ -60,6 +60,10 @@ class Job # job. attr_accessor :parameters + # @return [JobProvisioningStateProperty] The provisioning state of a + # resource. + attr_accessor :provisioning_state + # # Mapper for Job class as Ruby Hash. @@ -67,7 +71,6 @@ class Job # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Job', type: { @@ -75,7 +78,6 @@ def self.mapper() class_name: 'Job', model_properties: { id: { - client_side_validation: true, required: false, serialized_name: 'id', type: { @@ -83,7 +85,6 @@ def self.mapper() } }, runbook: { - client_side_validation: true, required: false, serialized_name: 'properties.runbook', type: { @@ -92,7 +93,6 @@ def self.mapper() } }, started_by: { - client_side_validation: true, required: false, serialized_name: 'properties.startedBy', type: { @@ -100,7 +100,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { @@ -108,7 +107,6 @@ def self.mapper() } }, job_id: { - client_side_validation: true, required: false, serialized_name: 'properties.jobId', type: { @@ -116,7 +114,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -124,7 +121,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'properties.status', type: { @@ -132,7 +128,6 @@ def self.mapper() } }, status_details: { - client_side_validation: true, required: false, serialized_name: 'properties.statusDetails', type: { @@ -140,7 +135,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'properties.startTime', type: { @@ -148,7 +142,6 @@ def self.mapper() } }, end_time: { - client_side_validation: true, required: false, serialized_name: 'properties.endTime', type: { @@ -156,7 +149,6 @@ def self.mapper() } }, exception: { - client_side_validation: true, required: false, serialized_name: 'properties.exception', type: { @@ -164,7 +156,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -172,7 +163,6 @@ def self.mapper() } }, last_status_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastStatusModifiedTime', type: { @@ -180,13 +170,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: { @@ -194,6 +182,14 @@ def self.mapper() } } } + }, + provisioning_state: { + required: false, + serialized_name: 'properties.provisioningState', + type: { + name: 'Composite', + class_name: 'JobProvisioningStateProperty' + } } } } 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..b667267688 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 @@ -23,16 +23,6 @@ class JobCreateParameters # where the job is to be executed. attr_accessor :run_on - # @return [String] Gets or sets name of the resource. - attr_accessor :name - - # @return [String] Gets or sets the location of the resource. - attr_accessor :location - - # @return [Hash{String => String}] Gets or sets the tags attached to the - # resource. - attr_accessor :tags - # # Mapper for JobCreateParameters class as Ruby Hash. @@ -40,7 +30,6 @@ class JobCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'JobCreateParameters', type: { @@ -48,7 +37,6 @@ def self.mapper() class_name: 'JobCreateParameters', model_properties: { runbook: { - client_side_validation: true, required: true, serialized_name: 'properties.runbook', type: { @@ -57,13 +45,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,44 +59,11 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { name: 'String' } - }, - name: { - client_side_validation: true, - required: false, - serialized_name: 'name', - type: { - name: 'String' - } - }, - location: { - client_side_validation: true, - required: false, - serialized_name: 'location', - type: { - name: 'String' - } - }, - tags: { - client_side_validation: true, - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - client_side_validation: true, - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } } } } 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_provisioning_state.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb new file mode 100644 index 0000000000..abd7a2fdea --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb @@ -0,0 +1,18 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + module Models + # + # Defines values for JobProvisioningState + # + module JobProvisioningState + Failed = "Failed" + Succeeded = "Succeeded" + Suspended = "Suspended" + Processing = "Processing" + end + end +end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state_property.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state_property.rb new file mode 100644 index 0000000000..3fac27d086 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state_property.rb @@ -0,0 +1,47 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + module Models + # + # The provisioning state property. + # + class JobProvisioningStateProperty + + include MsRestAzure + + # @return [JobProvisioningState] The provisioning state of the resource. + # Possible values include: 'Failed', 'Succeeded', 'Suspended', + # 'Processing' + attr_accessor :provisioning_state + + + # + # Mapper for JobProvisioningStateProperty class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'JobProvisioningStateProperty', + type: { + name: 'Composite', + class_name: 'JobProvisioningStateProperty', + model_properties: { + provisioning_state: { + required: false, + read_only: true, + serialized_name: 'provisioningState', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end 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 fdca999a4e..fde07e5e12 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 @@ -45,7 +45,6 @@ class JobSchedule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'JobSchedule', type: { @@ -53,7 +52,6 @@ def self.mapper() class_name: 'JobSchedule', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -62,7 +60,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -71,7 +68,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -80,7 +76,6 @@ def self.mapper() } }, job_schedule_id: { - client_side_validation: true, required: false, serialized_name: 'properties.jobScheduleId', type: { @@ -88,7 +83,6 @@ def self.mapper() } }, schedule: { - client_side_validation: true, required: false, serialized_name: 'properties.schedule', type: { @@ -97,7 +91,6 @@ def self.mapper() } }, runbook: { - client_side_validation: true, required: false, serialized_name: 'properties.runbook', type: { @@ -106,7 +99,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { @@ -114,13 +106,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/key.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb new file mode 100644 index 0000000000..9ea56d0539 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb @@ -0,0 +1,66 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + module Models + # + # Automation key which is used to register a DSC Node + # + class Key + + include MsRestAzure + + # @return [AutomationKeyName] Automation key name. Possible values + # include: 'primary', 'secondary' + attr_accessor :key_name + + # @return [AutomationKeyPermissions] Automation key permissions. Possible + # values include: 'Full' + attr_accessor :permissions + + # @return [String] Value of the Automation Key used for registration. + attr_accessor :value + + + # + # Mapper for Key class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'Key', + type: { + name: 'Composite', + class_name: 'Key', + model_properties: { + key_name: { + required: false, + serialized_name: 'keyName', + type: { + name: 'String' + } + }, + permissions: { + required: false, + serialized_name: 'permissions', + type: { + name: 'String' + } + }, + value: { + required: false, + serialized_name: 'value', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb new file mode 100644 index 0000000000..4ac3113645 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb @@ -0,0 +1,53 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + module Models + # + # Model object. + # + # + class KeyListResult + + include MsRestAzure + + # @return [Array] Lists the automation keys. + attr_accessor :value + + + # + # Mapper for KeyListResult class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'KeyListResult', + type: { + name: 'Composite', + class_name: 'KeyListResult', + model_properties: { + value: { + required: false, + serialized_name: 'value', + type: { + name: 'Sequence', + element: { + required: false, + serialized_name: 'KeyElementType', + type: { + name: 'Composite', + class_name: 'Key' + } + } + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/linked_workspace.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/linked_workspace.rb new file mode 100644 index 0000000000..7e2418459c --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/linked_workspace.rb @@ -0,0 +1,45 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + module Models + # + # Definition of the linked workspace. + # + class LinkedWorkspace + + include MsRestAzure + + # @return [String] Gets the id of the linked workspace. + attr_accessor :id + + + # + # Mapper for LinkedWorkspace class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'LinkedWorkspace', + type: { + name: 'Composite', + class_name: 'LinkedWorkspace', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end 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..f78ced0751 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 @@ -8,7 +8,7 @@ module Models # # Definition of the module type. # - class ModuleModel < Resource + class ModuleModel < TrackedResource include MsRestAzure @@ -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', @@ -92,22 +88,12 @@ def self.mapper() name: 'String' } }, - location: { - client_side_validation: true, - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -116,8 +102,14 @@ def self.mapper() } } }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, 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/proxy_resource.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb new file mode 100644 index 0000000000..acd8f4be69 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb @@ -0,0 +1,59 @@ +# encoding: utf-8 +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. + +module Azure::Automation::Mgmt::V2015_10_31 + module Models + # + # The resource model definition for a ARM proxy resource. It will have + # everything other than required location and tags + # + class ProxyResource < Resource + + include MsRestAzure + + + # + # Mapper for ProxyResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'ProxyResource', + type: { + name: 'Composite', + class_name: 'ProxyResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end diff --git a/management/azure_mgmt_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..ff3c961ebd 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 @@ -6,27 +6,21 @@ module Azure::Automation::Mgmt::V2015_10_31 module Models # - # The Resource definition. + # The core properties of ARM resources # class Resource include MsRestAzure - # @return [String] Resource Id + # @return [String] Fully qualified resource Id for the resource attr_accessor :id - # @return [String] Resource name + # @return [String] The name of the resource attr_accessor :name - # @return [String] Resource type + # @return [String] The type of the resource. attr_accessor :type - # @return [String] Resource location - attr_accessor :location - - # @return [Hash{String => String}] Resource tags - attr_accessor :tags - # # Mapper for Resource class as Ruby Hash. @@ -34,7 +28,6 @@ class Resource # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Resource', type: { @@ -42,7 +35,6 @@ def self.mapper() class_name: 'Resource', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -51,7 +43,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -60,37 +51,12 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } - }, - location: { - client_side_validation: true, - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, - tags: { - client_side_validation: true, - required: false, - serialized_name: 'tags', - type: { - name: 'Dictionary', - value: { - client_side_validation: true, - required: false, - serialized_name: 'StringElementType', - type: { - name: 'String' - } - } - } } } } 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..411a6bb5a4 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 @@ -8,7 +8,7 @@ module Models # # Definition of the runbook type. # - class Runbook < Resource + class Runbook < TrackedResource include MsRestAzure @@ -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', @@ -107,22 +103,12 @@ def self.mapper() name: 'String' } }, - location: { - client_side_validation: true, - required: true, - serialized_name: 'location', - type: { - name: 'String' - } - }, tags: { - client_side_validation: true, required: false, serialized_name: 'tags', type: { name: 'Dictionary', value: { - client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { @@ -131,8 +117,14 @@ def self.mapper() } } }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + }, 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 2ccd5b3115..a860bfc7d3 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 @@ -72,7 +72,6 @@ class Schedule # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Schedule', type: { @@ -80,7 +79,6 @@ def self.mapper() class_name: 'Schedule', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -89,7 +87,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -98,7 +95,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -107,7 +103,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'properties.startTime', type: { @@ -115,7 +110,6 @@ def self.mapper() } }, start_time_offset_minutes: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.startTimeOffsetMinutes', @@ -124,7 +118,6 @@ def self.mapper() } }, expiry_time: { - client_side_validation: true, required: false, serialized_name: 'properties.expiryTime', type: { @@ -132,7 +125,6 @@ def self.mapper() } }, expiry_time_offset_minutes: { - client_side_validation: true, required: false, serialized_name: 'properties.expiryTimeOffsetMinutes', type: { @@ -140,7 +132,6 @@ def self.mapper() } }, is_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isEnabled', default_value: false, @@ -149,7 +140,6 @@ def self.mapper() } }, next_run: { - client_side_validation: true, required: false, serialized_name: 'properties.nextRun', type: { @@ -157,7 +147,6 @@ def self.mapper() } }, next_run_offset_minutes: { - client_side_validation: true, required: false, serialized_name: 'properties.nextRunOffsetMinutes', type: { @@ -165,7 +154,6 @@ def self.mapper() } }, interval: { - client_side_validation: true, required: false, serialized_name: 'properties.interval', type: { @@ -173,7 +161,6 @@ def self.mapper() } }, frequency: { - client_side_validation: true, required: false, serialized_name: 'properties.frequency', type: { @@ -181,7 +168,6 @@ def self.mapper() } }, time_zone: { - client_side_validation: true, required: false, serialized_name: 'properties.timeZone', type: { @@ -189,7 +175,6 @@ def self.mapper() } }, advanced_schedule: { - client_side_validation: true, required: false, serialized_name: 'properties.advancedSchedule', type: { @@ -198,7 +183,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -206,7 +190,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -214,7 +197,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 33f09ad13f..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 @@ -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 30fde5d19a..bc0d23eacf 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: 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,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..b13686d91d 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 @@ -45,6 +45,9 @@ class TestJob # test job. attr_accessor :parameters + # @return [Integer] The activity-level tracing options of the runbook. + attr_accessor :log_activity_trace + # # Mapper for TestJob class as Ruby Hash. @@ -52,7 +55,6 @@ class TestJob # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TestJob', type: { @@ -60,7 +62,6 @@ def self.mapper() class_name: 'TestJob', model_properties: { creation_time: { - client_side_validation: true, required: false, serialized_name: 'creationTime', type: { @@ -68,7 +69,6 @@ def self.mapper() } }, status: { - client_side_validation: true, required: false, serialized_name: 'status', type: { @@ -76,7 +76,6 @@ def self.mapper() } }, status_details: { - client_side_validation: true, required: false, serialized_name: 'statusDetails', type: { @@ -84,7 +83,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'runOn', type: { @@ -92,7 +90,6 @@ def self.mapper() } }, start_time: { - client_side_validation: true, required: false, serialized_name: 'startTime', type: { @@ -100,7 +97,6 @@ def self.mapper() } }, end_time: { - client_side_validation: true, required: false, serialized_name: 'endTime', type: { @@ -108,7 +104,6 @@ def self.mapper() } }, exception: { - client_side_validation: true, required: false, serialized_name: 'exception', type: { @@ -116,7 +111,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'lastModifiedTime', type: { @@ -124,7 +118,6 @@ def self.mapper() } }, last_status_modified_time: { - client_side_validation: true, required: false, serialized_name: 'lastStatusModifiedTime', type: { @@ -132,13 +125,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: { @@ -146,6 +137,13 @@ def self.mapper() } } } + }, + log_activity_trace: { + required: false, + serialized_name: 'logActivityTrace', + type: { + name: 'Number' + } } } } 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..dd1ae852bb 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 @@ -12,9 +12,6 @@ class TestJobCreateParameters include MsRestAzure - # @return [String] Gets or sets the runbook name. - attr_accessor :runbook_name - # @return [Hash{String => String}] Gets or sets the parameters of the # test job. attr_accessor :parameters @@ -30,29 +27,18 @@ class TestJobCreateParameters # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'TestJobCreateParameters', type: { name: 'Composite', class_name: 'TestJobCreateParameters', model_properties: { - runbook_name: { - client_side_validation: true, - required: true, - serialized_name: 'runbookName', - type: { - name: 'String' - } - }, 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 +48,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/tracked_resource.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb new file mode 100644 index 0000000000..9b05da2c17 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb @@ -0,0 +1,85 @@ +# 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 resource model definition for a ARM tracked top level resource + # + class TrackedResource < Resource + + include MsRestAzure + + # @return [Hash{String => String}] Resource tags. + attr_accessor :tags + + # @return [String] The Azure Region where the resource lives + attr_accessor :location + + + # + # Mapper for TrackedResource class as Ruby Hash. + # This will be used for serialization/deserialization. + # + def self.mapper() + { + required: false, + serialized_name: 'TrackedResource', + type: { + name: 'Composite', + class_name: 'TrackedResource', + model_properties: { + id: { + required: false, + read_only: true, + serialized_name: 'id', + type: { + name: 'String' + } + }, + name: { + required: false, + read_only: true, + serialized_name: 'name', + type: { + name: 'String' + } + }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, + tags: { + required: false, + serialized_name: 'tags', + type: { + name: 'Dictionary', + value: { + required: false, + serialized_name: 'StringElementType', + type: { + name: 'String' + } + } + } + }, + location: { + required: false, + serialized_name: 'location', + type: { + name: 'String' + } + } + } + } + } + end + end + end +end 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 c28eefab69..f5e1d0104c 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 @@ -8,19 +8,10 @@ module Models # # Definition of the varible. # - class Variable + class Variable < ProxyResource include MsRestAzure - # @return [String] Gets the id of the resource. - attr_accessor :id - - # @return [String] Gets the name of the variable. - attr_accessor :name - - # @return [String] Resource type - attr_accessor :type - # @return [String] Gets or sets the value of the variable. attr_accessor :value @@ -43,7 +34,6 @@ class Variable # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Variable', type: { @@ -51,7 +41,6 @@ def self.mapper() class_name: 'Variable', model_properties: { id: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'id', @@ -60,7 +49,6 @@ def self.mapper() } }, name: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'name', @@ -69,7 +57,6 @@ def self.mapper() } }, type: { - client_side_validation: true, required: false, read_only: true, serialized_name: 'type', @@ -78,7 +65,6 @@ def self.mapper() } }, value: { - client_side_validation: true, required: false, serialized_name: 'properties.value', type: { @@ -86,7 +72,6 @@ def self.mapper() } }, is_encrypted: { - client_side_validation: true, required: false, serialized_name: 'properties.isEncrypted', type: { @@ -94,7 +79,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -102,7 +86,6 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { @@ -110,7 +93,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 71ae1fd03a..e3fbca2368 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: false, 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..2bbd7f1ffe 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 @@ -8,16 +8,10 @@ module Models # # Definition of the webhook type. # - class Webhook + class Webhook < ProxyResource include MsRestAzure - # @return [String] Gets or sets the id of the resource. - attr_accessor :id - - # @return [String] Gets or sets the name of the webhook. - attr_accessor :name - # @return [Boolean] Gets or sets the value of the enabled flag of the # webhook. Default value: false . attr_accessor :is_enabled @@ -50,6 +44,9 @@ class Webhook # @return [DateTime] Gets or sets the last modified time. attr_accessor :last_modified_time + # @return [String] Details of the user who last modified the Webhook + attr_accessor :last_modified_by + # @return [String] Gets or sets the description. attr_accessor :description @@ -60,7 +57,6 @@ class Webhook # def self.mapper() { - client_side_validation: true, required: false, serialized_name: 'Webhook', type: { @@ -68,23 +64,30 @@ def self.mapper() class_name: 'Webhook', model_properties: { id: { - client_side_validation: true, required: false, + read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { - client_side_validation: true, required: false, + read_only: true, serialized_name: 'name', type: { name: 'String' } }, + type: { + required: false, + read_only: true, + serialized_name: 'type', + type: { + name: 'String' + } + }, is_enabled: { - client_side_validation: true, required: false, serialized_name: 'properties.isEnabled', default_value: false, @@ -93,7 +96,6 @@ def self.mapper() } }, uri: { - client_side_validation: true, required: false, serialized_name: 'properties.uri', type: { @@ -101,7 +103,6 @@ def self.mapper() } }, expiry_time: { - client_side_validation: true, required: false, serialized_name: 'properties.expiryTime', type: { @@ -109,7 +110,6 @@ def self.mapper() } }, last_invoked_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastInvokedTime', type: { @@ -117,13 +117,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 +131,6 @@ def self.mapper() } }, runbook: { - client_side_validation: true, required: false, serialized_name: 'properties.runbook', type: { @@ -142,7 +139,6 @@ def self.mapper() } }, run_on: { - client_side_validation: true, required: false, serialized_name: 'properties.runOn', type: { @@ -150,7 +146,6 @@ def self.mapper() } }, creation_time: { - client_side_validation: true, required: false, serialized_name: 'properties.creationTime', type: { @@ -158,15 +153,20 @@ def self.mapper() } }, last_modified_time: { - client_side_validation: true, required: false, serialized_name: 'properties.lastModifiedTime', type: { name: 'DateTime' } }, + last_modified_by: { + required: false, + serialized_name: 'properties.lastModifiedBy', + type: { + name: 'String' + } + }, 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..864c1103e6 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,15 +44,13 @@ def self.mapper() class_name: 'WebhookUpdateParameters', model_properties: { name: { - client_side_validation: true, - required: true, + required: false, serialized_name: 'name', type: { name: 'String' } }, 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 70c1517ef3..5ffc129fc6 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,20 +24,22 @@ def initialize(client) # # Delete the module by name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, module_name, custom_headers:nil) - response = delete_async(automation_account_name, module_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the module by name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -45,13 +47,14 @@ def delete(automation_account_name, module_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, module_name, custom_headers:nil) - delete_async(automation_account_name, module_name, custom_headers:custom_headers).value! + 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! end # # Delete the module by name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -59,9 +62,8 @@ def delete_with_http_info(automation_account_name, module_name, custom_headers:n # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -69,7 +71,6 @@ def delete_async(automation_account_name, module_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -80,7 +81,7 @@ def delete_async(automation_account_name, module_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -107,6 +108,7 @@ def delete_async(automation_account_name, module_name, custom_headers:nil) # # Retrieve the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -114,14 +116,15 @@ def delete_async(automation_account_name, module_name, custom_headers:nil) # # @return [ModuleModel] operation results. # - def get(automation_account_name, module_name, custom_headers:nil) - response = get_async(automation_account_name, module_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -129,13 +132,14 @@ def get(automation_account_name, module_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, module_name, custom_headers:nil) - get_async(automation_account_name, module_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -143,9 +147,8 @@ def get_with_http_info(automation_account_name, module_name, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -153,7 +156,6 @@ def get_async(automation_account_name, module_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -164,7 +166,7 @@ def get_async(automation_account_name, module_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -201,6 +203,7 @@ def get_async(automation_account_name, module_name, custom_headers:nil) # # Create or Update the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param parameters [ModuleCreateOrUpdateParameters] The create or update @@ -210,14 +213,15 @@ def get_async(automation_account_name, module_name, custom_headers:nil) # # @return [ModuleModel] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create or Update the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param parameters [ModuleCreateOrUpdateParameters] The create or update @@ -227,13 +231,14 @@ def create_or_update(automation_account_name, module_name, parameters, custom_he # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create or Update the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param module_name [String] The name of module. # @param parameters [ModuleCreateOrUpdateParameters] The create or update @@ -243,9 +248,8 @@ def create_or_update_with_http_info(automation_account_name, module_name, parame # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -254,12 +258,13 @@ def create_or_update_async(automation_account_name, module_name, parameters, cus request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -271,7 +276,7 @@ def create_or_update_async(automation_account_name, module_name, parameters, cus options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -319,6 +324,7 @@ def create_or_update_async(automation_account_name, module_name, parameters, cus # # Update the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -327,14 +333,15 @@ def create_or_update_async(automation_account_name, module_name, parameters, cus # # @return [ModuleModel] operation results. # - def update(automation_account_name, module_name, parameters, custom_headers:nil) - response = update_async(automation_account_name, module_name, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Update the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -343,13 +350,14 @@ def update(automation_account_name, module_name, parameters, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(automation_account_name, module_name, parameters, custom_headers:nil) - update_async(automation_account_name, module_name, parameters, custom_headers:custom_headers).value! + 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! end # # Update the module identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -358,9 +366,8 @@ def update_with_http_info(automation_account_name, module_name, parameters, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -369,12 +376,13 @@ def update_async(automation_account_name, module_name, parameters, custom_header request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -386,7 +394,7 @@ def update_async(automation_account_name, module_name, parameters, custom_header options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -424,49 +432,50 @@ def update_async(automation_account_name, module_name, parameters, custom_header # # Retrieve a list of modules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of modules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of modules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -477,7 +486,7 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -521,8 +530,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [ModuleListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -536,8 +545,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -550,12 +559,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -602,6 +610,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of modules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -609,12 +618,12 @@ 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(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 58968213aa..b7409480fe 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,6 +24,7 @@ def initialize(client) # # Retrieve the Dsc node report list by node id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -32,14 +33,15 @@ def initialize(client) # # @return [Array] operation results. # - 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:filter, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve the Dsc node report list by node id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -48,13 +50,14 @@ def list_by_node(automation_account_name, node_id, filter:nil, custom_headers:ni # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:filter, custom_headers:custom_headers).value! + 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! end # # Retrieve the Dsc node report list by node id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -63,9 +66,8 @@ def list_by_node_with_http_info(automation_account_name, node_id, filter:nil, cu # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -73,7 +75,6 @@ def list_by_node_async(automation_account_name, node_id, filter:nil, custom_head request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -84,7 +85,7 @@ def list_by_node_async(automation_account_name, node_id, filter:nil, custom_head options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -121,6 +122,7 @@ def list_by_node_async(automation_account_name, node_id, filter:nil, custom_head # # Retrieve the Dsc node report data by node id and report id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -129,14 +131,15 @@ def list_by_node_async(automation_account_name, node_id, filter:nil, custom_head # # @return [DscNodeReport] operation results. # - def get(automation_account_name, node_id, report_id, custom_headers:nil) - response = get_async(automation_account_name, node_id, report_id, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the Dsc node report data by node id and report id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -145,13 +148,14 @@ def get(automation_account_name, node_id, report_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve the Dsc node report data by node id and report id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -160,9 +164,8 @@ def get_with_http_info(automation_account_name, node_id, report_id, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -171,7 +174,6 @@ def get_async(automation_account_name, node_id, report_id, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -182,7 +184,7 @@ def get_async(automation_account_name, node_id, report_id, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -219,22 +221,24 @@ def get_async(automation_account_name, node_id, report_id, custom_headers:nil) # # Retrieve the Dsc node reports by node id and report id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [NOT_IMPLEMENTED] operation results. + # @return [Object] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the Dsc node reports by node id and report id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -243,13 +247,14 @@ def get_content(automation_account_name, node_id, report_id, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve the Dsc node reports by node id and report id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param node_id [String] The Dsc node id. # @param report_id [String] The report id. @@ -258,9 +263,8 @@ def get_content_with_http_info(automation_account_name, node_id, report_id, cust # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -269,7 +273,6 @@ def get_content_async(automation_account_name, node_id, report_id, custom_header request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -280,7 +283,7 @@ def get_content_async(automation_account_name, node_id, report_id, custom_header options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'nodeId' => node_id,'reportId' => report_id,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -297,23 +300,6 @@ def get_content_async(automation_account_name, node_id, report_id, custom_header end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? - # Deserialize Response - if status_code == 200 - begin - parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = { - client_side_validation: true, - required: false, - serialized_name: 'parsed_response', - type: { - name: 'Stream' - } - } - result.body = @client.deserialize(result_mapper, parsed_response) - rescue Exception => e - fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) - end - end result end @@ -331,8 +317,8 @@ def get_content_async(automation_account_name, node_id, report_id, custom_header # # @return [DscNodeReportListResult] operation results. # - def list_by_node_next(next_page_link, custom_headers:nil) - response = list_by_node_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_node_next(next_page_link, custom_headers = nil) + response = list_by_node_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -346,8 +332,8 @@ def list_by_node_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_node_next_with_http_info(next_page_link, custom_headers:nil) - list_by_node_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_node_next_with_http_info(next_page_link, custom_headers = nil) + list_by_node_next_async(next_page_link, custom_headers).value! end # @@ -360,12 +346,11 @@ def list_by_node_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_node_next_async(next_page_link, custom_headers:nil) + def list_by_node_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -412,6 +397,7 @@ 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] Name of an Azure Resource group. # @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. @@ -421,12 +407,12 @@ 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(automation_account_name, node_id, filter:nil, custom_headers:nil) - response = list_by_node_async(automation_account_name, node_id, filter:filter, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_node_next_async(next_page_link, custom_headers:custom_headers) + list_by_node_next_async(next_page_link, custom_headers) end page end 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 81868fed55..2ce88ef750 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,6 +24,7 @@ def initialize(client) # # Retrieve a list of fields of a given type identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -32,14 +33,15 @@ def initialize(client) # # @return [TypeFieldListResult] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve a list of fields of a given type identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -48,13 +50,14 @@ def list_fields_by_module_and_type(automation_account_name, module_name, type_na # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve a list of fields of a given type identified by module name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -63,9 +66,8 @@ def list_fields_by_module_and_type_with_http_info(automation_account_name, modul # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -74,7 +76,6 @@ def list_fields_by_module_and_type_async(automation_account_name, module_name, t request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -85,7 +86,7 @@ def list_fields_by_module_and_type_async(automation_account_name, module_name, t options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'moduleName' => module_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -122,6 +123,7 @@ def list_fields_by_module_and_type_async(automation_account_name, module_name, t # # Retrieve a list of fields of a given type across all accessible modules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -129,14 +131,15 @@ def list_fields_by_module_and_type_async(automation_account_name, module_name, t # # @return [TypeFieldListResult] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve a list of fields of a given type across all accessible modules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -144,13 +147,14 @@ def list_fields_by_type(automation_account_name, type_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Retrieve a list of fields of a given type across all accessible modules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -158,9 +162,8 @@ def list_fields_by_type_with_http_info(automation_account_name, type_name, custo # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -168,7 +171,6 @@ def list_fields_by_type_async(automation_account_name, type_name, custom_headers request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -179,7 +181,7 @@ def list_fields_by_type_async(automation_account_name, type_name, custom_headers options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'typeName' => type_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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/operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb index ecf9322e5d..f4b92eb944 100644 --- a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb @@ -29,8 +29,8 @@ def initialize(client) # # @return [OperationListResult] operation results. # - def list(custom_headers:nil) - response = list_async(custom_headers:custom_headers).value! + def list(custom_headers = nil) + response = list_async(custom_headers).value! response.body unless response.nil? end @@ -42,8 +42,8 @@ def list(custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_with_http_info(custom_headers:nil) - list_async(custom_headers:custom_headers).value! + def list_with_http_info(custom_headers = nil) + list_async(custom_headers).value! end # @@ -54,12 +54,11 @@ def list_with_http_info(custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_async(custom_headers:nil) + def list_async(custom_headers = nil) fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid 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 b886178d73..cc286753db 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,21 +24,23 @@ def initialize(client) # # Retrieve the content of runbook draft identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. # - # @return [NOT_IMPLEMENTED] operation results. + # @return [String] operation results. # - def get_content(automation_account_name, runbook_name, custom_headers:nil) - response = get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the content of runbook draft identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -46,13 +48,14 @@ def get_content(automation_account_name, runbook_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(automation_account_name, runbook_name, custom_headers:nil) - get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the content of runbook draft identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -60,17 +63,15 @@ def get_content_with_http_info(automation_account_name, runbook_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -81,7 +82,7 @@ def get_content_async(automation_account_name, runbook_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -94,7 +95,7 @@ def get_content_async(automation_account_name, runbook_name, custom_headers:nil) response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) - fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? @@ -103,11 +104,10 @@ def get_content_async(automation_account_name, runbook_name, custom_headers:nil) 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: { - name: 'Stream' + name: 'String' } } result.body = @client.deserialize(result_mapper, parsed_response) @@ -123,36 +123,48 @@ def get_content_async(automation_account_name, runbook_name, custom_headers:nil) end # - # Updates the runbook draft with runbookStream as its content. + # Replaces the runbook draft content. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. - # @param runbook_content The runbook draft content. + # @param runbook_content [String] 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(automation_account_name, runbook_name, runbook_content, custom_headers:nil) - response = create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers).value! - nil + # @return [String] operation results. + # + def replace_content(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) + response = replace_content_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers).value! + response.body unless response.nil? end # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. - # @param runbook_content The runbook draft content. + # @param runbook_content [String] The runbook draft content. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [Concurrent::Promise] promise which provides async access to http # response. # - def create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:nil) + def replace_content_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) # Send request - promise = begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers) + promise = begin_replace_content_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } + parsed_response = @client.deserialize(result_mapper, parsed_response) end # Waiting for response. @@ -165,6 +177,7 @@ def create_or_update_async(automation_account_name, runbook_name, runbook_conten # # Retrieve the runbook draft identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -172,14 +185,15 @@ def create_or_update_async(automation_account_name, runbook_name, runbook_conten # # @return [RunbookDraft] operation results. # - def get(automation_account_name, runbook_name, custom_headers:nil) - response = get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the runbook draft identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -187,13 +201,14 @@ def get(automation_account_name, runbook_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, runbook_name, custom_headers:nil) - get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the runbook draft identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -201,17 +216,15 @@ def get_with_http_info(automation_account_name, runbook_name, custom_headers:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -222,7 +235,7 @@ def get_async(automation_account_name, runbook_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -259,20 +272,22 @@ def get_async(automation_account_name, runbook_name, custom_headers:nil) # # Publish runbook draft. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Runbook] operation results. + # @return [String] operation results. # - def publish(automation_account_name, runbook_name, custom_headers:nil) - response = publish_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. @@ -282,14 +297,20 @@ def publish(automation_account_name, runbook_name, custom_headers:nil) # @return [Concurrent::Promise] promise which provides async access to http # response. # - def publish_async(automation_account_name, runbook_name, custom_headers:nil) + def publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) # Send request - promise = begin_publish_async(automation_account_name, runbook_name, custom_headers:custom_headers) + promise = begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers) promise = promise.then do |response| # Defining deserialization method. deserialize_method = lambda do |parsed_response| - result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } parsed_response = @client.deserialize(result_mapper, parsed_response) end @@ -301,8 +322,9 @@ def publish_async(automation_account_name, runbook_name, custom_headers:nil) end # - # Retrieve the runbook identified by runbook name. + # Undo draft edit to last known published state identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -310,14 +332,15 @@ def publish_async(automation_account_name, runbook_name, custom_headers:nil) # # @return [RunbookDraftUndoEditResult] operation results. # - def undo_edit(automation_account_name, runbook_name, custom_headers:nil) - response = undo_edit_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # - # Retrieve the runbook identified by runbook name. + # Undo draft edit to last known published state identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -325,13 +348,14 @@ def undo_edit(automation_account_name, runbook_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def undo_edit_with_http_info(automation_account_name, runbook_name, custom_headers:nil) - undo_edit_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! end # - # Retrieve the runbook identified by runbook name. + # Undo draft edit to last known published state identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -339,17 +363,15 @@ def undo_edit_with_http_info(automation_account_name, runbook_name, custom_heade # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def undo_edit_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -360,7 +382,7 @@ def undo_edit_async(automation_account_name, runbook_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -395,73 +417,77 @@ def undo_edit_async(automation_account_name, runbook_name, custom_headers:nil) end # - # Updates the runbook draft with runbookStream as its content. + # Replaces the runbook draft content. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. - # @param runbook_content The runbook draft content. + # @param runbook_content [String] The runbook draft content. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [String] operation results. # - 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:custom_headers).value! - nil + def begin_replace_content(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) + response = begin_replace_content_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers).value! + response.body unless response.nil? end # - # Updates the runbook draft with runbookStream as its content. + # Replaces the runbook draft content. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. - # @param runbook_content The runbook draft content. + # @param runbook_content [String] The runbook draft content. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_create_or_update_with_http_info(automation_account_name, runbook_name, runbook_content, custom_headers:nil) - begin_create_or_update_async(automation_account_name, runbook_name, runbook_content, custom_headers:custom_headers).value! + def begin_replace_content_with_http_info(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) + begin_replace_content_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers).value! end # - # Updates the runbook draft with runbookStream as its content. + # Replaces the runbook draft content. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. - # @param runbook_content The runbook draft content. + # @param runbook_content [String] The runbook draft content. # @param [Hash{String => String}] A hash of custom headers that will be added # to the HTTP request. # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def begin_create_or_update_async(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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def begin_replace_content_async(resource_group_name, automation_account_name, runbook_name, runbook_content, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? - fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'text/powershell' + # Serialize Request request_mapper = { - client_side_validation: true, required: true, serialized_name: 'runbookContent', type: { - name: 'Stream' + name: 'String' } } request_content = @client.serialize(request_mapper, runbook_content) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/content' @@ -469,7 +495,7 @@ def begin_create_or_update_async(automation_account_name, runbook_name, runbook_ options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -481,12 +507,28 @@ def begin_create_or_update_async(automation_account_name, runbook_name, runbook_ http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 202 || status_code == 200 + unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -497,22 +539,24 @@ def begin_create_or_update_async(automation_account_name, runbook_name, runbook_ # # Publish runbook draft. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # - # @return [Runbook] operation results. + # @return [String] operation results. # - def begin_publish(automation_account_name, runbook_name, custom_headers:nil) - response = begin_publish_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Publish runbook draft. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. @@ -521,13 +565,14 @@ def begin_publish(automation_account_name, runbook_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def begin_publish_with_http_info(automation_account_name, runbook_name, custom_headers:nil) - begin_publish_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! end # # Publish runbook draft. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The parameters supplied to the publish runbook # operation. @@ -536,17 +581,15 @@ def begin_publish_with_http_info(automation_account_name, runbook_name, custom_h # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def begin_publish_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -557,7 +600,7 @@ def begin_publish_async(automation_account_name, runbook_name, custom_headers:ni options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -568,7 +611,7 @@ def begin_publish_async(automation_account_name, runbook_name, custom_headers:ni http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 202 || status_code == 200 + unless status_code == 200 || status_code == 202 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end @@ -578,7 +621,13 @@ def begin_publish_async(automation_account_name, runbook_name, custom_headers:ni if status_code == 200 begin parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) - result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook.mapper() + result_mapper = { + required: false, + serialized_name: 'parsed_response', + type: { + name: 'String' + } + } result.body = @client.deserialize(result_mapper, parsed_response) rescue Exception => e fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) diff --git a/management/azure_mgmt_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 19573bd8d7..5e97299aa9 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,21 +24,23 @@ def initialize(client) # # Retrieve the content of runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. # - # @return [NOT_IMPLEMENTED] operation results. + # @return [String] operation results. # - def get_content(automation_account_name, runbook_name, custom_headers:nil) - response = get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the content of runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -46,13 +48,14 @@ def get_content(automation_account_name, runbook_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_content_with_http_info(automation_account_name, runbook_name, custom_headers:nil) - get_content_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the content of runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -60,17 +63,15 @@ def get_content_with_http_info(automation_account_name, runbook_name, custom_hea # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -81,7 +82,7 @@ def get_content_async(automation_account_name, runbook_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -94,7 +95,7 @@ def get_content_async(automation_account_name, runbook_name, custom_headers:nil) response_content = http_response.body unless status_code == 200 error_model = JSON.load(response_content) - fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model) end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? @@ -103,11 +104,10 @@ def get_content_async(automation_account_name, runbook_name, custom_headers:nil) 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: { - name: 'Stream' + name: 'String' } } result.body = @client.deserialize(result_mapper, parsed_response) @@ -125,6 +125,7 @@ def get_content_async(automation_account_name, runbook_name, custom_headers:nil) # # Retrieve the runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -132,14 +133,15 @@ def get_content_async(automation_account_name, runbook_name, custom_headers:nil) # # @return [Runbook] operation results. # - def get(automation_account_name, runbook_name, custom_headers:nil) - response = get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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,13 +149,14 @@ def get(automation_account_name, runbook_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, runbook_name, custom_headers:nil) - get_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -161,17 +164,15 @@ def get_with_http_info(automation_account_name, runbook_name, custom_headers:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -182,7 +183,7 @@ def get_async(automation_account_name, runbook_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -219,6 +220,7 @@ def get_async(automation_account_name, runbook_name, custom_headers:nil) # # Create the runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookCreateOrUpdateParameters] The create or update @@ -227,15 +229,17 @@ def get_async(automation_account_name, runbook_name, custom_headers:nil) # @param custom_headers [Hash{String => String}] A hash of custom headers that # will be added to the HTTP request. # + # @return [Runbook] operation results. # - 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:custom_headers).value! - nil + 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! + response.body unless response.nil? end # # Create the runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookCreateOrUpdateParameters] The create or update @@ -246,13 +250,14 @@ def create_or_update(automation_account_name, runbook_name, parameters, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create the runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookCreateOrUpdateParameters] The create or update @@ -263,23 +268,23 @@ def create_or_update_with_http_info(automation_account_name, runbook_name, param # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? - fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -291,7 +296,7 @@ def create_or_update_async(automation_account_name, runbook_name, parameters, cu options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -309,6 +314,26 @@ def create_or_update_async(automation_account_name, runbook_name, parameters, cu end result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end result end @@ -319,6 +344,7 @@ def create_or_update_async(automation_account_name, runbook_name, parameters, cu # # Update the runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookUpdateParameters] The update parameters for @@ -328,14 +354,15 @@ def create_or_update_async(automation_account_name, runbook_name, parameters, cu # # @return [Runbook] operation results. # - def update(automation_account_name, runbook_name, parameters, custom_headers:nil) - response = update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Update the runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookUpdateParameters] The update parameters for @@ -345,13 +372,14 @@ def update(automation_account_name, runbook_name, parameters, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(automation_account_name, runbook_name, parameters, custom_headers:nil) - update_async(automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value! + 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! end # # Update the runbook identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param runbook_name [String] The runbook name. # @param parameters [RunbookUpdateParameters] The update parameters for @@ -361,23 +389,23 @@ def update_with_http_info(automation_account_name, runbook_name, parameters, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? - fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -389,7 +417,7 @@ def update_async(automation_account_name, runbook_name, parameters, custom_heade options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, body: request_content, headers: request_headers.merge(custom_headers || {}), @@ -427,20 +455,22 @@ def update_async(automation_account_name, runbook_name, parameters, custom_heade # # Delete the runbook by name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, runbook_name, custom_headers:nil) - response = delete_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the runbook by name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -448,13 +478,14 @@ def delete(automation_account_name, runbook_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, runbook_name, custom_headers:nil) - delete_async(automation_account_name, runbook_name, custom_headers:custom_headers).value! + 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! end # # Delete the runbook by name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -462,17 +493,15 @@ def delete_with_http_info(automation_account_name, runbook_name, custom_headers: # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -483,7 +512,7 @@ def delete_async(automation_account_name, runbook_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -494,7 +523,7 @@ def delete_async(automation_account_name, runbook_name, custom_headers:nil) http_response = result.response status_code = http_response.status response_content = http_response.body - unless status_code == 200 + unless status_code == 200 || status_code == 204 error_model = JSON.load(response_content) fail MsRest::HttpOperationError.new(result.request, http_response, error_model) end @@ -510,49 +539,50 @@ def delete_async(automation_account_name, runbook_name, custom_headers:nil) # # Retrieve a list of runbooks. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of runbooks. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of runbooks. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? - fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? + def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil) fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -563,7 +593,7 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -607,8 +637,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [RunbookListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -622,8 +652,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -636,12 +666,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -688,6 +717,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of runbooks. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -695,12 +725,12 @@ 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(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 cbef0b7150..1e3300a3cb 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,6 +24,7 @@ def initialize(client) # # Create a schedule. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied @@ -33,14 +34,15 @@ def initialize(client) # # @return [Schedule] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create a schedule. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied @@ -50,13 +52,14 @@ def create_or_update(automation_account_name, schedule_name, parameters, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create a schedule. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleCreateOrUpdateParameters] The parameters supplied @@ -66,9 +69,8 @@ def create_or_update_with_http_info(automation_account_name, schedule_name, para # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -77,12 +79,13 @@ def create_or_update_async(automation_account_name, schedule_name, parameters, c request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -94,7 +97,7 @@ def create_or_update_async(automation_account_name, schedule_name, parameters, c options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -132,6 +135,7 @@ def create_or_update_async(automation_account_name, schedule_name, parameters, c # # Update the schedule identified by schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleUpdateParameters] The parameters supplied to the @@ -141,14 +145,15 @@ def create_or_update_async(automation_account_name, schedule_name, parameters, c # # @return [Schedule] operation results. # - def update(automation_account_name, schedule_name, parameters, custom_headers:nil) - response = update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Update the schedule identified by schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleUpdateParameters] The parameters supplied to the @@ -158,13 +163,14 @@ def update(automation_account_name, schedule_name, parameters, custom_headers:ni # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(automation_account_name, schedule_name, parameters, custom_headers:nil) - update_async(automation_account_name, schedule_name, parameters, custom_headers:custom_headers).value! + 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! end # # Update the schedule identified by schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param schedule_name [String] The schedule name. # @param parameters [ScheduleUpdateParameters] The parameters supplied to the @@ -174,9 +180,8 @@ def update_with_http_info(automation_account_name, schedule_name, parameters, cu # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -185,12 +190,13 @@ def update_async(automation_account_name, schedule_name, parameters, custom_head request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -202,7 +208,7 @@ def update_async(automation_account_name, schedule_name, parameters, custom_head options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -240,6 +246,7 @@ def update_async(automation_account_name, schedule_name, parameters, custom_head # # Retrieve the schedule identified by schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -247,14 +254,15 @@ def update_async(automation_account_name, schedule_name, parameters, custom_head # # @return [Schedule] operation results. # - def get(automation_account_name, schedule_name, custom_headers:nil) - response = get_async(automation_account_name, schedule_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the schedule identified by schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -262,13 +270,14 @@ def get(automation_account_name, schedule_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, schedule_name, custom_headers:nil) - get_async(automation_account_name, schedule_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the schedule identified by schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -276,9 +285,8 @@ def get_with_http_info(automation_account_name, schedule_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -286,7 +294,6 @@ def get_async(automation_account_name, schedule_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -297,7 +304,7 @@ def get_async(automation_account_name, schedule_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -334,20 +341,22 @@ def get_async(automation_account_name, schedule_name, custom_headers:nil) # # Delete the schedule identified by schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, schedule_name, custom_headers:nil) - response = delete_async(automation_account_name, schedule_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the schedule identified by schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -355,13 +364,14 @@ def delete(automation_account_name, schedule_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, schedule_name, custom_headers:nil) - delete_async(automation_account_name, schedule_name, custom_headers:custom_headers).value! + 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! end # # Delete the schedule identified by schedule name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -369,9 +379,8 @@ def delete_with_http_info(automation_account_name, schedule_name, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -379,7 +388,6 @@ def delete_async(automation_account_name, schedule_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -390,7 +398,7 @@ def delete_async(automation_account_name, schedule_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'scheduleName' => schedule_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -417,49 +425,50 @@ def delete_async(automation_account_name, schedule_name, custom_headers:nil) # # Retrieve a list of schedules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of schedules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of schedules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -470,7 +479,7 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -514,8 +523,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [ScheduleListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -529,8 +538,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -543,12 +552,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -595,6 +603,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of schedules. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -602,12 +611,12 @@ 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(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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 751171885e..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 @@ -32,8 +32,8 @@ def initialize(client) # # @return [StatisticsListResult] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value! + def list_by_automation_account(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! response.body unless response.nil? end @@ -48,8 +48,8 @@ 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:filter, custom_headers:custom_headers).value! + 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! end # @@ -63,16 +63,14 @@ 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) + 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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid diff --git a/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_operations.rb b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_operations.rb new file mode 100644 index 0000000000..95c7e473d3 --- /dev/null +++ b/management/azure_mgmt_automation/lib/2015-10-31/generated/azure_mgmt_automation/test_job_operations.rb @@ -0,0 +1,486 @@ +# 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 + # + # Automation Client + # + class TestJobOperations + include MsRestAzure + + # + # Creates and initializes a new instance of the TestJobOperations class. + # @param client service class for accessing basic functionality. + # + def initialize(client) + @client = client + end + + # @return [AutomationClient] reference to the AutomationClient + attr_reader :client + + # + # Create a test job of the runbook. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @param automation_account_name [String] The automation account name. + # @param runbook_name [String] The parameters supplied to the create test job + # operation. + # @param parameters [TestJobCreateParameters] The parameters supplied to the + # create test job operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @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! + response.body unless response.nil? + end + + # + # Create a test job of the runbook. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @param automation_account_name [String] The automation account name. + # @param runbook_name [String] The parameters supplied to the create test job + # operation. + # @param parameters [TestJobCreateParameters] The parameters supplied to the + # create test job operation. + # @param custom_headers [Hash{String => String}] A hash of custom headers that + # will be added to the HTTP request. + # + # @return [MsRestAzure::AzureOperationResponse] HTTP response information. + # + def 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! + end + + # + # Create a test job of the runbook. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @param automation_account_name [String] The automation account name. + # @param runbook_name [String] The parameters supplied to the create test job + # operation. + # @param parameters [TestJobCreateParameters] The parameters supplied to the + # create test job operation. + # @param [Hash{String => String}] A hash of custom headers that will be added + # to the HTTP request. + # + # @return [Concurrent::Promise] Promise object which holds the HTTP response. + # + def create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? + fail ArgumentError, '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? + fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + + request_headers['Content-Type'] = 'application/json; charset=utf-8' + + # Serialize Request + request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters.mapper() + request_content = @client.serialize(request_mapper, parameters) + request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil + + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, + query_params: {'api-version' => @client.api_version}, + body: request_content, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:put, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 201 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 201 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Retrieve the test job for the specified runbook. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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. + # + # @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! + response.body unless response.nil? + end + + # + # Retrieve the test job for the specified runbook. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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. + # + # @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! + end + + # + # Retrieve the test job for the specified runbook. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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 + # to the HTTP request. + # + # @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, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if 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.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:get, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + # Deserialize Response + if status_code == 200 + begin + parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content) + result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob.mapper() + result.body = @client.deserialize(result_mapper, parsed_response) + rescue Exception => e + fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result) + end + end + + result + end + + promise.execute + end + + # + # Resume the test job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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! + nil + end + + # + # Resume the test job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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. + # + # @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! + end + + # + # Resume the test job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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 + # to the HTTP request. + # + # @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, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if 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.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/resume' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Stop the test job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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! + nil + end + + # + # Stop the test job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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. + # + # @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! + end + + # + # Stop the test job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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 + # to the HTTP request. + # + # @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, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if 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.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/stop' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + # + # Suspend the test job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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! + nil + end + + # + # Suspend the test job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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. + # + # @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! + end + + # + # Suspend the test job. + # + # @param resource_group_name [String] Name of an Azure Resource group. + # @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 + # to the HTTP request. + # + # @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, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if 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.api_version is nil' if @client.api_version.nil? + + + request_headers = {} + + # Set Headers + request_headers['x-ms-client-request-id'] = SecureRandom.uuid + request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}/draft/testJob/suspend' + + request_url = @base_url || @client.base_url + + options = { + middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, + query_params: {'api-version' => @client.api_version}, + headers: request_headers.merge(custom_headers || {}), + base_url: request_url + } + promise = @client.make_request_async(:post, path_template, options) + + promise = promise.then do |result| + http_response = result.response + status_code = http_response.status + response_content = http_response.body + unless status_code == 200 + error_model = JSON.load(response_content) + fail MsRest::HttpOperationError.new(result.request, http_response, error_model) + end + + result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil? + + result + end + + promise.execute + end + + end +end 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 3a54f73402..12a6bb165a 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 @@ -22,8 +22,10 @@ def initialize(client) attr_reader :client # - # Retrieve a test job streams identified by runbook name and stream id. + # Retrieve a test job stream of the test job identified by runbook name and + # stream id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -32,14 +34,16 @@ def initialize(client) # # @return [JobStream] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # - # Retrieve a test job streams identified by runbook name and stream id. + # Retrieve a test job stream of the test job identified by runbook name and + # stream id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -48,13 +52,15 @@ def get(automation_account_name, runbook_name, job_stream_id, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # - # Retrieve a test job streams identified by runbook name and stream id. + # Retrieve a test job stream of the test job identified by runbook name and + # stream id. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -63,18 +69,16 @@ def get_with_http_info(automation_account_name, runbook_name, job_stream_id, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? - fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -85,7 +89,7 @@ def get_async(automation_account_name, runbook_name, job_stream_id, custom_heade options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'jobStreamId' => job_stream_id}, query_params: {'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -122,6 +126,7 @@ def get_async(automation_account_name, runbook_name, job_stream_id, custom_heade # # Retrieve a list of test job streams identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -130,14 +135,15 @@ def get_async(automation_account_name, runbook_name, job_stream_id, custom_heade # # @return [Array] operation results. # - 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:filter, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of test job streams identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -146,13 +152,14 @@ def list_by_test_job(automation_account_name, runbook_name, filter:nil, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:filter, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of test job streams identified by runbook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -161,17 +168,15 @@ def list_by_test_job_with_http_info(automation_account_name, runbook_name, filte # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + def list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil) + fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil? + fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil? fail ArgumentError, '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? fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -182,7 +187,7 @@ def list_by_test_job_async(automation_account_name, runbook_name, filter:nil, cu options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name}, query_params: {'$filter' => filter,'api-version' => @client.api_version}, headers: request_headers.merge(custom_headers || {}), base_url: request_url @@ -226,8 +231,8 @@ def list_by_test_job_async(automation_account_name, runbook_name, filter:nil, cu # # @return [JobStreamListResult] operation results. # - def list_by_test_job_next(next_page_link, custom_headers:nil) - response = list_by_test_job_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_test_job_next(next_page_link, custom_headers = nil) + response = list_by_test_job_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -241,8 +246,8 @@ def list_by_test_job_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_test_job_next_with_http_info(next_page_link, custom_headers:nil) - list_by_test_job_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_test_job_next_with_http_info(next_page_link, custom_headers = nil) + list_by_test_job_next_async(next_page_link, custom_headers).value! end # @@ -255,12 +260,11 @@ def list_by_test_job_next_with_http_info(next_page_link, custom_headers:nil) # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_test_job_next_async(next_page_link, custom_headers:nil) + def list_by_test_job_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -307,6 +311,7 @@ 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] Name of an Azure Resource group. # @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. @@ -316,12 +321,12 @@ 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(automation_account_name, runbook_name, filter:nil, custom_headers:nil) - response = list_by_test_job_async(automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_test_job_next_async(next_page_link, custom_headers:custom_headers) + list_by_test_job_next_async(next_page_link, custom_headers) end page end 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 0c186fdf0b..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 @@ -31,8 +31,8 @@ def initialize(client) # # @return [UsageListResult] operation results. # - def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value! + def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil) + response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value! response.body unless response.nil? end @@ -46,8 +46,8 @@ def list_by_automation_account(resource_group_name, automation_account_name, cus # # @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:custom_headers).value! + 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! end # @@ -60,16 +60,14 @@ 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, custom_headers:nil) + 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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid 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 cd4609dfce..e29f60183f 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,6 +24,7 @@ def initialize(client) # # Create a variable. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied @@ -33,14 +34,15 @@ def initialize(client) # # @return [Variable] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create a variable. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied @@ -50,13 +52,14 @@ def create_or_update(automation_account_name, variable_name, parameters, custom_ # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create a variable. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied @@ -66,9 +69,8 @@ def create_or_update_with_http_info(automation_account_name, variable_name, para # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -77,12 +79,13 @@ def create_or_update_async(automation_account_name, variable_name, parameters, c request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -94,7 +97,7 @@ def create_or_update_async(automation_account_name, variable_name, parameters, c options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -142,6 +145,7 @@ def create_or_update_async(automation_account_name, variable_name, parameters, c # # Update a variable. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableUpdateParameters] The parameters supplied to the @@ -151,14 +155,15 @@ def create_or_update_async(automation_account_name, variable_name, parameters, c # # @return [Variable] operation results. # - def update(automation_account_name, variable_name, parameters, custom_headers:nil) - response = update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Update a variable. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableUpdateParameters] The parameters supplied to the @@ -168,13 +173,14 @@ def update(automation_account_name, variable_name, parameters, custom_headers:ni # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(automation_account_name, variable_name, parameters, custom_headers:nil) - update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value! + 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! end # # Update a variable. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param variable_name [String] The variable name. # @param parameters [VariableUpdateParameters] The parameters supplied to the @@ -184,9 +190,8 @@ def update_with_http_info(automation_account_name, variable_name, parameters, cu # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -195,12 +200,13 @@ def update_async(automation_account_name, variable_name, parameters, custom_head request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -212,7 +218,7 @@ def update_async(automation_account_name, variable_name, parameters, custom_head options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -250,20 +256,22 @@ def update_async(automation_account_name, variable_name, parameters, custom_head # # Delete the variable. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, variable_name, custom_headers:nil) - response = delete_async(automation_account_name, variable_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the variable. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -271,13 +279,14 @@ def delete(automation_account_name, variable_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, variable_name, custom_headers:nil) - delete_async(automation_account_name, variable_name, custom_headers:custom_headers).value! + 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! end # # Delete the variable. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -285,9 +294,8 @@ def delete_with_http_info(automation_account_name, variable_name, custom_headers # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -295,7 +303,6 @@ def delete_async(automation_account_name, variable_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -306,7 +313,7 @@ def delete_async(automation_account_name, variable_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -333,6 +340,7 @@ def delete_async(automation_account_name, variable_name, custom_headers:nil) # # Retrieve the variable identified by variable name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -340,14 +348,15 @@ def delete_async(automation_account_name, variable_name, custom_headers:nil) # # @return [Variable] operation results. # - def get(automation_account_name, variable_name, custom_headers:nil) - response = get_async(automation_account_name, variable_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the variable identified by variable name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -355,13 +364,14 @@ def get(automation_account_name, variable_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, variable_name, custom_headers:nil) - get_async(automation_account_name, variable_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the variable identified by variable name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -369,9 +379,8 @@ def get_with_http_info(automation_account_name, variable_name, custom_headers:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -379,7 +388,6 @@ def get_async(automation_account_name, variable_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -390,7 +398,7 @@ def get_async(automation_account_name, variable_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -427,49 +435,50 @@ def get_async(automation_account_name, variable_name, custom_headers:nil) # # Retrieve a list of variables. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of variables. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of variables. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -480,7 +489,7 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -524,8 +533,8 @@ def list_by_automation_account_async(automation_account_name, custom_headers:nil # # @return [VariableListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -539,8 +548,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -553,12 +562,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -605,6 +613,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of variables. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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. @@ -612,12 +621,12 @@ 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(automation_account_name, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end 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..653a6b63cb --- /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.16.0' +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 619be31ea3..33ff6503af 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,49 +24,50 @@ def initialize(client) # # Generates a Uri for use in creating a webhook. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - response = generate_uri_async(automation_account_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Generates a Uri for use in creating a webhook. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - generate_uri_async(automation_account_name, custom_headers:custom_headers).value! + 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! end # # Generates a Uri for use in creating a webhook. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, custom_headers:nil) - fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil? - fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -77,7 +78,7 @@ def generate_uri_async(automation_account_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -99,7 +100,6 @@ def generate_uri_async(automation_account_name, custom_headers:nil) 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: { @@ -121,20 +121,22 @@ def generate_uri_async(automation_account_name, custom_headers:nil) # # Delete the webhook by name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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(automation_account_name, webhook_name, custom_headers:nil) - response = delete_async(automation_account_name, webhook_name, custom_headers:custom_headers).value! + 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! nil end # # Delete the webhook by name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -142,13 +144,14 @@ def delete(automation_account_name, webhook_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def delete_with_http_info(automation_account_name, webhook_name, custom_headers:nil) - delete_async(automation_account_name, webhook_name, custom_headers:custom_headers).value! + 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! end # # Delete the webhook by name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -156,9 +159,8 @@ def delete_with_http_info(automation_account_name, webhook_name, custom_headers: # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -166,7 +168,6 @@ def delete_async(automation_account_name, webhook_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -177,7 +178,7 @@ def delete_async(automation_account_name, webhook_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -204,6 +205,7 @@ def delete_async(automation_account_name, webhook_name, custom_headers:nil) # # Retrieve the webhook identified by webhook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -211,14 +213,15 @@ def delete_async(automation_account_name, webhook_name, custom_headers:nil) # # @return [Webhook] operation results. # - def get(automation_account_name, webhook_name, custom_headers:nil) - response = get_async(automation_account_name, webhook_name, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Retrieve the webhook identified by webhook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -226,13 +229,14 @@ def get(automation_account_name, webhook_name, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def get_with_http_info(automation_account_name, webhook_name, custom_headers:nil) - get_async(automation_account_name, webhook_name, custom_headers:custom_headers).value! + 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! end # # Retrieve the webhook identified by webhook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -240,9 +244,8 @@ def get_with_http_info(automation_account_name, webhook_name, custom_headers:nil # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -250,7 +253,6 @@ def get_async(automation_account_name, webhook_name, custom_headers:nil) request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -261,7 +263,7 @@ def get_async(automation_account_name, webhook_name, custom_headers:nil) options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -298,6 +300,7 @@ def get_async(automation_account_name, webhook_name, custom_headers:nil) # # Create the webhook identified by webhook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookCreateOrUpdateParameters] The create or update @@ -307,14 +310,15 @@ def get_async(automation_account_name, webhook_name, custom_headers:nil) # # @return [Webhook] operation results. # - 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:custom_headers).value! + 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! response.body unless response.nil? end # # Create the webhook identified by webhook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookCreateOrUpdateParameters] The create or update @@ -324,13 +328,14 @@ def create_or_update(automation_account_name, webhook_name, parameters, custom_h # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:custom_headers).value! + 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! end # # Create the webhook identified by webhook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookCreateOrUpdateParameters] The create or update @@ -340,9 +345,8 @@ def create_or_update_with_http_info(automation_account_name, webhook_name, param # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -351,12 +355,13 @@ def create_or_update_async(automation_account_name, webhook_name, parameters, cu request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -368,7 +373,7 @@ def create_or_update_async(automation_account_name, webhook_name, parameters, cu options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -416,6 +421,7 @@ def create_or_update_async(automation_account_name, webhook_name, parameters, cu # # Update the webhook identified by webhook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookUpdateParameters] The update parameters for @@ -425,14 +431,15 @@ def create_or_update_async(automation_account_name, webhook_name, parameters, cu # # @return [Webhook] operation results. # - def update(automation_account_name, webhook_name, parameters, custom_headers:nil) - response = update_async(automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value! + 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! response.body unless response.nil? end # # Update the webhook identified by webhook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookUpdateParameters] The update parameters for @@ -442,13 +449,14 @@ def update(automation_account_name, webhook_name, parameters, custom_headers:nil # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def update_with_http_info(automation_account_name, webhook_name, parameters, custom_headers:nil) - update_async(automation_account_name, webhook_name, parameters, custom_headers:custom_headers).value! + 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! end # # Update the webhook identified by webhook name. # + # @param resource_group_name [String] Name of an Azure Resource group. # @param automation_account_name [String] The automation account name. # @param webhook_name [String] The webhook name. # @param parameters [WebhookUpdateParameters] The update parameters for @@ -458,9 +466,8 @@ def update_with_http_info(automation_account_name, webhook_name, parameters, cus # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? @@ -469,12 +476,13 @@ def update_async(automation_account_name, webhook_name, parameters, custom_heade request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil? + request_headers['Content-Type'] = 'application/json; charset=utf-8' + # Serialize Request request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters.mapper() request_content = @client.serialize(request_mapper, parameters) @@ -486,7 +494,7 @@ def update_async(automation_account_name, webhook_name, parameters, custom_heade options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'webhookName' => webhook_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 || {}), @@ -524,6 +532,7 @@ def update_async(automation_account_name, webhook_name, parameters, custom_heade # # Retrieve a list of webhooks. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -531,14 +540,15 @@ def update_async(automation_account_name, webhook_name, parameters, custom_heade # # @return [Array] operation results. # - 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:filter, custom_headers:custom_headers) + 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) first_page.get_all_items end # # Retrieve a list of webhooks. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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,13 +556,14 @@ def list_by_automation_account(automation_account_name, filter:nil, custom_heade # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - 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:filter, custom_headers:custom_headers).value! + 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! end # # Retrieve a list of webhooks. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -560,16 +571,14 @@ def list_by_automation_account_with_http_info(automation_account_name, filter:ni # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - 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, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil? + 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, '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? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -580,7 +589,7 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom options = { middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]], - path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id}, + path_params: {'resourceGroupName' => 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 @@ -624,8 +633,8 @@ def list_by_automation_account_async(automation_account_name, filter:nil, custom # # @return [WebhookListResult] operation results. # - def list_by_automation_account_next(next_page_link, custom_headers:nil) - response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next(next_page_link, custom_headers = nil) + response = list_by_automation_account_next_async(next_page_link, custom_headers).value! response.body unless response.nil? end @@ -639,8 +648,8 @@ def list_by_automation_account_next(next_page_link, custom_headers:nil) # # @return [MsRestAzure::AzureOperationResponse] HTTP response information. # - def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil) - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value! + def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil) + list_by_automation_account_next_async(next_page_link, custom_headers).value! end # @@ -653,12 +662,11 @@ def list_by_automation_account_next_with_http_info(next_page_link, custom_header # # @return [Concurrent::Promise] Promise object which holds the HTTP response. # - def list_by_automation_account_next_async(next_page_link, custom_headers:nil) + def list_by_automation_account_next_async(next_page_link, custom_headers = nil) fail ArgumentError, 'next_page_link is nil' if next_page_link.nil? request_headers = {} - request_headers['Content-Type'] = 'application/json; charset=utf-8' # Set Headers request_headers['x-ms-client-request-id'] = SecureRandom.uuid @@ -705,6 +713,7 @@ def list_by_automation_account_next_async(next_page_link, custom_headers:nil) # # Retrieve a list of webhooks. # + # @param resource_group_name [String] Name of an Azure Resource group. # @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 @@ -713,12 +722,12 @@ 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(automation_account_name, filter:nil, custom_headers:nil) - response = list_by_automation_account_async(automation_account_name, filter:filter, custom_headers:custom_headers).value! + 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! unless response.nil? page = response.body page.next_method = Proc.new do |next_page_link| - list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers) + list_by_automation_account_next_async(next_page_link, custom_headers) end page end diff --git a/management/azure_mgmt_automation/lib/profiles/latest/modules/automation_profile_module.rb b/management/azure_mgmt_automation/lib/profiles/latest/modules/automation_profile_module.rb index db0848653b..6832cf15d7 100644 --- a/management/azure_mgmt_automation/lib/profiles/latest/modules/automation_profile_module.rb +++ b/management/azure_mgmt_automation/lib/profiles/latest/modules/automation_profile_module.rb @@ -10,11 +10,13 @@ module Mgmt Operations = Azure::Automation::Mgmt::V2015_10_31::Operations StatisticsOperations = Azure::Automation::Mgmt::V2015_10_31::StatisticsOperations Usages = Azure::Automation::Mgmt::V2015_10_31::Usages + Keys = Azure::Automation::Mgmt::V2015_10_31::Keys CertificateOperations = Azure::Automation::Mgmt::V2015_10_31::CertificateOperations ConnectionOperations = Azure::Automation::Mgmt::V2015_10_31::ConnectionOperations ConnectionTypeOperations = Azure::Automation::Mgmt::V2015_10_31::ConnectionTypeOperations CredentialOperations = Azure::Automation::Mgmt::V2015_10_31::CredentialOperations DscCompilationJobOperations = Azure::Automation::Mgmt::V2015_10_31::DscCompilationJobOperations + DscCompilationJobStream = Azure::Automation::Mgmt::V2015_10_31::DscCompilationJobStream DscConfigurationOperations = Azure::Automation::Mgmt::V2015_10_31::DscConfigurationOperations AgentRegistrationInformation = Azure::Automation::Mgmt::V2015_10_31::AgentRegistrationInformation DscNodeOperations = Azure::Automation::Mgmt::V2015_10_31::DscNodeOperations @@ -24,6 +26,7 @@ module Mgmt JobOperations = Azure::Automation::Mgmt::V2015_10_31::JobOperations JobStreamOperations = Azure::Automation::Mgmt::V2015_10_31::JobStreamOperations JobScheduleOperations = Azure::Automation::Mgmt::V2015_10_31::JobScheduleOperations + LinkedWorkspaceOperations = Azure::Automation::Mgmt::V2015_10_31::LinkedWorkspaceOperations ActivityOperations = Azure::Automation::Mgmt::V2015_10_31::ActivityOperations ModuleModelOperations = Azure::Automation::Mgmt::V2015_10_31::ModuleModelOperations ObjectDataTypes = Azure::Automation::Mgmt::V2015_10_31::ObjectDataTypes @@ -31,125 +34,136 @@ module Mgmt RunbookDraftOperations = Azure::Automation::Mgmt::V2015_10_31::RunbookDraftOperations RunbookOperations = Azure::Automation::Mgmt::V2015_10_31::RunbookOperations TestJobStreams = Azure::Automation::Mgmt::V2015_10_31::TestJobStreams - TestJobs = Azure::Automation::Mgmt::V2015_10_31::TestJobs + TestJobOperations = Azure::Automation::Mgmt::V2015_10_31::TestJobOperations ScheduleOperations = Azure::Automation::Mgmt::V2015_10_31::ScheduleOperations VariableOperations = Azure::Automation::Mgmt::V2015_10_31::VariableOperations WebhookOperations = Azure::Automation::Mgmt::V2015_10_31::WebhookOperations module Models + AgentRegistration = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + ErrorResponse = Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + AgentRegistrationRegenerateKeyParameter = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter + KeyListResult = Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult DscCompilationJobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters - DscCompilationJob = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob - UsageCounterName = Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName + Usage = Azure::Automation::Mgmt::V2015_10_31::Models::Usage DscCompilationJobListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobListResult - UsageListResult = Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult + Statistics = Azure::Automation::Mgmt::V2015_10_31::Models::Statistics DscConfigurationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationListResult - StatisticsListResult = Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult + RunbookAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookAssociationProperty DscConfigurationCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters - ContentHash = Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash - DscMetaConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration - RunbookDraft = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft - DscNodeConfigurationCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters - ModuleErrorInfo = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo - DscNodeConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration - DscNodeExtensionHandlerAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + AgentRegistrationKeys = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeys + Key = Azure::Automation::Mgmt::V2015_10_31::Models::Key + DscConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationAssociationProperty + UsageCounterName = Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName DscNodeConfigurationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationListResult - DscNodeConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty - ContentSource = Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource - WebhookListResult = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult + UsageListResult = Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult + DscNodeConfigurationCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters + StatisticsListResult = Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult DscNodeListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult - Sku = Azure::Automation::Mgmt::V2015_10_31::Models::Sku + TypeFieldListResult = Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult + RunbookParameter = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter + TypeField = Azure::Automation::Mgmt::V2015_10_31::Models::TypeField + ContentLink = Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink + VariableCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters + WebhookUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters + DscConfigurationUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationUpdateParameters + WebhookListResult = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult + DscMetaConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration + DscConfigurationParameter = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationParameter + DscNodeConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty + VariableUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters + DscNodeExtensionHandlerAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + VariableListResult = Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult DscNodeUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters - AutomationAccountListResult = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult + OperationDisplay = Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay DscReportError = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportError - Operation = Azure::Automation::Mgmt::V2015_10_31::Models::Operation + OperationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult DscReportResourceNavigation = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResourceNavigation - AutomationAccountCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters + AutomationAccountUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters DscReportResource = Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResource - Certificate = Azure::Automation::Mgmt::V2015_10_31::Models::Certificate - DscNodeReport = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport CertificateUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters + DscNodeReport = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport + ConnectionListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionListResult DscNodeReportListResult = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReportListResult - ConnectionTypeAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty + ConnectionCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters HybridRunbookWorker = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorker - ConnectionListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionListResult + ConnectionType = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType RunAsCredentialAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::RunAsCredentialAssociationProperty - ConnectionCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters + ConnectionTypeCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters HybridRunbookWorkerGroup = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroup - ConnectionType = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType + CredentialUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters HybridRunbookWorkerGroupsListResult = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupsListResult - ConnectionTypeCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters + ActivityParameter = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter HybridRunbookWorkerGroupUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupUpdateParameters - CredentialListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialListResult - RunbookAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookAssociationProperty - CredentialCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters + ActivityOutputType = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType Job = Azure::Automation::Mgmt::V2015_10_31::Models::Job - ActivityParameterSet = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet + ActivityListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult JobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::JobCreateParameters - Activity = Azure::Automation::Mgmt::V2015_10_31::Models::Activity + AdvancedSchedule = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule JobListResult = Azure::Automation::Mgmt::V2015_10_31::Models::JobListResult - AdvancedScheduleMonthlyOccurrence = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence ScheduleAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleAssociationProperty - AgentRegistrationKeys = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeys + Resource = Azure::Automation::Mgmt::V2015_10_31::Models::Resource JobScheduleCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleCreateParameters - AgentRegistrationRegenerateKeyParameter = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter + RunbookDraft = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft JobSchedule = Azure::Automation::Mgmt::V2015_10_31::Models::JobSchedule - ErrorResponse = Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + ContentSource = Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource JobScheduleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleListResult - Statistics = Azure::Automation::Mgmt::V2015_10_31::Models::Statistics + Sku = Azure::Automation::Mgmt::V2015_10_31::Models::Sku JobStream = Azure::Automation::Mgmt::V2015_10_31::Models::JobStream - ContentLink = Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink + Operation = Azure::Automation::Mgmt::V2015_10_31::Models::Operation JobStreamListResult = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult - Webhook = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook - DscConfigurationParameter = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationParameter + CertificateListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult + LinkedWorkspace = Azure::Automation::Mgmt::V2015_10_31::Models::LinkedWorkspace + ConnectionUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters ModuleCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleCreateOrUpdateParameters - WebhookUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters + ConnectionTypeListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeListResult ModuleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleListResult - OperationListResult = Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult + CredentialCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters ModuleUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters - CertificateListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult + Activity = Azure::Automation::Mgmt::V2015_10_31::Models::Activity RunbookDraftUndoEditResult = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraftUndoEditResult - Connection = Azure::Automation::Mgmt::V2015_10_31::Models::Connection + JobProvisioningStateProperty = Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningStateProperty RunbookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters - FieldDefinition = Azure::Automation::Mgmt::V2015_10_31::Models::FieldDefinition + ContentHash = Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash RunbookCreateOrUpdateDraftProperties = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties - Credential = Azure::Automation::Mgmt::V2015_10_31::Models::Credential + WebhookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters RunbookCreateOrUpdateDraftParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftParameters - ActivityParameter = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter + AutomationAccountCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters RunbookUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters - ActivityListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult + FieldDefinition = Azure::Automation::Mgmt::V2015_10_31::Models::FieldDefinition RunbookListResult = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookListResult - AgentRegistration = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + ActivityParameterSet = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet ScheduleCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters - Usage = Azure::Automation::Mgmt::V2015_10_31::Models::Usage + ConnectionTypeAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty Schedule = Azure::Automation::Mgmt::V2015_10_31::Models::Schedule - WebhookCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters - Resource = Azure::Automation::Mgmt::V2015_10_31::Models::Resource + AutomationAccountListResult = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult ScheduleUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters - AutomationAccountUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters + CredentialListResult = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialListResult ScheduleListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleListResult - ConnectionUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters + ModuleErrorInfo = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo SubResource = Azure::Automation::Mgmt::V2015_10_31::Models::SubResource - CredentialUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters + AdvancedScheduleMonthlyOccurrence = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence TestJobCreateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters - AdvancedSchedule = Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule - TestJob = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob - RunbookParameter = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter - TypeField = Azure::Automation::Mgmt::V2015_10_31::Models::TypeField CertificateCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters - TypeFieldListResult = Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult - ActivityOutputType = Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType - VariableCreateOrUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters - OperationDisplay = Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay + TestJob = Azure::Automation::Mgmt::V2015_10_31::Models::TestJob + ProxyResource = Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource + Webhook = Azure::Automation::Mgmt::V2015_10_31::Models::Webhook Variable = Azure::Automation::Mgmt::V2015_10_31::Models::Variable - DscConfigurationAssociationProperty = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationAssociationProperty - VariableListResult = Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult - ConnectionTypeListResult = Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeListResult - VariableUpdateParameters = Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters + DscCompilationJob = Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob + Credential = Azure::Automation::Mgmt::V2015_10_31::Models::Credential + Connection = Azure::Automation::Mgmt::V2015_10_31::Models::Connection + Certificate = Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + TrackedResource = Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource Runbook = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook ModuleModel = Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel - DscNode = Azure::Automation::Mgmt::V2015_10_31::Models::DscNode DscConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration AutomationAccount = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccount + DscNode = Azure::Automation::Mgmt::V2015_10_31::Models::DscNode + DscNodeConfiguration = Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration + AutomationKeyName = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName + AutomationKeyPermissions = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyPermissions + JobProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState + JobStatus = Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus RunbookTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum RunbookState = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookState RunbookProvisioningState = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookProvisioningState @@ -161,7 +175,7 @@ module Models AutomationAccountState = Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountState ScheduleDay = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleDay AgentRegistrationKeyName = Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName - JobStatus = Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus + GroupTypeEnum = Azure::Automation::Mgmt::V2015_10_31::Models::GroupTypeEnum JobStreamType = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamType HttpStatusCode = Azure::Automation::Mgmt::V2015_10_31::Models::HttpStatusCode ScheduleFrequency = Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleFrequency @@ -171,7 +185,7 @@ module Models # AutomationManagementClass # class AutomationManagementClass - attr_reader :automation_account_operations, :operations, :statistics_operations, :usages, :certificate_operations, :connection_operations, :connection_type_operations, :credential_operations, :dsc_compilation_job_operations, :dsc_configuration_operations, :agent_registration_information, :dsc_node_operations, :node_reports, :dsc_node_configuration_operations, :hybrid_runbook_worker_group_operations, :job_operations, :job_stream_operations, :job_schedule_operations, :activity_operations, :module_model_operations, :object_data_types, :fields, :runbook_draft_operations, :runbook_operations, :test_job_streams, :test_jobs, :schedule_operations, :variable_operations, :webhook_operations, :configurable, :base_url, :options, :model_classes + attr_reader :automation_account_operations, :operations, :statistics_operations, :usages, :keys, :certificate_operations, :connection_operations, :connection_type_operations, :credential_operations, :dsc_compilation_job_operations, :dsc_compilation_job_stream, :dsc_configuration_operations, :agent_registration_information, :dsc_node_operations, :node_reports, :dsc_node_configuration_operations, :hybrid_runbook_worker_group_operations, :job_operations, :job_stream_operations, :job_schedule_operations, :linked_workspace_operations, :activity_operations, :module_model_operations, :object_data_types, :fields, :runbook_draft_operations, :runbook_operations, :test_job_streams, :test_job_operations, :schedule_operations, :variable_operations, :webhook_operations, :configurable, :base_url, :options, :model_classes def initialize(options = {}) if options.is_a?(Hash) && options.length == 0 @@ -195,11 +209,13 @@ def initialize(options = {}) @operations = @client_0.operations @statistics_operations = @client_0.statistics_operations @usages = @client_0.usages + @keys = @client_0.keys @certificate_operations = @client_0.certificate_operations @connection_operations = @client_0.connection_operations @connection_type_operations = @client_0.connection_type_operations @credential_operations = @client_0.credential_operations @dsc_compilation_job_operations = @client_0.dsc_compilation_job_operations + @dsc_compilation_job_stream = @client_0.dsc_compilation_job_stream @dsc_configuration_operations = @client_0.dsc_configuration_operations @agent_registration_information = @client_0.agent_registration_information @dsc_node_operations = @client_0.dsc_node_operations @@ -209,6 +225,7 @@ def initialize(options = {}) @job_operations = @client_0.job_operations @job_stream_operations = @client_0.job_stream_operations @job_schedule_operations = @client_0.job_schedule_operations + @linked_workspace_operations = @client_0.linked_workspace_operations @activity_operations = @client_0.activity_operations @module_model_operations = @client_0.module_model_operations @object_data_types = @client_0.object_data_types @@ -216,7 +233,7 @@ def initialize(options = {}) @runbook_draft_operations = @client_0.runbook_draft_operations @runbook_operations = @client_0.runbook_operations @test_job_streams = @client_0.test_job_streams - @test_jobs = @client_0.test_jobs + @test_job_operations = @client_0.test_job_operations @schedule_operations = @client_0.schedule_operations @variable_operations = @client_0.variable_operations @webhook_operations = @client_0.webhook_operations @@ -240,329 +257,347 @@ def method_missing(method, *args) end class ModelClasses + def agent_registration + Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + end + def error_response + Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + end + def agent_registration_regenerate_key_parameter + Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter + end + def key_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult + end def dsc_compilation_job_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobCreateParameters end - def dsc_compilation_job - Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob - end - def usage_counter_name - Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName + def usage + Azure::Automation::Mgmt::V2015_10_31::Models::Usage end def dsc_compilation_job_list_result Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJobListResult end - def usage_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult + def statistics + Azure::Automation::Mgmt::V2015_10_31::Models::Statistics end def dsc_configuration_list_result Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationListResult end - def statistics_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult + def runbook_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookAssociationProperty end def dsc_configuration_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters end - def content_hash - Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash + def agent_registration_keys + Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeys end - def dsc_meta_configuration - Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration + def key + Azure::Automation::Mgmt::V2015_10_31::Models::Key end - def runbook_draft - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft + def dsc_configuration_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationAssociationProperty + end + def usage_counter_name + Azure::Automation::Mgmt::V2015_10_31::Models::UsageCounterName + end + def dsc_node_configuration_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationListResult + end + def usage_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::UsageListResult end def dsc_node_configuration_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationCreateOrUpdateParameters end - def module_error_info - Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo + def statistics_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::StatisticsListResult end - def dsc_node_configuration - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration + def dsc_node_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult end - def dsc_node_extension_handler_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + def type_field_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult end - def dsc_node_configuration_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationListResult + def runbook_parameter + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter end - def dsc_node_configuration_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty + def type_field + Azure::Automation::Mgmt::V2015_10_31::Models::TypeField end - def content_source - Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource + def content_link + Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink + end + def variable_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters + end + def webhook_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters + end + def dsc_configuration_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationUpdateParameters end def webhook_list_result Azure::Automation::Mgmt::V2015_10_31::Models::WebhookListResult end - def dsc_node_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeListResult + def dsc_meta_configuration + Azure::Automation::Mgmt::V2015_10_31::Models::DscMetaConfiguration end - def sku - Azure::Automation::Mgmt::V2015_10_31::Models::Sku + def dsc_configuration_parameter + Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationParameter + end + def dsc_node_configuration_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfigurationAssociationProperty + end + def variable_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters + end + def dsc_node_extension_handler_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeExtensionHandlerAssociationProperty + end + def variable_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult end def dsc_node_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeUpdateParameters end - def automation_account_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult + def operation_display + Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay end def dsc_report_error Azure::Automation::Mgmt::V2015_10_31::Models::DscReportError end - def operation - Azure::Automation::Mgmt::V2015_10_31::Models::Operation + def operation_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult end def dsc_report_resource_navigation Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResourceNavigation end - def automation_account_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters + def automation_account_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters end def dsc_report_resource Azure::Automation::Mgmt::V2015_10_31::Models::DscReportResource end - def certificate - Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + def certificate_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters end def dsc_node_report Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReport end - def certificate_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters + def connection_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionListResult end def dsc_node_report_list_result Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeReportListResult end - def connection_type_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty + def connection_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters end def hybrid_runbook_worker Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorker end - def connection_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionListResult + def connection_type + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType end def run_as_credential_association_property Azure::Automation::Mgmt::V2015_10_31::Models::RunAsCredentialAssociationProperty end - def connection_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionCreateOrUpdateParameters + def connection_type_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters end def hybrid_runbook_worker_group Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroup end - def connection_type - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionType + def credential_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters end def hybrid_runbook_worker_groups_list_result Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupsListResult end - def connection_type_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeCreateOrUpdateParameters + def activity_parameter + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter end def hybrid_runbook_worker_group_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupUpdateParameters end - def credential_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::CredentialListResult - end - def runbook_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookAssociationProperty - end - def credential_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters + def activity_output_type + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType end def job Azure::Automation::Mgmt::V2015_10_31::Models::Job end - def activity_parameter_set - Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet + def activity_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult end def job_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::JobCreateParameters end - def activity - Azure::Automation::Mgmt::V2015_10_31::Models::Activity + def advanced_schedule + Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule end def job_list_result Azure::Automation::Mgmt::V2015_10_31::Models::JobListResult end - def advanced_schedule_monthly_occurrence - Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence - end def schedule_association_property Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleAssociationProperty end - def agent_registration_keys - Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeys + def resource + Azure::Automation::Mgmt::V2015_10_31::Models::Resource end def job_schedule_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleCreateParameters end - def agent_registration_regenerate_key_parameter - Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationRegenerateKeyParameter + def runbook_draft + Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraft end def job_schedule Azure::Automation::Mgmt::V2015_10_31::Models::JobSchedule end - def error_response - Azure::Automation::Mgmt::V2015_10_31::Models::ErrorResponse + def content_source + Azure::Automation::Mgmt::V2015_10_31::Models::ContentSource end def job_schedule_list_result Azure::Automation::Mgmt::V2015_10_31::Models::JobScheduleListResult end - def statistics - Azure::Automation::Mgmt::V2015_10_31::Models::Statistics + def sku + Azure::Automation::Mgmt::V2015_10_31::Models::Sku end def job_stream Azure::Automation::Mgmt::V2015_10_31::Models::JobStream end - def content_link - Azure::Automation::Mgmt::V2015_10_31::Models::ContentLink + def operation + Azure::Automation::Mgmt::V2015_10_31::Models::Operation end def job_stream_list_result Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult end - def webhook - Azure::Automation::Mgmt::V2015_10_31::Models::Webhook + def certificate_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult end - def dsc_configuration_parameter - Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationParameter + def linked_workspace + Azure::Automation::Mgmt::V2015_10_31::Models::LinkedWorkspace + end + def connection_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters end def module_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ModuleCreateOrUpdateParameters end - def webhook_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::WebhookUpdateParameters + def connection_type_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeListResult end def module_list_result Azure::Automation::Mgmt::V2015_10_31::Models::ModuleListResult end - def operation_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::OperationListResult + def credential_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::CredentialCreateOrUpdateParameters end def module_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ModuleUpdateParameters end - def certificate_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::CertificateListResult + def activity + Azure::Automation::Mgmt::V2015_10_31::Models::Activity end def runbook_draft_undo_edit_result Azure::Automation::Mgmt::V2015_10_31::Models::RunbookDraftUndoEditResult end - def connection - Azure::Automation::Mgmt::V2015_10_31::Models::Connection + def job_provisioning_state_property + Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningStateProperty end def runbook_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters end - def field_definition - Azure::Automation::Mgmt::V2015_10_31::Models::FieldDefinition + def content_hash + Azure::Automation::Mgmt::V2015_10_31::Models::ContentHash end def runbook_create_or_update_draft_properties Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftProperties end - def credential - Azure::Automation::Mgmt::V2015_10_31::Models::Credential + def webhook_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters end def runbook_create_or_update_draft_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateDraftParameters end - def activity_parameter - Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameter + def automation_account_create_or_update_parameters + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountCreateOrUpdateParameters end def runbook_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters end - def activity_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::ActivityListResult + def field_definition + Azure::Automation::Mgmt::V2015_10_31::Models::FieldDefinition end def runbook_list_result Azure::Automation::Mgmt::V2015_10_31::Models::RunbookListResult end - def agent_registration - Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistration + def activity_parameter_set + Azure::Automation::Mgmt::V2015_10_31::Models::ActivityParameterSet end def schedule_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleCreateOrUpdateParameters end - def usage - Azure::Automation::Mgmt::V2015_10_31::Models::Usage + def connection_type_association_property + Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeAssociationProperty end def schedule Azure::Automation::Mgmt::V2015_10_31::Models::Schedule end - def webhook_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::WebhookCreateOrUpdateParameters - end - def resource - Azure::Automation::Mgmt::V2015_10_31::Models::Resource + def automation_account_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountListResult end def schedule_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleUpdateParameters end - def automation_account_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccountUpdateParameters + def credential_list_result + Azure::Automation::Mgmt::V2015_10_31::Models::CredentialListResult end def schedule_list_result Azure::Automation::Mgmt::V2015_10_31::Models::ScheduleListResult end - def connection_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionUpdateParameters + def module_error_info + Azure::Automation::Mgmt::V2015_10_31::Models::ModuleErrorInfo end def sub_resource Azure::Automation::Mgmt::V2015_10_31::Models::SubResource end - def credential_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::CredentialUpdateParameters + def advanced_schedule_monthly_occurrence + Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedScheduleMonthlyOccurrence end def test_job_create_parameters Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters end - def advanced_schedule - Azure::Automation::Mgmt::V2015_10_31::Models::AdvancedSchedule - end - def test_job - Azure::Automation::Mgmt::V2015_10_31::Models::TestJob - end - def runbook_parameter - Azure::Automation::Mgmt::V2015_10_31::Models::RunbookParameter - end - def type_field - Azure::Automation::Mgmt::V2015_10_31::Models::TypeField - end def certificate_create_or_update_parameters Azure::Automation::Mgmt::V2015_10_31::Models::CertificateCreateOrUpdateParameters end - def type_field_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::TypeFieldListResult + def test_job + Azure::Automation::Mgmt::V2015_10_31::Models::TestJob end - def activity_output_type - Azure::Automation::Mgmt::V2015_10_31::Models::ActivityOutputType + def proxy_resource + Azure::Automation::Mgmt::V2015_10_31::Models::ProxyResource end - def variable_create_or_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::VariableCreateOrUpdateParameters - end - def operation_display - Azure::Automation::Mgmt::V2015_10_31::Models::OperationDisplay + def webhook + Azure::Automation::Mgmt::V2015_10_31::Models::Webhook end def variable Azure::Automation::Mgmt::V2015_10_31::Models::Variable end - def dsc_configuration_association_property - Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationAssociationProperty + def dsc_compilation_job + Azure::Automation::Mgmt::V2015_10_31::Models::DscCompilationJob end - def variable_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::VariableListResult + def credential + Azure::Automation::Mgmt::V2015_10_31::Models::Credential end - def connection_type_list_result - Azure::Automation::Mgmt::V2015_10_31::Models::ConnectionTypeListResult + def connection + Azure::Automation::Mgmt::V2015_10_31::Models::Connection end - def variable_update_parameters - Azure::Automation::Mgmt::V2015_10_31::Models::VariableUpdateParameters + def certificate + Azure::Automation::Mgmt::V2015_10_31::Models::Certificate + end + def tracked_resource + Azure::Automation::Mgmt::V2015_10_31::Models::TrackedResource end def runbook Azure::Automation::Mgmt::V2015_10_31::Models::Runbook @@ -570,15 +605,30 @@ def runbook def module_model Azure::Automation::Mgmt::V2015_10_31::Models::ModuleModel end - def dsc_node - Azure::Automation::Mgmt::V2015_10_31::Models::DscNode - end def dsc_configuration Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration end def automation_account Azure::Automation::Mgmt::V2015_10_31::Models::AutomationAccount end + def dsc_node + Azure::Automation::Mgmt::V2015_10_31::Models::DscNode + end + def dsc_node_configuration + Azure::Automation::Mgmt::V2015_10_31::Models::DscNodeConfiguration + end + def automation_key_name + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyName + end + def automation_key_permissions + Azure::Automation::Mgmt::V2015_10_31::Models::AutomationKeyPermissions + end + def job_provisioning_state + Azure::Automation::Mgmt::V2015_10_31::Models::JobProvisioningState + end + def job_status + Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus + end def runbook_type_enum Azure::Automation::Mgmt::V2015_10_31::Models::RunbookTypeEnum end @@ -612,8 +662,8 @@ def schedule_day def agent_registration_key_name Azure::Automation::Mgmt::V2015_10_31::Models::AgentRegistrationKeyName end - def job_status - Azure::Automation::Mgmt::V2015_10_31::Models::JobStatus + def group_type_enum + Azure::Automation::Mgmt::V2015_10_31::Models::GroupTypeEnum end def job_stream_type Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamType