@@ -22,9 +22,9 @@ class InstallPatches(AAZCommand):
2222 """
2323
2424 _aaz_info = {
25- "version" : "2024-07-31 -preview" ,
25+ "version" : "2025-02-19 -preview" ,
2626 "resources" : [
27- ["mgmt-plane" , "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hybridcompute/machines/{}/installpatches" , "2024-07-31 -preview" ],
27+ ["mgmt-plane" , "/subscriptions/{}/resourcegroups/{}/providers/microsoft.hybridcompute/machines/{}/installpatches" , "2025-02-19 -preview" ],
2828 ]
2929 }
3030
@@ -127,6 +127,17 @@ def _build_arguments_schema(cls, *args, **kwargs):
127127 windows_parameters .max_patch_publish_date = AAZDateTimeArg (
128128 options = ["max-patch-publish-date" ],
129129 help = "This is used to install patches that were published on or before this given max published date." ,
130+ fmt = AAZDateTimeFormat (
131+ protocol = "iso" ,
132+ ),
133+ )
134+ windows_parameters .patch_name_masks_to_exclude = AAZListArg (
135+ options = ["patch-name-masks-to-exclude" ],
136+ help = "This is used to exclude patches that match the given patch name masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only supported as input values in the list. Null, empty and only whitespaces strings as inputs values are not supported." ,
137+ )
138+ windows_parameters .patch_name_masks_to_include = AAZListArg (
139+ options = ["patch-name-masks-to-include" ],
140+ help = "This is used to include patches that match the given patch name masks. Alphanumeric strings and wildcard expressions consisting of * and ? are only supported as input values in the list. Null, empty and only whitespaces strings as inputs values are not supported." ,
130141 )
131142
132143 classifications_to_include = cls ._args_schema .windows_parameters .classifications_to_include
@@ -139,6 +150,12 @@ def _build_arguments_schema(cls, *args, **kwargs):
139150
140151 kb_numbers_to_include = cls ._args_schema .windows_parameters .kb_numbers_to_include
141152 kb_numbers_to_include .Element = AAZStrArg ()
153+
154+ patch_name_masks_to_exclude = cls ._args_schema .windows_parameters .patch_name_masks_to_exclude
155+ patch_name_masks_to_exclude .Element = AAZStrArg ()
156+
157+ patch_name_masks_to_include = cls ._args_schema .windows_parameters .patch_name_masks_to_include
158+ patch_name_masks_to_include .Element = AAZStrArg ()
142159 return cls ._args_schema
143160
144161 def _execute_operations (self ):
@@ -222,7 +239,7 @@ def url_parameters(self):
222239 def query_parameters (self ):
223240 parameters = {
224241 ** self .serialize_query_param (
225- "api-version" , "2024-07-31 -preview" ,
242+ "api-version" , "2025-02-19 -preview" ,
226243 required = True ,
227244 ),
228245 }
@@ -277,6 +294,8 @@ def content(self):
277294 windows_parameters .set_prop ("kbNumbersToExclude" , AAZListType , ".kb_numbers_to_exclude" )
278295 windows_parameters .set_prop ("kbNumbersToInclude" , AAZListType , ".kb_numbers_to_include" )
279296 windows_parameters .set_prop ("maxPatchPublishDate" , AAZStrType , ".max_patch_publish_date" )
297+ windows_parameters .set_prop ("patchNameMasksToExclude" , AAZListType , ".patch_name_masks_to_exclude" )
298+ windows_parameters .set_prop ("patchNameMasksToInclude" , AAZListType , ".patch_name_masks_to_include" )
280299
281300 classifications_to_include = _builder .get (".windowsParameters.classificationsToInclude" )
282301 if classifications_to_include is not None :
@@ -290,6 +309,14 @@ def content(self):
290309 if kb_numbers_to_include is not None :
291310 kb_numbers_to_include .set_elements (AAZStrType , "." )
292311
312+ patch_name_masks_to_exclude = _builder .get (".windowsParameters.patchNameMasksToExclude" )
313+ if patch_name_masks_to_exclude is not None :
314+ patch_name_masks_to_exclude .set_elements (AAZStrType , "." )
315+
316+ patch_name_masks_to_include = _builder .get (".windowsParameters.patchNameMasksToInclude" )
317+ if patch_name_masks_to_include is not None :
318+ patch_name_masks_to_include .set_elements (AAZStrType , "." )
319+
293320 return self .serialize_content (_content_value )
294321
295322 def on_200 (self , session ):
@@ -415,17 +442,18 @@ def _build_schema_error_detail_read(cls, _schema):
415442 additional_info .Element = AAZObjectType ()
416443
417444 _element = _schema_error_detail_read .additional_info .Element
418- _element .info = AAZObjectType (
445+ _element .info = AAZDictType (
419446 flags = {"read_only" : True },
420447 )
421448 _element .type = AAZStrType (
422449 flags = {"read_only" : True },
423450 )
424451
452+ info = _schema_error_detail_read .additional_info .Element .info
453+ info .Element = AAZAnyType ()
454+
425455 details = _schema_error_detail_read .details
426- details .Element = AAZObjectType (
427- flags = {"read_only" : True },
428- )
456+ details .Element = AAZObjectType ()
429457 cls ._build_schema_error_detail_read (details .Element )
430458
431459 _schema .additional_info = cls ._schema_error_detail_read .additional_info
0 commit comments