Skip to content

Commit 18c909e

Browse files
author
SDKAuto
committed
CodeGen from PR 15240 in Azure/azure-rest-api-specs
Merge c18704714f4fb937cf97b2fcc23dd546e1ae8fc7 into 3893616
1 parent c9c5f52 commit 18c909e

39 files changed

+5114
-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.6+.
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-powerbiprivatelinks%2FREADME.png)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"autorest": "3.4.5",
3+
"use": [
4+
"@autorest/[email protected]",
5+
"@autorest/[email protected]"
6+
],
7+
"commit": "6c95d50b78ce1d11114382f41ec4223fa38c2dd6",
8+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9+
"autorest_command": "autorest specification/powerbiprivatelinks/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
10+
"readme": "specification/powerbiprivatelinks/resource-manager/readme.md"
11+
}
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 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 ._private_link_services_for_power_bi_client import PrivateLinkServicesForPowerBIClient
10+
from ._version import VERSION
11+
12+
__version__ = VERSION
13+
__all__ = ['PrivateLinkServicesForPowerBIClient']
14+
15+
try:
16+
from ._patch import patch_sdk # type: ignore
17+
patch_sdk()
18+
except ImportError:
19+
pass
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
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 PrivateLinkServicesForPowerBIClientConfiguration(Configuration):
25+
"""Configuration for PrivateLinkServicesForPowerBIClient.
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 Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
33+
:type subscription_id: str
34+
:param resource_group_name: The name of the resource group.
35+
:type resource_group_name: str
36+
:param azure_resource_name: The name of the Azure resource.
37+
:type azure_resource_name: str
38+
:param private_endpoint_name: The name of the private endpoint.
39+
:type private_endpoint_name: str
40+
:param operation_id: The id of Azure async operation.
41+
:type operation_id: str
42+
"""
43+
44+
def __init__(
45+
self,
46+
credential, # type: "TokenCredential"
47+
subscription_id, # type: str
48+
resource_group_name, # type: str
49+
azure_resource_name, # type: str
50+
private_endpoint_name, # type: str
51+
operation_id, # type: str
52+
**kwargs # type: Any
53+
):
54+
# type: (...) -> None
55+
if credential is None:
56+
raise ValueError("Parameter 'credential' must not be None.")
57+
if subscription_id is None:
58+
raise ValueError("Parameter 'subscription_id' must not be None.")
59+
if resource_group_name is None:
60+
raise ValueError("Parameter 'resource_group_name' must not be None.")
61+
if azure_resource_name is None:
62+
raise ValueError("Parameter 'azure_resource_name' must not be None.")
63+
if private_endpoint_name is None:
64+
raise ValueError("Parameter 'private_endpoint_name' must not be None.")
65+
if operation_id is None:
66+
raise ValueError("Parameter 'operation_id' must not be None.")
67+
super(PrivateLinkServicesForPowerBIClientConfiguration, self).__init__(**kwargs)
68+
69+
self.credential = credential
70+
self.subscription_id = subscription_id
71+
self.resource_group_name = resource_group_name
72+
self.azure_resource_name = azure_resource_name
73+
self.private_endpoint_name = private_endpoint_name
74+
self.operation_id = operation_id
75+
self.api_version = "2020-06-01"
76+
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
77+
kwargs.setdefault('sdk_moniker', 'mgmt-powerbiprivatelinks/{}'.format(VERSION))
78+
self._configure(**kwargs)
79+
80+
def _configure(
81+
self,
82+
**kwargs # type: Any
83+
):
84+
# type: (...) -> None
85+
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
86+
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
87+
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
88+
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
89+
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
90+
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
91+
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
92+
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
93+
self.authentication_policy = kwargs.get('authentication_policy')
94+
if self.credential and not self.authentication_policy:
95+
self.authentication_policy = policies.BearerTokenCredentialPolicy(self.credential, *self.credential_scopes, **kwargs)
Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
{
2+
"chosen_version": "2020-06-01",
3+
"total_api_version_list": ["2020-06-01"],
4+
"client": {
5+
"name": "PrivateLinkServicesForPowerBIClient",
6+
"filename": "_private_link_services_for_power_bi_client",
7+
"description": "Client to manage Power BI Private Link Service resources and connection members.",
8+
"base_url": "\u0027https://management.azure.com\u0027",
9+
"custom_base_url": null,
10+
"azure_arm": true,
11+
"has_lro_operations": true,
12+
"client_side_validation": false,
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"PrivateLinkServicesForPowerBIClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"PrivateLinkServicesForPowerBIClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
15+
},
16+
"global_parameters": {
17+
"sync": {
18+
"credential": {
19+
"signature": "credential, # type: \"TokenCredential\"",
20+
"description": "Credential needed for the client to connect to Azure.",
21+
"docstring_type": "~azure.core.credentials.TokenCredential",
22+
"required": true
23+
},
24+
"subscription_id": {
25+
"signature": "subscription_id, # type: str",
26+
"description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).",
27+
"docstring_type": "str",
28+
"required": true
29+
},
30+
"resource_group_name": {
31+
"signature": "resource_group_name, # type: str",
32+
"description": "The name of the resource group.",
33+
"docstring_type": "str",
34+
"required": true
35+
},
36+
"azure_resource_name": {
37+
"signature": "azure_resource_name, # type: str",
38+
"description": "The name of the Azure resource.",
39+
"docstring_type": "str",
40+
"required": true
41+
},
42+
"private_endpoint_name": {
43+
"signature": "private_endpoint_name, # type: str",
44+
"description": "The name of the private endpoint.",
45+
"docstring_type": "str",
46+
"required": true
47+
},
48+
"operation_id": {
49+
"signature": "operation_id, # type: str",
50+
"description": "The id of Azure async operation.",
51+
"docstring_type": "str",
52+
"required": true
53+
}
54+
},
55+
"async": {
56+
"credential": {
57+
"signature": "credential: \"AsyncTokenCredential\",",
58+
"description": "Credential needed for the client to connect to Azure.",
59+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
60+
"required": true
61+
},
62+
"subscription_id": {
63+
"signature": "subscription_id: str,",
64+
"description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).",
65+
"docstring_type": "str",
66+
"required": true
67+
},
68+
"resource_group_name": {
69+
"signature": "resource_group_name: str,",
70+
"description": "The name of the resource group.",
71+
"docstring_type": "str",
72+
"required": true
73+
},
74+
"azure_resource_name": {
75+
"signature": "azure_resource_name: str,",
76+
"description": "The name of the Azure resource.",
77+
"docstring_type": "str",
78+
"required": true
79+
},
80+
"private_endpoint_name": {
81+
"signature": "private_endpoint_name: str,",
82+
"description": "The name of the private endpoint.",
83+
"docstring_type": "str",
84+
"required": true
85+
},
86+
"operation_id": {
87+
"signature": "operation_id: str,",
88+
"description": "The id of Azure async operation.",
89+
"docstring_type": "str",
90+
"required": true
91+
}
92+
},
93+
"constant": {
94+
},
95+
"call": "credential, subscription_id, resource_group_name, azure_resource_name, private_endpoint_name, operation_id",
96+
"service_client_specific": {
97+
"sync": {
98+
"api_version": {
99+
"signature": "api_version=None, # type: Optional[str]",
100+
"description": "API version to use if no profile is provided, or if missing in profile.",
101+
"docstring_type": "str",
102+
"required": false
103+
},
104+
"base_url": {
105+
"signature": "base_url=None, # type: Optional[str]",
106+
"description": "Service URL",
107+
"docstring_type": "str",
108+
"required": false
109+
},
110+
"profile": {
111+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
112+
"description": "A profile definition, from KnownProfiles to dict.",
113+
"docstring_type": "azure.profiles.KnownProfiles",
114+
"required": false
115+
}
116+
},
117+
"async": {
118+
"api_version": {
119+
"signature": "api_version: Optional[str] = None,",
120+
"description": "API version to use if no profile is provided, or if missing in profile.",
121+
"docstring_type": "str",
122+
"required": false
123+
},
124+
"base_url": {
125+
"signature": "base_url: Optional[str] = None,",
126+
"description": "Service URL",
127+
"docstring_type": "str",
128+
"required": false
129+
},
130+
"profile": {
131+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
132+
"description": "A profile definition, from KnownProfiles to dict.",
133+
"docstring_type": "azure.profiles.KnownProfiles",
134+
"required": false
135+
}
136+
}
137+
}
138+
},
139+
"config": {
140+
"credential": true,
141+
"credential_scopes": ["https://management.azure.com/.default"],
142+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
143+
"credential_default_policy_type_has_async_version": true,
144+
"credential_key_header_name": null,
145+
"sync_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\"._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}}",
146+
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
147+
},
148+
"operation_groups": {
149+
"operations": "Operations",
150+
"private_link_services_for_power_bi": "PrivateLinkServicesForPowerBIOperations",
151+
"private_link_service_resource_operation_results": "PrivateLinkServiceResourceOperationResultsOperations",
152+
"private_link_services": "PrivateLinkServicesOperations",
153+
"power_bi_resources": "PowerBIResourcesOperations",
154+
"private_link_resources": "PrivateLinkResourcesOperations",
155+
"private_endpoint_connections": "PrivateEndpointConnectionsOperations"
156+
}
157+
}

0 commit comments

Comments
 (0)