Skip to content

Commit c3b0cd8

Browse files
committed
bump api version using aaz
1 parent 6b0d11a commit c3b0cd8

5 files changed

Lines changed: 100 additions & 30 deletions

File tree

‎src/storagesync/azext_storagesync/aaz/latest/storagesync/_check_name_availability.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class CheckNameAvailability(AAZCommand):
1919
"""
2020

2121
_aaz_info = {
22-
"version": "2022-06-01",
22+
"version": "2025-12-01",
2323
"resources": [
24-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.storagesync/locations/{}/checknameavailability", "2022-06-01"],
24+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.storagesync/locations/{}/checknameavailability", "2025-12-01"],
2525
]
2626
}
2727

@@ -68,7 +68,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
6868

6969
def _execute_operations(self):
7070
self.pre_operations()
71-
self.StorageSyncServicesCheckNameAvailability(ctx=self.ctx)()
71+
self.StorageSyncServicesOperationGroupCheckNameAvailability(ctx=self.ctx)()
7272
self.post_operations()
7373

7474
@register_callback
@@ -83,7 +83,7 @@ def _output(self, *args, **kwargs):
8383
result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True)
8484
return result
8585

86-
class StorageSyncServicesCheckNameAvailability(AAZHttpOperation):
86+
class StorageSyncServicesOperationGroupCheckNameAvailability(AAZHttpOperation):
8787
CLIENT_TYPE = "MgmtClient"
8888

8989
def __call__(self, *args, **kwargs):
@@ -107,7 +107,7 @@ def method(self):
107107

108108
@property
109109
def error_format(self):
110-
return "MgmtErrorFormat"
110+
return "ODataV4Format"
111111

112112
@property
113113
def url_parameters(self):
@@ -127,7 +127,7 @@ def url_parameters(self):
127127
def query_parameters(self):
128128
parameters = {
129129
**self.serialize_query_param(
130-
"api-version", "2022-06-01",
130+
"api-version", "2025-12-01",
131131
required=True,
132132
),
133133
}

‎src/storagesync/azext_storagesync/aaz/latest/storagesync/private_endpoint_connection/_list.py‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class List(AAZCommand):
1919
"""
2020

2121
_aaz_info = {
22-
"version": "2022-06-01",
22+
"version": "2025-12-01",
2323
"resources": [
24-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storagesync/storagesyncservices/{}/privateendpointconnections", "2022-06-01"],
24+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storagesync/storagesyncservices/{}/privateendpointconnections", "2025-12-01"],
2525
]
2626
}
2727

@@ -48,6 +48,9 @@ def _build_arguments_schema(cls, *args, **kwargs):
4848
options=["--storage-sync-service", "--storage-sync-service-name"],
4949
help="Name of Storage Sync Service resource.",
5050
required=True,
51+
fmt=AAZStrArgFormat(
52+
pattern="",
53+
),
5154
)
5255
return cls._args_schema
5356

@@ -116,7 +119,7 @@ def url_parameters(self):
116119
def query_parameters(self):
117120
parameters = {
118121
**self.serialize_query_param(
119-
"api-version", "2022-06-01",
122+
"api-version", "2025-12-01",
120123
required=True,
121124
),
122125
}
@@ -149,6 +152,9 @@ def _build_schema_on_200(cls):
149152
cls._schema_on_200 = AAZObjectType()
150153

151154
_schema_on_200 = cls._schema_on_200
155+
_schema_on_200.next_link = AAZStrType(
156+
serialized_name="nextLink",
157+
)
152158
_schema_on_200.value = AAZListType()
153159

154160
value = cls._schema_on_200.value
@@ -173,6 +179,10 @@ def _build_schema_on_200(cls):
173179
)
174180

175181
properties = cls._schema_on_200.value.Element.properties
182+
properties.group_ids = AAZListType(
183+
serialized_name="groupIds",
184+
flags={"read_only": True},
185+
)
176186
properties.private_endpoint = AAZObjectType(
177187
serialized_name="privateEndpoint",
178188
)
@@ -185,6 +195,9 @@ def _build_schema_on_200(cls):
185195
flags={"read_only": True},
186196
)
187197

198+
group_ids = cls._schema_on_200.value.Element.properties.group_ids
199+
group_ids.Element = AAZStrType()
200+
188201
private_endpoint = cls._schema_on_200.value.Element.properties.private_endpoint
189202
private_endpoint.id = AAZStrType(
190203
flags={"read_only": True},

‎src/storagesync/azext_storagesync/aaz/latest/storagesync/sync_group/cloud_endpoint/_trigger_change_detection.py‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class TriggerChangeDetection(AAZCommand):
1919
"""
2020

2121
_aaz_info = {
22-
"version": "2022-06-01",
22+
"version": "2025-12-01",
2323
"resources": [
24-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storagesync/storagesyncservices/{}/syncgroups/{}/cloudendpoints/{}/triggerchangedetection", "2022-06-01"],
24+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.storagesync/storagesyncservices/{}/syncgroups/{}/cloudendpoints/{}/triggerchangedetection", "2025-12-01"],
2525
]
2626
}
2727

@@ -47,6 +47,9 @@ def _build_arguments_schema(cls, *args, **kwargs):
4747
help="Name of Cloud Endpoint object.",
4848
required=True,
4949
id_part="child_name_2",
50+
fmt=AAZStrArgFormat(
51+
pattern="",
52+
),
5053
)
5154
_args_schema.resource_group = AAZResourceGroupNameArg(
5255
required=True,
@@ -56,12 +59,18 @@ def _build_arguments_schema(cls, *args, **kwargs):
5659
help="Name of Storage Sync Service resource.",
5760
required=True,
5861
id_part="name",
62+
fmt=AAZStrArgFormat(
63+
pattern="",
64+
),
5965
)
6066
_args_schema.sync_group_name = AAZStrArg(
6167
options=["--sync-group-name"],
6268
help="Name of Sync Group resource.",
6369
required=True,
6470
id_part="child_name_1",
71+
fmt=AAZStrArgFormat(
72+
pattern="",
73+
),
6574
)
6675

6776
# define Arg Group "Parameters"
@@ -113,7 +122,7 @@ def __call__(self, *args, **kwargs):
113122
session,
114123
self.on_200,
115124
self.on_error,
116-
lro_options={"final-state-via": "azure-async-operation"},
125+
lro_options={"final-state-via": "location"},
117126
path_format_arguments=self.url_parameters,
118127
)
119128
if session.http_response.status_code in [200]:
@@ -122,7 +131,7 @@ def __call__(self, *args, **kwargs):
122131
session,
123132
self.on_200,
124133
self.on_error,
125-
lro_options={"final-state-via": "azure-async-operation"},
134+
lro_options={"final-state-via": "location"},
126135
path_format_arguments=self.url_parameters,
127136
)
128137

@@ -173,7 +182,7 @@ def url_parameters(self):
173182
def query_parameters(self):
174183
parameters = {
175184
**self.serialize_query_param(
176-
"api-version", "2022-06-01",
185+
"api-version", "2025-12-01",
177186
required=True,
178187
),
179188
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"azext.minCliCoreVersion": "2.55.0"
2+
"azext.minCliCoreVersion": "2.75.0"
33
}

‎src/storagesync/azext_storagesync/tests/latest/recordings/test_storagesync.yaml‎

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

0 commit comments

Comments
 (0)