Skip to content

Commit e96c9b9

Browse files
author
SDKAuto
committed
CodeGen from PR 15239 in Azure/azure-rest-api-specs
Merge 7c001c6819ff1f38b53a743c6b073f5c9ebeada4 into e7682aa
1 parent 95787ba commit e96c9b9

31 files changed

+1931
-71
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.4.2",
2+
"autorest": "3.4.5",
33
"use": [
4-
"@autorest/[email protected].0",
5-
"@autorest/[email protected].1"
4+
"@autorest/[email protected].4",
5+
"@autorest/[email protected].2"
66
],
7-
"commit": "e23a53d64f46db42df2886989a3436f7431168f4",
7+
"commit": "9c917c1eb2decf2b5fb03e48f32e1f77a3c7461b",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/botservice/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].0 --use=@autorest/[email protected].1 --version=3.4.2",
9+
"autorest_command": "autorest specification/botservice/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].4 --use=@autorest/[email protected].2 --version=3.4.5",
1010
"readme": "specification/botservice/resource-manager/readme.md"
1111
}

sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_azure_bot_service.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
from .operations import Operations
2626
from .operations import BotConnectionOperations
2727
from .operations import HostSettingsOperations
28+
from .operations import OperationResultsOperations
29+
from .operations import PrivateEndpointConnectionsOperations
30+
from .operations import PrivateLinkResourcesOperations
2831
from . import models
2932

3033

@@ -43,11 +46,18 @@ class AzureBotService(object):
4346
:vartype bot_connection: azure.mgmt.botservice.operations.BotConnectionOperations
4447
:ivar host_settings: HostSettingsOperations operations
4548
:vartype host_settings: azure.mgmt.botservice.operations.HostSettingsOperations
49+
:ivar operation_results: OperationResultsOperations operations
50+
:vartype operation_results: azure.mgmt.botservice.operations.OperationResultsOperations
51+
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
52+
:vartype private_endpoint_connections: azure.mgmt.botservice.operations.PrivateEndpointConnectionsOperations
53+
:ivar private_link_resources: PrivateLinkResourcesOperations operations
54+
:vartype private_link_resources: azure.mgmt.botservice.operations.PrivateLinkResourcesOperations
4655
:param credential: Credential needed for the client to connect to Azure.
4756
:type credential: ~azure.core.credentials.TokenCredential
4857
:param subscription_id: Azure Subscription ID.
4958
:type subscription_id: str
5059
:param str base_url: Service URL
60+
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
5161
"""
5262

5363
def __init__(
@@ -80,6 +90,12 @@ def __init__(
8090
self._client, self._config, self._serialize, self._deserialize)
8191
self.host_settings = HostSettingsOperations(
8292
self._client, self._config, self._serialize, self._deserialize)
93+
self.operation_results = OperationResultsOperations(
94+
self._client, self._config, self._serialize, self._deserialize)
95+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
96+
self._client, self._config, self._serialize, self._deserialize)
97+
self.private_link_resources = PrivateLinkResourcesOperations(
98+
self._client, self._config, self._serialize, self._deserialize)
8399

84100
def _send_request(self, http_request, **kwargs):
85101
# type: (HttpRequest, Any) -> HttpResponse

sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848

4949
self.credential = credential
5050
self.subscription_id = subscription_id
51-
self.api_version = "2021-03-01"
51+
self.api_version = "2021-05-01-preview"
5252
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5353
kwargs.setdefault('sdk_moniker', 'mgmt-botservice/{}'.format(VERSION))
5454
self._configure(**kwargs)

sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_metadata.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"chosen_version": "2021-03-01",
3-
"total_api_version_list": ["2021-03-01"],
2+
"chosen_version": "2021-05-01-preview",
3+
"total_api_version_list": ["2021-05-01-preview"],
44
"client": {
55
"name": "AzureBotService",
66
"filename": "_azure_bot_service",
77
"description": "Azure Bot Service is a platform for creating smart conversational agents.",
88
"base_url": "\u0027https://management.azure.com\u0027",
99
"custom_base_url": null,
1010
"azure_arm": true,
11-
"has_lro_operations": false,
11+
"has_lro_operations": true,
1212
"client_side_validation": false,
1313
"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\": [\"AzureBotServiceConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"HttpRequest\", \"HttpResponse\"]}}}",
1414
"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\": [\"AzureBotServiceConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}, \"azurecore\": {\"azure.core.pipeline.transport\": [\"AsyncHttpResponse\", \"HttpRequest\"]}}}"
@@ -103,6 +103,9 @@
103103
"direct_line": "DirectLineOperations",
104104
"operations": "Operations",
105105
"bot_connection": "BotConnectionOperations",
106-
"host_settings": "HostSettingsOperations"
106+
"host_settings": "HostSettingsOperations",
107+
"operation_results": "OperationResultsOperations",
108+
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
109+
"private_link_resources": "PrivateLinkResourcesOperations"
107110
}
108111
}

sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0"
9+
VERSION = "0.2.0"

sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/aio/_azure_bot_service.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
from .operations import Operations
2424
from .operations import BotConnectionOperations
2525
from .operations import HostSettingsOperations
26+
from .operations import OperationResultsOperations
27+
from .operations import PrivateEndpointConnectionsOperations
28+
from .operations import PrivateLinkResourcesOperations
2629
from .. import models
2730

2831

@@ -41,11 +44,18 @@ class AzureBotService(object):
4144
:vartype bot_connection: azure.mgmt.botservice.aio.operations.BotConnectionOperations
4245
:ivar host_settings: HostSettingsOperations operations
4346
:vartype host_settings: azure.mgmt.botservice.aio.operations.HostSettingsOperations
47+
:ivar operation_results: OperationResultsOperations operations
48+
:vartype operation_results: azure.mgmt.botservice.aio.operations.OperationResultsOperations
49+
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
50+
:vartype private_endpoint_connections: azure.mgmt.botservice.aio.operations.PrivateEndpointConnectionsOperations
51+
:ivar private_link_resources: PrivateLinkResourcesOperations operations
52+
:vartype private_link_resources: azure.mgmt.botservice.aio.operations.PrivateLinkResourcesOperations
4453
:param credential: Credential needed for the client to connect to Azure.
4554
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
4655
:param subscription_id: Azure Subscription ID.
4756
:type subscription_id: str
4857
:param str base_url: Service URL
58+
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
4959
"""
5060

