Skip to content

Commit f567049

Browse files
authored
{NetAppFiles} Update to api-version 2024-07-01 (Azure#30093)
* fix subnetid as resourceid * remove unused paramter vnet from volume update, msrestazure.tools to azure.mgmt.core.tools * style * empty * add --vnet again to avoid breaking * add --vnet again to avoid breaking2 * empty * empty * empty * bump to 2024-07-01 * update to 2024-07-01 * update test * update remotevolumeid * update test * update test * update test * update regex s360 * update regex s360 2
1 parent dd7a17b commit f567049

File tree

200 files changed

+45491
-21264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+45491
-21264
lines changed

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/_check_file_path_availability.py

+10-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class CheckFilePathAvailability(AAZCommand):
2121
"""
2222

2323
_aaz_info = {
24-
"version": "2024-03-01",
24+
"version": "2024-07-01",
2525
"resources": [
26-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/checkfilepathavailability", "2024-03-01"],
26+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/checkfilepathavailability", "2024-07-01"],
2727
]
2828
}
2929

@@ -51,6 +51,12 @@ def _build_arguments_schema(cls, *args, **kwargs):
5151
# define Arg Group "Body"
5252

5353
_args_schema = cls._args_schema
54+
_args_schema.availability_zone = AAZStrArg(
55+
options=["--availability-zone"],
56+
arg_group="Body",
57+
help="The Azure Resource logical availability zone which is used within zone mapping lookup for the subscription and region. The lookup will retrieve the physical zone where volume is placed.",
58+
nullable=True,
59+
)
5460
_args_schema.name = AAZStrArg(
5561
options=["--name"],
5662
arg_group="Body",
@@ -126,7 +132,7 @@ def url_parameters(self):
126132
def query_parameters(self):
127133
parameters = {
128134
**self.serialize_query_param(
129-
"api-version", "2024-03-01",
135+
"api-version", "2024-07-01",
130136
required=True,
131137
),
132138
}
@@ -151,6 +157,7 @@ def content(self):
151157
typ=AAZObjectType,
152158
typ_kwargs={"flags": {"required": True, "client_flatten": True}}
153159
)
160+
_builder.set_prop("availabilityZone", AAZStrType, ".availability_zone", typ_kwargs={"nullable": True})
154161
_builder.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}})
155162
_builder.set_prop("subnetId", AAZStrType, ".subnet_id", typ_kwargs={"flags": {"required": True}})
156163

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/_check_name_availability.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class CheckNameAvailability(AAZCommand):
2121
"""
2222

2323
_aaz_info = {
24-
"version": "2024-03-01",
24+
"version": "2024-07-01",
2525
"resources": [
26-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/checknameavailability", "2024-03-01"],
26+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/checknameavailability", "2024-07-01"],
2727
]
2828
}
2929

@@ -133,7 +133,7 @@ def url_parameters(self):
133133
def query_parameters(self):
134134
parameters = {
135135
**self.serialize_query_param(
136-
"api-version", "2024-03-01",
136+
"api-version", "2024-07-01",
137137
required=True,
138138
),
139139
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/_check_quota_availability.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ class CheckQuotaAvailability(AAZCommand):
2121
"""
2222

2323
_aaz_info = {
24-
"version": "2024-03-01",
24+
"version": "2024-07-01",
2525
"resources": [
26-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/checkquotaavailability", "2024-03-01"],
26+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/checkquotaavailability", "2024-07-01"],
2727
]
2828
}
2929

@@ -133,7 +133,7 @@ def url_parameters(self):
133133
def query_parameters(self):
134134
parameters = {
135135
**self.serialize_query_param(
136-
"api-version", "2024-03-01",
136+
"api-version", "2024-07-01",
137137
required=True,
138138
),
139139
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/_query_network_sibling_set.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class QueryNetworkSiblingSet(AAZCommand):
2424
"""
2525

2626
_aaz_info = {
27-
"version": "2024-03-01",
27+
"version": "2024-07-01",
2828
"resources": [
29-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/querynetworksiblingset", "2024-03-01"],
29+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/querynetworksiblingset", "2024-07-01"],
3030
]
3131
}
3232

@@ -134,7 +134,7 @@ def url_parameters(self):
134134
def query_parameters(self):
135135
parameters = {
136136
**self.serialize_query_param(
137-
"api-version", "2024-03-01",
137+
"api-version", "2024-07-01",
138138
required=True,
139139
),
140140
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/_update_network_sibling_set.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ class UpdateNetworkSiblingSet(AAZCommand):
2424
"""
2525

2626
_aaz_info = {
27-
"version": "2024-03-01",
27+
"version": "2024-07-01",
2828
"resources": [
29-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/updatenetworksiblingset", "2024-03-01"],
29+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/locations/{}/updatenetworksiblingset", "2024-07-01"],
3030
]
3131
}
3232

@@ -165,7 +165,7 @@ def url_parameters(self):
165165
def query_parameters(self):
166166
parameters = {
167167
**self.serialize_query_param(
168-
"api-version", "2024-03-01",
168+
"api-version", "2024-07-01",
169169
required=True,
170170
),
171171
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_create.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class Create(AAZCommand):
2525
"""
2626

2727
_aaz_info = {
28-
"version": "2024-03-01",
28+
"version": "2024-07-01",
2929
"resources": [
30-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-03-01"],
30+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-07-01"],
3131
]
3232
}
3333

@@ -197,9 +197,9 @@ def _build_arguments_schema(cls, *args, **kwargs):
197197
)
198198
_element.kdc_ip = AAZStrArg(
199199
options=["kdc-ip"],
200-
help="kdc server IP addresses for the active directory machine. This optional parameter is used only while creating kerberos volume.",
200+
help="kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume.",
201201
fmt=AAZStrArgFormat(
202-
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
202+
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
203203
),
204204
)
205205
_element.ldap_over_tls = AAZBoolArg(
@@ -388,7 +388,7 @@ def url_parameters(self):
388388
def query_parameters(self):
389389
parameters = {
390390
**self.serialize_query_param(
391-
"api-version", "2024-03-01",
391+
"api-version", "2024-07-01",
392392
required=True,
393393
),
394394
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_delete.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Delete(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2024-03-01",
26+
"version": "2024-07-01",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-03-01"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-07-01"],
2929
]
3030
}
3131

@@ -146,7 +146,7 @@ def url_parameters(self):
146146
def query_parameters(self):
147147
parameters = {
148148
**self.serialize_query_param(
149-
"api-version", "2024-03-01",
149+
"api-version", "2024-07-01",
150150
required=True,
151151
),
152152
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_list.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ class List(AAZCommand):
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2024-03-01",
25+
"version": "2024-07-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/netappaccounts", "2024-03-01"],
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts", "2024-03-01"],
27+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.netapp/netappaccounts", "2024-07-01"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts", "2024-07-01"],
2929
]
3030
}
3131

