Skip to content

Commit 0bed499

Browse files
committed
add test, need to manually register agent, some features have been deprecated, remove trigger rollover for certificate as it requires custom code from service side
1 parent 2d620d3 commit 0bed499

File tree

8 files changed

+2892
-1250
lines changed

8 files changed

+2892
-1250
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class CheckNameAvailability(AAZCommand):
1919
"""
2020

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

@@ -107,7 +107,7 @@ def method(self):
107107

108108
@property
109109
def error_format(self):
110-
return "ODataV4Format"
110+
return "MgmtErrorFormat"
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-09-01",
130+
"api-version", "2022-06-01",
131131
required=True,
132132
),
133133
}

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

+3-10
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class List(AAZCommand):
1919
"""
2020

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

@@ -116,7 +116,7 @@ def url_parameters(self):
116116
def query_parameters(self):
117117
parameters = {
118118
**self.serialize_query_param(
119-
"api-version", "2022-09-01",
119+
"api-version", "2022-06-01",
120120
required=True,
121121
),
122122
}
@@ -173,10 +173,6 @@ def _build_schema_on_200(cls):
173173
)
174174

175175
properties = cls._schema_on_200.value.Element.properties
176-
properties.group_ids = AAZListType(
177-
serialized_name="groupIds",
178-
flags={"read_only": True},
179-
)
180176
properties.private_endpoint = AAZObjectType(
181177
serialized_name="privateEndpoint",
182178
)
@@ -189,9 +185,6 @@ def _build_schema_on_200(cls):
189185
flags={"read_only": True},
190186
)
191187

192-
group_ids = cls._schema_on_200.value.Element.properties.group_ids
193-
group_ids.Element = AAZStrType()
194-
195188
private_endpoint = cls._schema_on_200.value.Element.properties.private_endpoint
196189
private_endpoint.id = AAZStrType(
197190
flags={"read_only": True},

src/storagesync/azext_storagesync/aaz/latest/storagesync/registered_server/__cmd_group.py

-23
This file was deleted.

src/storagesync/azext_storagesync/aaz/latest/storagesync/registered_server/__init__.py

-12
This file was deleted.

src/storagesync/azext_storagesync/aaz/latest/storagesync/registered_server/_trigger_rollover.py

-186
This file was deleted.

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class TriggerChangeDetection(AAZCommand):
1919
"""
2020

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

@@ -173,7 +173,7 @@ def url_parameters(self):
173173
def query_parameters(self):
174174
parameters = {
175175
**self.serialize_query_param(
176-
"api-version", "2022-09-01",
176+
"api-version", "2022-06-01",
177177
required=True,
178178
),
179179
}

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

+2,837-987
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)