Skip to content

Commit b727bff

Browse files
author
SDKAuto
committed
CodeGen from PR 14199 in Azure/azure-rest-api-specs
Merge d5f3f8050d0265b67aeaaaa90ca7f68783479ac3 into 08faf32
1 parent fd411ac commit b727bff

29 files changed

+12671
-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/mgmt/__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-mgmt-streamanalytics%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": "835f8b7e19b1af193513056d95ae79ead41f4f34",
5+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
6+
"autorest_command": "autorest specification/streamanalytics/resource-manager/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/streamanalytics/resource-manager/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 StreamAnalyticsManagementClientConfiguration
13+
from ._stream_analytics_management_client import StreamAnalyticsManagementClient
14+
__all__ = ['StreamAnalyticsManagementClient', 'StreamAnalyticsManagementClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class StreamAnalyticsManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for StreamAnalyticsManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The ID of the target subscription.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(StreamAnalyticsManagementClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-streamanalytics/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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 StreamAnalyticsManagementClientConfiguration
16+
from .operations import FunctionsOperations
17+
from .operations import InputsOperations
18+
from .operations import OutputsOperations
19+
from .operations import StreamingJobsOperations
20+
from .operations import SubscriptionsOperations
21+
from .operations import TransformationsOperations
22+
from .operations import Operations
23+
from .operations import ClustersOperations
24+
from .operations import PrivateEndpointsOperations
25+
from . import models
26+
27+
28+
class StreamAnalyticsManagementClient(SDKClient):
29+
"""Stream Analytics Client
30+
31+
:ivar config: Configuration for client.
32+
:vartype config: StreamAnalyticsManagementClientConfiguration
33+
34+
:ivar functions: Functions operations
35+
:vartype functions: azure.mgmt.streamanalytics.operations.FunctionsOperations
36+
:ivar inputs: Inputs operations
37+
:vartype inputs: azure.mgmt.streamanalytics.operations.InputsOperations
38+
:ivar outputs: Outputs operations
39+
:vartype outputs: azure.mgmt.streamanalytics.operations.OutputsOperations
40+
:ivar streaming_jobs: StreamingJobs operations
41+
:vartype streaming_jobs: azure.mgmt.streamanalytics.operations.StreamingJobsOperations
42+
:ivar subscriptions: Subscriptions operations
43+
:vartype subscriptions: azure.mgmt.streamanalytics.operations.SubscriptionsOperations
44+
:ivar transformations: Transformations operations
45+
:vartype transformations: azure.mgmt.streamanalytics.operations.TransformationsOperations
46+
:ivar operations: Operations operations
47+
:vartype operations: azure.mgmt.streamanalytics.operations.Operations
48+
:ivar clusters: Clusters operations
49+
:vartype clusters: azure.mgmt.streamanalytics.operations.ClustersOperations
50+
:ivar private_endpoints: PrivateEndpoints operations
51+
:vartype private_endpoints: azure.mgmt.streamanalytics.operations.PrivateEndpointsOperations
52+
53+
:param credentials: Credentials needed for the client to connect to Azure.
54+
:type credentials: :mod:`A msrestazure Credentials
55+
object<msrestazure.azure_active_directory>`
56+
:param subscription_id: The ID of the target subscription.
57+
:type subscription_id: str
58+
:param str base_url: Service URL
59+
"""
60+
61+
def __init__(
62+
self, credentials, subscription_id, base_url=None):
63+
64+
self.config = StreamAnalyticsManagementClientConfiguration(credentials, subscription_id, base_url)
65+
super(StreamAnalyticsManagementClient, self).__init__(self.config.credentials, self.config)
66+
67+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
68+
self._serialize = Serializer(client_models)
69+
self._deserialize = Deserializer(client_models)
70+
71+
self.functions = FunctionsOperations(
72+
self._client, self.config, self._serialize, self._deserialize)
73+
self.inputs = InputsOperations(
74+
self._client, self.config, self._serialize, self._deserialize)
75+
self.outputs = OutputsOperations(
76+
self._client, self.config, self._serialize, self._deserialize)
77+
self.streaming_jobs = StreamingJobsOperations(
78+
self._client, self.config, self._serialize, self._deserialize)
79+
self.subscriptions = SubscriptionsOperations(
80+
self._client, self.config, self._serialize, self._deserialize)
81+
self.transformations = TransformationsOperations(
82+
self._client, self.config, self._serialize, self._deserialize)
83+
self.operations = Operations(
84+
self._client, self.config, self._serialize, self._deserialize)
85+
self.clusters = ClustersOperations(
86+
self._client, self.config, self._serialize, self._deserialize)
87+
self.private_endpoints = PrivateEndpointsOperations(
88+
self._client, self.config, self._serialize, self._deserialize)

0 commit comments

Comments
 (0)