diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/__init__.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/__init__.py index 50d6c96bf888..135c50e3aed6 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/__init__.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/__init__.py @@ -12,7 +12,6 @@ from .personalizer_client import PersonalizerClient from .version import VERSION -__all__ = ['PersonalizerClient'] +__all__ = ["PersonalizerClient"] __version__ = VERSION - diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/__init__.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/__init__.py index 2f33d5a2bc5e..afb1002525ad 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/__init__.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/__init__.py @@ -32,13 +32,14 @@ ) __all__ = [ - 'InternalError', - 'PersonalizerError', - 'ErrorResponse', 'ErrorResponseException', - 'RewardRequest', - 'RankableAction', - 'RankRequest', - 'RankedAction', - 'RankResponse', - 'ErrorCode', + "InternalError", + "PersonalizerError", + "ErrorResponse", + "ErrorResponseException", + "RewardRequest", + "RankableAction", + "RankRequest", + "RankedAction", + "RankResponse", + "ErrorCode", ] diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/error_response.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/error_response.py index 0d1229c2d853..6aaf04aa646e 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/error_response.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/error_response.py @@ -24,16 +24,16 @@ class ErrorResponse(Model): """ _validation = { - 'error': {'required': True}, + "error": {"required": True}, } _attribute_map = { - 'error': {'key': 'error', 'type': 'PersonalizerError'}, + "error": {"key": "error", "type": "PersonalizerError"}, } def __init__(self, **kwargs): super(ErrorResponse, self).__init__(**kwargs) - self.error = kwargs.get('error', None) + self.error = kwargs.get("error", None) class ErrorResponseException(HttpOperationError): @@ -45,4 +45,4 @@ class ErrorResponseException(HttpOperationError): def __init__(self, deserialize, response, *args): - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + super(ErrorResponseException, self).__init__(deserialize, response, "ErrorResponse", *args) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/error_response_py3.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/error_response_py3.py index 6125c805df1f..bd297334bd4c 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/error_response_py3.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/error_response_py3.py @@ -24,11 +24,11 @@ class ErrorResponse(Model): """ _validation = { - 'error': {'required': True}, + "error": {"required": True}, } _attribute_map = { - 'error': {'key': 'error', 'type': 'PersonalizerError'}, + "error": {"key": "error", "type": "PersonalizerError"}, } def __init__(self, *, error, **kwargs) -> None: @@ -45,4 +45,4 @@ class ErrorResponseException(HttpOperationError): def __init__(self, deserialize, response, *args): - super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) + super(ErrorResponseException, self).__init__(deserialize, response, "ErrorResponse", *args) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/internal_error.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/internal_error.py index 59fd86cf5475..a56cb9680b5f 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/internal_error.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/internal_error.py @@ -24,11 +24,11 @@ class InternalError(Model): """ _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'innererror': {'key': 'innererror', 'type': 'InternalError'}, + "code": {"key": "code", "type": "str"}, + "innererror": {"key": "innererror", "type": "InternalError"}, } def __init__(self, **kwargs): super(InternalError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.innererror = kwargs.get('innererror', None) + self.code = kwargs.get("code", None) + self.innererror = kwargs.get("innererror", None) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/internal_error_py3.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/internal_error_py3.py index 65d1e4290432..93133ed615c5 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/internal_error_py3.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/internal_error_py3.py @@ -24,11 +24,11 @@ class InternalError(Model): """ _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'innererror': {'key': 'innererror', 'type': 'InternalError'}, + "code": {"key": "code", "type": "str"}, + "innererror": {"key": "innererror", "type": "InternalError"}, } - def __init__(self, *, code: str=None, innererror=None, **kwargs) -> None: + def __init__(self, *, code: str = None, innererror=None, **kwargs) -> None: super(InternalError, self).__init__(**kwargs) self.code = code self.innererror = innererror diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/personalizer_error.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/personalizer_error.py index fa66768e93a9..548b87b6335e 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/personalizer_error.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/personalizer_error.py @@ -35,22 +35,22 @@ class PersonalizerError(Model): """ _validation = { - 'code': {'required': True}, - 'message': {'required': True}, + "code": {"required": True}, + "message": {"required": True}, } _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[PersonalizerError]'}, - 'inner_error': {'key': 'innerError', 'type': 'InternalError'}, + "code": {"key": "code", "type": "str"}, + "message": {"key": "message", "type": "str"}, + "target": {"key": "target", "type": "str"}, + "details": {"key": "details", "type": "[PersonalizerError]"}, + "inner_error": {"key": "innerError", "type": "InternalError"}, } def __init__(self, **kwargs): super(PersonalizerError, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) - self.target = kwargs.get('target', None) - self.details = kwargs.get('details', None) - self.inner_error = kwargs.get('inner_error', None) + self.code = kwargs.get("code", None) + self.message = kwargs.get("message", None) + self.target = kwargs.get("target", None) + self.details = kwargs.get("details", None) + self.inner_error = kwargs.get("inner_error", None) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/personalizer_error_py3.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/personalizer_error_py3.py index 6b8fc62ebb5d..eb13ed670d45 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/personalizer_error_py3.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/personalizer_error_py3.py @@ -35,19 +35,19 @@ class PersonalizerError(Model): """ _validation = { - 'code': {'required': True}, - 'message': {'required': True}, + "code": {"required": True}, + "message": {"required": True}, } _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[PersonalizerError]'}, - 'inner_error': {'key': 'innerError', 'type': 'InternalError'}, + "code": {"key": "code", "type": "str"}, + "message": {"key": "message", "type": "str"}, + "target": {"key": "target", "type": "str"}, + "details": {"key": "details", "type": "[PersonalizerError]"}, + "inner_error": {"key": "innerError", "type": "InternalError"}, } - def __init__(self, *, code, message: str, target: str=None, details=None, inner_error=None, **kwargs) -> None: + def __init__(self, *, code, message: str, target: str = None, details=None, inner_error=None, **kwargs) -> None: super(PersonalizerError, self).__init__(**kwargs) self.code = code self.message = message diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_request.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_request.py index 1adabd6f6f0f..919e75755601 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_request.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_request.py @@ -53,22 +53,22 @@ class RankRequest(Model): """ _validation = { - 'actions': {'required': True}, - 'event_id': {'max_length': 256}, + "actions": {"required": True}, + "event_id": {"max_length": 256}, } _attribute_map = { - 'context_features': {'key': 'contextFeatures', 'type': '[object]'}, - 'actions': {'key': 'actions', 'type': '[RankableAction]'}, - 'excluded_actions': {'key': 'excludedActions', 'type': '[str]'}, - 'event_id': {'key': 'eventId', 'type': 'str'}, - 'defer_activation': {'key': 'deferActivation', 'type': 'bool'}, + "context_features": {"key": "contextFeatures", "type": "[object]"}, + "actions": {"key": "actions", "type": "[RankableAction]"}, + "excluded_actions": {"key": "excludedActions", "type": "[str]"}, + "event_id": {"key": "eventId", "type": "str"}, + "defer_activation": {"key": "deferActivation", "type": "bool"}, } def __init__(self, **kwargs): super(RankRequest, self).__init__(**kwargs) - self.context_features = kwargs.get('context_features', None) - self.actions = kwargs.get('actions', None) - self.excluded_actions = kwargs.get('excluded_actions', None) - self.event_id = kwargs.get('event_id', None) - self.defer_activation = kwargs.get('defer_activation', False) + self.context_features = kwargs.get("context_features", None) + self.actions = kwargs.get("actions", None) + self.excluded_actions = kwargs.get("excluded_actions", None) + self.event_id = kwargs.get("event_id", None) + self.defer_activation = kwargs.get("defer_activation", False) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_request_py3.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_request_py3.py index 5e1b306ce4a2..3675920c9389 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_request_py3.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_request_py3.py @@ -53,19 +53,28 @@ class RankRequest(Model): """ _validation = { - 'actions': {'required': True}, - 'event_id': {'max_length': 256}, + "actions": {"required": True}, + "event_id": {"max_length": 256}, } _attribute_map = { - 'context_features': {'key': 'contextFeatures', 'type': '[object]'}, - 'actions': {'key': 'actions', 'type': '[RankableAction]'}, - 'excluded_actions': {'key': 'excludedActions', 'type': '[str]'}, - 'event_id': {'key': 'eventId', 'type': 'str'}, - 'defer_activation': {'key': 'deferActivation', 'type': 'bool'}, + "context_features": {"key": "contextFeatures", "type": "[object]"}, + "actions": {"key": "actions", "type": "[RankableAction]"}, + "excluded_actions": {"key": "excludedActions", "type": "[str]"}, + "event_id": {"key": "eventId", "type": "str"}, + "defer_activation": {"key": "deferActivation", "type": "bool"}, } - def __init__(self, *, actions, context_features=None, excluded_actions=None, event_id: str=None, defer_activation: bool=False, **kwargs) -> None: + def __init__( + self, + *, + actions, + context_features=None, + excluded_actions=None, + event_id: str = None, + defer_activation: bool = False, + **kwargs + ) -> None: super(RankRequest, self).__init__(**kwargs) self.context_features = context_features self.actions = actions diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_response.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_response.py index f831b5389402..986514708a25 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_response.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_response.py @@ -31,15 +31,15 @@ class RankResponse(Model): """ _validation = { - 'ranking': {'readonly': True}, - 'event_id': {'readonly': True, 'max_length': 256}, - 'reward_action_id': {'readonly': True, 'max_length': 256}, + "ranking": {"readonly": True}, + "event_id": {"readonly": True, "max_length": 256}, + "reward_action_id": {"readonly": True, "max_length": 256}, } _attribute_map = { - 'ranking': {'key': 'ranking', 'type': '[RankedAction]'}, - 'event_id': {'key': 'eventId', 'type': 'str'}, - 'reward_action_id': {'key': 'rewardActionId', 'type': 'str'}, + "ranking": {"key": "ranking", "type": "[RankedAction]"}, + "event_id": {"key": "eventId", "type": "str"}, + "reward_action_id": {"key": "rewardActionId", "type": "str"}, } def __init__(self, **kwargs): diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_response_py3.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_response_py3.py index e75da88b8cce..f239bd4fe044 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_response_py3.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rank_response_py3.py @@ -31,15 +31,15 @@ class RankResponse(Model): """ _validation = { - 'ranking': {'readonly': True}, - 'event_id': {'readonly': True, 'max_length': 256}, - 'reward_action_id': {'readonly': True, 'max_length': 256}, + "ranking": {"readonly": True}, + "event_id": {"readonly": True, "max_length": 256}, + "reward_action_id": {"readonly": True, "max_length": 256}, } _attribute_map = { - 'ranking': {'key': 'ranking', 'type': '[RankedAction]'}, - 'event_id': {'key': 'eventId', 'type': 'str'}, - 'reward_action_id': {'key': 'rewardActionId', 'type': 'str'}, + "ranking": {"key": "ranking", "type": "[RankedAction]"}, + "event_id": {"key": "eventId", "type": "str"}, + "reward_action_id": {"key": "rewardActionId", "type": "str"}, } def __init__(self, **kwargs) -> None: diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rankable_action.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rankable_action.py index a26c453ccba9..4142896bf7a2 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rankable_action.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rankable_action.py @@ -24,16 +24,16 @@ class RankableAction(Model): """ _validation = { - 'id': {'required': True, 'max_length': 256}, - 'features': {'required': True}, + "id": {"required": True, "max_length": 256}, + "features": {"required": True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'features': {'key': 'features', 'type': '[object]'}, + "id": {"key": "id", "type": "str"}, + "features": {"key": "features", "type": "[object]"}, } def __init__(self, **kwargs): super(RankableAction, self).__init__(**kwargs) - self.id = kwargs.get('id', None) - self.features = kwargs.get('features', None) + self.id = kwargs.get("id", None) + self.features = kwargs.get("features", None) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rankable_action_py3.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rankable_action_py3.py index 18de4a0a9014..ceaed21eed29 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rankable_action_py3.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/rankable_action_py3.py @@ -24,13 +24,13 @@ class RankableAction(Model): """ _validation = { - 'id': {'required': True, 'max_length': 256}, - 'features': {'required': True}, + "id": {"required": True, "max_length": 256}, + "features": {"required": True}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'features': {'key': 'features', 'type': '[object]'}, + "id": {"key": "id", "type": "str"}, + "features": {"key": "features", "type": "[object]"}, } def __init__(self, *, id: str, features, **kwargs) -> None: diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/ranked_action.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/ranked_action.py index 379956ff7f58..a3a6c6e601f4 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/ranked_action.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/ranked_action.py @@ -25,13 +25,13 @@ class RankedAction(Model): """ _validation = { - 'id': {'readonly': True, 'max_length': 256}, - 'probability': {'readonly': True, 'maximum': 1, 'minimum': 0}, + "id": {"readonly": True, "max_length": 256}, + "probability": {"readonly": True, "maximum": 1, "minimum": 0}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'probability': {'key': 'probability', 'type': 'float'}, + "id": {"key": "id", "type": "str"}, + "probability": {"key": "probability", "type": "float"}, } def __init__(self, **kwargs): diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/ranked_action_py3.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/ranked_action_py3.py index 367bb71c38a7..725c612dfc64 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/ranked_action_py3.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/ranked_action_py3.py @@ -25,13 +25,13 @@ class RankedAction(Model): """ _validation = { - 'id': {'readonly': True, 'max_length': 256}, - 'probability': {'readonly': True, 'maximum': 1, 'minimum': 0}, + "id": {"readonly": True, "max_length": 256}, + "probability": {"readonly": True, "maximum": 1, "minimum": 0}, } _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'probability': {'key': 'probability', 'type': 'float'}, + "id": {"key": "id", "type": "str"}, + "probability": {"key": "probability", "type": "float"}, } def __init__(self, **kwargs) -> None: diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/reward_request.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/reward_request.py index 083d90332935..cd42116391cc 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/reward_request.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/reward_request.py @@ -23,13 +23,13 @@ class RewardRequest(Model): """ _validation = { - 'value': {'required': True}, + "value": {"required": True}, } _attribute_map = { - 'value': {'key': 'value', 'type': 'float'}, + "value": {"key": "value", "type": "float"}, } def __init__(self, **kwargs): super(RewardRequest, self).__init__(**kwargs) - self.value = kwargs.get('value', None) + self.value = kwargs.get("value", None) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/reward_request_py3.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/reward_request_py3.py index e8a91e550599..9aa5b2160a5e 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/reward_request_py3.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/models/reward_request_py3.py @@ -23,11 +23,11 @@ class RewardRequest(Model): """ _validation = { - 'value': {'required': True}, + "value": {"required": True}, } _attribute_map = { - 'value': {'key': 'value', 'type': 'float'}, + "value": {"key": "value", "type": "float"}, } def __init__(self, *, value: float, **kwargs) -> None: diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/operations/__init__.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/operations/__init__.py index 8edd718f964f..b6ea86608c11 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/operations/__init__.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/operations/__init__.py @@ -12,5 +12,5 @@ from .events_operations import EventsOperations __all__ = [ - 'EventsOperations', + "EventsOperations", ] diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/operations/events_operations.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/operations/events_operations.py index 6d4481fe8b02..65789a53c93a 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/operations/events_operations.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/operations/events_operations.py @@ -34,8 +34,7 @@ def __init__(self, client, config, serializer, deserializer): self.config = config - def reward( - self, event_id, value, custom_headers=None, raw=False, **operation_config): + def reward(self, event_id, value, custom_headers=None, raw=False, **operation_config): """Report reward to allocate to the top ranked action for the specified event. @@ -57,10 +56,10 @@ def reward( reward1 = models.RewardRequest(value=value) # Construct URL - url = self.reward.metadata['url'] + url = self.reward.metadata["url"] path_format_arguments = { - 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), - 'eventId': self._serialize.url("event_id", event_id, 'str', max_length=256) + "Endpoint": self._serialize.url("self.config.endpoint", self.config.endpoint, "str", skip_quote=True), + "eventId": self._serialize.url("event_id", event_id, "str", max_length=256), } url = self._client.format_url(url, **path_format_arguments) @@ -69,12 +68,12 @@ def reward( # Construct headers header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters["Content-Type"] = "application/json; charset=utf-8" if custom_headers: header_parameters.update(custom_headers) # Construct body - body_content = self._serialize.body(reward1, 'RewardRequest') + body_content = self._serialize.body(reward1, "RewardRequest") # Construct and send request request = self._client.post(url, query_parameters, header_parameters, body_content) @@ -86,10 +85,10 @@ def reward( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - reward.metadata = {'url': '/events/{eventId}/reward'} - def activate( - self, event_id, custom_headers=None, raw=False, **operation_config): + reward.metadata = {"url": "/events/{eventId}/reward"} + + def activate(self, event_id, custom_headers=None, raw=False, **operation_config): """Report that the specified event was actually displayed to the user and a reward should be expected for it. @@ -106,10 +105,10 @@ def activate( :class:`HttpOperationError` """ # Construct URL - url = self.activate.metadata['url'] + url = self.activate.metadata["url"] path_format_arguments = { - 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True), - 'eventId': self._serialize.url("event_id", event_id, 'str', max_length=256) + "Endpoint": self._serialize.url("self.config.endpoint", self.config.endpoint, "str", skip_quote=True), + "eventId": self._serialize.url("event_id", event_id, "str", max_length=256), } url = self._client.format_url(url, **path_format_arguments) @@ -131,4 +130,5 @@ def activate( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - activate.metadata = {'url': '/events/{eventId}/activate'} + + activate.metadata = {"url": "/events/{eventId}/activate"} diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/personalizer_client.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/personalizer_client.py index 672fc01fd864..8fd9fdec267d 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/personalizer_client.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/personalizer_client.py @@ -30,18 +30,17 @@ class PersonalizerClientConfiguration(Configuration): :type credentials: None """ - def __init__( - self, endpoint, credentials): + def __init__(self, endpoint, credentials): if endpoint is None: raise ValueError("Parameter 'endpoint' must not be None.") if credentials is None: raise ValueError("Parameter 'credentials' must not be None.") - base_url = '{Endpoint}/personalizer/v1.0' + base_url = "{Endpoint}/personalizer/v1.0" super(PersonalizerClientConfiguration, self).__init__(base_url) - self.add_user_agent('azure-cognitiveservices-personalizer/{}'.format(VERSION)) + self.add_user_agent("azure-cognitiveservices-personalizer/{}".format(VERSION)) self.endpoint = endpoint self.credentials = credentials @@ -63,22 +62,19 @@ class PersonalizerClient(SDKClient): :type credentials: None """ - def __init__( - self, endpoint, credentials): + def __init__(self, endpoint, credentials): self.config = PersonalizerClientConfiguration(endpoint, credentials) super(PersonalizerClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = 'v1.0' + self.api_version = "v1.0" self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) - self.events = EventsOperations( - self._client, self.config, self._serialize, self._deserialize) + self.events = EventsOperations(self._client, self.config, self._serialize, self._deserialize) - def rank( - self, rank_request, custom_headers=None, raw=False, **operation_config): + def rank(self, rank_request, custom_headers=None, raw=False, **operation_config): """A Personalizer rank request. :param rank_request: A Personalizer request. @@ -96,9 +92,9 @@ def rank( :class:`ErrorResponseException` """ # Construct URL - url = self.rank.metadata['url'] + url = self.rank.metadata["url"] path_format_arguments = { - 'Endpoint': self._serialize.url("self.config.endpoint", self.config.endpoint, 'str', skip_quote=True) + "Endpoint": self._serialize.url("self.config.endpoint", self.config.endpoint, "str", skip_quote=True) } url = self._client.format_url(url, **path_format_arguments) @@ -107,13 +103,13 @@ def rank( # Construct headers header_parameters = {} - header_parameters['Accept'] = 'application/json' - header_parameters['Content-Type'] = 'application/json; charset=utf-8' + header_parameters["Accept"] = "application/json" + header_parameters["Content-Type"] = "application/json; charset=utf-8" if custom_headers: header_parameters.update(custom_headers) # Construct body - body_content = self._serialize.body(rank_request, 'RankRequest') + body_content = self._serialize.body(rank_request, "RankRequest") # Construct and send request request = self._client.post(url, query_parameters, header_parameters, body_content) @@ -125,11 +121,12 @@ def rank( deserialized = None if response.status_code == 201: - deserialized = self._deserialize('RankResponse', response) + deserialized = self._deserialize("RankResponse", response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized - rank.metadata = {'url': '/rank'} + + rank.metadata = {"url": "/rank"} diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/version.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/version.py index e0ec669828cb..fb0159ed93d7 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/version.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/azure/cognitiveservices/personalizer/version.py @@ -10,4 +10,3 @@ # -------------------------------------------------------------------------- VERSION = "0.1.0" - diff --git a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/setup.py b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/setup.py index 984cd2f4c705..30abf1f05051 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-personalizer/setup.py +++ b/sdk/cognitiveservices/azure-cognitiveservices-personalizer/setup.py @@ -1,10 +1,10 @@ #!/usr/bin/env python -#------------------------------------------------------------------------- +# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. -#-------------------------------------------------------------------------- +# -------------------------------------------------------------------------- import re import os.path @@ -16,19 +16,19 @@ PACKAGE_PPRINT_NAME = "Personalizer" # a-b-c => a/b/c -package_folder_path = PACKAGE_NAME.replace('-', '/') +package_folder_path = PACKAGE_NAME.replace("-", "/") # a-b-c => a.b.c -namespace_name = PACKAGE_NAME.replace('-', '.') +namespace_name = PACKAGE_NAME.replace("-", ".") # azure v0.x is not compatible with this package # azure v0.x used to have a __version__ attribute (newer versions don't) try: import azure + try: ver = azure.__version__ raise Exception( - 'This package is incompatible with azure=={}. '.format(ver) + - 'Uninstall it with "pip uninstall azure".' + "This package is incompatible with azure=={}. ".format(ver) + 'Uninstall it with "pip uninstall azure".' ) except AttributeError: pass @@ -36,61 +36,67 @@ pass # Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py') - if os.path.exists(os.path.join(package_folder_path, 'version.py')) - else os.path.join(package_folder_path, '_version.py'), 'r') as fd: - version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', - fd.read(), re.MULTILINE).group(1) +with open( + ( + os.path.join(package_folder_path, "version.py") + if os.path.exists(os.path.join(package_folder_path, "version.py")) + else os.path.join(package_folder_path, "_version.py") + ), + "r", +) as fd: + version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) if not version: - raise RuntimeError('Cannot find version information') + raise RuntimeError("Cannot find version information") -with open('README.md', encoding='utf-8') as f: +with open("README.md", encoding="utf-8") as f: readme = f.read() -with open('CHANGELOG.md', encoding='utf-8') as f: +with open("CHANGELOG.md", encoding="utf-8") as f: changelog = f.read() setup( name=PACKAGE_NAME, version=version, - description='Microsoft Azure {} Client Library for Python'.format(PACKAGE_PPRINT_NAME), - long_description=readme + '\n\n' + changelog, - long_description_content_type='text/markdown', - license='MIT License', - author='Microsoft Corporation', - author_email='azpysdkhelp@microsoft.com', - url='https://github.com/Azure/azure-sdk-for-python', + description="Microsoft Azure {} Client Library for Python".format(PACKAGE_PPRINT_NAME), + long_description=readme + "\n\n" + changelog, + long_description_content_type="text/markdown", + license="MIT License", + author="Microsoft Corporation", + author_email="azpysdkhelp@microsoft.com", + url="https://github.com/Azure/azure-sdk-for-python", keywords="azure, azure sdk", classifiers=[ - 'Development Status :: 4 - Beta', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', - 'Programming Language :: Python :: 3.9', - 'Programming Language :: Python :: 3.10', - 'License :: OSI Approved :: MIT License', + "Development Status :: 4 - Beta", + "Programming Language :: Python", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "License :: OSI Approved :: MIT License", ], zip_safe=False, - packages=find_packages(exclude=[ - 'tests', - # Exclude packages that will be covered by PEP420 or nspkg - 'azure', - 'azure.cognitiveservices', - ]), + packages=find_packages( + exclude=[ + "tests", + # Exclude packages that will be covered by PEP420 or nspkg + "azure", + "azure.cognitiveservices", + ] + ), include_package_data=True, package_data={ - 'pytyped': ['py.typed'], + "pytyped": ["py.typed"], }, install_requires=[ - 'msrest>=0.6.21', - 'azure-common~=1.1', - 'azure-mgmt-core>=1.2.0,<2.0.0', + "msrest>=0.6.21", + "azure-common~=1.1", + "azure-mgmt-core>=1.2.0,<2.0.0", ], extras_require={ - ":python_version<'3.0'": ['azure-cognitiveservices-nspkg'], - } + ":python_version<'3.0'": ["azure-cognitiveservices-nspkg"], + }, ) diff --git a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/pyproject.toml b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/pyproject.toml index 0891ce3392f5..53def8d6712f 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/pyproject.toml +++ b/sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/pyproject.toml @@ -1,2 +1,3 @@ [tool.azure-sdk-build] pylint = false +ci_enabled = false diff --git a/sdk/cognitiveservices/azure-cognitiveservices-vision-contentmoderator/pyproject.toml b/sdk/cognitiveservices/azure-cognitiveservices-vision-contentmoderator/pyproject.toml index 0891ce3392f5..53def8d6712f 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-vision-contentmoderator/pyproject.toml +++ b/sdk/cognitiveservices/azure-cognitiveservices-vision-contentmoderator/pyproject.toml @@ -1,2 +1,3 @@ [tool.azure-sdk-build] pylint = false +ci_enabled = false diff --git a/sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/pyproject.toml b/sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/pyproject.toml index 0891ce3392f5..53def8d6712f 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/pyproject.toml +++ b/sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/pyproject.toml @@ -1,2 +1,3 @@ [tool.azure-sdk-build] pylint = false +ci_enabled = false diff --git a/sdk/cognitiveservices/azure-cognitiveservices-vision-face/pyproject.toml b/sdk/cognitiveservices/azure-cognitiveservices-vision-face/pyproject.toml index 0891ce3392f5..53def8d6712f 100644 --- a/sdk/cognitiveservices/azure-cognitiveservices-vision-face/pyproject.toml +++ b/sdk/cognitiveservices/azure-cognitiveservices-vision-face/pyproject.toml @@ -1,2 +1,3 @@ [tool.azure-sdk-build] pylint = false +ci_enabled = false diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_patch.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_patch.py index f99e77fef986..17dbc073e01b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_patch.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/_patch.py @@ -25,6 +25,7 @@ # # -------------------------------------------------------------------------- + # This file is used for handwritten extensions to the generated code. Example: # https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_patch.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_patch.py index f99e77fef986..17dbc073e01b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_patch.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/azure/mgmt/cognitiveservices/aio/_patch.py @@ -25,6 +25,7 @@ # # -------------------------------------------------------------------------- + # This file is used for handwritten extensions to the generated code. Example: # https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md def patch_sdk(): diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/setup.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/setup.py index b414683e25d3..5193a173990b 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/setup.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/setup.py @@ -22,9 +22,11 @@ # Version extraction inspired from 'requests' with open( - os.path.join(package_folder_path, "version.py") - if os.path.exists(os.path.join(package_folder_path, "version.py")) - else os.path.join(package_folder_path, "_version.py"), + ( + os.path.join(package_folder_path, "version.py") + if os.path.exists(os.path.join(package_folder_path, "version.py")) + else os.path.join(package_folder_path, "_version.py") + ), "r", ) as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) diff --git a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_cli_mgmt_cognitiveservices.py b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_cli_mgmt_cognitiveservices.py index 36137183535e..c43cdd7c2719 100644 --- a/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_cli_mgmt_cognitiveservices.py +++ b/sdk/cognitiveservices/azure-mgmt-cognitiveservices/tests/disable_test_cli_mgmt_cognitiveservices.py @@ -1,10 +1,10 @@ # coding: utf-8 -#------------------------------------------------------------------------- +# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. -#-------------------------------------------------------------------------- +# -------------------------------------------------------------------------- # TEST SCENARIO COVERAGE @@ -21,17 +21,16 @@ import azure.mgmt.cognitiveservices from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer -AZURE_LOCATION = 'eastus' +AZURE_LOCATION = "eastus" + class MgmtCognitiveServicesTest(AzureMgmtTestCase): def setUp(self): super(MgmtCognitiveServicesTest, self).setUp() - self.mgmt_client = self.create_mgmt_client( - azure.mgmt.cognitiveservices.CognitiveServicesManagementClient - ) - - @unittest.skip('hard to test') + self.mgmt_client = self.create_mgmt_client(azure.mgmt.cognitiveservices.CognitiveServicesManagementClient) + + @unittest.skip("hard to test") @ResourceGroupPreparer(location=AZURE_LOCATION) def test_cognitiveservices(self, resource_group): @@ -42,42 +41,40 @@ def test_cognitiveservices(self, resource_group): # /Accounts/put/Create Account Min[put] BODY = { - "location": "West US", - "kind": "CognitiveServices", - "sku": { - "name": "S0" - }, - "identity": { - "type": "SystemAssigned" - } + "location": "West US", + "kind": "CognitiveServices", + "sku": {"name": "S0"}, + "identity": {"type": "SystemAssigned"}, } - result = self.mgmt_client.accounts.create(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, account=BODY) + result = self.mgmt_client.accounts.create( + resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, account=BODY + ) # /Accounts/put/Create Account[put] BODY = { - "location": "West US", - "kind": "Emotion", - "sku": { - "name": "S0" - }, - "properties": { - "encryption": { - "key_vault_properties": { - "key_name": "KeyName", - "key_version": "891CF236-D241-4738-9462-D506AF493DFA", - "key_vault_uri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/" - }, - "key_source": "Microsoft.KeyVault" + "location": "West US", + "kind": "Emotion", + "sku": {"name": "S0"}, + "properties": { + "encryption": { + "key_vault_properties": { + "key_name": "KeyName", + "key_version": "891CF236-D241-4738-9462-D506AF493DFA", + "key_vault_uri": "https://pltfrmscrts-use-pc-dev.vault.azure.net/", + }, + "key_source": "Microsoft.KeyVault", + }, + "user_owned_storage": [ + { + "resource_id": "/subscriptions/" + + SUBSCRIPTION_ID + + "/resourceGroups/" + + RESOURCE_GROUP + + "/providers/Microsoft.Storage/storageAccountsfelixwatest" + } + ], }, - "user_owned_storage": [ - { - "resource_id": "/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + RESOURCE_GROUP + "/providers/Microsoft.Storage/storageAccountsfelixwatest" - } - ] - }, - "identity": { - "type": "SystemAssigned" - } + "identity": {"type": "SystemAssigned"}, } # result = self.mgmt_client.accounts.create(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, account=BODY) @@ -103,29 +100,27 @@ def test_cognitiveservices(self, resource_group): result = self.mgmt_client.operations.list() # /Accounts/post/Regenerate Keys[post] - result = self.mgmt_client.accounts.regenerate_key(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, key_name="Key2") + result = self.mgmt_client.accounts.regenerate_key( + resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, key_name="Key2" + ) # /Accounts/post/List Keys[post] result = self.mgmt_client.accounts.list_keys(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME) # /Accounts/patch/Update Account[patch] - BODY = { - "sku": { - "name": "S2" - } - } + BODY = {"sku": {"name": "S2"}} # result = self.mgmt_client.accounts.update(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME, account=BODY) # //post/Check SKU Availability[post] - SKUS = [ - "S0" - ] - result = self.mgmt_client.check_sku_availability(location="eastus", skus=SKUS, kind="Face", type="Microsoft.CognitiveServices/accounts") + SKUS = ["S0"] + result = self.mgmt_client.check_sku_availability( + location="eastus", skus=SKUS, kind="Face", type="Microsoft.CognitiveServices/accounts" + ) # /Accounts/delete/Delete Account[delete] result = self.mgmt_client.accounts.delete(resource_group_name=RESOURCE_GROUP, account_name=ACCOUNT_NAME) -#------------------------------------------------------------------------------ -if __name__ == '__main__': +# ------------------------------------------------------------------------------ +if __name__ == "__main__": unittest.main() diff --git a/sdk/cognitiveservices/ci.yml b/sdk/cognitiveservices/ci.yml index 48233638185d..1c8b6d8a4493 100644 --- a/sdk/cognitiveservices/ci.yml +++ b/sdk/cognitiveservices/ci.yml @@ -31,13 +31,5 @@ extends: Artifacts: - name: azure-cognitiveservices-personalizer safeName: azurecognitiveservicespersonalizer - - name: azure-cognitiveservices-vision-computervision - safeName: azurecognitiveservicesvisioncomputervision - - name: azure-cognitiveservices-vision-contentmoderator - safeName: azurecognitiveservicesvisioncontentmoderator - - name: azure-cognitiveservices-vision-customvision - safeName: azurecognitiveservicesvisioncustomvision - - name: azure-cognitiveservices-vision-face - safeName: azurecognitiveservicesvisionface - name: azure-mgmt-cognitiveservices safeName: azuremgmtcognitiveservices