@@ -116,7 +116,7 @@ def url_parameters(self):
116116
def query_parameters(self):
117117
parameters = {
118118
**self.serialize_query_param(
119-
"api-version", "2024-03-01",
119+
"api-version", "2024-07-01",
120120
required=True,
121121
),
122122
}
@@ -419,7 +419,7 @@ def url_parameters(self):
419419
def query_parameters(self):
420420
parameters = {
421421
**self.serialize_query_param(
422-
"api-version", "2024-03-01",
422+
"api-version", "2024-07-01",
423423
required=True,
424424
),
425425
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_migrate_backup.py

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

2121
_aaz_info = {
22-
"version": "2024-03-01",
22+
"version": "2024-07-01",
2323
"resources": [
24-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}/migratebackups", "2024-03-01"],
24+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}/migratebackups", "2024-07-01"],
2525
]
2626
}
2727

@@ -58,7 +58,7 @@ def _build_arguments_schema(cls, *args, **kwargs):
5858
# define Arg Group "Body"
5959

6060
_args_schema = cls._args_schema
61-
_args_schema.backup_vault_id = AAZStrArg(
61+
_args_schema.backup_vault_id = AAZResourceIdArg(
6262
options=["--backup-vault-id"],
6363
arg_group="Body",
6464
help="The ResourceId of the Backup Vault",
@@ -134,7 +134,7 @@ def url_parameters(self):
134134
def query_parameters(self):
135135
parameters = {
136136
**self.serialize_query_param(
137-
"api-version", "2024-03-01",
137+
"api-version", "2024-07-01",
138138
required=True,
139139
),
140140
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_renew_credentials.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class RenewCredentials(AAZCommand):
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2024-03-01",
25+
"version": "2024-07-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}/renewcredentials", "2024-03-01"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}/renewcredentials", "2024-07-01"],
2828
]
2929
}
3030

