Skip to content

Commit 143a254

Browse files
author
SDKAuto
committed
CodeGen from PR 18839 in Azure/azure-rest-api-specs
Merge 50cf648483e63f04051e81ce61bac1b12446e49b into 50ed15bd61ac79f2368d769df0c207a00b9e099f
1 parent ff3c02a commit 143a254

33 files changed

+2814
-1411
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.7.2",
33
"use": [
4-
"@autorest/python@5.12.0",
4+
"@autorest/python@5.13.0",
55
"@autorest/[email protected]"
66
],
7-
"commit": "4ac6be1b22f88bfbb6ca3e294e73538bcac90b49",
7+
"commit": "b5ad4542adefb1c4485be0456f4f67f866139286",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/app/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/python@5.12.0 --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/python@5.13.0 --use=@autorest/[email protected] --version=3.7.2",
1010
"readme": "specification/app/resource-manager/readme.md"
1111
}

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from azure.core.credentials import TokenCredential
2020

2121

22-
class ContainerAppsAPIClientConfiguration(Configuration):
22+
class ContainerAppsAPIClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for ContainerAppsAPIClient.
2424
2525
Note that all parameters used to create this instance are saved as instance
@@ -29,6 +29,9 @@ class ContainerAppsAPIClientConfiguration(Configuration):
2929
:type credential: ~azure.core.credentials.TokenCredential
3030
:param subscription_id: The ID of the target subscription.
3131
:type subscription_id: str
32+
:keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this
33+
default value may result in unsupported behavior.
34+
:paramtype api_version: str
3235
"""
3336

3437
def __init__(
@@ -38,14 +41,16 @@ def __init__(
3841
**kwargs: Any
3942
) -> None:
4043
super(ContainerAppsAPIClientConfiguration, self).__init__(**kwargs)
44+
api_version = kwargs.pop('api_version', "2022-03-01") # type: str
45+
4146
if credential is None:
4247
raise ValueError("Parameter 'credential' must not be None.")
4348
if subscription_id is None:
4449
raise ValueError("Parameter 'subscription_id' must not be None.")
4550

4651
self.credential = credential
4752
self.subscription_id = subscription_id
48-
self.api_version = "2022-01-01-preview"
53+
self.api_version = api_version
4954
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5055
kwargs.setdefault('sdk_moniker', 'mgmt-app/{}'.format(VERSION))
5156
self._configure(**kwargs)

sdk/app/azure-mgmt-app/azure/mgmt/app/_container_apps_api_client.py

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,55 +7,59 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, Optional, TYPE_CHECKING
10+
from typing import Any, TYPE_CHECKING
11+
12+
from msrest import Deserializer, Serializer
1113

1214
from azure.core.rest import HttpRequest, HttpResponse
1315
from azure.mgmt.core import ARMPipelineClient
14-
from msrest import Deserializer, Serializer
1516

1617
from . import models
1718
from ._configuration import ContainerAppsAPIClientConfiguration
18-
from .operations import CertificatesOperations, ContainerAppsAuthConfigsOperations, ContainerAppsOperations, ContainerAppsRevisionReplicasOperations, ContainerAppsRevisionsOperations, ContainerAppsSourceControlsOperations, DaprComponentsOperations, ManagedEnvironmentsOperations, ManagedEnvironmentsStoragesOperations, Operations
19+
from .operations import CertificatesOperations, ContainerAppsAuthConfigsOperations, ContainerAppsOperations, ContainerAppsRevisionReplicasOperations, ContainerAppsRevisionsOperations, ContainerAppsSourceControlsOperations, DaprComponentsOperations, ManagedEnvironmentsOperations, ManagedEnvironmentsStoragesOperations, NamespacesOperations, Operations
1920

2021
if TYPE_CHECKING:
2122
# pylint: disable=unused-import,ungrouped-imports
2223
from azure.core.credentials import TokenCredential
2324

24-
class ContainerAppsAPIClient:
25+
class ContainerAppsAPIClient: # pylint: disable=too-many-instance-attributes
2526
"""ContainerAppsAPIClient.
2627
28+
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
29+
:vartype container_apps_auth_configs:
30+
azure.mgmt.app.operations.ContainerAppsAuthConfigsOperations
2731
:ivar container_apps: ContainerAppsOperations operations
28-
:vartype container_apps: container_apps_api_client.operations.ContainerAppsOperations
32+
:vartype container_apps: azure.mgmt.app.operations.ContainerAppsOperations
2933
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
30-
:vartype container_apps_revisions:
31-
container_apps_api_client.operations.ContainerAppsRevisionsOperations
34+
:vartype container_apps_revisions: azure.mgmt.app.operations.ContainerAppsRevisionsOperations
3235
:ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations
3336
:vartype container_apps_revision_replicas:
34-
container_apps_api_client.operations.ContainerAppsRevisionReplicasOperations
37+
azure.mgmt.app.operations.ContainerAppsRevisionReplicasOperations
38+
:ivar dapr_components: DaprComponentsOperations operations
39+
:vartype dapr_components: azure.mgmt.app.operations.DaprComponentsOperations
40+
:ivar operations: Operations operations
41+
:vartype operations: azure.mgmt.app.operations.Operations
3542
:ivar managed_environments: ManagedEnvironmentsOperations operations
36-
:vartype managed_environments:
37-
container_apps_api_client.operations.ManagedEnvironmentsOperations
43+
:vartype managed_environments: azure.mgmt.app.operations.ManagedEnvironmentsOperations
3844
:ivar certificates: CertificatesOperations operations
39-
:vartype certificates: container_apps_api_client.operations.CertificatesOperations
40-
:ivar operations: Operations operations
41-
:vartype operations: container_apps_api_client.operations.Operations
42-
:ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
43-
:vartype container_apps_source_controls:
44-
container_apps_api_client.operations.ContainerAppsSourceControlsOperations
45-
:ivar dapr_components: DaprComponentsOperations operations
46-
:vartype dapr_components: container_apps_api_client.operations.DaprComponentsOperations
47-
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
48-
:vartype container_apps_auth_configs:
49-
container_apps_api_client.operations.ContainerAppsAuthConfigsOperations
45+
:vartype certificates: azure.mgmt.app.operations.CertificatesOperations
46+
:ivar namespaces: NamespacesOperations operations
47+
:vartype namespaces: azure.mgmt.app.operations.NamespacesOperations
5048
:ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations
5149
:vartype managed_environments_storages:
52-
container_apps_api_client.operations.ManagedEnvironmentsStoragesOperations
50+
azure.mgmt.app.operations.ManagedEnvironmentsStoragesOperations
51+
:ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
52+
:vartype container_apps_source_controls:
53+
azure.mgmt.app.operations.ContainerAppsSourceControlsOperations
5354
:param credential: Credential needed for the client to connect to Azure.
5455
:type credential: ~azure.core.credentials.TokenCredential
5556
:param subscription_id: The ID of the target subscription.
5657
:type subscription_id: str
57-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
58+
:param base_url: Service URL. Default value is "https://management.azure.com".
5859
:type base_url: str
60+
:keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this
61+
default value may result in unsupported behavior.
62+
:paramtype api_version: str
5963
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6064
Retry-After header is present.
6165
"""
@@ -74,21 +78,22 @@ def __init__(
7478
self._serialize = Serializer(client_models)
7579
self._deserialize = Deserializer(client_models)
7680
self._serialize.client_side_validation = False
81+
self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations(self._client, self._config, self._serialize, self._deserialize)
7782
self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize)
7883
self.container_apps_revisions = ContainerAppsRevisionsOperations(self._client, self._config, self._serialize, self._deserialize)
7984
self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations(self._client, self._config, self._serialize, self._deserialize)
85+
self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
86+
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
8087
self.managed_environments = ManagedEnvironmentsOperations(self._client, self._config, self._serialize, self._deserialize)
8188
self.certificates = CertificatesOperations(self._client, self._config, self._serialize, self._deserialize)
82-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
83-
self.container_apps_source_controls = ContainerAppsSourceControlsOperations(self._client, self._config, self._serialize, self._deserialize)
84-
self.dapr_components = DaprComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
85-
self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations(self._client, self._config, self._serialize, self._deserialize)
89+
self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize)
8690
self.managed_environments_storages = ManagedEnvironmentsStoragesOperations(self._client, self._config, self._serialize, self._deserialize)
91+
self.container_apps_source_controls = ContainerAppsSourceControlsOperations(self._client, self._config, self._serialize, self._deserialize)
8792

8893

8994
def _send_request(
9095
self,
91-
request, # type: HttpRequest
96+
request: HttpRequest,
9297
**kwargs: Any
9398
) -> HttpResponse:
9499
"""Runs the network request through the client's chained policies.

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2022-01-01-preview",
3-
"total_api_version_list": ["2022-01-01-preview"],
2+
"chosen_version": "2022-03-01",
3+
"total_api_version_list": ["2022-03-01"],
44
"client": {
55
"name": "ContainerAppsAPIClient",
66
"filename": "_container_apps_api_client",
@@ -10,8 +10,8 @@
1010
"azure_arm": true,
1111
"has_lro_operations": true,
1212
"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\": [\"ContainerAppsAPIClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14-
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"msrest\": [\"Deserializer\", \"Serializer\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ContainerAppsAPIClientConfiguration\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
13+
"sync_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"ARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ContainerAppsAPIClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}",
14+
"async_imports": "{\"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"], \"azure.core.credentials\": [\"TokenCredential\"]}}, \"regular\": {\"azurecore\": {\"azure.profiles\": [\"KnownProfiles\", \"ProfileDefinition\"], \"azure.profiles.multiapiclient\": [\"MultiApiClientMixin\"], \"azure.mgmt.core\": [\"AsyncARMPipelineClient\"]}, \"local\": {\"._configuration\": [\"ContainerAppsAPIClientConfiguration\"]}, \"thirdparty\": {\"msrest\": [\"Deserializer\", \"Serializer\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\", \"Optional\"]}}}"
1515
},
1616
"global_parameters": {
1717
"sync": {
@@ -97,15 +97,16 @@
9797
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
9898
},
9999
"operation_groups": {
100+
"container_apps_auth_configs": "ContainerAppsAuthConfigsOperations",
100101
"container_apps": "ContainerAppsOperations",
101102
"container_apps_revisions": "ContainerAppsRevisionsOperations",
102103
"container_apps_revision_replicas": "ContainerAppsRevisionReplicasOperations",
104+
"dapr_components": "DaprComponentsOperations",
105+
"operations": "Operations",
103106
"managed_environments": "ManagedEnvironmentsOperations",
104107
"certificates": "CertificatesOperations",
105-
"operations": "Operations",
106-
"container_apps_source_controls": "ContainerAppsSourceControlsOperations",
107-
"dapr_components": "DaprComponentsOperations",
108-
"container_apps_auth_configs": "ContainerAppsAuthConfigsOperations",
109-
"managed_environments_storages": "ManagedEnvironmentsStoragesOperations"
108+
"namespaces": "NamespacesOperations",
109+
"managed_environments_storages": "ManagedEnvironmentsStoragesOperations",
110+
"container_apps_source_controls": "ContainerAppsSourceControlsOperations"
110111
}
111112
}

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from azure.core.credentials_async import AsyncTokenCredential
2020

