Skip to content

Commit d8de03c

Browse files
author
SDKAuto
committed
CodeGen from PR 16181 in Azure/azure-rest-api-specs
Merge e22738da02c088fdd09316b15f8218f7c905b408 into d277432
1 parent d1c3641 commit d8de03c

File tree

64 files changed

+1614
-704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1614
-704
lines changed

sdk/logic/azure-mgmt-logic/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
include _meta.json
12
include *.md
23
include azure/__init__.py
34
include azure/mgmt/__init__.py

sdk/logic/azure-mgmt-logic/_meta.json

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": "594ad1f6133bafae68ded3617129b4c893c19766",
8+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9+
"autorest_command": "autorest specification/logic/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/logic/resource-manager/readme.md"
11+
}

sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_logic_management_client.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from typing import Any, Optional
1717

1818
from azure.core.credentials import TokenCredential
19+
from azure.core.pipeline.transport import HttpRequest, HttpResponse
1920

2021
from ._configuration import LogicManagementClientConfiguration
2122
from .operations import WorkflowsOperations
@@ -186,6 +187,24 @@ def __init__(
186187
self.operations = Operations(
187188
self._client, self._config, self._serialize, self._deserialize)
188189

190+
def _send_request(self, http_request, **kwargs):
191+
# type: (HttpRequest, Any) -> HttpResponse
192+
"""Runs the network request through the client's chained policies.
193+
194+
:param http_request: The network request you want to make. Required.
195+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
196+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
197+
:return: The response of your network call. Does not do error handling on your response.
198+
:rtype: ~azure.core.pipeline.transport.HttpResponse
199+
"""
200+
path_format_arguments = {
201+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
202+
}
203+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
204+
stream = kwargs.pop("stream", True)
205+
pipeline_response = self._client._pipeline.run(http_request, stream=stream, **kwargs)
206+
return pipeline_response.http_response
207+
189208
def close(self):
190209
# type: () -> None
191210
self._client.close()
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
{
2+
"chosen_version": "2019-05-01",
3+
"total_api_version_list": ["2019-05-01"],
4+
"client": {
5+
"name": "LogicManagementClient",
6+
"filename": "_logic_management_client",
7+
"description": "REST API for Azure Logic Apps.",
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\": [\"LogicManagementClientConfiguration\"]}}, \"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\": [\"LogicManagementClientConfiguration\"]}}, \"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 subscription id.",
27+
"docstring_type": "str",
28+
"required": true
29+
}
30+
},
31+
"async": {
32+
"credential": {
33+
"signature": "credential: \"AsyncTokenCredential\",",
34+
"description": "Credential needed for the client to connect to Azure.",
35+
"docstring_type": "~azure.core.credentials_async.AsyncTokenCredential",
36+
"required": true
37+
},
38+
"subscription_id": {
39+
"signature": "subscription_id: str,",
40+
"description": "The subscription id.",
41+
"docstring_type": "str",
42+
"required": true
43+
}
44+
},
45+
"constant": {
46+
},
47+
"call": "credential, subscription_id",
48+
"service_client_specific": {
49+
"sync": {
50+
"api_version": {
51+
"signature": "api_version=None, # type: Optional[str]",
52+
"description": "API version to use if no profile is provided, or if missing in profile.",
53+
"docstring_type": "str",
54+
"required": false
55+
},
56+
"base_url": {
57+
"signature": "base_url=None, # type: Optional[str]",
58+
"description": "Service URL",
59+
"docstring_type": "str",
60+
"required": false
61+
},
62+
"profile": {
63+
"signature": "profile=KnownProfiles.default, # type: KnownProfiles",
64+
"description": "A profile definition, from KnownProfiles to dict.",
65+
"docstring_type": "azure.profiles.KnownProfiles",
66+
"required": false
67+
}
68+
},
69+
"async": {
70+
"api_version": {
71+
"signature": "api_version: Optional[str] = None,",
72+
"description": "API version to use if no profile is provided, or if missing in profile.",
73+
"docstring_type": "str",
74+
"required": false
75+
},
76+
"base_url": {
77+
"signature": "base_url: Optional[str] = None,",
78+
"description": "Service URL",
79+
"docstring_type": "str",
80+
"required": false
81+
},
82+
"profile": {
83+
"signature": "profile: KnownProfiles = KnownProfiles.default,",
84+
"description": "A profile definition, from KnownProfiles to dict.",
85+
"docstring_type": "azure.profiles.KnownProfiles",
86+
"required": false
87+
}
88+
}
89+
}
90+
},
91+
"config": {
92+
"credential": true,
93+
"credential_scopes": ["https://management.azure.com/.default"],
94+
"credential_default_policy_type": "BearerTokenCredentialPolicy",
95+
"credential_default_policy_type_has_async_version": true,
96+
"credential_key_header_name": null,
97+
"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\"]}}}",
98+
"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\"]}}}"
99+
},
100+
"operation_groups": {
101+
"workflows": "WorkflowsOperations",
102+
"workflow_versions": "WorkflowVersionsOperations",
103+
"workflow_triggers": "WorkflowTriggersOperations",
104+
"workflow_version_triggers": "WorkflowVersionTriggersOperations",
105+
"workflow_trigger_histories": "WorkflowTriggerHistoriesOperations",
106+
"workflow_runs": "WorkflowRunsOperations",
107+
"workflow_run_actions": "WorkflowRunActionsOperations",
108+
"workflow_run_action_repetitions": "WorkflowRunActionRepetitionsOperations",
109+
"workflow_run_action_repetitions_request_histories": "WorkflowRunActionRepetitionsRequestHistoriesOperations",
110+
"workflow_run_action_request_histories": "WorkflowRunActionRequestHistoriesOperations",
111+
"workflow_run_action_scope_repetitions": "WorkflowRunActionScopeRepetitionsOperations",
112+
"workflow_run_operations": "WorkflowRunOperationsOperations",
113+
"integration_accounts": "IntegrationAccountsOperations",
114+
"integration_account_assemblies": "IntegrationAccountAssembliesOperations",
115+
"integration_account_batch_configurations": "IntegrationAccountBatchConfigurationsOperations",
116+
"integration_account_schemas": "IntegrationAccountSchemasOperations",
117+
"integration_account_maps": "IntegrationAccountMapsOperations",
118+
"integration_account_partners": "IntegrationAccountPartnersOperations",
119+
"integration_account_agreements": "IntegrationAccountAgreementsOperations",
120+
"integration_account_certificates": "IntegrationAccountCertificatesOperations",
121+
"integration_account_sessions": "IntegrationAccountSessionsOperations",
122+
"integration_service_environments": "IntegrationServiceEnvironmentsOperations",
123+
"integration_service_environment_skus": "IntegrationServiceEnvironmentSkusOperations",
124+
"integration_service_environment_network_health": "IntegrationServiceEnvironmentNetworkHealthOperations",
125+
"integration_service_environment_managed_apis": "IntegrationServiceEnvironmentManagedApisOperations",
126+
"integration_service_environment_managed_api_operations": "IntegrationServiceEnvironmentManagedApiOperationsOperations",
127+
"operations": "Operations"
128+
}
129+
}