@@ -136,7 +136,7 @@ def url_parameters(self):
136136
def query_parameters(self):
137137
parameters = {
138138
**self.serialize_query_param(
139-
"api-version", "2024-03-01",
139+
"api-version", "2024-07-01",
140140
required=True,
141141
),
142142
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_show.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class Show(AAZCommand):
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2024-03-01",
25+
"version": "2024-07-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-03-01"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-07-01"],
2828
]
2929
}
3030

@@ -123,7 +123,7 @@ def url_parameters(self):
123123
def query_parameters(self):
124124
parameters = {
125125
**self.serialize_query_param(
126-
"api-version", "2024-03-01",
126+
"api-version", "2024-07-01",
127127
required=True,
128128
),
129129
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_update.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class Update(AAZCommand):
2525
"""
2626

2727
_aaz_info = {
28-
"version": "2024-03-01",
28+
"version": "2024-07-01",
2929
"resources": [
30-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-03-01"],
30+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-07-01"],
3131
]
3232
}
3333

@@ -210,10 +210,10 @@ def _build_arguments_schema(cls, *args, **kwargs):
210210
)
211211
_element.kdc_ip = AAZStrArg(
212212
options=["kdc-ip"],
213-
help="kdc server IP addresses for the active directory machine. This optional parameter is used only while creating kerberos volume.",
213+
help="kdc server IP address for the active directory machine. This optional parameter is used only while creating kerberos volume.",
214214
nullable=True,
215215
fmt=AAZStrArgFormat(
216-
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)((, ?)(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))*$",
216+
pattern="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",
217217
),
218218
)
219219
_element.ldap_over_tls = AAZBoolArg(
@@ -415,7 +415,7 @@ def url_parameters(self):
415415
def query_parameters(self):
416416
parameters = {
417417
**self.serialize_query_param(
418-
"api-version", "2024-03-01",
418+
"api-version", "2024-07-01",
419419
required=True,
420420
),
421421
}
@@ -514,7 +514,7 @@ def url_parameters(self):
514514
def query_parameters(self):
515515
parameters = {
516516
**self.serialize_query_param(
517-
"api-version", "2024-03-01",
517+
"api-version", "2024-07-01",
518518
required=True,
519519
),
520520
}

src/azure-cli/azure/cli/command_modules/netappfiles/aaz/latest/netappfiles/account/_wait.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Wait(AAZWaitCommand):
2020

2121
_aaz_info = {
2222
"resources": [
23-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-03-01"],
23+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.netapp/netappaccounts/{}", "2024-07-01"],
2424
]
2525
}
2626

@@ -119,7 +119,7 @@ def url_parameters(self):
119119
def query_parameters(self):
120120
parameters = {
121121
**self.serialize_query_param(
122-
"api-version", "2024-03-01",
122+
"api-version", "2024-07-01",
123123
required=True,
124124
),
125125
}

0 commit comments

Comments
 (0)