5161
def __init__(
@@ -77,6 +87,12 @@ def __init__(
7787
self._client, self._config, self._serialize, self._deserialize)
7888
self.host_settings = HostSettingsOperations(
7989
self._client, self._config, self._serialize, self._deserialize)
90+
self.operation_results = OperationResultsOperations(
91+
self._client, self._config, self._serialize, self._deserialize)
92+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
93+
self._client, self._config, self._serialize, self._deserialize)
94+
self.private_link_resources = PrivateLinkResourcesOperations(
95+
self._client, self._config, self._serialize, self._deserialize)
8096

8197
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
8298
"""Runs the network request through the client's chained policies.

sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/aio/_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2021-03-01"
48+
self.api_version = "2021-05-01-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-botservice/{}'.format(VERSION))
5151
self._configure(**kwargs)

sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/aio/operations/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
from ._operations import Operations
1313
from ._bot_connection_operations import BotConnectionOperations
1414
from ._host_settings_operations import HostSettingsOperations
15+
from ._operation_results_operations import OperationResultsOperations
16+
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
17+
from ._private_link_resources_operations import PrivateLinkResourcesOperations
1518

1619
__all__ = [
1720
'BotsOperations',
@@ -20,4 +23,7 @@
2023
'Operations',
2124
'BotConnectionOperations',
2225
'HostSettingsOperations',
26+
'OperationResultsOperations',
27+
'PrivateEndpointConnectionsOperations',
28+
'PrivateLinkResourcesOperations',
2329
]

sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/aio/operations/_bot_connection_operations.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def list_service_providers(
5757
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
5858
}
5959
error_map.update(kwargs.pop('error_map', {}))
60-
api_version = "2021-03-01"
60+
api_version = "2021-05-01-preview"
6161
accept = "application/json"
6262

6363
# Construct URL
@@ -117,7 +117,7 @@ async def list_with_secrets(
117117
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
118118
}
119119
error_map.update(kwargs.pop('error_map', {}))
120-
api_version = "2021-03-01"
120+
api_version = "2021-05-01-preview"
121121
accept = "application/json"
122122

123123
# Construct URL
@@ -183,7 +183,7 @@ async def create(
183183
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
184184
}
185185
error_map.update(kwargs.pop('error_map', {}))
186-
api_version = "2021-03-01"
186+
api_version = "2021-05-01-preview"
187187
content_type = kwargs.pop("content_type", "application/json")
188188
accept = "application/json"
189189

@@ -258,7 +258,7 @@ async def update(
258258
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
259259
}
260260
error_map.update(kwargs.pop('error_map', {}))
261-
api_version = "2021-03-01"
261+
api_version = "2021-05-01-preview"
262262
content_type = kwargs.pop("content_type", "application/json")
263263
accept = "application/json"
264264

@@ -330,7 +330,7 @@ async def get(
330330
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
331331
}
332332
error_map.update(kwargs.pop('error_map', {}))
333-
api_version = "2021-03-01"
333+
api_version = "2021-05-01-preview"
334334
accept = "application/json"
335335

336336
# Construct URL
@@ -393,7 +393,7 @@ async def delete(
393393
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
394394
}
395395
error_map.update(kwargs.pop('error_map', {}))
396-
api_version = "2021-03-01"
396+
api_version = "2021-05-01-preview"
397397
accept = "application/json"
398398

399399
# Construct URL
@@ -450,7 +450,7 @@ def list_by_bot_service(
450450
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
451451
}
452452
error_map.update(kwargs.pop('error_map', {}))
453-
api_version = "2021-03-01"
453+
api_version = "2021-05-01-preview"
454454
accept = "application/json"
455455

456456
def prepare_request(next_link=None):

sdk/botservice/azure-mgmt-botservice/azure/mgmt/botservice/aio/operations/_bots_operations.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async def create(
6666
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
6767
}
6868
error_map.update(kwargs.pop('error_map', {}))
69-
api_version = "2021-03-01"
69+
api_version = "2021-05-01-preview"
7070
content_type = kwargs.pop("content_type", "application/json")
7171
accept = "application/json"
7272

@@ -154,7 +154,7 @@ async def update(
154154
error_map.update(kwargs.pop('error_map', {}))
155155

156156
_parameters = _models.Bot(location=location, tags=tags, sku=sku, kind=kind, etag=etag, properties=properties)
157-
api_version = "2021-03-01"
157+
api_version = "2021-05-01-preview"
158158
content_type = kwargs.pop("content_type", "application/json")
159159
accept = "application/json"
160160

@@ -222,7 +222,7 @@ async def delete(
222222
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
223223
}
224224
error_map.update(kwargs.pop('error_map', {}))
225-
api_version = "2021-03-01"
225+
api_version = "2021-05-01-preview"
226226
accept = "application/json"
227227

228228
# Construct URL
@@ -278,7 +278,7 @@ async def get(
278278
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
279279
}
280280
error_map.update(kwargs.pop('error_map', {}))
281-
api_version = "2021-03-01"
281+
api_version = "2021-05-01-preview"
282282
accept = "application/json"
283283

284284
# Construct URL
@@ -334,7 +334,7 @@ def list_by_resource_group(
334334
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
335335
}
336336
error_map.update(kwargs.pop('error_map', {}))
337-
api_version = "2021-03-01"
337+
api_version = "2021-05-01-preview"
338338
accept = "application/json"
339339

340340
def prepare_request(next_link=None):
@@ -402,7 +402,7 @@ def list(
402402
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
403403
}
404404
error_map.update(kwargs.pop('error_map', {}))
405-
api_version = "2021-03-01"
405+
api_version = "2021-05-01-preview"
406406
accept = "application/json"
407407

408408
def prepare_request(next_link=None):
@@ -473,7 +473,7 @@ async def get_check_name_availability(
473473
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
474474
}
475475
error_map.update(kwargs.pop('error_map', {}))
476-
api_version = "2021-03-01"
476+
api_version = "2021-05-01-preview"
477477
content_type = kwargs.pop("content_type", "application/json")
478478
accept = "application/json"
479479

0 commit comments

Comments
 (0)