Skip to content

Commit b33ac46

Browse files
author
SDKAuto
committed
CodeGen from PR 19005 in Azure/azure-rest-api-specs
Merge 17b1af5ee0bd8edda698b74406bd216c3708f67d into e515b6251fdc21015282d2e84b85beec7c091763
1 parent eae4f8b commit b33ac46

21 files changed

+564
-564
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "30c98b21ed04e3b6c80debf1e99918b15132e352",
7+
"commit": "45d719fa4fa76aa63638f451f4c8cfa3bb53c0cb",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/app/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
9+
"autorest_command": "autorest specification/app/resource-manager/readme.md --multiapi --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
1010
"readme": "specification/app/resource-manager/readme.md"
1111
}

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_certificates_operations.py

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(self, client, config, serializer, deserializer) -> None:
4949
def list(
5050
self,
5151
resource_group_name: str,
52-
managed_environment_name: str,
52+
environment_name: str,
5353
**kwargs: Any
5454
) -> AsyncIterable["_models.CertificateCollection"]:
5555
"""Get the Certificates in a given managed environment.
@@ -58,8 +58,8 @@ def list(
5858
5959
:param resource_group_name: The name of the resource group. The name is case insensitive.
6060
:type resource_group_name: str
61-
:param managed_environment_name: Name of the Managed Environment.
62-
:type managed_environment_name: str
61+
:param environment_name: Name of the Managed Environment.
62+
:type environment_name: str
6363
:keyword callable cls: A custom type or function that will be passed the direct response
6464
:return: An iterator like instance of either CertificateCollection or the result of
6565
cls(response)
@@ -80,7 +80,7 @@ def prepare_request(next_link=None):
8080
request = build_list_request(
8181
subscription_id=self._config.subscription_id,
8282
resource_group_name=resource_group_name,
83-
managed_environment_name=managed_environment_name,
83+
environment_name=environment_name,
8484
api_version=api_version,
8585
template_url=self.list.metadata['url'],
8686
)
@@ -92,7 +92,7 @@ def prepare_request(next_link=None):
9292
request = build_list_request(
9393
subscription_id=self._config.subscription_id,
9494
resource_group_name=resource_group_name,
95-
managed_environment_name=managed_environment_name,
95+
environment_name=environment_name,
9696
api_version=api_version,
9797
template_url=next_link,
9898
)
@@ -129,14 +129,14 @@ async def get_next(next_link=None):
129129
return AsyncItemPaged(
130130
get_next, extract_data
131131
)
132-
list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates"} # type: ignore
132+
list.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates"} # type: ignore
133133

134134
@distributed_trace_async
135135
async def get(
136136
self,
137137
resource_group_name: str,
138-
managed_environment_name: str,
139-
name: str,
138+
environment_name: str,
139+
certificate_name: str,
140140
**kwargs: Any
141141
) -> "_models.Certificate":
142142
"""Get the specified Certificate.
@@ -145,10 +145,10 @@ async def get(
145145
146146
:param resource_group_name: The name of the resource group. The name is case insensitive.
147147
:type resource_group_name: str
148-
:param managed_environment_name: Name of the Managed Environment.
149-
:type managed_environment_name: str
150-
:param name: Name of the Certificate.
151-
:type name: str
148+
:param environment_name: Name of the Managed Environment.
149+
:type environment_name: str
150+
:param certificate_name: Name of the Certificate.
151+
:type certificate_name: str
152152
:keyword callable cls: A custom type or function that will be passed the direct response
153153
:return: Certificate, or the result of cls(response)
154154
:rtype: ~azure.mgmt.appcontainers.models.Certificate
@@ -166,8 +166,8 @@ async def get(
166166
request = build_get_request(
167167
subscription_id=self._config.subscription_id,
168168
resource_group_name=resource_group_name,
169-
managed_environment_name=managed_environment_name,
170-
name=name,
169+
environment_name=environment_name,
170+
certificate_name=certificate_name,
171171
api_version=api_version,
172172
template_url=self.get.metadata['url'],
173173
)
@@ -193,15 +193,15 @@ async def get(
193193

194194
return deserialized
195195

196-
get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}"} # type: ignore
196+
get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}"} # type: ignore
197197

198198

199199
@distributed_trace_async
200200
async def create_or_update(
201201
self,
202202
resource_group_name: str,
203-
managed_environment_name: str,
204-
name: str,
203+
environment_name: str,
204+
certificate_name: str,
205205
certificate_envelope: Optional["_models.Certificate"] = None,
206206
**kwargs: Any
207207
) -> "_models.Certificate":
@@ -211,10 +211,10 @@ async def create_or_update(
211211
212212
:param resource_group_name: The name of the resource group. The name is case insensitive.
213213
:type resource_group_name: str
214-
:param managed_environment_name: Name of the Managed Environment.
215-
:type managed_environment_name: str
216-
:param name: Name of the Certificate.
217-
:type name: str
214+
:param environment_name: Name of the Managed Environment.
215+
:type environment_name: str
216+
:param certificate_name: Name of the Certificate.
217+
:type certificate_name: str
218218
:param certificate_envelope: Certificate to be created or updated. Default value is None.
219219
:type certificate_envelope: ~azure.mgmt.appcontainers.models.Certificate
220220
:keyword callable cls: A custom type or function that will be passed the direct response
@@ -239,8 +239,8 @@ async def create_or_update(
239239
request = build_create_or_update_request(
240240
subscription_id=self._config.subscription_id,
241241
resource_group_name=resource_group_name,
242-
managed_environment_name=managed_environment_name,
243-
name=name,
242+
environment_name=environment_name,
243+
certificate_name=certificate_name,
244244
api_version=api_version,
245245
content_type=content_type,
246246
json=_json,
@@ -268,15 +268,15 @@ async def create_or_update(
268268

269269
return deserialized
270270

271-
create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}"} # type: ignore
271+
create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}"} # type: ignore
272272

273273

274274
@distributed_trace_async
275275
async def delete( # pylint: disable=inconsistent-return-statements
276276
self,
277277
resource_group_name: str,
278-
managed_environment_name: str,
279-
name: str,
278+
environment_name: str,
279+
certificate_name: str,
280280
**kwargs: Any
281281
) -> None:
282282
"""Deletes the specified Certificate.
@@ -285,10 +285,10 @@ async def delete( # pylint: disable=inconsistent-return-statements
285285
286286
:param resource_group_name: The name of the resource group. The name is case insensitive.
287287
:type resource_group_name: str
288-
:param managed_environment_name: Name of the Managed Environment.
289-
:type managed_environment_name: str
290-
:param name: Name of the Certificate.
291-
:type name: str
288+
:param environment_name: Name of the Managed Environment.
289+
:type environment_name: str
290+
:param certificate_name: Name of the Certificate.
291+
:type certificate_name: str
292292
:keyword callable cls: A custom type or function that will be passed the direct response
293293
:return: None, or the result of cls(response)
294294
:rtype: None
@@ -306,8 +306,8 @@ async def delete( # pylint: disable=inconsistent-return-statements
306306
request = build_delete_request(
307307
subscription_id=self._config.subscription_id,
308308
resource_group_name=resource_group_name,
309-
managed_environment_name=managed_environment_name,
310-
name=name,
309+
environment_name=environment_name,
310+
certificate_name=certificate_name,
311311
api_version=api_version,
312312
template_url=self.delete.metadata['url'],
313313
)
@@ -329,15 +329,15 @@ async def delete( # pylint: disable=inconsistent-return-statements
329329
if cls:
330330
return cls(pipeline_response, None, {})
331331

332-
delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}"} # type: ignore
332+
delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}"} # type: ignore
333333

334334

335335
@distributed_trace_async
336336
async def update(
337337
self,
338338
resource_group_name: str,
339-
managed_environment_name: str,
340-
name: str,
339+
environment_name: str,
340+
certificate_name: str,
341341
certificate_envelope: "_models.CertificatePatch",
342342
**kwargs: Any
343343
) -> "_models.Certificate":
@@ -347,10 +347,10 @@ async def update(
347347
348348
:param resource_group_name: The name of the resource group. The name is case insensitive.
349349
:type resource_group_name: str
350-
:param managed_environment_name: Name of the Managed Environment.
351-
:type managed_environment_name: str
352-
:param name: Name of the Certificate.
353-
:type name: str
350+
:param environment_name: Name of the Managed Environment.
351+
:type environment_name: str
352+
:param certificate_name: Name of the Certificate.
353+
:type certificate_name: str
354354
:param certificate_envelope: Properties of a certificate that need to be updated.
355355
:type certificate_envelope: ~azure.mgmt.appcontainers.models.CertificatePatch
356356
:keyword callable cls: A custom type or function that will be passed the direct response
@@ -372,8 +372,8 @@ async def update(
372372
request = build_update_request(
373373
subscription_id=self._config.subscription_id,
374374
resource_group_name=resource_group_name,
375-
managed_environment_name=managed_environment_name,
376-
name=name,
375+
environment_name=environment_name,
376+
certificate_name=certificate_name,
377377
api_version=api_version,
378378
content_type=content_type,
379379
json=_json,
@@ -401,5 +401,5 @@ async def update(
401401

402402
return deserialized
403403

404-
update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{managedEnvironmentName}/certificates/{name}"} # type: ignore
404+
update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}"} # type: ignore
405405

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/operations/_container_apps_auth_configs_operations.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ async def get(
136136
self,
137137
resource_group_name: str,
138138
container_app_name: str,
139-
name: str,
139+
auth_config_name: str,
140140
**kwargs: Any
141141
) -> "_models.AuthConfig":
142142
"""Get a AuthConfig of a Container App.
@@ -147,8 +147,8 @@ async def get(
147147
:type resource_group_name: str
148148
:param container_app_name: Name of the Container App.
149149
:type container_app_name: str
150-
:param name: Name of the Container App AuthConfig.
151-
:type name: str
150+
:param auth_config_name: Name of the Container App AuthConfig.
151+
:type auth_config_name: str
152152
:keyword callable cls: A custom type or function that will be passed the direct response
153153
:return: AuthConfig, or the result of cls(response)
154154
:rtype: ~azure.mgmt.appcontainers.models.AuthConfig
@@ -167,7 +167,7 @@ async def get(
167167
subscription_id=self._config.subscription_id,
168168
resource_group_name=resource_group_name,
169169
container_app_name=container_app_name,
170-
name=name,
170+
auth_config_name=auth_config_name,
171171
api_version=api_version,
172172
template_url=self.get.metadata['url'],
173173
)
@@ -193,15 +193,15 @@ async def get(
193193

194194
return deserialized
195195

196-
get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{name}"} # type: ignore
196+
get.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}"} # type: ignore
197197

198198

199199
@distributed_trace_async
200200
async def create_or_update(
201201
self,
202202
resource_group_name: str,
203203
container_app_name: str,
204-
name: str,
204+
auth_config_name: str,
205205
auth_config_envelope: "_models.AuthConfig",
206206
**kwargs: Any
207207
) -> "_models.AuthConfig":
@@ -213,8 +213,8 @@ async def create_or_update(
213213
:type resource_group_name: str
214214
:param container_app_name: Name of the Container App.
215215
:type container_app_name: str
216-
:param name: Name of the Container App AuthConfig.
217-
:type name: str
216+
:param auth_config_name: Name of the Container App AuthConfig.
217+
:type auth_config_name: str
218218
:param auth_config_envelope: Properties used to create a Container App AuthConfig.
219219
:type auth_config_envelope: ~azure.mgmt.appcontainers.models.AuthConfig
220220
:keyword callable cls: A custom type or function that will be passed the direct response
@@ -237,7 +237,7 @@ async def create_or_update(
237237
subscription_id=self._config.subscription_id,
238238
resource_group_name=resource_group_name,
239239
container_app_name=container_app_name,
240-
name=name,
240+
auth_config_name=auth_config_name,
241241
api_version=api_version,
242242
content_type=content_type,
243243
json=_json,
@@ -265,15 +265,15 @@ async def create_or_update(
265265

266266
return deserialized
267267

268-
create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{name}"} # type: ignore
268+
create_or_update.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}"} # type: ignore
269269

270270

271271
@distributed_trace_async
272272
async def delete( # pylint: disable=inconsistent-return-statements
273273
self,
274274
resource_group_name: str,
275275
container_app_name: str,
276-
name: str,
276+
auth_config_name: str,
277277
**kwargs: Any
278278
) -> None:
279279
"""Delete a Container App AuthConfig.
@@ -284,8 +284,8 @@ async def delete( # pylint: disable=inconsistent-return-statements
284284
:type resource_group_name: str
285285
:param container_app_name: Name of the Container App.
286286
:type container_app_name: str
287-
:param name: Name of the Container App AuthConfig.
288-
:type name: str
287+
:param auth_config_name: Name of the Container App AuthConfig.
288+
:type auth_config_name: str
289289
:keyword callable cls: A custom type or function that will be passed the direct response
290290
:return: None, or the result of cls(response)
291291
:rtype: None
@@ -304,7 +304,7 @@ async def delete( # pylint: disable=inconsistent-return-statements
304304
subscription_id=self._config.subscription_id,
305305
resource_group_name=resource_group_name,
306306
container_app_name=container_app_name,
307-
name=name,
307+
auth_config_name=auth_config_name,
308308
api_version=api_version,
309309
template_url=self.delete.metadata['url'],
310310
)
@@ -326,5 +326,5 @@ async def delete( # pylint: disable=inconsistent-return-statements
326326
if cls:
327327
return cls(pipeline_response, None, {})
328328

329-
delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{name}"} # type: ignore
329+
delete.metadata = {'url': "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/authConfigs/{authConfigName}"} # type: ignore
330330

0 commit comments

Comments
 (0)