Skip to content

Commit 1f491c8

Browse files
author
Amarjeet Kumar
committed
[DataMigration][CLI] - Publish stable API version
1 parent 77ffa94 commit 1f491c8

27 files changed

+208
-208
lines changed

src/datamigration/azext_datamigration/tests/latest/recordings/test_datamigration_Scenario.yaml

Lines changed: 80 additions & 80 deletions
Large diffs are not rendered by default.

src/datamigration/azext_datamigration/vendored_sdks/datamigration/_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 = "2022-03-30-preview"
51+
self.api_version = "2025-06-30"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-datamigration/{}'.format(VERSION))
5454
self._configure(**kwargs)

src/datamigration/azext_datamigration/vendored_sdks/datamigration/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 = "2022-03-30-preview"
48+
self.api_version = "2025-06-30"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-datamigration/{}'.format(VERSION))
5151
self._configure(**kwargs)

src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_db_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def get(
7676
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7777
}
7878
error_map.update(kwargs.pop('error_map', {}))
79-
api_version = "2022-03-30-preview"
79+
api_version = "2025-06-30"
8080
accept = "application/json"
8181

8282
# Construct URL
@@ -130,7 +130,7 @@ async def _create_or_update_initial(
130130
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
131131
}
132132
error_map.update(kwargs.pop('error_map', {}))
133-
api_version = "2022-03-30-preview"
133+
api_version = "2025-06-30"
134134
content_type = kwargs.pop("content_type", "application/json")
135135
accept = "application/json"
136136

@@ -266,7 +266,7 @@ async def _delete_initial(
266266
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
267267
}
268268
error_map.update(kwargs.pop('error_map', {}))
269-
api_version = "2022-03-30-preview"
269+
api_version = "2025-06-30"
270270

271271
# Construct URL
272272
url = self._delete_initial.metadata['url'] # type: ignore
@@ -388,7 +388,7 @@ async def _cancel_initial(
388388
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
389389
}
390390
error_map.update(kwargs.pop('error_map', {}))
391-
api_version = "2022-03-30-preview"
391+
api_version = "2025-06-30"
392392
content_type = kwargs.pop("content_type", "application/json")
393393

394394
# Construct URL

src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_mi_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def get(
7676
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7777
}
7878
error_map.update(kwargs.pop('error_map', {}))
79-
api_version = "2022-03-30-preview"
79+
api_version = "2025-06-30"
8080
accept = "application/json"
8181

8282
# Construct URL
@@ -130,7 +130,7 @@ async def _create_or_update_initial(
130130
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
131131
}
132132
error_map.update(kwargs.pop('error_map', {}))
133-
api_version = "2022-03-30-preview"
133+
api_version = "2025-06-30"
134134
content_type = kwargs.pop("content_type", "application/json")
135135
accept = "application/json"
136136

@@ -266,7 +266,7 @@ async def _cancel_initial(
266266
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
267267
}
268268
error_map.update(kwargs.pop('error_map', {}))
269-
api_version = "2022-03-30-preview"
269+
api_version = "2025-06-30"
270270
content_type = kwargs.pop("content_type", "application/json")
271271

272272
# Construct URL
@@ -390,7 +390,7 @@ async def _cutover_initial(
390390
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
391391
}
392392
error_map.update(kwargs.pop('error_map', {}))
393-
api_version = "2022-03-30-preview"
393+
api_version = "2025-06-30"
394394
content_type = kwargs.pop("content_type", "application/json")
395395

396396
# Construct URL

src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_database_migrations_sql_vm_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async def get(
7676
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7777
}
7878
error_map.update(kwargs.pop('error_map', {}))
79-
api_version = "2022-03-30-preview"
79+
api_version = "2025-06-30"
8080
accept = "application/json"
8181

8282
# Construct URL
@@ -130,7 +130,7 @@ async def _create_or_update_initial(
130130
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
131131
}
132132
error_map.update(kwargs.pop('error_map', {}))
133-
api_version = "2022-03-30-preview"
133+
api_version = "2025-06-30"
134134
content_type = kwargs.pop("content_type", "application/json")
135135
accept = "application/json"
136136

@@ -266,7 +266,7 @@ async def _cancel_initial(
266266
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
267267
}
268268
error_map.update(kwargs.pop('error_map', {}))
269-
api_version = "2022-03-30-preview"
269+
api_version = "2025-06-30"
270270
content_type = kwargs.pop("content_type", "application/json")
271271

