Skip to content

Commit 268ef0c

Browse files
committed
generate
1 parent ab12b04 commit 268ef0c

40 files changed

+19345
-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+
## 1.0.0rc1 (2020-09-18)
4+
5+
- Initial Release
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
recursive-include tests *.py *.yaml
2+
include *.md
3+
include azure/__init__.py
4+
include azure/mgmt/__init__.py
5+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Microsoft Azure SDK for Python
2+
3+
This is the Microsoft Azure Stream Analytics 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+
For code examples, see [Stream Analytics Management](https://docs.microsoft.com/python/api/overview/azure/?view=azure-python-preview)
11+
on docs.microsoft.com.
12+
13+
14+
# Provide Feedback
15+
16+
If you encounter any bugs or have suggestions, please file an issue in the
17+
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
18+
section of the project.
19+
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-streamanalytics%2FREADME.png)
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 license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from ._stream_analytics_management_client import StreamAnalyticsManagementClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
13+
__all__ = ['StreamAnalyticsManagementClient']
14+
15+
try:
16+
from ._patch import patch_sdk # type: ignore
17+
patch_sdk()
18+
except ImportError:
19+
pass
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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 license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from typing import TYPE_CHECKING
10+
11+
from azure.core.configuration import Configuration
12+
from azure.core.pipeline import policies
13+
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
14+
15+
from ._version import VERSION
16+
17+
if TYPE_CHECKING:
18+
# pylint: disable=unused-import,ungrouped-imports
19+
from typing import Any
20+
21+
from azure.core.credentials import TokenCredential
22+
23+
24+
class StreamAnalyticsManagementClientConfiguration(Configuration):
25+
"""Configuration for StreamAnalyticsManagementClient.
26+
27+
Note that all parameters used to create this instance are saved as instance
28+
attributes.
29+
30+
:param credential: Credential needed for the client to connect to Azure.
31+
:type credential: ~azure.core.credentials.TokenCredential
32+
:param subscription_id: The ID of the target subscription.
33+
:type subscription_id: str
34+
"""
35+
36+
def __init__(
37+
self,
38+
credential, # type: "TokenCredential"
39+
subscription_id, # type: str
40+
**kwargs # type: Any
41+
):
42+
# type: (...) -> None
43+
if credential is None:
44+
raise ValueError("Parameter 'credential' must not be None.")
45+
if subscription_id is None:
46+
raise ValueError("Parameter 'subscription_id' must not be None.")
47+
super(StreamAnalyticsManagementClientConfiguration, self).__init__(**kwargs)
48+
49+
self.credential = credential
50+
self.subscription_id = subscription_id
51+
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
52+
kwargs.setdefault('sdk_moniker', 'mgmt-streamanalytics/{}'.format(VERSION))
53+
self._configure(**kwargs)
54+
55+
def _configure(
56+
self,
57+
**kwargs # type: Any
58+
):
59+
# type: (...) -> None
60+
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
61+
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
62+
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
63+
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
64+
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
65+
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
66+
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
67+
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
68+
self.authentication_policy = kwargs.get('authentication_policy')
69+
if self.credential and not self.authentication_policy:
70+
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"chosen_version": "",
3+
"total_api_version_list": ["2017-04-01-preview", "2020-03-01-preview"],
4+
"client": {
5+
"name": "StreamAnalyticsManagementClient",
6+
"filename": "_stream_analytics_management_client",
7+
"description": "Stream Analytics Client.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true
12+
},
13+
"global_parameters": {
14+
"sync_method": {
15+
"credential": {
16+
"method_signature": "credential, # type: \"TokenCredential\"",
17+
"description": "Credential needed for the client to connect to Azure.",
18+
"docstring_type": "~azure.core.credentials.TokenCredential",
19+
"required": true
20+
},
21+
"subscription_id": {
22+
"method_signature": "subscription_id, # type: str",
23+
"description": "The ID of the target subscription.",
24+
"docstring_type": "str",
25+
"required": true
26+
}
27+
},
28+
"async_method": {
29+
"credential": {
30+
"method_signature": "credential, # type: \"AsyncTokenCredential\"",
31+
"description": "Credential needed for the client to connect to Azure.",
32+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
33+
"required": true
34+
},
35+
"subscription_id": {
36+
"method_signature": "subscription_id, # type: str",
37+
"description": "The ID of the target subscription.",
38+
"docstring_type": "str",
39+
"required": true
40+
}
41+
},
42+
"constant": {
43+
},
44+
"call": "credential, subscription_id"
45+
},
46+
"config": {
47+
"credential": true,
48+
"credential_scopes": ["https://management.azure.com/.default"],
49+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
50+
"credential_default_policy_type_has_async_version": true,
51+
"credential_key_header_name": null
52+
},
53+
"operation_groups": {
54+
"functions": "FunctionsOperations",
55+
"inputs": "InputsOperations",
56+
"outputs": "OutputsOperations",
57+
"streaming_jobs": "StreamingJobsOperations",
58+
"subscriptions": "SubscriptionsOperations",
59+
"transformations": "TransformationsOperations",
60+
"operations": "Operations",
61+
"clusters": "ClustersOperations",
62+
"private_endpoints": "PrivateEndpointsOperations"
63+
},
64+
"operation_mixins": {
65+
},
66+
"sync_imports": "None",
67+
"async_imports": "None"
68+
}
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
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 license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from typing import TYPE_CHECKING
10+
11+
from azure.mgmt.core import ARMPipelineClient
12+
from msrest import Deserializer, Serializer
13+
14+
if TYPE_CHECKING:
15+
# pylint: disable=unused-import,ungrouped-imports
16+
from typing import Any, Optional
17+
18+
from azure.core.credentials import TokenCredential
19+
20+
from ._configuration import StreamAnalyticsManagementClientConfiguration
21+
from .operations import FunctionsOperations
22+
from .operations import InputsOperations
23+
from .operations import OutputsOperations
24+
from .operations import StreamingJobsOperations
25+
from .operations import SubscriptionsOperations
26+
from .operations import TransformationsOperations
27+
from .operations import Operations
28+
from .operations import ClustersOperations
29+
from .operations import PrivateEndpointsOperations
30+
from . import models
31+
32+
33+
class StreamAnalyticsManagementClient(object):
34+
"""Stream Analytics Client.
35+
36+
:ivar functions: FunctionsOperations operations
37+
:vartype functions: stream_analytics_management_client.operations.FunctionsOperations
38+
:ivar inputs: InputsOperations operations
39+
:vartype inputs: stream_analytics_management_client.operations.InputsOperations
40+
:ivar outputs: OutputsOperations operations
41+
:vartype outputs: stream_analytics_management_client.operations.OutputsOperations
42+
:ivar streaming_jobs: StreamingJobsOperations operations
43+
:vartype streaming_jobs: stream_analytics_management_client.operations.StreamingJobsOperations
44+
:ivar subscriptions: SubscriptionsOperations operations
45+
:vartype subscriptions: stream_analytics_management_client.operations.SubscriptionsOperations
46+
:ivar transformations: TransformationsOperations operations
47+
:vartype transformations: stream_analytics_management_client.operations.TransformationsOperations
48+
:ivar operations: Operations operations
49+
:vartype operations: stream_analytics_management_client.operations.Operations
50+
:ivar clusters: ClustersOperations operations
51+
:vartype clusters: stream_analytics_management_client.operations.ClustersOperations
52+
:ivar private_endpoints: PrivateEndpointsOperations operations
53+
:vartype private_endpoints: stream_analytics_management_client.operations.PrivateEndpointsOperations
54+
:param credential: Credential needed for the client to connect to Azure.
55+
:type credential: ~azure.core.credentials.TokenCredential
56+
:param subscription_id: The ID of the target subscription.
57+
:type subscription_id: str
58+
:param str base_url: Service URL
59+
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
60+
"""
61+
62+
def __init__(
63+
self,
64+
credential, # type: "TokenCredential"
65+
subscription_id, # type: str
66+
base_url=None, # type: Optional[str]
67+
**kwargs # type: Any
68+
):
69+
# type: (...) -> None
70+
if not base_url:
71+
base_url = 'https://management.azure.com'
72+
self._config = StreamAnalyticsManagementClientConfiguration(credential, subscription_id, **kwargs)
73+
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
74+
75+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
76+
self._serialize = Serializer(client_models)
77+
self._serialize.client_side_validation = False
78+
self._deserialize = Deserializer(client_models)
79+
80+
self.functions = FunctionsOperations(
81+
self._client, self._config, self._serialize, self._deserialize)
82+
self.inputs = InputsOperations(
83+
self._client, self._config, self._serialize, self._deserialize)
84+
self.outputs = OutputsOperations(
85+
self._client, self._config, self._serialize, self._deserialize)
86+
self.streaming_jobs = StreamingJobsOperations(
87+
self._client, self._config, self._serialize, self._deserialize)
88+
self.subscriptions = SubscriptionsOperations(
89+
self._client, self._config, self._serialize, self._deserialize)
90+
self.transformations = TransformationsOperations(
91+
self._client, self._config, self._serialize, self._deserialize)
92+
self.operations = Operations(
93+
self._client, self._config, self._serialize, self._deserialize)
94+
self.clusters = ClustersOperations(
95+
self._client, self._config, self._serialize, self._deserialize)
96+
self.private_endpoints = PrivateEndpointsOperations(
97+
self._client, self._config, self._serialize, self._deserialize)
98+
99+
def close(self):
100+
# type: () -> None
101+
self._client.close()
102+
103+
def __enter__(self):
104+
# type: () -> StreamAnalyticsManagementClient
105+
self._client.__enter__()
106+
return self
107+
108+
def __exit__(self, *exc_details):
109+
# type: (Any) -> None
110+
self._client.__exit__(*exc_details)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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 license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
VERSION = "1.0.0rc1"
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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 license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from ._stream_analytics_management_client import StreamAnalyticsManagementClient
10+
__all__ = ['StreamAnalyticsManagementClient']
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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 license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from typing import Any, TYPE_CHECKING
10+
11+
from azure.core.configuration import Configuration
12+
from azure.core.pipeline import policies
13+
from azure.mgmt.core.policies import ARMHttpLoggingPolicy
14+
15+
from .._version import VERSION
16+
17+
if TYPE_CHECKING:
18+
# pylint: disable=unused-import,ungrouped-imports
19+
from azure.core.credentials_async import AsyncTokenCredential
20+
21+
22+
class StreamAnalyticsManagementClientConfiguration(Configuration):
23+
"""Configuration for StreamAnalyticsManagementClient.
24+
25+
Note that all parameters used to create this instance are saved as instance
26+
attributes.
27+
28+
:param credential: Credential needed for the client to connect to Azure.
29+
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
30+
:param subscription_id: The ID of the target subscription.
31+
:type subscription_id: str
32+
"""
33+
34+
def __init__(
35+
self,
36+
credential: "AsyncTokenCredential",
37+
subscription_id: str,
38+
**kwargs: Any
39+
) -> None:
40+
if credential is None:
41+
raise ValueError("Parameter 'credential' must not be None.")
42+
if subscription_id is None:
43+
raise ValueError("Parameter 'subscription_id' must not be None.")
44+
super(StreamAnalyticsManagementClientConfiguration, self).__init__(**kwargs)
45+
46+
self.credential = credential
47+
self.subscription_id = subscription_id
48+
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
49+
kwargs.setdefault('sdk_moniker', 'mgmt-streamanalytics/{}'.format(VERSION))
50+
self._configure(**kwargs)
51+
52+
def _configure(
53+
self,
54+
**kwargs: Any
55+
) -> None:
56+
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
57+
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
58+
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
59+
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
60+
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
61+
self.retry_policy = kwargs.get('retry_policy') or policies.AsyncRetryPolicy(**kwargs)
62+
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
63+
self.redirect_policy = kwargs.get('redirect_policy') or policies.AsyncRedirectPolicy(**kwargs)
64+
self.authentication_policy = kwargs.get('authentication_policy')
65+
if self.credential and not self.authentication_policy:
66+
self.authentication_policy = policies.AsyncBearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)

0 commit comments

Comments
 (0)