Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{Cosmos DB} az cosmosdb postgres Fix invalid escapes #29874

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -79,15 +79,15 @@ 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(
options=["--start-ip-address"],
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\._]+$",
),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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\._]+$",
),
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down