IotRecommendationsOperations Class
IotRecommendationsOperations async 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.objectIotRecommendationsOperations
Constructor
IotRecommendationsOperations(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
| get |
Get IoT recommendation. |
| get_at_scope |
Get IoT recommendation. |
| list |
List IoT recommendations. |
| list_at_scope |
List IoT recommendations. |
get
Get IoT recommendation.
async get(resource_group_name: str, solution_name: str, iot_recommendation_id: str, **kwargs) -> azure.mgmt.security.models._models_py3.IotRecommendation
Parameters
- resource_group_name
- str
The name of the resource group within the user's subscription. The name is case insensitive.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
IotRecommendation, or the result of cls(response)
Return type
Exceptions
get_at_scope
Get IoT recommendation.
async get_at_scope(scope: str, iot_recommendation_id: str, **kwargs) -> azure.mgmt.security.models._models_py3.IotRecommendationModel
Parameters
- scope
- str
Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
IotRecommendationModel, or the result of cls(response)
Return type
Exceptions
list
List IoT recommendations.
list(resource_group_name: str, solution_name: str, recommendation_type: Optional[str] = None, device_id: Optional[str] = None, limit: Optional[int] = None, skip_token: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.IotRecommendationList]
Parameters
- resource_group_name
- str
The name of the resource group within the user's subscription. The name is case insensitive.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either IotRecommendationList or the result of cls(response)
Return type
Exceptions
list_at_scope
List IoT recommendations.
list_at_scope(scope: str, recommendation_type: Optional[str] = None, device_id: Optional[str] = None, limit: Optional[int] = None, skip_token: Optional[str] = None, **kwargs) -> AsyncIterable[azure.mgmt.security.models._models_py3.IotRecommendationListModel]
Parameters
- scope
- str
Scope of the query: Subscription (i.e. /subscriptions/{subscriptionId}) or IoT Hub (i.e. /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Devices/iotHubs/{iotHubName}).
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either IotRecommendationListModel or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.security.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\security\\models\\__init__.py'>
Feedback
Submit and view feedback for