From 0ceb9012513c64f387957ac98cc74b3fa2df642d Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 16 Aug 2018 19:31:04 +0000 Subject: [PATCH 1/5] Generated from eba446e8ea9c1b86b27e58bf5195038892f0989f Update the new API --- .../azure/batch/batch_service_client.py | 2 +- azure-batch/azure/batch/models/__init__.py | 5 +- .../account_list_pool_node_counts_options.py | 4 +- ...count_list_pool_node_counts_options_py3.py | 4 +- .../models/batch_service_client_enums.py | 6 - azure-batch/azure/batch/models/cloud_pool.py | 15 +- .../azure/batch/models/cloud_pool_py3.py | 15 +- .../azure/batch/models/compute_node.py | 21 +-- .../azure/batch/models/compute_node_py3.py | 23 +-- azure-batch/azure/batch/models/data_disk.py | 2 +- .../azure/batch/models/data_disk_py3.py | 2 +- .../batch/models/node_agent_information.py | 47 +++++ .../models/node_agent_information_py3.py | 47 +++++ azure-batch/azure/batch/models/os_disk.py | 3 +- azure-batch/azure/batch/models/os_disk_py3.py | 3 +- .../azure/batch/models/pool_specification.py | 19 +- .../batch/models/pool_specification_py3.py | 19 +- .../azure/batch/models/pool_usage_metrics.py | 11 +- .../batch/models/pool_usage_metrics_py3.py | 11 +- .../models/task_add_collection_parameter.py | 8 +- .../task_add_collection_parameter_py3.py | 8 +- azure-batch/azure/batch/models/task_counts.py | 7 - .../azure/batch/models/task_counts_py3.py | 9 +- .../batch/operations/account_operations.py | 18 +- .../operations/application_operations.py | 17 +- .../operations/certificate_operations.py | 32 ++-- .../operations/compute_node_operations.py | 70 ++++---- .../azure/batch/operations/file_operations.py | 50 +++--- .../azure/batch/operations/job_operations.py | 84 ++++----- .../operations/job_schedule_operations.py | 57 +++--- .../azure/batch/operations/pool_operations.py | 91 +++++----- .../azure/batch/operations/task_operations.py | 65 ++++--- azure-batch/azure/batch/version.py | 2 +- azure-batch/build.json | 165 +++++------------- 34 files changed, 409 insertions(+), 533 deletions(-) create mode 100644 azure-batch/azure/batch/models/node_agent_information.py create mode 100644 azure-batch/azure/batch/models/node_agent_information_py3.py diff --git a/azure-batch/azure/batch/batch_service_client.py b/azure-batch/azure/batch/batch_service_client.py index 1d40e5a823a6..80c19929f9cb 100644 --- a/azure-batch/azure/batch/batch_service_client.py +++ b/azure-batch/azure/batch/batch_service_client.py @@ -90,7 +90,7 @@ def __init__( super(BatchServiceClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-03-01.6.1' + self.api_version = '2018-08-01.7.0' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/azure-batch/azure/batch/models/__init__.py b/azure-batch/azure/batch/models/__init__.py index ab62804e0c14..5ffc99a73460 100644 --- a/azure-batch/azure/batch/models/__init__.py +++ b/azure-batch/azure/batch/models/__init__.py @@ -89,6 +89,7 @@ from .affinity_information_py3 import AffinityInformation from .task_execution_information_py3 import TaskExecutionInformation from .compute_node_information_py3 import ComputeNodeInformation + from .node_agent_information_py3 import NodeAgentInformation from .multi_instance_settings_py3 import MultiInstanceSettings from .task_statistics_py3 import TaskStatistics from .task_id_range_py3 import TaskIdRange @@ -290,6 +291,7 @@ from .affinity_information import AffinityInformation from .task_execution_information import TaskExecutionInformation from .compute_node_information import ComputeNodeInformation + from .node_agent_information import NodeAgentInformation from .multi_instance_settings import MultiInstanceSettings from .task_statistics import TaskStatistics from .task_id_range import TaskIdRange @@ -449,7 +451,6 @@ JobPreparationTaskState, TaskExecutionResult, JobReleaseTaskState, - TaskCountValidationStatus, PoolState, AllocationState, TaskState, @@ -545,6 +546,7 @@ 'AffinityInformation', 'TaskExecutionInformation', 'ComputeNodeInformation', + 'NodeAgentInformation', 'MultiInstanceSettings', 'TaskStatistics', 'TaskIdRange', @@ -703,7 +705,6 @@ 'JobPreparationTaskState', 'TaskExecutionResult', 'JobReleaseTaskState', - 'TaskCountValidationStatus', 'PoolState', 'AllocationState', 'TaskState', diff --git a/azure-batch/azure/batch/models/account_list_pool_node_counts_options.py b/azure-batch/azure/batch/models/account_list_pool_node_counts_options.py index 4c00d0b2e4c0..4ad2da01f3b0 100644 --- a/azure-batch/azure/batch/models/account_list_pool_node_counts_options.py +++ b/azure-batch/azure/batch/models/account_list_pool_node_counts_options.py @@ -15,7 +15,9 @@ class AccountListPoolNodeCountsOptions(Model): """Additional parameters for list_pool_node_counts operation. - :param filter: An OData $filter clause. + :param filter: An OData $filter clause. For more information on + constructing this filter, see + https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch. :type filter: str :param max_results: The maximum number of items to return in the response. Default value: 10 . diff --git a/azure-batch/azure/batch/models/account_list_pool_node_counts_options_py3.py b/azure-batch/azure/batch/models/account_list_pool_node_counts_options_py3.py index 4f5ff1d03771..e9f0d02bec64 100644 --- a/azure-batch/azure/batch/models/account_list_pool_node_counts_options_py3.py +++ b/azure-batch/azure/batch/models/account_list_pool_node_counts_options_py3.py @@ -15,7 +15,9 @@ class AccountListPoolNodeCountsOptions(Model): """Additional parameters for list_pool_node_counts operation. - :param filter: An OData $filter clause. + :param filter: An OData $filter clause. For more information on + constructing this filter, see + https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch. :type filter: str :param max_results: The maximum number of items to return in the response. Default value: 10 . diff --git a/azure-batch/azure/batch/models/batch_service_client_enums.py b/azure-batch/azure/batch/models/batch_service_client_enums.py index d67fac6edbb1..c2775616ecb6 100644 --- a/azure-batch/azure/batch/models/batch_service_client_enums.py +++ b/azure-batch/azure/batch/models/batch_service_client_enums.py @@ -174,12 +174,6 @@ class JobReleaseTaskState(str, Enum): completed = "completed" #: The task has exited with exit code 0, or the task has exhausted its retry limit, or the Batch service was unable to start the task due to task preparation errors (such as resource file download failures). -class TaskCountValidationStatus(str, Enum): - - validated = "validated" #: The Batch service has validated the state counts against the task states as reported in the List Tasks API. - unvalidated = "unvalidated" #: The Batch service has not been able to check state counts against the task states as reported in the List Tasks API. The validationStatus may be unvalidated if the job contains more than 200,000 tasks. - - class PoolState(str, Enum): active = "active" #: The pool is available to run tasks subject to the availability of compute nodes. diff --git a/azure-batch/azure/batch/models/cloud_pool.py b/azure-batch/azure/batch/models/cloud_pool.py index 7e1602157653..8d85502dba7f 100644 --- a/azure-batch/azure/batch/models/cloud_pool.py +++ b/azure-batch/azure/batch/models/cloud_pool.py @@ -54,18 +54,9 @@ class CloudPool(Model): :type allocation_state_transition_time: datetime :param vm_size: The size of virtual machines in the pool. All virtual machines in a pool are the same size. For information about available - sizes of virtual machines for Cloud Services pools (pools created with - cloudServiceConfiguration), see Sizes for Cloud Services - (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). - Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and - A2V2. For information about available VM sizes for pools using images from - the Virtual Machines Marketplace (pools created with - virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) - (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) - or Sizes for Virtual Machines (Windows) - (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). - Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + sizes of virtual machines in pools, see Choose a VM size for compute nodes + in an Azure Batch pool + (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). :type vm_size: str :param cloud_service_configuration: The cloud service configuration for the pool. This property and virtualMachineConfiguration are mutually diff --git a/azure-batch/azure/batch/models/cloud_pool_py3.py b/azure-batch/azure/batch/models/cloud_pool_py3.py index 87ce5a9d5724..b1166d42dc01 100644 --- a/azure-batch/azure/batch/models/cloud_pool_py3.py +++ b/azure-batch/azure/batch/models/cloud_pool_py3.py @@ -54,18 +54,9 @@ class CloudPool(Model): :type allocation_state_transition_time: datetime :param vm_size: The size of virtual machines in the pool. All virtual machines in a pool are the same size. For information about available - sizes of virtual machines for Cloud Services pools (pools created with - cloudServiceConfiguration), see Sizes for Cloud Services - (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). - Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and - A2V2. For information about available VM sizes for pools using images from - the Virtual Machines Marketplace (pools created with - virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) - (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) - or Sizes for Virtual Machines (Windows) - (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). - Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + sizes of virtual machines in pools, see Choose a VM size for compute nodes + in an Azure Batch pool + (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). :type vm_size: str :param cloud_service_configuration: The cloud service configuration for the pool. This property and virtualMachineConfiguration are mutually diff --git a/azure-batch/azure/batch/models/compute_node.py b/azure-batch/azure/batch/models/compute_node.py index 930e8bf6ec6b..444598f9e5cd 100644 --- a/azure-batch/azure/batch/models/compute_node.py +++ b/azure-batch/azure/batch/models/compute_node.py @@ -53,19 +53,9 @@ class ComputeNode(Model): task is scheduled, then the task will be scheduled elsewhere. :type affinity_id: str :param vm_size: The size of the virtual machine hosting the compute node. - For information about available sizes of virtual machines for Cloud - Services pools (pools created with cloudServiceConfiguration), see Sizes - for Cloud Services - (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). - Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and - A2V2. For information about available VM sizes for pools using images from - the Virtual Machines Marketplace (pools created with - virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) - (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) - or Sizes for Virtual Machines (Windows) - (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). - Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + For information about available sizes of virtual machines in pools, see + Choose a VM size for compute nodes in an Azure Batch pool + (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). :type vm_size: str :param total_tasks_run: The total number of job tasks completed on the compute node. This includes Job Manager tasks and normal tasks, but not @@ -111,6 +101,9 @@ class ComputeNode(Model): node. :type endpoint_configuration: ~azure.batch.models.ComputeNodeEndpointConfiguration + :param node_agent_info: Information about the node agent version and the + time the node upgraded to a new version. + :type node_agent_info: ~azure.batch.models.NodeAgentInformation """ _attribute_map = { @@ -134,6 +127,7 @@ class ComputeNode(Model): 'errors': {'key': 'errors', 'type': '[ComputeNodeError]'}, 'is_dedicated': {'key': 'isDedicated', 'type': 'bool'}, 'endpoint_configuration': {'key': 'endpointConfiguration', 'type': 'ComputeNodeEndpointConfiguration'}, + 'node_agent_info': {'key': 'nodeAgentInfo', 'type': 'NodeAgentInformation'}, } def __init__(self, **kwargs): @@ -158,3 +152,4 @@ def __init__(self, **kwargs): self.errors = kwargs.get('errors', None) self.is_dedicated = kwargs.get('is_dedicated', None) self.endpoint_configuration = kwargs.get('endpoint_configuration', None) + self.node_agent_info = kwargs.get('node_agent_info', None) diff --git a/azure-batch/azure/batch/models/compute_node_py3.py b/azure-batch/azure/batch/models/compute_node_py3.py index 8f0f6bf39ce1..1b5d7405a981 100644 --- a/azure-batch/azure/batch/models/compute_node_py3.py +++ b/azure-batch/azure/batch/models/compute_node_py3.py @@ -53,19 +53,9 @@ class ComputeNode(Model): task is scheduled, then the task will be scheduled elsewhere. :type affinity_id: str :param vm_size: The size of the virtual machine hosting the compute node. - For information about available sizes of virtual machines for Cloud - Services pools (pools created with cloudServiceConfiguration), see Sizes - for Cloud Services - (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). - Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and - A2V2. For information about available VM sizes for pools using images from - the Virtual Machines Marketplace (pools created with - virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) - (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) - or Sizes for Virtual Machines (Windows) - (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). - Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + For information about available sizes of virtual machines in pools, see + Choose a VM size for compute nodes in an Azure Batch pool + (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). :type vm_size: str :param total_tasks_run: The total number of job tasks completed on the compute node. This includes Job Manager tasks and normal tasks, but not @@ -111,6 +101,9 @@ class ComputeNode(Model): node. :type endpoint_configuration: ~azure.batch.models.ComputeNodeEndpointConfiguration + :param node_agent_info: Information about the node agent version and the + time the node upgraded to a new version. + :type node_agent_info: ~azure.batch.models.NodeAgentInformation """ _attribute_map = { @@ -134,9 +127,10 @@ class ComputeNode(Model): 'errors': {'key': 'errors', 'type': '[ComputeNodeError]'}, 'is_dedicated': {'key': 'isDedicated', 'type': 'bool'}, 'endpoint_configuration': {'key': 'endpointConfiguration', 'type': 'ComputeNodeEndpointConfiguration'}, + 'node_agent_info': {'key': 'nodeAgentInfo', 'type': 'NodeAgentInformation'}, } - def __init__(self, *, id: str=None, url: str=None, state=None, scheduling_state=None, state_transition_time=None, last_boot_time=None, allocation_time=None, ip_address: str=None, affinity_id: str=None, vm_size: str=None, total_tasks_run: int=None, running_tasks_count: int=None, total_tasks_succeeded: int=None, recent_tasks=None, start_task=None, start_task_info=None, certificate_references=None, errors=None, is_dedicated: bool=None, endpoint_configuration=None, **kwargs) -> None: + def __init__(self, *, id: str=None, url: str=None, state=None, scheduling_state=None, state_transition_time=None, last_boot_time=None, allocation_time=None, ip_address: str=None, affinity_id: str=None, vm_size: str=None, total_tasks_run: int=None, running_tasks_count: int=None, total_tasks_succeeded: int=None, recent_tasks=None, start_task=None, start_task_info=None, certificate_references=None, errors=None, is_dedicated: bool=None, endpoint_configuration=None, node_agent_info=None, **kwargs) -> None: super(ComputeNode, self).__init__(**kwargs) self.id = id self.url = url @@ -158,3 +152,4 @@ def __init__(self, *, id: str=None, url: str=None, state=None, scheduling_state= self.errors = errors self.is_dedicated = is_dedicated self.endpoint_configuration = endpoint_configuration + self.node_agent_info = node_agent_info diff --git a/azure-batch/azure/batch/models/data_disk.py b/azure-batch/azure/batch/models/data_disk.py index aab3c97d8097..d2f80dadf964 100644 --- a/azure-batch/azure/batch/models/data_disk.py +++ b/azure-batch/azure/batch/models/data_disk.py @@ -23,7 +23,7 @@ class DataDisk(Model): distinct lun. :type lun: int :param caching: The type of caching to be enabled for the data disks. The - default value for caching is none. For information about the caching + default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'none', 'readOnly', 'readWrite' diff --git a/azure-batch/azure/batch/models/data_disk_py3.py b/azure-batch/azure/batch/models/data_disk_py3.py index d079f7d84f3c..2af0ce19fb72 100644 --- a/azure-batch/azure/batch/models/data_disk_py3.py +++ b/azure-batch/azure/batch/models/data_disk_py3.py @@ -23,7 +23,7 @@ class DataDisk(Model): distinct lun. :type lun: int :param caching: The type of caching to be enabled for the data disks. The - default value for caching is none. For information about the caching + default value for caching is readwrite. For information about the caching options see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'none', 'readOnly', 'readWrite' diff --git a/azure-batch/azure/batch/models/node_agent_information.py b/azure-batch/azure/batch/models/node_agent_information.py new file mode 100644 index 000000000000..0d61a707c779 --- /dev/null +++ b/azure-batch/azure/batch/models/node_agent_information.py @@ -0,0 +1,47 @@ +# 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 NodeAgentInformation(Model): + """Information about the node agent. + + The Batch node agent is a program that runs on each node in the pool and + provides Batch capability on the compute node. + + All required parameters must be populated in order to send to Azure. + + :param version: Required. The version of the Batch node agent running on + the compute node. This version number can be checked against the node + agent release notes located at + https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md. + :type version: str + :param last_update_time: Required. The time when the node agent was + updated on the compute node. This is the most recent time that the node + agent was updated to a new version. + :type last_update_time: datetime + """ + + _validation = { + 'version': {'required': True}, + 'last_update_time': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, + } + + def __init__(self, **kwargs): + super(NodeAgentInformation, self).__init__(**kwargs) + self.version = kwargs.get('version', None) + self.last_update_time = kwargs.get('last_update_time', None) diff --git a/azure-batch/azure/batch/models/node_agent_information_py3.py b/azure-batch/azure/batch/models/node_agent_information_py3.py new file mode 100644 index 000000000000..770e3ca529ce --- /dev/null +++ b/azure-batch/azure/batch/models/node_agent_information_py3.py @@ -0,0 +1,47 @@ +# 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 NodeAgentInformation(Model): + """Information about the node agent. + + The Batch node agent is a program that runs on each node in the pool and + provides Batch capability on the compute node. + + All required parameters must be populated in order to send to Azure. + + :param version: Required. The version of the Batch node agent running on + the compute node. This version number can be checked against the node + agent release notes located at + https://github.com/Azure/Batch/blob/master/changelogs/nodeagent/CHANGELOG.md. + :type version: str + :param last_update_time: Required. The time when the node agent was + updated on the compute node. This is the most recent time that the node + agent was updated to a new version. + :type last_update_time: datetime + """ + + _validation = { + 'version': {'required': True}, + 'last_update_time': {'required': True}, + } + + _attribute_map = { + 'version': {'key': 'version', 'type': 'str'}, + 'last_update_time': {'key': 'lastUpdateTime', 'type': 'iso-8601'}, + } + + def __init__(self, *, version: str, last_update_time, **kwargs) -> None: + super(NodeAgentInformation, self).__init__(**kwargs) + self.version = version + self.last_update_time = last_update_time diff --git a/azure-batch/azure/batch/models/os_disk.py b/azure-batch/azure/batch/models/os_disk.py index c7014f58d666..08916fa20048 100644 --- a/azure-batch/azure/batch/models/os_disk.py +++ b/azure-batch/azure/batch/models/os_disk.py @@ -16,7 +16,8 @@ class OSDisk(Model): """Settings for the operating system disk of the virtual machine. :param caching: The type of caching to enable for the OS disk. The default - value for caching is none. For information about the caching options see: + value for caching is readwrite. For information about the caching options + see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'none', 'readOnly', 'readWrite' :type caching: str or ~azure.batch.models.CachingType diff --git a/azure-batch/azure/batch/models/os_disk_py3.py b/azure-batch/azure/batch/models/os_disk_py3.py index 8a059f68458a..4780c4fa1443 100644 --- a/azure-batch/azure/batch/models/os_disk_py3.py +++ b/azure-batch/azure/batch/models/os_disk_py3.py @@ -16,7 +16,8 @@ class OSDisk(Model): """Settings for the operating system disk of the virtual machine. :param caching: The type of caching to enable for the OS disk. The default - value for caching is none. For information about the caching options see: + value for caching is readwrite. For information about the caching options + see: https://blogs.msdn.microsoft.com/windowsazurestorage/2012/06/27/exploring-windows-azure-drives-disks-and-images/. Possible values include: 'none', 'readOnly', 'readWrite' :type caching: str or ~azure.batch.models.CachingType diff --git a/azure-batch/azure/batch/models/pool_specification.py b/azure-batch/azure/batch/models/pool_specification.py index f3262aa2bfd2..465157cbe90f 100644 --- a/azure-batch/azure/batch/models/pool_specification.py +++ b/azure-batch/azure/batch/models/pool_specification.py @@ -23,18 +23,9 @@ class PoolSpecification(Model): :type display_name: str :param vm_size: Required. The size of the virtual machines in the pool. All virtual machines in a pool are the same size. For information about - available sizes of virtual machines for Cloud Services pools (pools - created with cloudServiceConfiguration), see Sizes for Cloud Services - (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). - Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and - A2V2. For information about available VM sizes for pools using images from - the Virtual Machines Marketplace (pools created with - virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) - (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) - or Sizes for Virtual Machines (Windows) - (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). - Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + available sizes of virtual machines in pools, see Choose a VM size for + compute nodes in an Azure Batch pool + (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). :type vm_size: str :param cloud_service_configuration: The cloud service configuration for the pool. This property must be specified if the pool needs to be created @@ -131,7 +122,9 @@ class PoolSpecification(Model): service will make available on each compute node in the pool. The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, - pool creation will fail. + pool creation will fail. The permitted licenses available on the pool are + 'maya', 'vray', '3dsmax', 'arnold'. An additional charge applies for each + application license added to the pool. :type application_licenses: list[str] :param user_accounts: The list of user accounts to be created on each node in the pool. diff --git a/azure-batch/azure/batch/models/pool_specification_py3.py b/azure-batch/azure/batch/models/pool_specification_py3.py index 0adee1101104..7f7587526c5b 100644 --- a/azure-batch/azure/batch/models/pool_specification_py3.py +++ b/azure-batch/azure/batch/models/pool_specification_py3.py @@ -23,18 +23,9 @@ class PoolSpecification(Model): :type display_name: str :param vm_size: Required. The size of the virtual machines in the pool. All virtual machines in a pool are the same size. For information about - available sizes of virtual machines for Cloud Services pools (pools - created with cloudServiceConfiguration), see Sizes for Cloud Services - (https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/). - Batch supports all Cloud Services VM sizes except ExtraSmall, A1V2 and - A2V2. For information about available VM sizes for pools using images from - the Virtual Machines Marketplace (pools created with - virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) - (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) - or Sizes for Virtual Machines (Windows) - (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). - Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + available sizes of virtual machines in pools, see Choose a VM size for + compute nodes in an Azure Batch pool + (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). :type vm_size: str :param cloud_service_configuration: The cloud service configuration for the pool. This property must be specified if the pool needs to be created @@ -131,7 +122,9 @@ class PoolSpecification(Model): service will make available on each compute node in the pool. The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, - pool creation will fail. + pool creation will fail. The permitted licenses available on the pool are + 'maya', 'vray', '3dsmax', 'arnold'. An additional charge applies for each + application license added to the pool. :type application_licenses: list[str] :param user_accounts: The list of user accounts to be created on each node in the pool. diff --git a/azure-batch/azure/batch/models/pool_usage_metrics.py b/azure-batch/azure/batch/models/pool_usage_metrics.py index b34f65e3553a..93cfa03f6d8f 100644 --- a/azure-batch/azure/batch/models/pool_usage_metrics.py +++ b/azure-batch/azure/batch/models/pool_usage_metrics.py @@ -30,16 +30,7 @@ class PoolUsageMetrics(Model): VMs in a pool are the same size. For information about available sizes of virtual machines in pools, see Choose a VM size for compute nodes in an Azure Batch pool - (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). Batch - supports all Cloud Services VM sizes except ExtraSmall, STANDARD_A1_V2 and - STANDARD_A2_V2. For information about available VM sizes for pools using - images from the Virtual Machines Marketplace (pools created with - virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) - (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) - or Sizes for Virtual Machines (Windows) - (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). - Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). :type vm_size: str :param total_core_hours: Required. The total core hours used in the pool during this aggregation interval. diff --git a/azure-batch/azure/batch/models/pool_usage_metrics_py3.py b/azure-batch/azure/batch/models/pool_usage_metrics_py3.py index 63546259e4e3..5c7ea9ebdf73 100644 --- a/azure-batch/azure/batch/models/pool_usage_metrics_py3.py +++ b/azure-batch/azure/batch/models/pool_usage_metrics_py3.py @@ -30,16 +30,7 @@ class PoolUsageMetrics(Model): VMs in a pool are the same size. For information about available sizes of virtual machines in pools, see Choose a VM size for compute nodes in an Azure Batch pool - (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). Batch - supports all Cloud Services VM sizes except ExtraSmall, STANDARD_A1_V2 and - STANDARD_A2_V2. For information about available VM sizes for pools using - images from the Virtual Machines Marketplace (pools created with - virtualMachineConfiguration) see Sizes for Virtual Machines (Linux) - (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) - or Sizes for Virtual Machines (Windows) - (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). - Batch supports all Azure VM sizes except STANDARD_A0 and those with - premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 series). + (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). :type vm_size: str :param total_core_hours: Required. The total core hours used in the pool during this aggregation interval. diff --git a/azure-batch/azure/batch/models/task_add_collection_parameter.py b/azure-batch/azure/batch/models/task_add_collection_parameter.py index bf614dc48da3..56b615c4a7a1 100644 --- a/azure-batch/azure/batch/models/task_add_collection_parameter.py +++ b/azure-batch/azure/batch/models/task_add_collection_parameter.py @@ -17,10 +17,10 @@ class TaskAddCollectionParameter(Model): All required parameters must be populated in order to send to Azure. - :param value: Required. The collection of tasks to add. The total - serialized size of this collection must be less than 1MB. If it is greater - than 1MB (for example if each task has 100's of resource files or - environment variables), the request will fail with code + :param value: Required. The collection of tasks to add. The maximum count + of tasks is 100. The total serialized size of this collection must be less + than 1MB. If it is greater than 1MB (for example if each task has 100's of + resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer tasks. :type value: list[~azure.batch.models.TaskAddParameter] """ diff --git a/azure-batch/azure/batch/models/task_add_collection_parameter_py3.py b/azure-batch/azure/batch/models/task_add_collection_parameter_py3.py index 32c19f6f2c6a..bfeaf536c43a 100644 --- a/azure-batch/azure/batch/models/task_add_collection_parameter_py3.py +++ b/azure-batch/azure/batch/models/task_add_collection_parameter_py3.py @@ -17,10 +17,10 @@ class TaskAddCollectionParameter(Model): All required parameters must be populated in order to send to Azure. - :param value: Required. The collection of tasks to add. The total - serialized size of this collection must be less than 1MB. If it is greater - than 1MB (for example if each task has 100's of resource files or - environment variables), the request will fail with code + :param value: Required. The collection of tasks to add. The maximum count + of tasks is 100. The total serialized size of this collection must be less + than 1MB. If it is greater than 1MB (for example if each task has 100's of + resource files or environment variables), the request will fail with code 'RequestBodyTooLarge' and should be retried again with fewer tasks. :type value: list[~azure.batch.models.TaskAddParameter] """ diff --git a/azure-batch/azure/batch/models/task_counts.py b/azure-batch/azure/batch/models/task_counts.py index e40880dc63c5..057f2d7ada4c 100644 --- a/azure-batch/azure/batch/models/task_counts.py +++ b/azure-batch/azure/batch/models/task_counts.py @@ -30,10 +30,6 @@ class TaskCounts(Model): :param failed: Required. The number of tasks which failed. A task fails if its result (found in the executionInfo property) is 'failure'. :type failed: int - :param validation_status: Required. Whether the task counts have been - validated. Possible values include: 'validated', 'unvalidated' - :type validation_status: str or - ~azure.batch.models.TaskCountValidationStatus """ _validation = { @@ -42,7 +38,6 @@ class TaskCounts(Model): 'completed': {'required': True}, 'succeeded': {'required': True}, 'failed': {'required': True}, - 'validation_status': {'required': True}, } _attribute_map = { @@ -51,7 +46,6 @@ class TaskCounts(Model): 'completed': {'key': 'completed', 'type': 'int'}, 'succeeded': {'key': 'succeeded', 'type': 'int'}, 'failed': {'key': 'failed', 'type': 'int'}, - 'validation_status': {'key': 'validationStatus', 'type': 'TaskCountValidationStatus'}, } def __init__(self, **kwargs): @@ -61,4 +55,3 @@ def __init__(self, **kwargs): self.completed = kwargs.get('completed', None) self.succeeded = kwargs.get('succeeded', None) self.failed = kwargs.get('failed', None) - self.validation_status = kwargs.get('validation_status', None) diff --git a/azure-batch/azure/batch/models/task_counts_py3.py b/azure-batch/azure/batch/models/task_counts_py3.py index 7cd6c9753ee1..623c7dd86e04 100644 --- a/azure-batch/azure/batch/models/task_counts_py3.py +++ b/azure-batch/azure/batch/models/task_counts_py3.py @@ -30,10 +30,6 @@ class TaskCounts(Model): :param failed: Required. The number of tasks which failed. A task fails if its result (found in the executionInfo property) is 'failure'. :type failed: int - :param validation_status: Required. Whether the task counts have been - validated. Possible values include: 'validated', 'unvalidated' - :type validation_status: str or - ~azure.batch.models.TaskCountValidationStatus """ _validation = { @@ -42,7 +38,6 @@ class TaskCounts(Model): 'completed': {'required': True}, 'succeeded': {'required': True}, 'failed': {'required': True}, - 'validation_status': {'required': True}, } _attribute_map = { @@ -51,14 +46,12 @@ class TaskCounts(Model): 'completed': {'key': 'completed', 'type': 'int'}, 'succeeded': {'key': 'succeeded', 'type': 'int'}, 'failed': {'key': 'failed', 'type': 'int'}, - 'validation_status': {'key': 'validationStatus', 'type': 'TaskCountValidationStatus'}, } - def __init__(self, *, active: int, running: int, completed: int, succeeded: int, failed: int, validation_status, **kwargs) -> None: + def __init__(self, *, active: int, running: int, completed: int, succeeded: int, failed: int, **kwargs) -> None: super(TaskCounts, self).__init__(**kwargs) self.active = active self.running = running self.completed = completed self.succeeded = succeeded self.failed = failed - self.validation_status = validation_status diff --git a/azure-batch/azure/batch/operations/account_operations.py b/azure-batch/azure/batch/operations/account_operations.py index d5081a83a8e0..efd3a9e51e8c 100644 --- a/azure-batch/azure/batch/operations/account_operations.py +++ b/azure-batch/azure/batch/operations/account_operations.py @@ -22,7 +22,7 @@ class AccountOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2018-03-01.6.1". + :ivar api_version: Client API Version. Constant value: "2018-08-01.7.0". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01.6.1" + self.api_version = "2018-08-01.7.0" self.config = config @@ -96,7 +96,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -111,9 +111,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -191,7 +190,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -206,9 +205,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) diff --git a/azure-batch/azure/batch/operations/application_operations.py b/azure-batch/azure/batch/operations/application_operations.py index 262efcbf532e..864d2ff12226 100644 --- a/azure-batch/azure/batch/operations/application_operations.py +++ b/azure-batch/azure/batch/operations/application_operations.py @@ -22,7 +22,7 @@ class ApplicationOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2018-03-01.6.1". + :ivar api_version: Client API Version. Constant value: "2018-08-01.7.0". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01.6.1" + self.api_version = "2018-08-01.7.0" self.config = config @@ -97,7 +97,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -112,9 +112,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -187,7 +186,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -202,8 +201,8 @@ def get( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) diff --git a/azure-batch/azure/batch/operations/certificate_operations.py b/azure-batch/azure/batch/operations/certificate_operations.py index 927510a1117e..d4bdafb94a7b 100644 --- a/azure-batch/azure/batch/operations/certificate_operations.py +++ b/azure-batch/azure/batch/operations/certificate_operations.py @@ -22,7 +22,7 @@ class CertificateOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2018-03-01.6.1". + :ivar api_version: Client API Version. Constant value: "2018-08-01.7.0". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01.6.1" + self.api_version = "2018-08-01.7.0" self.config = config @@ -98,9 +98,8 @@ def add( body_content = self._serialize.body(certificate, 'CertificateAddParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: raise models.BatchErrorException(self._deserialize, response) @@ -183,7 +182,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -198,9 +197,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -279,7 +277,6 @@ def cancel_deletion( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -294,8 +291,8 @@ def cancel_deletion( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [204]: raise models.BatchErrorException(self._deserialize, response) @@ -376,7 +373,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -391,8 +387,8 @@ def delete( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -466,7 +462,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -481,8 +477,8 @@ def get( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) diff --git a/azure-batch/azure/batch/operations/compute_node_operations.py b/azure-batch/azure/batch/operations/compute_node_operations.py index 0cd75777c410..ea988094f6a4 100644 --- a/azure-batch/azure/batch/operations/compute_node_operations.py +++ b/azure-batch/azure/batch/operations/compute_node_operations.py @@ -22,7 +22,7 @@ class ComputeNodeOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2018-03-01.6.1". + :ivar api_version: Client API Version. Constant value: "2018-08-01.7.0". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01.6.1" + self.api_version = "2018-08-01.7.0" self.config = config @@ -111,9 +111,8 @@ def add_user( body_content = self._serialize.body(user, 'ComputeNodeUser') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: raise models.BatchErrorException(self._deserialize, response) @@ -188,7 +187,6 @@ def delete_user( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -203,8 +201,8 @@ def delete_user( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -301,9 +299,8 @@ def update_user( body_content = self._serialize.body(node_update_user_parameter, 'NodeUpdateUserParameter') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -378,7 +375,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -393,8 +390,8 @@ def get( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -502,9 +499,8 @@ def reboot( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -606,9 +602,8 @@ def reimage( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -710,9 +705,8 @@ def disable_scheduling( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -784,7 +778,6 @@ def enable_scheduling( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -799,8 +792,8 @@ def enable_scheduling( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -877,7 +870,7 @@ def get_remote_login_settings( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -892,8 +885,8 @@ def get_remote_login_settings( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -980,7 +973,7 @@ def get_remote_desktop( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -995,8 +988,8 @@ def get_remote_desktop( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=True, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=True, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -1085,6 +1078,7 @@ def upload_batch_service_logs( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) @@ -1103,9 +1097,8 @@ def upload_batch_service_logs( body_content = self._serialize.body(upload_batch_service_logs_configuration, 'UploadBatchServiceLogsConfiguration') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -1199,7 +1192,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -1214,9 +1207,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) diff --git a/azure-batch/azure/batch/operations/file_operations.py b/azure-batch/azure/batch/operations/file_operations.py index 079f78e5a2d1..cf997c3bf42c 100644 --- a/azure-batch/azure/batch/operations/file_operations.py +++ b/azure-batch/azure/batch/operations/file_operations.py @@ -22,7 +22,7 @@ class FileOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2018-03-01.6.1". + :ivar api_version: Client API Version. Constant value: "2018-08-01.7.0". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01.6.1" + self.api_version = "2018-08-01.7.0" self.config = config @@ -100,7 +100,6 @@ def delete_from_task( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -115,8 +114,8 @@ def delete_from_task( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -199,7 +198,7 @@ def get_from_task( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -220,8 +219,8 @@ def get_from_task( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=True, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=True, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -314,7 +313,6 @@ def get_properties_from_task( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -333,8 +331,8 @@ def get_properties_from_task( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -420,7 +418,6 @@ def delete_from_compute_node( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -435,8 +432,8 @@ def delete_from_compute_node( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -519,7 +516,7 @@ def get_from_compute_node( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -540,8 +537,8 @@ def get_from_compute_node( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=True, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=True, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -633,7 +630,6 @@ def get_properties_from_compute_node( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -652,8 +648,8 @@ def get_properties_from_compute_node( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -750,7 +746,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -765,9 +761,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -860,7 +855,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -875,9 +870,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) diff --git a/azure-batch/azure/batch/operations/job_operations.py b/azure-batch/azure/batch/operations/job_operations.py index b2f86f15b61a..333d346add1a 100644 --- a/azure-batch/azure/batch/operations/job_operations.py +++ b/azure-batch/azure/batch/operations/job_operations.py @@ -22,7 +22,7 @@ class JobOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2018-03-01.6.1". + :ivar api_version: Client API Version. Constant value: "2018-08-01.7.0". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01.6.1" + self.api_version = "2018-08-01.7.0" self.config = config @@ -86,7 +86,7 @@ def get_all_lifetime_statistics( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -101,8 +101,8 @@ def get_all_lifetime_statistics( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -195,7 +195,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -218,8 +217,8 @@ def delete( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -302,7 +301,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -325,8 +324,8 @@ def get( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -441,9 +440,8 @@ def patch( body_content = self._serialize.body(job_patch_parameter, 'JobPatchParameter') # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -551,9 +549,8 @@ def update( body_content = self._serialize.body(job_update_parameter, 'JobUpdateParameter') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -668,9 +665,8 @@ def disable( body_content = self._serialize.body(job_disable_parameter, 'JobDisableParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -752,7 +748,6 @@ def enable( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -775,8 +770,8 @@ def enable( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -894,9 +889,8 @@ def terminate( body_content = None # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -984,9 +978,8 @@ def add( body_content = self._serialize.body(job, 'JobAddParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: raise models.BatchErrorException(self._deserialize, response) @@ -1071,7 +1064,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -1086,9 +1079,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -1183,7 +1175,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -1198,9 +1190,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -1298,7 +1289,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -1313,9 +1304,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -1339,11 +1329,7 @@ def get_task_counts( Task counts provide a count of the tasks by active, running or completed task state, and a count of tasks which succeeded or failed. - Tasks in the preparing state are counted as running. If the - validationStatus is unvalidated, then the Batch service has not been - able to check state counts against the task states as reported in the - List Tasks API. The validationStatus may be unvalidated if the job - contains more than 200,000 tasks. + Tasks in the preparing state are counted as running. :param job_id: The ID of the job. :type job_id: str @@ -1390,7 +1376,7 @@ def get_task_counts( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -1405,8 +1391,8 @@ def get_task_counts( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) diff --git a/azure-batch/azure/batch/operations/job_schedule_operations.py b/azure-batch/azure/batch/operations/job_schedule_operations.py index 6371d970caca..b209a1915ee0 100644 --- a/azure-batch/azure/batch/operations/job_schedule_operations.py +++ b/azure-batch/azure/batch/operations/job_schedule_operations.py @@ -22,7 +22,7 @@ class JobScheduleOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2018-03-01.6.1". + :ivar api_version: Client API Version. Constant value: "2018-08-01.7.0". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01.6.1" + self.api_version = "2018-08-01.7.0" self.config = config @@ -97,7 +97,6 @@ def exists( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -120,8 +119,8 @@ def exists( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 404]: raise models.BatchErrorException(self._deserialize, response) @@ -206,7 +205,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -229,8 +227,8 @@ def delete( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -315,7 +313,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -338,8 +336,8 @@ def get( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -460,9 +458,8 @@ def patch( body_content = self._serialize.body(job_schedule_patch_parameter, 'JobSchedulePatchParameter') # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -575,9 +572,8 @@ def update( body_content = self._serialize.body(job_schedule_update_parameter, 'JobScheduleUpdateParameter') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -656,7 +652,6 @@ def disable( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -679,8 +674,8 @@ def disable( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [204]: raise models.BatchErrorException(self._deserialize, response) @@ -757,7 +752,6 @@ def enable( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -780,8 +774,8 @@ def enable( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [204]: raise models.BatchErrorException(self._deserialize, response) @@ -858,7 +852,6 @@ def terminate( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -881,8 +874,8 @@ def terminate( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -961,9 +954,8 @@ def add( body_content = self._serialize.body(cloud_job_schedule, 'JobScheduleAddParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: raise models.BatchErrorException(self._deserialize, response) @@ -1050,7 +1042,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -1065,9 +1057,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) diff --git a/azure-batch/azure/batch/operations/pool_operations.py b/azure-batch/azure/batch/operations/pool_operations.py index 8c48f54e4edd..6d9d40f7e5ef 100644 --- a/azure-batch/azure/batch/operations/pool_operations.py +++ b/azure-batch/azure/batch/operations/pool_operations.py @@ -22,7 +22,7 @@ class PoolOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2018-03-01.6.1". + :ivar api_version: Client API Version. Constant value: "2018-08-01.7.0". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01.6.1" + self.api_version = "2018-08-01.7.0" self.config = config @@ -114,7 +114,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -129,9 +129,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -199,7 +198,7 @@ def get_all_lifetime_statistics( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -214,8 +213,8 @@ def get_all_lifetime_statistics( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -304,9 +303,8 @@ def add( body_content = self._serialize.body(pool, 'PoolAddParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: raise models.BatchErrorException(self._deserialize, response) @@ -391,7 +389,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -406,9 +404,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -498,7 +495,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -521,8 +517,8 @@ def delete( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -594,7 +590,6 @@ def exists( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -617,8 +612,8 @@ def exists( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.head(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200, 404]: raise models.BatchErrorException(self._deserialize, response) @@ -705,7 +700,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -728,8 +723,8 @@ def get( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -845,9 +840,8 @@ def patch( body_content = self._serialize.body(pool_patch_parameter, 'PoolPatchParameter') # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.patch(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -913,7 +907,6 @@ def disable_auto_scale( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -928,8 +921,8 @@ def disable_auto_scale( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -1061,9 +1054,8 @@ def enable_auto_scale( body_content = self._serialize.body(pool_enable_auto_scale_parameter, 'PoolEnableAutoScaleParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -1143,6 +1135,7 @@ def evaluate_auto_scale( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) @@ -1161,9 +1154,8 @@ def evaluate_auto_scale( body_content = self._serialize.body(pool_evaluate_auto_scale_parameter, 'PoolEvaluateAutoScaleParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -1284,9 +1276,8 @@ def resize( body_content = self._serialize.body(pool_resize_parameter, 'PoolResizeParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -1372,7 +1363,6 @@ def stop_resize( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -1395,8 +1385,8 @@ def stop_resize( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -1488,9 +1478,8 @@ def update_properties( body_content = self._serialize.body(pool_update_properties_parameter, 'PoolUpdatePropertiesParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [204]: raise models.BatchErrorException(self._deserialize, response) @@ -1616,9 +1605,8 @@ def upgrade_os( body_content = self._serialize.body(pool_upgrade_os_parameter, 'PoolUpgradeOSParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) @@ -1728,9 +1716,8 @@ def remove_nodes( body_content = self._serialize.body(node_remove_parameter, 'NodeRemoveParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [202]: raise models.BatchErrorException(self._deserialize, response) diff --git a/azure-batch/azure/batch/operations/task_operations.py b/azure-batch/azure/batch/operations/task_operations.py index 296ce1ba2409..526187533a57 100644 --- a/azure-batch/azure/batch/operations/task_operations.py +++ b/azure-batch/azure/batch/operations/task_operations.py @@ -22,7 +22,7 @@ class TaskOperations(object): :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2018-03-01.6.1". + :ivar api_version: Client API Version. Constant value: "2018-08-01.7.0". """ models = models @@ -32,7 +32,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-03-01.6.1" + self.api_version = "2018-08-01.7.0" self.config = config @@ -107,9 +107,8 @@ def add( body_content = self._serialize.body(task, 'TaskAddParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [201]: raise models.BatchErrorException(self._deserialize, response) @@ -204,7 +203,7 @@ def internal_paging(next_link=None, raw=False): # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -219,9 +218,8 @@ def internal_paging(next_link=None, raw=False): header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send( - request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -263,11 +261,12 @@ def add_collection( :param job_id: The ID of the job to which the task collection is to be added. :type job_id: str - :param value: The collection of tasks to add. The total serialized - size of this collection must be less than 1MB. If it is greater than - 1MB (for example if each task has 100's of resource files or - environment variables), the request will fail with code - 'RequestBodyTooLarge' and should be retried again with fewer tasks. + :param value: The collection of tasks to add. The maximum count of + tasks is 100. The total serialized size of this collection must be + less than 1MB. If it is greater than 1MB (for example if each task has + 100's of resource files or environment variables), the request will + fail with code 'RequestBodyTooLarge' and should be retried again with + fewer tasks. :type value: list[~azure.batch.models.TaskAddParameter] :param task_add_collection_options: Additional parameters for the operation @@ -313,6 +312,7 @@ def add_collection( # Construct headers header_parameters = {} + header_parameters['Accept'] = 'application/json' header_parameters['Content-Type'] = 'application/json; odata=minimalmetadata; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) @@ -331,9 +331,8 @@ def add_collection( body_content = self._serialize.body(task_collection, 'TaskAddCollectionParameter') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -423,7 +422,6 @@ def delete( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -446,8 +444,8 @@ def delete( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -537,7 +535,7 @@ def get( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -560,8 +558,8 @@ def get( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -680,9 +678,8 @@ def update( body_content = self._serialize.body(task_update_parameter, 'TaskUpdateParameter') # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, stream=False, **operation_config) + request = self._client.put(url, query_parameters, header_parameters, body_content) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -760,7 +757,7 @@ def list_subtasks( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters['Accept'] = 'application/json' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -775,8 +772,8 @@ def list_subtasks( header_parameters['ocp-date'] = self._serialize.header("ocp_date", ocp_date, 'rfc-1123') # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [200]: raise models.BatchErrorException(self._deserialize, response) @@ -867,7 +864,6 @@ def terminate( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -890,8 +886,8 @@ def terminate( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [204]: raise models.BatchErrorException(self._deserialize, response) @@ -981,7 +977,6 @@ def reactivate( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['client-request-id'] = str(uuid.uuid1()) if custom_headers: @@ -1004,8 +999,8 @@ def reactivate( header_parameters['If-Unmodified-Since'] = self._serialize.header("if_unmodified_since", if_unmodified_since, 'rfc-1123') # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) + request = self._client.post(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) if response.status_code not in [204]: raise models.BatchErrorException(self._deserialize, response) diff --git a/azure-batch/azure/batch/version.py b/azure-batch/azure/batch/version.py index 7b036eb67559..f24f038f478b 100644 --- a/azure-batch/azure/batch/version.py +++ b/azure-batch/azure/batch/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "2018-03-01.6.1" +VERSION = "2018-08-01.7.0" diff --git a/azure-batch/build.json b/azure-batch/build.json index a791722453a5..c63903806dcc 100644 --- a/azure-batch/build.json +++ b/azure-batch/build.json @@ -4,7 +4,7 @@ "resolvedInfo": null, "packageMetadata": { "name": "@microsoft.azure/autorest-core", - "version": "2.0.4280", + "version": "2.0.4283", "engines": { "node": ">=7.10.0" }, @@ -30,26 +30,26 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core", + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4283/node_modules/@microsoft.azure/autorest-core", "_integrity": null, - "_shasum": "bbdeef29b1cba440a6fe5ce238abffa0c4d9d68f", + "_shasum": "849fe6ba18851ee6de05d6ecac55a644440ff356", "_shrinkwrap": null, "bin": { "autorest-core": "./dist/app.js", "autorest-language-service": "dist/language-service/language-service.js" }, - "_id": "@microsoft.azure/autorest-core@2.0.4280", - "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core", + "_id": "@microsoft.azure/autorest-core@2.0.4283", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4283/node_modules/@microsoft.azure/autorest-core", "_requested": { "type": "directory", - "where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core", - "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core" + "where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4283/node_modules/@microsoft.azure/autorest-core", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4283/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4283/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4283/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4283/node_modules/@microsoft.azure/autorest-core" }, - "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core", - "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4280/node_modules/@microsoft.azure/autorest-core" + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4283/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4283/node_modules/@microsoft.azure/autorest-core" }, "extensionManager": { "installationPath": "/root/.autorest", @@ -74,96 +74,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.6280.890935647705.personal-lock", + "name": "_root_.autorest.6585.276350784355.personal-lock", "options": { - "port": 62314, - "host": "2130712536", + "port": 6882, + "host": "2130717270", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.6280.890935647705.personal-lock:62314" - }, - "file": "/tmp/_root_.autorest.lock" - }, - "dotnetPath": "/root/.dotnet" - }, - "installationPath": "/root/.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest.modeler", - "version": "2.0.21", - "dependencies": { - "dotnet-2.0.0": "^1.3.2" - }, - "optionalDependencies": {}, - "devDependencies": { - "coffee-script": "^1.11.1", - "dotnet-sdk-2.0.0": "^1.1.1", - "gulp": "^3.9.1", - "gulp-filter": "^5.0.0", - "gulp-line-ending-corrector": "^1.0.1", - "iced-coffee-script": "^108.0.11", - "marked": "^0.3.6", - "marked-terminal": "^2.0.0", - "moment": "^2.17.1", - "run-sequence": "*", - "shx": "^0.2.2", - "through2-parallel": "^0.1.3", - "yargs": "^8.0.2", - "yarn": "^1.0.2" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "_integrity": null, - "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", - "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest.modeler@2.0.21", - "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "_requested": { - "type": "directory", - "where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" - }, - "extensionManager": { - "installationPath": "/root/.autorest", - "sharedLock": { - "name": "/root/.autorest", - "exclusiveLock": { - "name": "_root_.autorest.exclusive-lock", - "options": { - "port": 45234, - "host": "2130706813", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" - }, - "busyLock": { - "name": "_root_.autorest.busy-lock", - "options": { - "port": 37199, - "host": "2130756895", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" - }, - "personalLock": { - "name": "_root_.autorest.6280.890935647705.personal-lock", - "options": { - "port": 62314, - "host": "2130712536", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.6280.890935647705.personal-lock:62314" + "pipe": "/tmp/pipe__root_.autorest.6585.276350784355.personal-lock:6882" }, "file": "/tmp/_root_.autorest.lock" }, @@ -242,13 +159,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.6280.890935647705.personal-lock", + "name": "_root_.autorest.6585.276350784355.personal-lock", "options": { - "port": 62314, - "host": "2130712536", + "port": 6882, + "host": "2130717270", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.6280.890935647705.personal-lock:62314" + "pipe": "/tmp/pipe__root_.autorest.6585.276350784355.personal-lock:6882" }, "file": "/tmp/_root_.autorest.lock" }, @@ -327,13 +244,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.6280.890935647705.personal-lock", + "name": "_root_.autorest.6585.276350784355.personal-lock", "options": { - "port": 62314, - "host": "2130712536", + "port": 6882, + "host": "2130717270", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.6280.890935647705.personal-lock:62314" + "pipe": "/tmp/pipe__root_.autorest.6585.276350784355.personal-lock:6882" }, "file": "/tmp/_root_.autorest.lock" }, @@ -345,13 +262,13 @@ "resolvedInfo": null, "packageMetadata": { "name": "@microsoft.azure/autorest.python", - "version": "3.0.52", + "version": "3.0.58", "dependencies": { "dotnet-2.0.0": "^1.4.4" }, "optionalDependencies": {}, "devDependencies": { - "@microsoft.azure/autorest.testserver": "^2.5.6", + "@microsoft.azure/autorest.testserver": "^2.5.14", "autorest": "^2.0.4203", "coffee-script": "^1.11.1", "dotnet-sdk-2.0.0": "^1.4.4", @@ -371,23 +288,23 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest.python@3.0.52/node_modules/@microsoft.azure/autorest.python", + "_resolved": "/root/.autorest/@microsoft.azure_autorest.python@3.0.58/node_modules/@microsoft.azure/autorest.python", "_integrity": null, - "_shasum": "9b2d9412ad86807f8186297e0d8f4ac19b7a1f2e", + "_shasum": "a13c02314121f49840d0a888554d04b24b8fe6c1", "_shrinkwrap": null, "bin": null, - "_id": "@microsoft.azure/autorest.python@3.0.52", - "_from": "file:/root/.autorest/@microsoft.azure_autorest.python@3.0.52/node_modules/@microsoft.azure/autorest.python", + "_id": "@microsoft.azure/autorest.python@3.0.58", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.python@3.0.58/node_modules/@microsoft.azure/autorest.python", "_requested": { "type": "directory", - "where": "/root/.autorest/@microsoft.azure_autorest.python@3.0.52/node_modules/@microsoft.azure/autorest.python", - "raw": "/root/.autorest/@microsoft.azure_autorest.python@3.0.52/node_modules/@microsoft.azure/autorest.python", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest.python@3.0.52/node_modules/@microsoft.azure/autorest.python", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.python@3.0.52/node_modules/@microsoft.azure/autorest.python", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.python@3.0.52/node_modules/@microsoft.azure/autorest.python" + "where": "/root/.autorest/@microsoft.azure_autorest.python@3.0.58/node_modules/@microsoft.azure/autorest.python", + "raw": "/root/.autorest/@microsoft.azure_autorest.python@3.0.58/node_modules/@microsoft.azure/autorest.python", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.python@3.0.58/node_modules/@microsoft.azure/autorest.python", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.python@3.0.58/node_modules/@microsoft.azure/autorest.python", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.python@3.0.58/node_modules/@microsoft.azure/autorest.python" }, - "_spec": "/root/.autorest/@microsoft.azure_autorest.python@3.0.52/node_modules/@microsoft.azure/autorest.python", - "_where": "/root/.autorest/@microsoft.azure_autorest.python@3.0.52/node_modules/@microsoft.azure/autorest.python" + "_spec": "/root/.autorest/@microsoft.azure_autorest.python@3.0.58/node_modules/@microsoft.azure/autorest.python", + "_where": "/root/.autorest/@microsoft.azure_autorest.python@3.0.58/node_modules/@microsoft.azure/autorest.python" }, "extensionManager": { "installationPath": "/root/.autorest", @@ -412,13 +329,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.6280.890935647705.personal-lock", + "name": "_root_.autorest.6585.276350784355.personal-lock", "options": { - "port": 62314, - "host": "2130712536", + "port": 6882, + "host": "2130717270", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.6280.890935647705.personal-lock:62314" + "pipe": "/tmp/pipe__root_.autorest.6585.276350784355.personal-lock:6882" }, "file": "/tmp/_root_.autorest.lock" }, From db9e2e1cf65966a3ae982c45bc91488516904d81 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Thu, 16 Aug 2018 20:24:51 +0000 Subject: [PATCH 2/5] Generated from 1863e5ba5ea90b7932e991ed6394da86aba9bb9d Update the new API --- azure-batch/build.json | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/azure-batch/build.json b/azure-batch/build.json index c63903806dcc..5ada92c24975 100644 --- a/azure-batch/build.json +++ b/azure-batch/build.json @@ -74,13 +74,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.6585.276350784355.personal-lock", + "name": "_root_.autorest.1254.225465647869.personal-lock", "options": { - "port": 6882, - "host": "2130717270", + "port": 14986, + "host": "2130764374", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.6585.276350784355.personal-lock:6882" + "pipe": "/tmp/pipe__root_.autorest.1254.225465647869.personal-lock:14986" }, "file": "/tmp/_root_.autorest.lock" }, @@ -159,13 +159,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.6585.276350784355.personal-lock", + "name": "_root_.autorest.1254.225465647869.personal-lock", "options": { - "port": 6882, - "host": "2130717270", + "port": 14986, + "host": "2130764374", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.6585.276350784355.personal-lock:6882" + "pipe": "/tmp/pipe__root_.autorest.1254.225465647869.personal-lock:14986" }, "file": "/tmp/_root_.autorest.lock" }, @@ -244,13 +244,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.6585.276350784355.personal-lock", + "name": "_root_.autorest.1254.225465647869.personal-lock", "options": { - "port": 6882, - "host": "2130717270", + "port": 14986, + "host": "2130764374", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.6585.276350784355.personal-lock:6882" + "pipe": "/tmp/pipe__root_.autorest.1254.225465647869.personal-lock:14986" }, "file": "/tmp/_root_.autorest.lock" }, @@ -329,13 +329,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.6585.276350784355.personal-lock", + "name": "_root_.autorest.1254.225465647869.personal-lock", "options": { - "port": 6882, - "host": "2130717270", + "port": 14986, + "host": "2130764374", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.6585.276350784355.personal-lock:6882" + "pipe": "/tmp/pipe__root_.autorest.1254.225465647869.personal-lock:14986" }, "file": "/tmp/_root_.autorest.lock" }, From 5089cb7f42bc7a771128b2825acfb51658cfbc92 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 17 Aug 2018 18:56:32 +0000 Subject: [PATCH 3/5] Generated from 2d2f46e071e61b34a5d2430aee86c1fbe26d16c0 Update the new API --- .../batch/models/container_configuration.py | 4 +-- .../models/container_configuration_py3.py | 4 +-- azure-batch/build.json | 32 +++++++++---------- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/azure-batch/azure/batch/models/container_configuration.py b/azure-batch/azure/batch/models/container_configuration.py index eda8feaa90d9..f4b932c4a257 100644 --- a/azure-batch/azure/batch/models/container_configuration.py +++ b/azure-batch/azure/batch/models/container_configuration.py @@ -21,7 +21,7 @@ class ContainerConfiguration(Model): All required parameters must be populated in order to send to Azure. :ivar type: Required. The container technology to be used. Default value: - "docker" . + "dockerCompatible" . :vartype type: str :param container_image_names: The collection of container image names. This is the full image reference, as would be specified to "docker pull". @@ -45,7 +45,7 @@ class ContainerConfiguration(Model): 'container_registries': {'key': 'containerRegistries', 'type': '[ContainerRegistry]'}, } - type = "docker" + type = "dockerCompatible" def __init__(self, **kwargs): super(ContainerConfiguration, self).__init__(**kwargs) diff --git a/azure-batch/azure/batch/models/container_configuration_py3.py b/azure-batch/azure/batch/models/container_configuration_py3.py index a2bacdc7ac5d..f65b047ea4dc 100644 --- a/azure-batch/azure/batch/models/container_configuration_py3.py +++ b/azure-batch/azure/batch/models/container_configuration_py3.py @@ -21,7 +21,7 @@ class ContainerConfiguration(Model): All required parameters must be populated in order to send to Azure. :ivar type: Required. The container technology to be used. Default value: - "docker" . + "dockerCompatible" . :vartype type: str :param container_image_names: The collection of container image names. This is the full image reference, as would be specified to "docker pull". @@ -45,7 +45,7 @@ class ContainerConfiguration(Model): 'container_registries': {'key': 'containerRegistries', 'type': '[ContainerRegistry]'}, } - type = "docker" + type = "dockerCompatible" def __init__(self, *, container_image_names=None, container_registries=None, **kwargs) -> None: super(ContainerConfiguration, self).__init__(**kwargs) diff --git a/azure-batch/build.json b/azure-batch/build.json index 5ada92c24975..eecf3b02d538 100644 --- a/azure-batch/build.json +++ b/azure-batch/build.json @@ -74,13 +74,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.1254.225465647869.personal-lock", + "name": "_root_.autorest.2309.3996328500866.personal-lock", "options": { - "port": 14986, - "host": "2130764374", + "port": 64254, + "host": "2130756441", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.1254.225465647869.personal-lock:14986" + "pipe": "/tmp/pipe__root_.autorest.2309.3996328500866.personal-lock:64254" }, "file": "/tmp/_root_.autorest.lock" }, @@ -159,13 +159,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.1254.225465647869.personal-lock", + "name": "_root_.autorest.2309.3996328500866.personal-lock", "options": { - "port": 14986, - "host": "2130764374", + "port": 64254, + "host": "2130756441", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.1254.225465647869.personal-lock:14986" + "pipe": "/tmp/pipe__root_.autorest.2309.3996328500866.personal-lock:64254" }, "file": "/tmp/_root_.autorest.lock" }, @@ -244,13 +244,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.1254.225465647869.personal-lock", + "name": "_root_.autorest.2309.3996328500866.personal-lock", "options": { - "port": 14986, - "host": "2130764374", + "port": 64254, + "host": "2130756441", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.1254.225465647869.personal-lock:14986" + "pipe": "/tmp/pipe__root_.autorest.2309.3996328500866.personal-lock:64254" }, "file": "/tmp/_root_.autorest.lock" }, @@ -329,13 +329,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.1254.225465647869.personal-lock", + "name": "_root_.autorest.2309.3996328500866.personal-lock", "options": { - "port": 14986, - "host": "2130764374", + "port": 64254, + "host": "2130756441", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.1254.225465647869.personal-lock:14986" + "pipe": "/tmp/pipe__root_.autorest.2309.3996328500866.personal-lock:64254" }, "file": "/tmp/_root_.autorest.lock" }, From 22316b5f08cb2b6f082ffd9d6b0dba923fa36021 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 17 Aug 2018 22:19:35 +0000 Subject: [PATCH 4/5] Generated from 5aa6439151f77ec2fd46e6945447106bc79574f0 Update the new API --- azure-batch/build.json | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/azure-batch/build.json b/azure-batch/build.json index eecf3b02d538..3a5a93f5b7c3 100644 --- a/azure-batch/build.json +++ b/azure-batch/build.json @@ -74,13 +74,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.2309.3996328500866.personal-lock", + "name": "_root_.autorest.5589.304967723958.personal-lock", "options": { - "port": 64254, - "host": "2130756441", + "port": 57239, + "host": "2130714803", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.2309.3996328500866.personal-lock:64254" + "pipe": "/tmp/pipe__root_.autorest.5589.304967723958.personal-lock:57239" }, "file": "/tmp/_root_.autorest.lock" }, @@ -159,13 +159,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.2309.3996328500866.personal-lock", + "name": "_root_.autorest.5589.304967723958.personal-lock", "options": { - "port": 64254, - "host": "2130756441", + "port": 57239, + "host": "2130714803", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.2309.3996328500866.personal-lock:64254" + "pipe": "/tmp/pipe__root_.autorest.5589.304967723958.personal-lock:57239" }, "file": "/tmp/_root_.autorest.lock" }, @@ -244,13 +244,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.2309.3996328500866.personal-lock", + "name": "_root_.autorest.5589.304967723958.personal-lock", "options": { - "port": 64254, - "host": "2130756441", + "port": 57239, + "host": "2130714803", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.2309.3996328500866.personal-lock:64254" + "pipe": "/tmp/pipe__root_.autorest.5589.304967723958.personal-lock:57239" }, "file": "/tmp/_root_.autorest.lock" }, @@ -329,13 +329,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.2309.3996328500866.personal-lock", + "name": "_root_.autorest.5589.304967723958.personal-lock", "options": { - "port": 64254, - "host": "2130756441", + "port": 57239, + "host": "2130714803", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.2309.3996328500866.personal-lock:64254" + "pipe": "/tmp/pipe__root_.autorest.5589.304967723958.personal-lock:57239" }, "file": "/tmp/_root_.autorest.lock" }, From 683934ea3f219b3d5523d4335051d794899e6700 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 20 Aug 2018 18:28:34 +0000 Subject: [PATCH 5/5] Generated from 5aa6439151f77ec2fd46e6945447106bc79574f0 Update the new API --- azure-batch/build.json | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/azure-batch/build.json b/azure-batch/build.json index 3a5a93f5b7c3..b95fa8d1412a 100644 --- a/azure-batch/build.json +++ b/azure-batch/build.json @@ -74,13 +74,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.5589.304967723958.personal-lock", + "name": "_root_.autorest.2767.0367289845044.personal-lock", "options": { - "port": 57239, - "host": "2130714803", + "port": 29993, + "host": "2130718769", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.5589.304967723958.personal-lock:57239" + "pipe": "/tmp/pipe__root_.autorest.2767.0367289845044.personal-lock:29993" }, "file": "/tmp/_root_.autorest.lock" }, @@ -159,13 +159,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.5589.304967723958.personal-lock", + "name": "_root_.autorest.2767.0367289845044.personal-lock", "options": { - "port": 57239, - "host": "2130714803", + "port": 29993, + "host": "2130718769", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.5589.304967723958.personal-lock:57239" + "pipe": "/tmp/pipe__root_.autorest.2767.0367289845044.personal-lock:29993" }, "file": "/tmp/_root_.autorest.lock" }, @@ -244,13 +244,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.5589.304967723958.personal-lock", + "name": "_root_.autorest.2767.0367289845044.personal-lock", "options": { - "port": 57239, - "host": "2130714803", + "port": 29993, + "host": "2130718769", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.5589.304967723958.personal-lock:57239" + "pipe": "/tmp/pipe__root_.autorest.2767.0367289845044.personal-lock:29993" }, "file": "/tmp/_root_.autorest.lock" }, @@ -329,13 +329,13 @@ "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" }, "personalLock": { - "name": "_root_.autorest.5589.304967723958.personal-lock", + "name": "_root_.autorest.2767.0367289845044.personal-lock", "options": { - "port": 57239, - "host": "2130714803", + "port": 29993, + "host": "2130718769", "exclusive": true }, - "pipe": "/tmp/pipe__root_.autorest.5589.304967723958.personal-lock:57239" + "pipe": "/tmp/pipe__root_.autorest.2767.0367289845044.personal-lock:29993" }, "file": "/tmp/_root_.autorest.lock" },