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 13166 in Azure/azure-rest-api-specs
Enable swagger ci for azure-powershell for some RPs (Azure#13166)
- Loading branch information
SDKAuto
committed
Feb 26, 2021
1 parent
425f5ce
commit a355976
Showing
21 changed files
with
2,700 additions
and
0 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,5 @@ | ||
# Release History | ||
|
||
## 0.1.0 (1970-01-01) | ||
|
||
* Initial Release |
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,5 @@ | ||
recursive-include tests *.py *.yaml | ||
include *.md | ||
include azure/__init__.py | ||
include azure/mgmt/__init__.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,21 @@ | ||
# Microsoft Azure SDK for Python | ||
|
||
This is the Microsoft Azure MyService Management Client Library. | ||
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. | ||
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). | ||
|
||
|
||
# Usage | ||
|
||
For code examples, see [MyService Management](https://docs.microsoft.com/python/api/overview/azure/) | ||
on docs.microsoft.com. | ||
|
||
|
||
# Provide Feedback | ||
|
||
If you encounter any bugs or have suggestions, please file an issue in the | ||
[Issues](https://github.com/Azure/azure-sdk-for-python/issues) | ||
section of the project. | ||
|
||
|
||
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-communication%2FREADME.png) |
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 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
1 change: 1 addition & 0 deletions
1
sdk/communication/azure-mgmt-communication/azure/mgmt/__init__.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 @@ | ||
__path__ = __import__('pkgutil').extend_path(__path__, __name__) |
19 changes: 19 additions & 0 deletions
19
sdk/communication/azure-mgmt-communication/azure/mgmt/communication/__init__.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,19 @@ | ||
# 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 ._configuration import CommunicationServiceManagementClientConfiguration | ||
from ._communication_service_management_client import CommunicationServiceManagementClient | ||
__all__ = ['CommunicationServiceManagementClient', 'CommunicationServiceManagementClientConfiguration'] | ||
|
||
from .version import VERSION | ||
|
||
__version__ = VERSION | ||
|
61 changes: 61 additions & 0 deletions
61
...e-mgmt-communication/azure/mgmt/communication/_communication_service_management_client.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,61 @@ | ||
# 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.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
|
||
from ._configuration import CommunicationServiceManagementClientConfiguration | ||
from .operations import Operations | ||
from .operations import CommunicationServiceOperations | ||
from .operations import OperationStatusesOperations | ||
from . import models | ||
|
||
|
||
class CommunicationServiceManagementClient(SDKClient): | ||
"""REST API for Azure Communication Services | ||
:ivar config: Configuration for client. | ||
:vartype config: CommunicationServiceManagementClientConfiguration | ||
:ivar operations: Operations operations | ||
:vartype operations: azure.mgmt.communication.operations.Operations | ||
:ivar communication_service: CommunicationService operations | ||
:vartype communication_service: azure.mgmt.communication.operations.CommunicationServiceOperations | ||
:ivar operation_statuses: OperationStatuses operations | ||
:vartype operation_statuses: azure.mgmt.communication.operations.OperationStatusesOperations | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: Gets subscription ID which uniquely identifies the | ||
Microsoft Azure subscription. The subscription ID forms part of the URI | ||
for every service call. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
self.config = CommunicationServiceManagementClientConfiguration(credentials, subscription_id, base_url) | ||
super(CommunicationServiceManagementClient, 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 = '2020-08-20-preview' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.operations = Operations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.communication_service = CommunicationServiceOperations( | ||
self._client, self.config, self._serialize, self._deserialize) | ||
self.operation_statuses = OperationStatusesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
50 changes: 50 additions & 0 deletions
50
sdk/communication/azure-mgmt-communication/azure/mgmt/communication/_configuration.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,50 @@ | ||
# 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 msrestazure import AzureConfiguration | ||
|
||
from .version import VERSION | ||
|
||
|
||
class CommunicationServiceManagementClientConfiguration(AzureConfiguration): | ||
"""Configuration for CommunicationServiceManagementClient | ||
Note that all parameters used to create this instance are saved as instance | ||
attributes. | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: Gets subscription ID which uniquely identifies the | ||
Microsoft Azure subscription. The subscription ID forms part of the URI | ||
for every service call. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
if credentials is None: | ||
raise ValueError("Parameter 'credentials' must not be None.") | ||
if subscription_id is None: | ||
raise ValueError("Parameter 'subscription_id' must not be None.") | ||
if not base_url: | ||
base_url = 'https://management.azure.com' | ||
|
||
super(CommunicationServiceManagementClientConfiguration, self).__init__(base_url) | ||
|
||
# Starting Autorest.Python 4.0.64, make connection pool activated by default | ||
self.keep_alive = True | ||
|
||
self.add_user_agent('azure-mgmt-communication/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
87 changes: 87 additions & 0 deletions
87
sdk/communication/azure-mgmt-communication/azure/mgmt/communication/models/__init__.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,87 @@ | ||
# 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. | ||
# -------------------------------------------------------------------------- | ||
|
||
try: | ||
from ._models_py3 import CommunicationServiceKeys | ||
from ._models_py3 import CommunicationServiceResource | ||
from ._models_py3 import Dimension | ||
from ._models_py3 import ErrorResponse, ErrorResponseException | ||
from ._models_py3 import ErrorResponseError | ||
from ._models_py3 import LinkedNotificationHub | ||
from ._models_py3 import LinkNotificationHubParameters | ||
from ._models_py3 import LocationResource | ||
from ._models_py3 import MetricSpecification | ||
from ._models_py3 import NameAvailability | ||
from ._models_py3 import NameAvailabilityParameters | ||
from ._models_py3 import Operation | ||
from ._models_py3 import OperationDisplay | ||
from ._models_py3 import OperationProperties | ||
from ._models_py3 import OperationStatus | ||
from ._models_py3 import RegenerateKeyParameters | ||
from ._models_py3 import Resource | ||
from ._models_py3 import ServiceSpecification | ||
from ._models_py3 import TaggedResource | ||
except (SyntaxError, ImportError): | ||
from ._models import CommunicationServiceKeys | ||
from ._models import CommunicationServiceResource | ||
from ._models import Dimension | ||
from ._models import ErrorResponse, ErrorResponseException | ||
from ._models import ErrorResponseError | ||
from ._models import LinkedNotificationHub | ||
from ._models import LinkNotificationHubParameters | ||
from ._models import LocationResource | ||
from ._models import MetricSpecification | ||
from ._models import NameAvailability | ||
from ._models import NameAvailabilityParameters | ||
from ._models import Operation | ||
from ._models import OperationDisplay | ||
from ._models import OperationProperties | ||
from ._models import OperationStatus | ||
from ._models import RegenerateKeyParameters | ||
from ._models import Resource | ||
from ._models import ServiceSpecification | ||
from ._models import TaggedResource | ||
from ._paged_models import CommunicationServiceResourcePaged | ||
from ._paged_models import OperationPaged | ||
from ._communication_service_management_client_enums import ( | ||
AggregationType, | ||
Status, | ||
ProvisioningState, | ||
KeyType, | ||
) | ||
|
||
__all__ = [ | ||
'CommunicationServiceKeys', | ||
'CommunicationServiceResource', | ||
'Dimension', | ||
'ErrorResponse', 'ErrorResponseException', | ||
'ErrorResponseError', | ||
'LinkedNotificationHub', | ||
'LinkNotificationHubParameters', | ||
'LocationResource', | ||
'MetricSpecification', | ||
'NameAvailability', | ||
'NameAvailabilityParameters', | ||
'Operation', | ||
'OperationDisplay', | ||
'OperationProperties', | ||
'OperationStatus', | ||
'RegenerateKeyParameters', | ||
'Resource', | ||
'ServiceSpecification', | ||
'TaggedResource', | ||
'OperationPaged', | ||
'CommunicationServiceResourcePaged', | ||
'AggregationType', | ||
'Status', | ||
'ProvisioningState', | ||
'KeyType', | ||
] |
50 changes: 50 additions & 0 deletions
50
...ication/azure/mgmt/communication/models/_communication_service_management_client_enums.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,50 @@ | ||
# 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 enum import Enum | ||
|
||
|
||
class AggregationType(str, Enum): | ||
|
||
average = "Average" | ||
minimum = "Minimum" | ||
maximum = "Maximum" | ||
total = "Total" | ||
count = "Count" | ||
|
||
|
||
class Status(str, Enum): | ||
|
||
succeeded = "Succeeded" | ||
failed = "Failed" | ||
canceled = "Canceled" | ||
creating = "Creating" | ||
deleting = "Deleting" | ||
moving = "Moving" | ||
|
||
|
||
class ProvisioningState(str, Enum): | ||
|
||
unknown = "Unknown" | ||
succeeded = "Succeeded" | ||
failed = "Failed" | ||
canceled = "Canceled" | ||
running = "Running" | ||
creating = "Creating" | ||
updating = "Updating" | ||
deleting = "Deleting" | ||
moving = "Moving" | ||
|
||
|
||
class KeyType(str, Enum): | ||
|
||
primary = "Primary" | ||
secondary = "Secondary" |
Oops, something went wrong.