Skip to content

Commit 032b09d

Browse files
00Kai0SDKAuto
andauthored
T2 batch 2021 01 28 (Azure#16391)
* CodeGen from PR 12563 in Azure/azure-rest-api-specs Enable python track2 pipeline (Azure#12563) * test,version,CHANGELOG * fix test * fix changelog , version Co-authored-by: SDKAuto <sdkautomation@microsoft.com>
1 parent 250e123 commit 032b09d

40 files changed

+1083
-800
lines changed

sdk/batch/azure-mgmt-batch/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Release History
22

3+
## 15.0.0b1 (2021-01-28)
4+
5+
**Features**
6+
7+
- Added a new user_assigned_identities on BatchAccountIdentity to specify a user managed identity
8+
- Added a new task_slots_per_node property on Pool so property tasks in a job can consume a dynamic amount of slots
9+
- Added a new identity property on Pool to specify a managed identity
10+
- Added new extensions property to VirtualMachineConfiguration on pools to specify virtual machine extensions for nodes
11+
- Added the ability to specify availability zones using a new property node_placement_configuration on VirtualMachineConfiguration
12+
- Added a new property user_name to ContainerRegistry
13+
14+
**Breaking changes**
15+
16+
- Removed property username from ContainerRegistry
17+
- Removed max_tasks_per_node property on Pool and replaced it with task_slots_per_node
18+
319
## 14.0.0 (2020-12-22)
420

521
- GA release

sdk/batch/azure-mgmt-batch/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,16 @@ library.
1414
For a more complete set of Azure libraries, see the
1515
[azure sdk python release](https://aka.ms/azsdk/python/all).
1616

17-
## Usage
17+
# Usage
1818

1919

2020
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
2121

2222

23-
23+
2424
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
2525
Code samples for this package can be found at [Batch Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
2626
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
27-
28-
2927
## Provide Feedback
3028

3129
If you encounter any bugs or have suggestions, please file an issue in

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_batch_management.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ def __init__(
7474

7575
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
7676
self._serialize = Serializer(client_models)
77-
self._serialize.client_side_validation = False
7877
self._deserialize = Deserializer(client_models)
7978

8079
self.batch_account = BatchAccountOperations(

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2020-09-01"
51+
self.api_version = "2021-01-01"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-batch/{}'.format(VERSION))
5454
self._configure(**kwargs)
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"chosen_version": "2021-01-01",
3+
"total_api_version_list": ["2021-01-01"],
4+
"client": {
5+
"name": "BatchManagement",
6+
"filename": "_batch_management",
7+
"description": "BatchManagement.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"client_side_validation": true
13+
},
14+
"global_parameters": {
15+
"sync": {
16+
"credential": {
17+
"signature": "credential, # type: \"TokenCredential\"",
18+
"description": "Credential needed for the client to connect to Azure.",
19+
"docstring_type": "~azure.core.credentials.TokenCredential",
20+
"required": true
21+
},
22+
"subscription_id": {
23+
"signature": "subscription_id, # type: str",
24+
"description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).",
25+
"docstring_type": "str",
26+
"required": true
27+
}
28+
},
29+
"async": {
30+
"credential": {
31+
"signature": "credential, # type: \"AsyncTokenCredential\"",
32+
"description": "Credential needed for the client to connect to Azure.",
33+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
34+
"required": true
35+
},
36+
"subscription_id": {
37+
"signature": "subscription_id, # type: str",
38+
"description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).",
39+
"docstring_type": "str",
40+
"required": true
41+
}
42+
},
43+
"constant": {
44+
},
45+
"call": "credential, subscription_id"
46+
},
47+
"config": {
48+
"credential": true,
49+
"credential_scopes": ["https://management.azure.com/.default"],
50+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
51+
"credential_default_policy_type_has_async_version": true,
52+
"credential_key_header_name": null
53+
},
54+
"operation_groups": {
55+
"batch_account": "BatchAccountOperations",
56+
"application_package": "ApplicationPackageOperations",
57+
"application": "ApplicationOperations",
58+
"location": "LocationOperations",
59+
"operations": "Operations",
60+
"certificate": "CertificateOperations",
61+
"private_link_resource": "PrivateLinkResourceOperations",
62+
"private_endpoint_connection": "PrivateEndpointConnectionOperations",
63+
"pool": "PoolOperations"
64+
},
65+
"operation_mixins": {
66+
},
67+
"sync_imports": "None",
68+
"async_imports": "None"
69+
}

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "14.0.0"
9+
VERSION = "15.0.0b1"

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_batch_management.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def __init__(
7171

7272
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
7373
self._serialize = Serializer(client_models)
74-
self._serialize.client_side_validation = False
7574
self._deserialize = Deserializer(client_models)
7675

7776
self.batch_account = BatchAccountOperations(

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2020-09-01"
48+
self.api_version = "2021-01-01"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-batch/{}'.format(VERSION))
5151
self._configure(**kwargs)

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_operations.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def create(
6969
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7070
}
7171
error_map.update(kwargs.pop('error_map', {}))
72-
api_version = "2020-09-01"
72+
api_version = "2021-01-01"
7373
content_type = kwargs.pop("content_type", "application/json")
7474
accept = "application/json"
7575

@@ -139,7 +139,7 @@ async def delete(
139139
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
140140
}
141141
error_map.update(kwargs.pop('error_map', {}))
142-
api_version = "2020-09-01"
142+
api_version = "2021-01-01"
143143
accept = "application/json"
144144

145145
# Construct URL
@@ -198,7 +198,7 @@ async def get(
198198
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
199199
}
200200
error_map.update(kwargs.pop('error_map', {}))
201-
api_version = "2020-09-01"
201+
api_version = "2021-01-01"
202202
accept = "application/json"
203203

204204
# Construct URL
@@ -263,7 +263,7 @@ async def update(
263263
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
264264
}
265265
error_map.update(kwargs.pop('error_map', {}))
266-
api_version = "2020-09-01"
266+
api_version = "2021-01-01"
267267
content_type = kwargs.pop("content_type", "application/json")
268268
accept = "application/json"
269269

@@ -330,7 +330,7 @@ def list(
330330
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
331331
}
332332
error_map.update(kwargs.pop('error_map', {}))
333-
api_version = "2020-09-01"
333+
api_version = "2021-01-01"
334334
accept = "application/json"
335335

336336
def prepare_request(next_link=None):

sdk/batch/azure-mgmt-batch/azure/mgmt/batch/aio/operations/_application_package_operations.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def activate(
7474
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7575
}
7676
error_map.update(kwargs.pop('error_map', {}))
77-
api_version = "2020-09-01"
77+
api_version = "2021-01-01"
7878
content_type = kwargs.pop("content_type", "application/json")
7979
accept = "application/json"
8080

@@ -150,7 +150,7 @@ async def create(
150150
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
151151
}
152152
error_map.update(kwargs.pop('error_map', {}))
153-
api_version = "2020-09-01"
153+
api_version = "2021-01-01"
154154
content_type = kwargs.pop("content_type", "application/json")
155155
accept = "application/json"
156156

@@ -224,7 +224,7 @@ async def delete(
224224
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
225225
}
226226
error_map.update(kwargs.pop('error_map', {}))
227-
api_version = "2020-09-01"
227+
api_version = "2021-01-01"
228228
accept = "application/json"
229229

230230
# Construct URL
@@ -287,7 +287,7 @@ async def get(
287287
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
288288
}
289289
error_map.update(kwargs.pop('error_map', {}))
290-
api_version = "2020-09-01"
290+
api_version = "2021-01-01"
291291
accept = "application/json"
292292

293293
# Construct URL
@@ -353,7 +353,7 @@ def list(
353353
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
354354
}
355355
error_map.update(kwargs.pop('error_map', {}))
356-
api_version = "2020-09-01"
356+
api_version = "2021-01-01"
357357
accept = "application/json"
358358

359359
def prepare_request(next_link=None):

0 commit comments

Comments
 (0)