forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CodeGen from PR 17753 in Azure/azure-rest-api-specs
Adding xms identifiers for RPs (Azure#17753) * Adding x-ms-identifiers for AD Hybrid Health Service * remove added properties * Adding xms-identifiers for AlertsManagement * revert changes related to files outside resource-manager * Adding xms-ids for ApiManagement * adding xms-ids for AzureData * Adding xms-ids for COnfidentialLedger * Adding xms ids for Confluent * Adding xms-ids for CostManagement * Adding xms ids for DataBox * Adding xms ids for DataBricks * fix typos * Corrections after rebasing * corrections after rebase * fixing invalid format errors * changing the format to uuid for all Ids * prettier fix * prettier fix 2 * reverting package files to main * revert noisy prettifier changes * revert some format changes in adhybrid * reverting noisy changes * removing adhybrid and alerts management * remove azuredata * remove apimanagement files from this PR
- Loading branch information
SDKAuto
committed
Feb 18, 2022
1 parent
3e03206
commit 669582c
Showing
165 changed files
with
36,805 additions
and
14,527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"autorest": "3.7.2", | ||
"use": [ | ||
"@autorest/python@5.12.0", | ||
"@autorest/modelerfour@4.19.3" | ||
], | ||
"commit": "1659cfde425308fc46b5f2cd962c3be40ba04ace", | ||
"repository_url": "https://github.com/Azure/azure-rest-api-specs", | ||
"autorest_command": "autorest specification/databox/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2", | ||
"readme": "specification/databox/resource-manager/readme.md" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
sdk/databox/azure-mgmt-databox/azure/mgmt/databox/_operations_mixin.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# 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. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
from msrest import Serializer, Deserializer | ||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
# pylint: disable=unused-import,ungrouped-imports | ||
from typing import Any, Optional | ||
|
||
|
||
class DataBoxManagementClientOperationsMixin(object): | ||
|
||
def mitigate( | ||
self, | ||
job_name, # type: str | ||
resource_group_name, # type: str | ||
mitigate_job_request, # type: "_models.MitigateJobRequest" | ||
**kwargs # type: Any | ||
): | ||
# type: (...) -> None | ||
"""Request to mitigate for a given job. | ||
:param job_name: The name of the job Resource within the specified resource group. job names | ||
must be between 3 and 24 characters in length and use any alphanumeric and underscore only. | ||
:type job_name: str | ||
:param resource_group_name: The Resource Group Name. | ||
:type resource_group_name: str | ||
:param mitigate_job_request: Mitigation Request. | ||
:type mitigate_job_request: ~azure.mgmt.databox.v2021_05_01.models.MitigateJobRequest | ||
:keyword callable cls: A custom type or function that will be passed the direct response | ||
:return: None, or the result of cls(response) | ||
:rtype: None | ||
:raises: ~azure.core.exceptions.HttpResponseError | ||
""" | ||
api_version = self._get_api_version('mitigate') | ||
if api_version == '2021-03-01': | ||
from .v2021_03_01.operations import DataBoxManagementClientOperationsMixin as OperationClass | ||
elif api_version == '2021-05-01': | ||
from .v2021_05_01.operations import DataBoxManagementClientOperationsMixin as OperationClass | ||
elif api_version == '2021-08-01-preview': | ||
from .v2021_08_01_preview.operations import DataBoxManagementClientOperationsMixin as OperationClass | ||
else: | ||
raise ValueError("API version {} does not have operation 'mitigate'".format(api_version)) | ||
mixin_instance = OperationClass() | ||
mixin_instance._client = self._client | ||
mixin_instance._config = self._config | ||
mixin_instance._serialize = Serializer(self._models_dict(api_version)) | ||
mixin_instance._serialize.client_side_validation = False | ||
mixin_instance._deserialize = Deserializer(self._models_dict(api_version)) | ||
return mixin_instance.mitigate(job_name, resource_group_name, mitigate_job_request, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.