From 52606bb8be569c4e17aad041ae0fd83ffcca23c8 Mon Sep 17 00:00:00 2001 From: Sena Gungor Date: Mon, 9 Sep 2024 15:16:18 +0300 Subject: [PATCH] Fix invalid escapes --- .../aaz/latest/cosmosdb/postgres/cluster/server/_show.py | 2 +- .../aaz/latest/cosmosdb/postgres/configuration/_show.py | 2 +- .../cosmosdb/postgres/configuration/coordinator/_show.py | 2 +- .../cosmosdb/postgres/configuration/coordinator/_update.py | 2 +- .../cosmosdb/postgres/configuration/coordinator/_wait.py | 2 +- .../latest/cosmosdb/postgres/configuration/node/_show.py | 2 +- .../latest/cosmosdb/postgres/configuration/node/_update.py | 2 +- .../latest/cosmosdb/postgres/configuration/node/_wait.py | 2 +- .../latest/cosmosdb/postgres/configuration/server/_list.py | 2 +- .../aaz/latest/cosmosdb/postgres/firewall_rule/_create.py | 6 +++--- .../aaz/latest/cosmosdb/postgres/firewall_rule/_delete.py | 2 +- .../aaz/latest/cosmosdb/postgres/firewall_rule/_show.py | 2 +- .../aaz/latest/cosmosdb/postgres/firewall_rule/_update.py | 6 +++--- .../aaz/latest/cosmosdb/postgres/firewall_rule/_wait.py | 2 +- .../cosmosdb/aaz/latest/cosmosdb/postgres/role/_create.py | 2 +- .../cosmosdb/aaz/latest/cosmosdb/postgres/role/_delete.py | 2 +- .../cosmosdb/aaz/latest/cosmosdb/postgres/role/_show.py | 2 +- .../cosmosdb/aaz/latest/cosmosdb/postgres/role/_update.py | 2 +- .../cosmosdb/aaz/latest/cosmosdb/postgres/role/_wait.py | 2 +- 19 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/cluster/server/_show.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/cluster/server/_show.py index d73587cd87e..3ef689547f9 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/cluster/server/_show.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/cluster/server/_show.py @@ -64,7 +64,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", max_length=90, min_length=1, ), diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/_show.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/_show.py index 47f4b2c3dd7..4a51b50afa8 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/_show.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/_show.py @@ -61,7 +61,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", max_length=90, min_length=1, ), diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_show.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_show.py index 2b1b2f28690..b952bd0c59e 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_show.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_show.py @@ -61,7 +61,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", max_length=90, min_length=1, ), diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_update.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_update.py index f2435d02434..348ef0e32b3 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_update.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_update.py @@ -62,7 +62,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", max_length=90, min_length=1, ), diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_wait.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_wait.py index 586b894f06d..99fd8b3a7c9 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/coordinator/_wait.py @@ -57,7 +57,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", max_length=90, min_length=1, ), diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_show.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_show.py index e2c5b6cbe84..13ef50a9caa 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_show.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_show.py @@ -61,7 +61,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", max_length=90, min_length=1, ), diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_update.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_update.py index a0f4725d0a8..ec5d29c36f0 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_update.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_update.py @@ -62,7 +62,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", max_length=90, min_length=1, ), diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_wait.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_wait.py index 0c00a7eff92..73cdbb9f66d 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/node/_wait.py @@ -57,7 +57,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", max_length=90, min_length=1, ), diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/server/_list.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/server/_list.py index c6df8d7c41b..f3723475b76 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/server/_list.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/configuration/server/_list.py @@ -61,7 +61,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The name of the server.", required=True, fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", max_length=90, min_length=1, ), diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_create.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_create.py index 767befc9f0a..ee8e04da3d7 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_create.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_create.py @@ -60,7 +60,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The name of the cluster firewall rule.", required=True, fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) _args_schema.resource_group = AAZResourceGroupNameArg( @@ -76,7 +76,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The end IP address of the cluster firewall rule. Must be IPv4 format.", required=True, fmt=AAZStrArgFormat( - pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", + pattern=r"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", ), ) _args_schema.start_ip_address = AAZStrArg( @@ -85,7 +85,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The start IP address of the cluster firewall rule. Must be IPv4 format.", required=True, fmt=AAZStrArgFormat( - pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", + pattern=r"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", ), ) return cls._args_schema diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_delete.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_delete.py index 25e1d86a24d..ab2bdce9f8b 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_delete.py @@ -63,7 +63,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) _args_schema.resource_group = AAZResourceGroupNameArg( diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_show.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_show.py index 1517cf6675c..8b9e135648d 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_show.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_show.py @@ -61,7 +61,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) _args_schema.resource_group = AAZResourceGroupNameArg( diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_update.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_update.py index 09cb18a4bb1..a85c734c56c 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_update.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_update.py @@ -64,7 +64,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) _args_schema.resource_group = AAZResourceGroupNameArg( @@ -79,7 +79,7 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="The end IP address of the cluster firewall rule. Must be IPv4 format.", fmt=AAZStrArgFormat( - pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", + pattern=r"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", ), ) _args_schema.start_ip_address = AAZStrArg( @@ -87,7 +87,7 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="The start IP address of the cluster firewall rule. Must be IPv4 format.", fmt=AAZStrArgFormat( - pattern="^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", + pattern=r"^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$", ), ) return cls._args_schema diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_wait.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_wait.py index 6269e8736cf..e7236e804b6 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/firewall_rule/_wait.py @@ -57,7 +57,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) _args_schema.resource_group = AAZResourceGroupNameArg( diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_create.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_create.py index b2ceff64127..aca8dce79a3 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_create.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_create.py @@ -63,7 +63,7 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The name of the cluster role.", required=True, fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_delete.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_delete.py index b612b6f41c0..7ab7fce3e56 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_delete.py @@ -66,7 +66,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) return cls._args_schema diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_show.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_show.py index 4cd85ffa752..32cde7bd865 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_show.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_show.py @@ -64,7 +64,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) return cls._args_schema diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_update.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_update.py index 2f5cace000c..f7fea253835 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_update.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_update.py @@ -67,7 +67,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) diff --git a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_wait.py b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_wait.py index 3a594787698..b208c18bd5b 100644 --- a/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_wait.py +++ b/src/azure-cli/azure/cli/command_modules/cosmosdb/aaz/latest/cosmosdb/postgres/role/_wait.py @@ -60,7 +60,7 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, id_part="child_name_1", fmt=AAZStrArgFormat( - pattern="^[-\w\._]+$", + pattern=r"^[-\w\._]+$", ), ) return cls._args_schema