2121

22-
class ContainerAppsAPIClientConfiguration(Configuration):
22+
class ContainerAppsAPIClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for ContainerAppsAPIClient.
2424
2525
Note that all parameters used to create this instance are saved as instance
@@ -29,6 +29,9 @@ class ContainerAppsAPIClientConfiguration(Configuration):
2929
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3030
:param subscription_id: The ID of the target subscription.
3131
:type subscription_id: str
32+
:keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this
33+
default value may result in unsupported behavior.
34+
:paramtype api_version: str
3235
"""
3336

3437
def __init__(
@@ -38,14 +41,16 @@ def __init__(
3841
**kwargs: Any
3942
) -> None:
4043
super(ContainerAppsAPIClientConfiguration, self).__init__(**kwargs)
44+
api_version = kwargs.pop('api_version', "2022-03-01") # type: str
45+
4146
if credential is None:
4247
raise ValueError("Parameter 'credential' must not be None.")
4348
if subscription_id is None:
4449
raise ValueError("Parameter 'subscription_id' must not be None.")
4550

4651
self.credential = credential
4752
self.subscription_id = subscription_id
48-
self.api_version = "2022-01-01-preview"
53+
self.api_version = api_version
4954
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5055
kwargs.setdefault('sdk_moniker', 'mgmt-app/{}'.format(VERSION))
5156
self._configure(**kwargs)

0 commit comments

Comments
 (0)