sdk/logic/azure-mgmt-logic/azure/mgmt/logic/_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 = "9.0.0"
9+
VERSION = "1.0.0b1"

sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/_logic_management_client.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from typing import Any, Optional, TYPE_CHECKING
1010

11+
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
1112
from azure.mgmt.core import AsyncARMPipelineClient
1213
from msrest import Deserializer, Serializer
1314

@@ -183,6 +184,23 @@ def __init__(
183184
self.operations = Operations(
184185
self._client, self._config, self._serialize, self._deserialize)
185186

187+
async def _send_request(self, http_request: HttpRequest, **kwargs: Any) -> AsyncHttpResponse:
188+
"""Runs the network request through the client's chained policies.
189+
190+
:param http_request: The network request you want to make. Required.
191+
:type http_request: ~azure.core.pipeline.transport.HttpRequest
192+
:keyword bool stream: Whether the response payload will be streamed. Defaults to True.
193+
:return: The response of your network call. Does not do error handling on your response.
194+
:rtype: ~azure.core.pipeline.transport.AsyncHttpResponse
195+
"""
196+
path_format_arguments = {
197+
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
198+
}
199+
http_request.url = self._client.format_url(http_request.url, **path_format_arguments)
200+
stream = kwargs.pop("stream", True)
201+
pipeline_response = await self._client._pipeline.run(http_request, stream=stream, **kwargs)
202+
return pipeline_response.http_response
203+
186204
async def close(self) -> None:
187205
await self._client.close()
188206

sdk/logic/azure-mgmt-logic/azure/mgmt/logic/aio/operations/_integration_account_agreements_operations.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def list(
4747
integration_account_name: str,
4848
top: Optional[int] = None,
4949
filter: Optional[str] = None,
50-
**kwargs
50+
**kwargs: Any
5151
) -> AsyncIterable["_models.IntegrationAccountAgreementListResult"]:
5252
"""Gets a list of integration account agreements.
5353
@@ -116,7 +116,7 @@ async def get_next(next_link=None):
116116
response = pipeline_response.http_response
117117

118118
if response.status_code not in [200]:
119-
error = self._deserialize(_models.ErrorResponse, response)
119+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
120120
map_error(status_code=response.status_code, response=response, error_map=error_map)
121121
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
122122

@@ -132,7 +132,7 @@ async def get(
132132
resource_group_name: str,
133133
integration_account_name: str,
134134
agreement_name: str,
135-
**kwargs
135+
**kwargs: Any
136136
) -> "_models.IntegrationAccountAgreement":
137137
"""Gets an integration account agreement.
138138
@@ -179,7 +179,7 @@ async def get(
179179

180180
if response.status_code not in [200]:
181181
map_error(status_code=response.status_code, response=response, error_map=error_map)
182-
error = self._deserialize(_models.ErrorResponse, response)
182+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
183183
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
184184

185185
deserialized = self._deserialize('IntegrationAccountAgreement', pipeline_response)
@@ -196,7 +196,7 @@ async def create_or_update(
196196
integration_account_name: str,
197197
agreement_name: str,
198198
agreement: "_models.IntegrationAccountAgreement",
199-
**kwargs
199+
**kwargs: Any
200200
) -> "_models.IntegrationAccountAgreement":
201201
"""Creates or updates an integration account agreement.
202202
@@ -250,7 +250,7 @@ async def create_or_update(
250250

251251
if response.status_code not in [200, 201]:
252252
map_error(status_code=response.status_code, response=response, error_map=error_map)
253-
error = self._deserialize(_models.ErrorResponse, response)
253+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
254254
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
255255

256256
if response.status_code == 200:
@@ -270,7 +270,7 @@ async def delete(
270270
resource_group_name: str,
271271
integration_account_name: str,
272272
agreement_name: str,
273-
**kwargs
273+
**kwargs: Any
274274
) -> None:
275275
"""Deletes an integration account agreement.
276276
@@ -317,7 +317,7 @@ async def delete(
317317

318318
if response.status_code not in [200, 204]:
319319
map_error(status_code=response.status_code, response=response, error_map=error_map)
320-
error = self._deserialize(_models.ErrorResponse, response)
320+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
321321
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
322322

323323
if cls:
@@ -331,7 +331,7 @@ async def list_content_callback_url(
331331
integration_account_name: str,
332332
agreement_name: str,
333333
list_content_callback_url: "_models.GetCallbackUrlParameters",
334-
**kwargs
334+
**kwargs: Any
335335
) -> "_models.WorkflowTriggerCallbackUrl":
336336
"""Get the content callback url.
337337
@@ -385,7 +385,7 @@ async def list_content_callback_url(
385385

386386
if response.status_code not in [200]:
387387
map_error(status_code=response.status_code, response=response, error_map=error_map)
388-
error = self._deserialize(_models.ErrorResponse, response)
388+
error = self._deserialize.failsafe_deserialize(_models.ErrorResponse, response)
389389
raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
390390

391391
deserialized = self._deserialize('WorkflowTriggerCallbackUrl', pipeline_response)

0 commit comments

Comments
 (0)