SuppressionsOperations Class
SuppressionsOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectSuppressionsOperations
Constructor
SuppressionsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create |
Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of a recommendation. |
| delete |
Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression. |
| get |
Obtains the details of a suppression. |
| list |
Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed attribute of a recommendation is referred to as a suppression. |
create
Enables the snoozed or dismissed attribute of a recommendation. The snoozed or dismissed attribute is referred to as a suppression. Use this API to create or update the snoozed or dismissed status of a recommendation.
create(resource_uri: str, recommendation_id: str, name: str, suppression_contract: _models.SuppressionContract, **kwargs: Any) -> Union[_models.SuppressionContract, _models.ArmErrorResponse]
Parameters
- resource_uri
- str
The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
- suppression_contract
- SuppressionContract
The snoozed or dismissed attribute; for example, the snooze duration.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SuppressionContract or ArmErrorResponse, or the result of cls(response)
Return type
Exceptions
delete
Enables the activation of a snoozed or dismissed recommendation. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.
delete(resource_uri: str, recommendation_id: str, name: str, **kwargs: Any) -> None
Parameters
- resource_uri
- str
The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Obtains the details of a suppression.
get(resource_uri: str, recommendation_id: str, name: str, **kwargs: Any) -> Union[_models.SuppressionContract, _models.ArmErrorResponse]
Parameters
- resource_uri
- str
The fully qualified Azure Resource Manager identifier of the resource to which the recommendation applies.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
SuppressionContract or ArmErrorResponse, or the result of cls(response)
Return type
Exceptions
list
Retrieves the list of snoozed or dismissed suppressions for a subscription. The snoozed or dismissed attribute of a recommendation is referred to as a suppression.
list(top: Optional[int] = None, skip_token: Optional[str] = None, **kwargs: Any) -> Iterable[_models.SuppressionContractListResult]
Parameters
- top
- int
The number of suppressions per page if a paged version of this API is being used.
- skip_token
- str
The page-continuation token to use with a paged version of this API.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either SuppressionContractListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.advisor.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\advisor\\models\\__init__.py'>
Feedback
Submit and view feedback for