Skip to content

Commit 1bcc043

Browse files
dcaayushdmsyyc
andauthored
fix: escape invalid \W escape sequence in generated model docstrings across compute and workloads SDKs (#47102)
Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com>
1 parent 407e420 commit 1bcc043

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

  • sdk
    • computebulkactions/azure-mgmt-computebulkactions/azure/mgmt/computebulkactions/models
    • computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/models
    • compute/azure-mgmt-compute/azure/mgmt/compute/models
    • containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/models
    • workloads
      • azure-mgmt-workloadssapvirtualinstance/azure/mgmt/workloadssapvirtualinstance/models
      • azure-mgmt-workloads/azure/mgmt/workloads/models

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/models/_models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12582,7 +12582,7 @@ class OSProfile(_Model):
1258212582
characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):**
1258312583
123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity
1258412584
requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters
12585-
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_])
12585+
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\\W_])
1258612586
<br><br> **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
1258712587
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
1258812588
<br><br> For resetting the password, see `How to reset the Remote Desktop service or its login
@@ -12692,7 +12692,7 @@ class OSProfileProvisioningData(_Model):
1269212692
characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):**
1269312693
123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity
1269412694
requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters
12695-
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_])
12695+
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\\W_])
1269612696
<br><br> **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
1269712697
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
1269812698
<br><br> For resetting the password, see `How to reset the Remote Desktop service or its login
@@ -23847,7 +23847,7 @@ class VirtualMachineScaleSetOSProfile(_Model):
2384723847
characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):**
2384823848
123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity
2384923849
requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters
23850-
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_])
23850+
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\\W_])
2385123851
<br><br> **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
2385223852
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
2385323853
<br><br> For resetting the password, see `How to reset the Remote Desktop service or its login

sdk/computebulkactions/azure-mgmt-computebulkactions/azure/mgmt/computebulkactions/models/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2723,7 +2723,7 @@ class OSProfile(_Model):
27232723
characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):**
27242724
123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity
27252725
requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters
2726-
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_])
2726+
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\\W_])
27272727
<br><br> **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
27282728
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
27292729
<br><br> For resetting the password, see `How to reset the Remote Desktop service or its login

sdk/computefleet/azure-mgmt-computefleet/azure/mgmt/computefleet/models/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3972,7 +3972,7 @@ class VirtualMachineScaleSetOSProfile(_Model):
39723972
<br><br> **Max-length (Windows):** 123 characters <br><br> **Max-length
39733973
(Linux):** 72 characters <br><br> **Complexity requirements:** 3 out of 4
39743974
conditions below need to be fulfilled <br> Has lower characters <br>Has upper
3975-
characters <br> Has a digit <br> Has a special character (Regex match [\W_])
3975+
characters <br> Has a digit <br> Has a special character (Regex match [\\W_])
39763976
<br><br> **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\",
39773977
\"P@ssword123\", \"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\",
39783978
\"Password22\", \"iloveyou!\" <br><br> For resetting the password, see `How to

sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/models/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11102,7 +11102,7 @@ class ManagedClusterWindowsProfile(_Model):
1110211102
"""Specifies the password of the administrator account. <br><br> **Minimum-length:** 8 characters
1110311103
<br><br> **Max-length:** 123 characters <br><br> **Complexity requirements:** 3 out of 4
1110411104
conditions below need to be fulfilled <br> Has lower characters <br>Has upper characters <br>
11105-
Has a digit <br> Has a special character (Regex match [\W_]) <br><br> **Disallowed values:**
11105+
Has a digit <br> Has a special character (Regex match [\\W_]) <br><br> **Disallowed values:**
1110611106
\"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\", \"Pa$$word\", \"pass@word1\",
1110711107
\"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"."""
1110811108
license_type: Optional[Union[str, "_models.LicenseType"]] = rest_field(

sdk/workloads/azure-mgmt-workloads/azure/mgmt/workloads/models/_models_py3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2906,7 +2906,7 @@ class OSProfile(_serialization.Model):
29062906
characters :code:`<br>`:code:`<br>` **Max-length (Linux):** 72 characters
29072907
:code:`<br>`:code:`<br>` **Complexity requirements:** 3 out of 4 conditions below need to be
29082908
fulfilled :code:`<br>` Has lower characters :code:`<br>`Has upper characters :code:`<br>` Has a
2909-
digit :code:`<br>` Has a special character (Regex match [\W_]) :code:`<br>`:code:`<br>`
2909+
digit :code:`<br>` Has a special character (Regex match [\\W_]) :code:`<br>`:code:`<br>`
29102910
**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word",
29112911
"pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`<br>`:code:`<br>` For
29122912
resetting the password, see `How to reset the Remote Desktop service or its login password in a
@@ -2951,7 +2951,7 @@ def __init__(
29512951
characters :code:`<br>`:code:`<br>` **Max-length (Linux):** 72 characters
29522952
:code:`<br>`:code:`<br>` **Complexity requirements:** 3 out of 4 conditions below need to be
29532953
fulfilled :code:`<br>` Has lower characters :code:`<br>`Has upper characters :code:`<br>` Has a
2954-
digit :code:`<br>` Has a special character (Regex match [\W_]) :code:`<br>`:code:`<br>`
2954+
digit :code:`<br>` Has a special character (Regex match [\\W_]) :code:`<br>`:code:`<br>`
29552955
**Disallowed values:** "abc@123", "P@$$w0rd", "P@ssw0rd", "P@ssword123", "Pa$$word",
29562956
"pass@word1", "Password!", "Password1", "Password22", "iloveyou!" :code:`<br>`:code:`<br>` For
29572957
resetting the password, see `How to reset the Remote Desktop service or its login password in a

sdk/workloads/azure-mgmt-workloadssapvirtualinstance/azure/mgmt/workloadssapvirtualinstance/models/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1866,7 +1866,7 @@ class OSProfile(_model_base.Model):
18661866
characters <br><br> **Minimum-length (Linux):** 6 characters <br><br> **Max-length (Windows):**
18671867
123 characters <br><br> **Max-length (Linux):** 72 characters <br><br> **Complexity
18681868
requirements:** 3 out of 4 conditions below need to be fulfilled <br> Has lower characters
1869-
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_])
1869+
<br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\\W_])
18701870
<br><br> **Disallowed values:** \"abc@123\", \"P@$$w0rd\", \"P@ssw0rd\", \"P@ssword123\",
18711871
\"Pa$$word\", \"pass@word1\", \"Password!\", \"Password1\", \"Password22\", \"iloveyou!\"
18721872
<br><br> For resetting the password, see `How to reset the Remote Desktop service or its login

0 commit comments

Comments
 (0)