Skip to content

Commit 6c92c70

Browse files
author
SDKAuto
committed
CodeGen from PR 15137 in Azure/azure-rest-api-specs
Merge a65e12836dd93786a16aff30548f5fd8c8120571 into 83453ca
1 parent a1f5c68 commit 6c92c70

21 files changed

+1505
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Release History
2+
3+
## 0.1.0 (1970-01-01)
4+
5+
* Initial Release
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
include _meta.json
2+
recursive-include tests *.py *.yaml
3+
include *.md
4+
include azure/__init__.py
5+
include azure/messaging/__init__.py
6+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure MyService Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
6+
7+
8+
# Usage
9+
10+
11+
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
12+
13+
14+
15+
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
16+
Code samples for this package can be found at [MyService Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
17+
Additional code samples for different Azure services are available at [Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
18+
19+
20+
# Provide Feedback
21+
22+
If you encounter any bugs or have suggestions, please file an issue in the
23+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
24+
section of the project.
25+
26+
27+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-messaging-webpubsubservice%2FREADME.png)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"autorest": "V2",
3+
"use": "@microsoft.azure/autorest.python@~4.0.71",
4+
"commit": "7ba09a476eeff28a840b5b3897f418db62e6e844",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/webpubsub/data-plane/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
7+
"readme": "specification/webpubsub/data-plane/readme.md"
8+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from ._configuration import AzureMessagingWebPubSubServiceClientConfiguration
13+
from ._azure_messaging_web_pub_sub_service_client import AzureMessagingWebPubSubServiceClient
14+
__all__ = ['AzureMessagingWebPubSubServiceClient', 'AzureMessagingWebPubSubServiceClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import AzureMessagingWebPubSubServiceClientConfiguration
16+
from msrest.exceptions import HttpOperationError
17+
from .operations import HealthApiOperations
18+
from .operations import WebPubSubOperations
19+
from . import models
20+
21+
22+
class AzureMessagingWebPubSubServiceClient(SDKClient):
23+
"""AzureMessagingWebPubSubServiceClient
24+
25+
:ivar config: Configuration for client.
26+
:vartype config: AzureMessagingWebPubSubServiceClientConfiguration
27+
28+
:ivar health_api: HealthApi operations
29+
:vartype health_api: azure.messaging.webpubsub.operations.HealthApiOperations
30+
:ivar web_pub_sub: WebPubSub operations
31+
:vartype web_pub_sub: azure.messaging.webpubsub.operations.WebPubSubOperations
32+
33+
:param str base_url: Service URL
34+
"""
35+
36+
def __init__(
37+
self, base_url=None):
38+
39+
self.config = AzureMessagingWebPubSubServiceClientConfiguration(base_url)
40+
super(AzureMessagingWebPubSubServiceClient, self).__init__(None, self.config)
41+
42+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
43+
self.api_version = '2021-08-01-preview'
44+
self._serialize = Serializer(client_models)
45+
self._deserialize = Deserializer(client_models)
46+
47+
self.health_api = HealthApiOperations(
48+
self._client, self.config, self._serialize, self._deserialize)
49+
self.web_pub_sub = WebPubSubOperations(
50+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest import Configuration
13+
14+
from .version import VERSION
15+
16+
17+
class AzureMessagingWebPubSubServiceClientConfiguration(Configuration):
18+
"""Configuration for AzureMessagingWebPubSubServiceClient
19+
Note that all parameters used to create this instance are saved as instance
20+
attributes.
21+
22+
:param str base_url: Service URL
23+
"""
24+
25+
def __init__(
26+
self, base_url=None):
27+
28+
if not base_url:
29+
base_url = 'http://localhost'
30+
31+
super(AzureMessagingWebPubSubServiceClientConfiguration, self).__init__(base_url)
32+
33+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
34+
self.keep_alive = True
35+
36+
self.add_user_agent('azure-messaging-webpubsubservice/{}'.format(VERSION))
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from ._models_py3 import ClientTokenResponse
14+
except (SyntaxError, ImportError):
15+
from ._models import ClientTokenResponse
16+
from ._azure_messaging_web_pub_sub_service_client_enums import (
17+
WebPubSubPermission,
18+
)
19+
20+
__all__ = [
21+
'ClientTokenResponse',
22+
'WebPubSubPermission',
23+
]

0 commit comments

Comments
 (0)