diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py b/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py index afe9e2fe1914..4c088216d71c 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/__init__.py @@ -125,11 +125,9 @@ from .source_control_update_parameters import SourceControlUpdateParameters from .source_control_sync_job import SourceControlSyncJob from .source_control_sync_job_create_parameters import SourceControlSyncJobCreateParameters -from .source_control_sync_job_by_id_errors import SourceControlSyncJobByIdErrors from .source_control_sync_job_by_id import SourceControlSyncJobById from .dsc_node import DscNode from .dsc_node_configuration import DscNodeConfiguration -from .dsc_node_configuration_create_or_update_parameters_properties import DscNodeConfigurationCreateOrUpdateParametersProperties from .automation_account_paged import AutomationAccountPaged from .operation_paged import OperationPaged from .statistics_paged import StatisticsPaged @@ -181,6 +179,7 @@ LinuxUpdateClasses, SourceType, ProvisioningState, + StartType, ) __all__ = [ @@ -300,11 +299,9 @@ 'SourceControlUpdateParameters', 'SourceControlSyncJob', 'SourceControlSyncJobCreateParameters', - 'SourceControlSyncJobByIdErrors', 'SourceControlSyncJobById', 'DscNode', 'DscNodeConfiguration', - 'DscNodeConfigurationCreateOrUpdateParametersProperties', 'AutomationAccountPaged', 'OperationPaged', 'StatisticsPaged', @@ -355,4 +352,5 @@ 'LinuxUpdateClasses', 'SourceType', 'ProvisioningState', + 'StartType', ] diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py b/azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py index 894a0e0e4d1d..45e479c41607 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/automation_client_enums.py @@ -248,3 +248,9 @@ class ProvisioningState(Enum): completed = "Completed" failed = "Failed" running = "Running" + + +class StartType(Enum): + + auto_sync = "AutoSync" + manual_sync = "ManualSync" diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/dsc_node_configuration_create_or_update_parameters.py b/azure-mgmt-automation/azure/mgmt/automation/models/dsc_node_configuration_create_or_update_parameters.py index 87665da540e5..99e5af654b6f 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/dsc_node_configuration_create_or_update_parameters.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/dsc_node_configuration_create_or_update_parameters.py @@ -18,7 +18,7 @@ class DscNodeConfigurationCreateOrUpdateParameters(Model): :param source: Gets or sets the source. :type source: ~azure.mgmt.automation.models.ContentSource - :param name: Gets or sets the type of the parameter. + :param name: Name of the node configuration. :type name: str :param configuration: Gets or sets the configuration of the node. :type configuration: @@ -26,12 +26,27 @@ class DscNodeConfigurationCreateOrUpdateParameters(Model): :param new_node_configuration_build_version_required: If a new build version of NodeConfiguration is required. :type new_node_configuration_build_version_required: bool + :param source1: Gets or sets the source. + :type source1: ~azure.mgmt.automation.models.ContentSource + :param name1: Gets or sets the type of the parameter. + :type name1: str + :param configuration1: Gets or sets the configuration of the node. + :type configuration1: + ~azure.mgmt.automation.models.DscConfigurationAssociationProperty + :param increment_node_configuration_build: If a new build version of + NodeConfiguration is required. + :type increment_node_configuration_build: bool + :param tags: Gets or sets the tags attached to the resource. + :type tags: dict[str, str] """ _validation = { 'source': {'required': True}, 'name': {'required': True}, 'configuration': {'required': True}, + 'source1': {'required': True}, + 'name1': {'required': True}, + 'configuration1': {'required': True}, } _attribute_map = { @@ -39,11 +54,21 @@ class DscNodeConfigurationCreateOrUpdateParameters(Model): 'name': {'key': 'name', 'type': 'str'}, 'configuration': {'key': 'configuration', 'type': 'DscConfigurationAssociationProperty'}, 'new_node_configuration_build_version_required': {'key': 'newNodeConfigurationBuildVersionRequired', 'type': 'bool'}, + 'source1': {'key': 'properties.source', 'type': 'ContentSource'}, + 'name1': {'key': 'properties.name', 'type': 'str'}, + 'configuration1': {'key': 'properties.configuration', 'type': 'DscConfigurationAssociationProperty'}, + 'increment_node_configuration_build': {'key': 'properties.incrementNodeConfigurationBuild', 'type': 'bool'}, + 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, source, name, configuration, new_node_configuration_build_version_required=None): + def __init__(self, source, name, configuration, source1, name1, configuration1, new_node_configuration_build_version_required=None, increment_node_configuration_build=None, tags=None): super(DscNodeConfigurationCreateOrUpdateParameters, self).__init__() self.source = source self.name = name self.configuration = configuration self.new_node_configuration_build_version_required = new_node_configuration_build_version_required + self.source1 = source1 + self.name1 = name1 + self.configuration1 = configuration1 + self.increment_node_configuration_build = increment_node_configuration_build + self.tags = tags diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/dsc_node_configuration_create_or_update_parameters_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/dsc_node_configuration_create_or_update_parameters_properties.py deleted file mode 100644 index d1a7116d3cef..000000000000 --- a/azure-mgmt-automation/azure/mgmt/automation/models/dsc_node_configuration_create_or_update_parameters_properties.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DscNodeConfigurationCreateOrUpdateParametersProperties(Model): - """The parameters supplied to the create or update node configuration - operation. - - :param source: Gets or sets the source. - :type source: ~azure.mgmt.automation.models.ContentSource - :param name: Gets or sets the type of the parameter. - :type name: str - :param configuration: Gets or sets the configuration of the node. - :type configuration: - ~azure.mgmt.automation.models.DscConfigurationAssociationProperty - :param increment_node_configuration_build: If a new build version of - NodeConfiguration is required. - :type increment_node_configuration_build: bool - """ - - _validation = { - 'source': {'required': True}, - 'name': {'required': True}, - 'configuration': {'required': True}, - } - - _attribute_map = { - 'source': {'key': 'source', 'type': 'ContentSource'}, - 'name': {'key': 'name', 'type': 'str'}, - 'configuration': {'key': 'configuration', 'type': 'DscConfigurationAssociationProperty'}, - 'increment_node_configuration_build': {'key': 'incrementNodeConfigurationBuild', 'type': 'bool'}, - } - - def __init__(self, source, name, configuration, increment_node_configuration_build=None): - super(DscNodeConfigurationCreateOrUpdateParametersProperties, self).__init__() - self.source = source - self.name = name - self.configuration = configuration - self.increment_node_configuration_build = increment_node_configuration_build diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/hybrid_runbook_worker.py b/azure-mgmt-automation/azure/mgmt/automation/models/hybrid_runbook_worker.py index 36e10615e0f0..3cf8b56467a7 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/hybrid_runbook_worker.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/hybrid_runbook_worker.py @@ -22,16 +22,20 @@ class HybridRunbookWorker(Model): :param registration_time: Gets or sets the registration time of the worker machine. :type registration_time: datetime + :param last_seen_date_time: Last Heartbeat from the Worker + :type last_seen_date_time: datetime """ _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, 'ip': {'key': 'ip', 'type': 'str'}, 'registration_time': {'key': 'registrationTime', 'type': 'iso-8601'}, + 'last_seen_date_time': {'key': 'lastSeenDateTime', 'type': 'iso-8601'}, } - def __init__(self, name=None, ip=None, registration_time=None): + def __init__(self, name=None, ip=None, registration_time=None, last_seen_date_time=None): super(HybridRunbookWorker, self).__init__() self.name = name self.ip = ip self.registration_time = registration_time + self.last_seen_date_time = last_seen_date_time diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/job.py b/azure-mgmt-automation/azure/mgmt/automation/models/job.py index 2170947ffa3c..50df77aa7a4f 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/job.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/job.py @@ -55,8 +55,8 @@ class Job(ProxyResource): :type last_status_modified_time: datetime :param parameters: Gets or sets the parameters of the job. :type parameters: dict[str, str] - :param provisioning_state: The provisioning state of a resource. - :type provisioning_state: + :ivar provisioning_state: The provisioning state of a resource. + :vartype provisioning_state: ~azure.mgmt.automation.models.JobProvisioningStateProperty """ @@ -64,6 +64,7 @@ class Job(ProxyResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { @@ -86,7 +87,7 @@ class Job(ProxyResource): 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'JobProvisioningStateProperty'}, } - def __init__(self, runbook=None, started_by=None, run_on=None, job_id=None, creation_time=None, status=None, status_details=None, start_time=None, end_time=None, exception=None, last_modified_time=None, last_status_modified_time=None, parameters=None, provisioning_state=None): + def __init__(self, runbook=None, started_by=None, run_on=None, job_id=None, creation_time=None, status=None, status_details=None, start_time=None, end_time=None, exception=None, last_modified_time=None, last_status_modified_time=None, parameters=None): super(Job, self).__init__() self.runbook = runbook self.started_by = started_by @@ -101,4 +102,4 @@ def __init__(self, runbook=None, started_by=None, run_on=None, job_id=None, crea self.last_modified_time = last_modified_time self.last_status_modified_time = last_status_modified_time self.parameters = parameters - self.provisioning_state = provisioning_state + self.provisioning_state = None diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/job_collection_item.py b/azure-mgmt-automation/azure/mgmt/automation/models/job_collection_item.py index a1ac49c010bc..e9a8db8b78ab 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/job_collection_item.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/job_collection_item.py @@ -41,9 +41,10 @@ class JobCollectionItem(ProxyResource): :vartype end_time: datetime :ivar last_modified_time: The last modified time of the job. :vartype last_modified_time: datetime - :param provisioning_state: The current provisioning state of the job. - :type provisioning_state: - ~azure.mgmt.automation.models.JobProvisioningStateProperty + :ivar provisioning_state: The provisioning state of a resource. + :vartype provisioning_state: str + :param run_on: Specifies the runOn group name where the job was executed. + :type run_on: str """ _validation = { @@ -57,6 +58,7 @@ class JobCollectionItem(ProxyResource): 'start_time': {'readonly': True}, 'end_time': {'readonly': True}, 'last_modified_time': {'readonly': True}, + 'provisioning_state': {'readonly': True}, } _attribute_map = { @@ -70,10 +72,11 @@ class JobCollectionItem(ProxyResource): 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'JobProvisioningStateProperty'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'run_on': {'key': 'properties.runOn', 'type': 'str'}, } - def __init__(self, provisioning_state=None): + def __init__(self, run_on=None): super(JobCollectionItem, self).__init__() self.runbook = None self.job_id = None @@ -82,4 +85,5 @@ def __init__(self, provisioning_state=None): self.start_time = None self.end_time = None self.last_modified_time = None - self.provisioning_state = provisioning_state + self.provisioning_state = None + self.run_on = run_on diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/linux_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/linux_properties.py index 9a29e1ea585f..18ede52d2df5 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/linux_properties.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/linux_properties.py @@ -26,16 +26,21 @@ class LinuxProperties(Model): :param included_package_name_masks: packages included from the software update configuration. :type included_package_name_masks: list[str] + :param reboot_setting: Reboot setting for the software update + configuration. + :type reboot_setting: str """ _attribute_map = { 'included_package_classifications': {'key': 'includedPackageClassifications', 'type': 'str'}, 'excluded_package_name_masks': {'key': 'excludedPackageNameMasks', 'type': '[str]'}, 'included_package_name_masks': {'key': 'includedPackageNameMasks', 'type': '[str]'}, + 'reboot_setting': {'key': 'rebootSetting', 'type': 'str'}, } - def __init__(self, included_package_classifications=None, excluded_package_name_masks=None, included_package_name_masks=None): + def __init__(self, included_package_classifications=None, excluded_package_name_masks=None, included_package_name_masks=None, reboot_setting=None): super(LinuxProperties, self).__init__() self.included_package_classifications = included_package_classifications self.excluded_package_name_masks = excluded_package_name_masks self.included_package_name_masks = included_package_name_masks + self.reboot_setting = reboot_setting diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job.py b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job.py index 315cd69dcfa2..eecd200d3fb5 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job.py @@ -24,8 +24,8 @@ class SourceControlSyncJob(Model): :vartype type: str :ivar id: Resource id. :vartype id: str - :param source_control_sync_job_id: Gets the source control sync job id. - :type source_control_sync_job_id: str + :param sync_job_id: Gets the source control sync job id. + :type sync_job_id: str :ivar creation_time: Gets the creation time of the job. :vartype creation_time: datetime :param provisioning_state: Gets the provisioning state of the job. @@ -36,8 +36,9 @@ class SourceControlSyncJob(Model): :vartype start_time: datetime :ivar end_time: Gets the end time of the job. :vartype end_time: datetime - :param started_by: Gets the user who started the sync job. - :type started_by: str + :param start_type: Gets the type of start for the sync job. Possible + values include: 'AutoSync', 'ManualSync' + :type start_type: str or ~azure.mgmt.automation.models.StartType """ _validation = { @@ -53,22 +54,22 @@ class SourceControlSyncJob(Model): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, - 'source_control_sync_job_id': {'key': 'properties.sourceControlSyncJobId', 'type': 'str'}, + 'sync_job_id': {'key': 'properties.syncJobId', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'started_by': {'key': 'properties.startedBy', 'type': 'str'}, + 'start_type': {'key': 'properties.startType', 'type': 'str'}, } - def __init__(self, source_control_sync_job_id=None, provisioning_state=None, started_by=None): + def __init__(self, sync_job_id=None, provisioning_state=None, start_type=None): super(SourceControlSyncJob, self).__init__() self.name = None self.type = None self.id = None - self.source_control_sync_job_id = source_control_sync_job_id + self.sync_job_id = sync_job_id self.creation_time = None self.provisioning_state = provisioning_state self.start_time = None self.end_time = None - self.started_by = started_by + self.start_type = start_type diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id.py b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id.py index f9b3e3c61ab2..2c3069b02fd0 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id.py @@ -20,8 +20,8 @@ class SourceControlSyncJobById(Model): :param id: Gets the id of the job. :type id: str - :param source_control_sync_job_id: Gets the source control sync job id. - :type source_control_sync_job_id: str + :param sync_job_id: Gets the source control sync job id. + :type sync_job_id: str :ivar creation_time: Gets the creation time of the job. :vartype creation_time: datetime :param provisioning_state: Gets the provisioning state of the job. @@ -32,10 +32,12 @@ class SourceControlSyncJobById(Model): :vartype start_time: datetime :ivar end_time: Gets the end time of the job. :vartype end_time: datetime - :param started_by: Gets the user who started the sync job. - :type started_by: str - :param errors: Error details of the source control sync job. - :type errors: ~azure.mgmt.automation.models.SourceControlSyncJobByIdErrors + :param start_type: Gets the type of start for the sync job. Possible + values include: 'AutoSync', 'ManualSync' + :type start_type: str or ~azure.mgmt.automation.models.StartType + :param exception: Gets the exceptions that occured while running the sync + job. + :type exception: str """ _validation = { @@ -46,22 +48,22 @@ class SourceControlSyncJobById(Model): _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, - 'source_control_sync_job_id': {'key': 'properties.sourceControlSyncJobId', 'type': 'str'}, + 'sync_job_id': {'key': 'properties.syncJobId', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, 'start_time': {'key': 'properties.startTime', 'type': 'iso-8601'}, 'end_time': {'key': 'properties.endTime', 'type': 'iso-8601'}, - 'started_by': {'key': 'properties.startedBy', 'type': 'str'}, - 'errors': {'key': 'properties.errors', 'type': 'SourceControlSyncJobByIdErrors'}, + 'start_type': {'key': 'properties.startType', 'type': 'str'}, + 'exception': {'key': 'properties.exception', 'type': 'str'}, } - def __init__(self, id=None, source_control_sync_job_id=None, provisioning_state=None, started_by=None, errors=None): + def __init__(self, id=None, sync_job_id=None, provisioning_state=None, start_type=None, exception=None): super(SourceControlSyncJobById, self).__init__() self.id = id - self.source_control_sync_job_id = source_control_sync_job_id + self.sync_job_id = sync_job_id self.creation_time = None self.provisioning_state = provisioning_state self.start_time = None self.end_time = None - self.started_by = started_by - self.errors = errors + self.start_type = start_type + self.exception = exception diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id_errors.py b/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id_errors.py deleted file mode 100644 index ea2f7161d272..000000000000 --- a/azure-mgmt-automation/azure/mgmt/automation/models/source_control_sync_job_by_id_errors.py +++ /dev/null @@ -1,32 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SourceControlSyncJobByIdErrors(Model): - """Error details of the source control sync job. - - :param code: Gets the error code for the job. - :type code: str - :param message: Gets the error message for the job. - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, code=None, message=None): - super(SourceControlSyncJobByIdErrors, self).__init__() - self.code = code - self.message = message diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/webhook.py b/azure-mgmt-automation/azure/mgmt/automation/models/webhook.py index ca3e4e114f60..cd9bb40a2c2f 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/webhook.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/webhook.py @@ -45,6 +45,8 @@ class Webhook(ProxyResource): :type creation_time: datetime :param last_modified_time: Gets or sets the last modified time. :type last_modified_time: datetime + :param last_modified_by: Details of the user who last modified the Webhook + :type last_modified_by: str :param description: Gets or sets the description. :type description: str """ @@ -68,10 +70,11 @@ class Webhook(ProxyResource): 'run_on': {'key': 'properties.runOn', 'type': 'str'}, 'creation_time': {'key': 'properties.creationTime', 'type': 'iso-8601'}, 'last_modified_time': {'key': 'properties.lastModifiedTime', 'type': 'iso-8601'}, + 'last_modified_by': {'key': 'properties.lastModifiedBy', 'type': 'str'}, 'description': {'key': 'properties.description', 'type': 'str'}, } - def __init__(self, is_enabled=False, uri=None, expiry_time=None, last_invoked_time=None, parameters=None, runbook=None, run_on=None, creation_time=None, last_modified_time=None, description=None): + def __init__(self, is_enabled=False, uri=None, expiry_time=None, last_invoked_time=None, parameters=None, runbook=None, run_on=None, creation_time=None, last_modified_time=None, last_modified_by=None, description=None): super(Webhook, self).__init__() self.is_enabled = is_enabled self.uri = uri @@ -82,4 +85,5 @@ def __init__(self, is_enabled=False, uri=None, expiry_time=None, last_invoked_ti self.run_on = run_on self.creation_time = creation_time self.last_modified_time = last_modified_time + self.last_modified_by = last_modified_by self.description = description diff --git a/azure-mgmt-automation/azure/mgmt/automation/models/windows_properties.py b/azure-mgmt-automation/azure/mgmt/automation/models/windows_properties.py index 260828de4aa9..2537b2662692 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/models/windows_properties.py +++ b/azure-mgmt-automation/azure/mgmt/automation/models/windows_properties.py @@ -28,16 +28,21 @@ class WindowsProperties(Model): :param included_kb_numbers: KB numbers included from the software update configuration. :type included_kb_numbers: list[str] + :param reboot_setting: Reboot setting for the software update + configuration. + :type reboot_setting: str """ _attribute_map = { 'included_update_classifications': {'key': 'includedUpdateClassifications', 'type': 'str'}, 'excluded_kb_numbers': {'key': 'excludedKbNumbers', 'type': '[str]'}, 'included_kb_numbers': {'key': 'includedKbNumbers', 'type': '[str]'}, + 'reboot_setting': {'key': 'rebootSetting', 'type': 'str'}, } - def __init__(self, included_update_classifications=None, excluded_kb_numbers=None, included_kb_numbers=None): + def __init__(self, included_update_classifications=None, excluded_kb_numbers=None, included_kb_numbers=None, reboot_setting=None): super(WindowsProperties, self).__init__() self.included_update_classifications = included_update_classifications self.excluded_kb_numbers = excluded_kb_numbers self.included_kb_numbers = included_kb_numbers + self.reboot_setting = reboot_setting diff --git a/azure-mgmt-automation/azure/mgmt/automation/operations/dsc_node_configuration_operations.py b/azure-mgmt-automation/azure/mgmt/automation/operations/dsc_node_configuration_operations.py index 81baf3911f48..34ed7a230de3 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/operations/dsc_node_configuration_operations.py +++ b/azure-mgmt-automation/azure/mgmt/automation/operations/dsc_node_configuration_operations.py @@ -186,7 +186,7 @@ def _create_or_update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - body_content = self._serialize.body(parameters, 'DscNodeConfigurationCreateOrUpdateParametersProperties') + body_content = self._serialize.body(parameters, 'DscNodeConfigurationCreateOrUpdateParameters') # Construct and send request request = self._client.put(url, query_parameters) @@ -219,7 +219,7 @@ def create_or_update( :type node_configuration_name: str :param parameters: The create or update parameters for configuration. :type parameters: - ~azure.mgmt.automation.models.DscNodeConfigurationCreateOrUpdateParametersProperties + ~azure.mgmt.automation.models.DscNodeConfigurationCreateOrUpdateParameters :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response diff --git a/azure-mgmt-automation/azure/mgmt/automation/operations/hybrid_runbook_worker_group_operations.py b/azure-mgmt-automation/azure/mgmt/automation/operations/hybrid_runbook_worker_group_operations.py index a058b9c4bac6..5f5c5603d4f0 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/operations/hybrid_runbook_worker_group_operations.py +++ b/azure-mgmt-automation/azure/mgmt/automation/operations/hybrid_runbook_worker_group_operations.py @@ -233,13 +233,15 @@ def update( update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}'} def list_by_automation_account( - self, resource_group_name, automation_account_name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, automation_account_name, filter=None, custom_headers=None, raw=False, **operation_config): """Retrieve a list of hybrid runbook worker groups. :param resource_group_name: Name of an Azure Resource group. :type resource_group_name: str :param automation_account_name: The automation account name. :type automation_account_name: str + :param filter: The filter to apply on the operation. + :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -265,6 +267,8 @@ def internal_paging(next_link=None, raw=False): # Construct parameters query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') else: diff --git a/azure-mgmt-automation/azure/mgmt/automation/operations/job_schedule_operations.py b/azure-mgmt-automation/azure/mgmt/automation/operations/job_schedule_operations.py index b9d435b2fa63..1260fa498924 100644 --- a/azure-mgmt-automation/azure/mgmt/automation/operations/job_schedule_operations.py +++ b/azure-mgmt-automation/azure/mgmt/automation/operations/job_schedule_operations.py @@ -229,13 +229,15 @@ def create( create.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}'} def list_by_automation_account( - self, resource_group_name, automation_account_name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, automation_account_name, filter=None, custom_headers=None, raw=False, **operation_config): """Retrieve a list of job schedules. :param resource_group_name: Name of an Azure Resource group. :type resource_group_name: str :param automation_account_name: The automation account name. :type automation_account_name: str + :param filter: The filter to apply on the operation. + :type filter: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -261,6 +263,8 @@ def internal_paging(next_link=None, raw=False): # Construct parameters query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') else: