Skip to content

Commit 0ad6362

Browse files
[AutoRelease] t2-selfhelp-2023-11-17-52487(can only be merged by SDK owner) (#33202)
* code and test * update-testcase --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 4b106da commit 0ad6362

20 files changed

+525
-346
lines changed

sdk/selfhelp/azure-mgmt-selfhelp/CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Release History
22

3+
## 2.0.0b2 (2023-12-18)
4+
5+
### Features Added
6+
7+
- Model SolutionPatchRequestBody has a new parameter content
8+
- Model SolutionPatchRequestBody has a new parameter parameters
9+
- Model SolutionPatchRequestBody has a new parameter provisioning_state
10+
- Model SolutionPatchRequestBody has a new parameter replacement_maps
11+
- Model SolutionPatchRequestBody has a new parameter sections
12+
- Model SolutionPatchRequestBody has a new parameter solution_id
13+
- Model SolutionPatchRequestBody has a new parameter title
14+
- Model SolutionPatchRequestBody has a new parameter trigger_criteria
15+
- Model SolutionResource has a new parameter content
16+
- Model SolutionResource has a new parameter parameters
17+
- Model SolutionResource has a new parameter provisioning_state
18+
- Model SolutionResource has a new parameter replacement_maps
19+
- Model SolutionResource has a new parameter sections
20+
- Model SolutionResource has a new parameter solution_id
21+
- Model SolutionResource has a new parameter system_data
22+
- Model SolutionResource has a new parameter title
23+
- Model SolutionResource has a new parameter trigger_criteria
24+
25+
### Breaking Changes
26+
27+
- Model SolutionPatchRequestBody no longer has parameter properties
28+
- Model SolutionResource no longer has parameter properties
29+
330
## 2.0.0b1 (2023-10-23)
431

532
### Features Added

sdk/selfhelp/azure-mgmt-selfhelp/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,3 @@ Code samples for this package can be found at:
5959
If you encounter any bugs or have suggestions, please file an issue in the
6060
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
6161
section of the project.
62-
63-
64-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-selfhelp%2FREADME.png)

sdk/selfhelp/azure-mgmt-selfhelp/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"commit": "de06c42bd985fb66b6a49c907aaf5baee693bc7b",
2+
"commit": "df4c0dccbfb696b378dfef8c7e451dfa4b82b175",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"AssetsRepo": "Azure/azure-sdk-assets",
3+
"AssetsRepoPrefixPath": "python",
4+
"TagPrefix": "python/selfhelp/azure-mgmt-selfhelp",
5+
"Tag": "python/selfhelp/azure-mgmt-selfhelp_29e4bf4e7b"
6+
}

sdk/selfhelp/azure-mgmt-selfhelp/azure/mgmt/selfhelp/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "2.0.0b1"
9+
VERSION = "2.0.0b2"

sdk/selfhelp/azure-mgmt-selfhelp/azure/mgmt/selfhelp/aio/operations/_check_name_availability_operations.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ async def post(
6363
"""This API is used to check the uniqueness of a resource name used for a diagnostic,
6464
troubleshooter or solutions.
6565
66-
:param scope: This is an extension resource provider and only resource level extension is
67-
supported at the moment. Required.
66+
:param scope: scope = resourceUri of affected resource.:code:`<br/>` For example:
67+
/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read.
68+
Required.
6869
:type scope: str
6970
:param check_name_availability_request: The required parameters for availability check. Default
7071
value is None.
@@ -90,8 +91,9 @@ async def post(
9091
"""This API is used to check the uniqueness of a resource name used for a diagnostic,
9192
troubleshooter or solutions.
9293
93-
:param scope: This is an extension resource provider and only resource level extension is
94-
supported at the moment. Required.
94+
:param scope: scope = resourceUri of affected resource.:code:`<br/>` For example:
95+
/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read.
96+
Required.
9597
:type scope: str
9698
:param check_name_availability_request: The required parameters for availability check. Default
9799
value is None.
@@ -115,8 +117,9 @@ async def post(
115117
"""This API is used to check the uniqueness of a resource name used for a diagnostic,
116118
troubleshooter or solutions.
117119
118-
:param scope: This is an extension resource provider and only resource level extension is
119-
supported at the moment. Required.
120+
:param scope: scope = resourceUri of affected resource.:code:`<br/>` For example:
121+
/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read.
122+
Required.
120123
:type scope: str
121124
:param check_name_availability_request: The required parameters for availability check. Is
122125
either a CheckNameAvailabilityRequest type or a IO type. Default value is None.

sdk/selfhelp/azure-mgmt-selfhelp/azure/mgmt/selfhelp/aio/operations/_diagnostics_operations.py

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,15 @@ async def begin_create(
136136
**kwargs: Any
137137
) -> AsyncLROPoller[_models.DiagnosticResource]:
138138
"""Creates a diagnostic for the specific resource using solutionId and requiredInputs* from
139-
discovery solutions. :code:`<br/>`Diagnostics tells you precisely the root cause of the issue
140-
and the steps to address it. You can get diagnostics once you discover the relevant solution
141-
for your Azure issue. :code:`<br/>`:code:`<br/>` :code:`<b>Note: </b>` requiredInputs’ from
139+
discovery solutions. :code:`<br/>`Diagnostics are powerful solutions that access product
140+
resources or other relevant data and provide the root cause of the issue and the steps to
141+
address the issue.:code:`<br/>`:code:`<br/>` :code:`<b>Note: </b>` requiredInputs’ from
142142
Discovery solutions response must be passed via ‘additionalParameters’ as an input to
143143
Diagnostics API.
144144
145-
:param scope: This is an extension resource provider and only resource level extension is
146-
supported at the moment. Required.
145+
:param scope: scope = resourceUri of affected resource.:code:`<br/>` For example:
146+
/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read.
147+
Required.
147148
:type scope: str
148149
:param diagnostics_resource_name: Unique resource name for insight resources. Required.
149150
:type diagnostics_resource_name: str
@@ -178,14 +179,15 @@ async def begin_create(
178179
**kwargs: Any
179180
) -> AsyncLROPoller[_models.DiagnosticResource]:
180181
"""Creates a diagnostic for the specific resource using solutionId and requiredInputs* from
181-
discovery solutions. :code:`<br/>`Diagnostics tells you precisely the root cause of the issue
182-
and the steps to address it. You can get diagnostics once you discover the relevant solution
183-
for your Azure issue. :code:`<br/>`:code:`<br/>` :code:`<b>Note: </b>` requiredInputs’ from
182+
discovery solutions. :code:`<br/>`Diagnostics are powerful solutions that access product
183+
resources or other relevant data and provide the root cause of the issue and the steps to
184+
address the issue.:code:`<br/>`:code:`<br/>` :code:`<b>Note: </b>` requiredInputs’ from
184185
Discovery solutions response must be passed via ‘additionalParameters’ as an input to
185186
Diagnostics API.
186187
187-
:param scope: This is an extension resource provider and only resource level extension is
188-
supported at the moment. Required.
188+
:param scope: scope = resourceUri of affected resource.:code:`<br/>` For example:
189+
/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read.
190+
Required.
189191
:type scope: str
190192
:param diagnostics_resource_name: Unique resource name for insight resources. Required.
191193
:type diagnostics_resource_name: str
@@ -218,14 +220,15 @@ async def begin_create(
218220
**kwargs: Any
219221
) -> AsyncLROPoller[_models.DiagnosticResource]:
220222
"""Creates a diagnostic for the specific resource using solutionId and requiredInputs* from
221-
discovery solutions. :code:`<br/>`Diagnostics tells you precisely the root cause of the issue
222-
and the steps to address it. You can get diagnostics once you discover the relevant solution
223-
for your Azure issue. :code:`<br/>`:code:`<br/>` :code:`<b>Note: </b>` requiredInputs’ from
223+
discovery solutions. :code:`<br/>`Diagnostics are powerful solutions that access product
224+
resources or other relevant data and provide the root cause of the issue and the steps to
225+
address the issue.:code:`<br/>`:code:`<br/>` :code:`<b>Note: </b>` requiredInputs’ from
224226
Discovery solutions response must be passed via ‘additionalParameters’ as an input to
225227
Diagnostics API.
226228
227-
:param scope: This is an extension resource provider and only resource level extension is
228-
supported at the moment. Required.
229+
:param scope: scope = resourceUri of affected resource.:code:`<br/>` For example:
230+
/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read.
231+
Required.
229232
:type scope: str
230233
:param diagnostics_resource_name: Unique resource name for insight resources. Required.
231234
:type diagnostics_resource_name: str
@@ -302,8 +305,9 @@ async def get(self, scope: str, diagnostics_resource_name: str, **kwargs: Any) -
302305
"""Get the diagnostics using the 'diagnosticsResourceName' you chose while creating the
303306
diagnostic.
304307
305-
:param scope: This is an extension resource provider and only resource level extension is
306-
supported at the moment. Required.
308+
:param scope: scope = resourceUri of affected resource.:code:`<br/>` For example:
309+
/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read.
310+
Required.
307311
:type scope: str
308312
:param diagnostics_resource_name: Unique resource name for insight resources. Required.
309313
:type diagnostics_resource_name: str

sdk/selfhelp/azure-mgmt-selfhelp/azure/mgmt/selfhelp/aio/operations/_discovery_solution_operations.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,21 @@ def list(
5959
"""Lists the relevant Azure diagnostics and solutions using `problemClassification API
6060
<https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP>`_\ ) AND
6161
resourceUri or resourceType.:code:`<br/>` Discovery Solutions is the initial entry point within
62-
Help API, which identifies relevant Azure diagnostics and solutions. We will do our best to
63-
return the most effective solutions based on the type of inputs, in the request URL
64-
:code:`<br/>`:code:`<br/>` Mandatory input : problemClassificationId (Use the
65-
`problemClassification API
62+
Help API, which identifies relevant Azure diagnostics and solutions. :code:`<br/>`:code:`<br/>`
63+
Required Input : problemClassificationId (Use the `problemClassification API
6664
<https://learn.microsoft.com/rest/api/support/problem-classifications/list?tabs=HTTP>`_\ )
6765
:code:`<br/>`Optional input: resourceUri OR resource Type :code:`<br/>`:code:`<br/>`
6866
:code:`<b>Note: </b>` ‘requiredInputs’ from Discovery solutions response must be passed via
6967
‘additionalParameters’ as an input to Diagnostics and Solutions API.
7068
71-
:param scope: This is an extension resource provider and only resource level extension is
72-
supported at the moment. Required.
69+
:param scope: scope = resourceUri of affected resource.:code:`<br/>` For example:
70+
/subscriptions/0d0fcd2e-c4fd-4349-8497-200edb3923c6/resourcegroups/myresourceGroup/providers/Microsoft.KeyVault/vaults/test-keyvault-non-read.
71+
Required.
7372
:type scope: str
74-
:param filter: 'ProblemClassificationId' or 'Id' is a mandatory filter to get solutions ids. It
75-
also supports optional 'ResourceType' and 'SolutionType' filters. The filter supports only
76-
'and', 'or' and 'eq' operators. Example: $filter=ProblemClassificationId eq
73+
:param filter: 'ProblemClassificationId' is a mandatory filter to get solutions ids. It also
74+
supports optional 'ResourceType' and 'SolutionType' filters. The `$filter
75+
<https://learn.microsoft.com/en-us/odata/webapi/first-odata-api#filter>`_ supports only 'and',
76+
'or' and 'eq' operators. Example: $filter=ProblemClassificationId eq
7777
'1ddda5b4-cf6c-4d4f-91ad-bc38ab0e811e'. Default value is None.
7878
:type filter: str
7979
:param skiptoken: Skiptoken is only used if a previous operation returned a partial result.

0 commit comments

Comments
 (0)