272272
# Construct URL
@@ -390,7 +390,7 @@ async def _cutover_initial(
390390
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
391391
}
392392
error_map.update(kwargs.pop('error_map', {}))
393-
api_version = "2022-03-30-preview"
393+
api_version = "2025-06-30"
394394
content_type = kwargs.pop("content_type", "application/json")
395395

396396
# Construct URL

src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_files_operations.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def list(
6969
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7070
}
7171
error_map.update(kwargs.pop('error_map', {}))
72-
api_version = "2022-03-30-preview"
72+
api_version = "2025-06-30"
7373
accept = "application/json"
7474

7575
def prepare_request(next_link=None):
@@ -154,7 +154,7 @@ async def get(
154154
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
155155
}
156156
error_map.update(kwargs.pop('error_map', {}))
157-
api_version = "2022-03-30-preview"
157+
api_version = "2025-06-30"
158158
accept = "application/json"
159159

160160
# Construct URL
@@ -226,7 +226,7 @@ async def create_or_update(
226226
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
227227
}
228228
error_map.update(kwargs.pop('error_map', {}))
229-
api_version = "2022-03-30-preview"
229+
api_version = "2025-06-30"
230230
content_type = kwargs.pop("content_type", "application/json")
231231
accept = "application/json"
232232

@@ -304,7 +304,7 @@ async def delete(
304304
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
305305
}
306306
error_map.update(kwargs.pop('error_map', {}))
307-
api_version = "2022-03-30-preview"
307+
api_version = "2025-06-30"
308308
accept = "application/json"
309309

310310
# Construct URL
@@ -373,7 +373,7 @@ async def update(
373373
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
374374
}
375375
error_map.update(kwargs.pop('error_map', {}))
376-
api_version = "2022-03-30-preview"
376+
api_version = "2025-06-30"
377377
content_type = kwargs.pop("content_type", "application/json")
378378
accept = "application/json"
379379

@@ -448,7 +448,7 @@ async def read(
448448
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
449449
}
450450
error_map.update(kwargs.pop('error_map', {}))
451-
api_version = "2022-03-30-preview"
451+
api_version = "2025-06-30"
452452
accept = "application/json"
453453

454454
# Construct URL
@@ -517,7 +517,7 @@ async def read_write(
517517
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
518518
}
519519
error_map.update(kwargs.pop('error_map', {}))
520-
api_version = "2022-03-30-preview"
520+
api_version = "2025-06-30"
521521
accept = "application/json"
522522

523523
# Construct URL

src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def list(
5757
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
5858
}
5959
error_map.update(kwargs.pop('error_map', {}))
60-
api_version = "2022-03-30-preview"
60+
api_version = "2025-06-30"
6161
accept = "application/json"
6262

6363
def prepare_request(next_link=None):

src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_projects_operations.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def list(
6666
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6767
}
6868
error_map.update(kwargs.pop('error_map', {}))
69-
api_version = "2022-03-30-preview"
69+
api_version = "2025-06-30"
7070
accept = "application/json"
7171

7272
def prepare_request(next_link=None):
@@ -150,7 +150,7 @@ async def create_or_update(
150150
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
151151
}
152152
error_map.update(kwargs.pop('error_map', {}))
153-
api_version = "2022-03-30-preview"
153+
api_version = "2025-06-30"
154154
content_type = kwargs.pop("content_type", "application/json")
155155
accept = "application/json"
156156

@@ -225,7 +225,7 @@ async def get(
225225
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
226226
}
227227
error_map.update(kwargs.pop('error_map', {}))
228-
api_version = "2022-03-30-preview"
228+
api_version = "2025-06-30"
229229
accept = "application/json"
230230

231231
# Construct URL
@@ -294,7 +294,7 @@ async def delete(
294294
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
295295
}
296296
error_map.update(kwargs.pop('error_map', {}))
297-
api_version = "2022-03-30-preview"
297+
api_version = "2025-06-30"
298298
accept = "application/json"
299299

300300
# Construct URL
@@ -362,7 +362,7 @@ async def update(
362362
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
363363
}
364364
error_map.update(kwargs.pop('error_map', {}))
365-
api_version = "2022-03-30-preview"
365+
api_version = "2025-06-30"
366366
content_type = kwargs.pop("content_type", "application/json")
367367
accept = "application/json"
368368

src/datamigration/azext_datamigration/vendored_sdks/datamigration/aio/operations/_resource_skus_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def list_skus(
5959
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6060
}
6161
error_map.update(kwargs.pop('error_map', {}))
62-
api_version = "2022-03-30-preview"
62+
api_version = "2025-06-30"
6363
accept = "application/json"
6464

6565
def prepare_request(next_link=None):

0 commit comments

Comments
 (0)