Skip to content

Commit a2ee947

Browse files
author
SDKAuto
committed
CodeGen from PR 19886 in Azure/azure-rest-api-specs
Merge 4352da4d8770dd53ab0773f46587174073bcb623 into bb43ed18a40da93033fa480a8bcdb6705de6a545
1 parent 50e751b commit a2ee947

File tree

53 files changed

+12708
-3104
lines changed

Some content is hidden

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

53 files changed

+12708
-3104
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.16.0",
55
"@autorest/[email protected]"
66
],
7-
"commit": "4ac6be1b22f88bfbb6ca3e294e73538bcac90b49",
7+
"commit": "26f3c77cda76b2f70407b221fd8d37937064edf2",
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 --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.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/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
from ._version import VERSION
1111

1212
__version__ = VERSION
13+
14+
try:
15+
from ._patch import __all__ as _patch_all
16+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
17+
except ImportError:
18+
_patch_all = []
19+
from ._patch import patch_sdk as _patch_sdk
1320
__all__ = ['ContainerAppsAPIClient']
21+
__all__.extend([p for p in _patch_all if p not in __all__])
1422

15-
# `._patch.py` is used for handwritten extensions to the generated code
16-
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
17-
from ._patch import patch_sdk
18-
patch_sdk()
23+
_patch_sdk()

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-06-01-preview". Note that overriding
33+
this 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-06-01-preview") # 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: 104 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -7,55 +7,81 @@
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, ConnectedEnvironmentsCertificatesOperations, ConnectedEnvironmentsDaprComponentsOperations, ConnectedEnvironmentsOperations, ConnectedEnvironmentsStoragesOperations, ContainerAppsAuthConfigsOperations, ContainerAppsDiagnosticsOperations, ContainerAppsOperations, ContainerAppsRevisionReplicasOperations, ContainerAppsRevisionsOperations, ContainerAppsSourceControlsOperations, DaprComponentsOperations, ManagedEnvironmentDiagnosticsOperations, ManagedEnvironmentsDiagnosticsOperations, 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 container_apps_diagnostics: ContainerAppsDiagnosticsOperations operations
41+
:vartype container_apps_diagnostics:
42+
azure.mgmt.app.operations.ContainerAppsDiagnosticsOperations
43+
:ivar managed_environment_diagnostics: ManagedEnvironmentDiagnosticsOperations operations
44+
:vartype managed_environment_diagnostics:
45+
azure.mgmt.app.operations.ManagedEnvironmentDiagnosticsOperations
46+
:ivar managed_environments_diagnostics: ManagedEnvironmentsDiagnosticsOperations operations
47+
:vartype managed_environments_diagnostics:
48+
azure.mgmt.app.operations.ManagedEnvironmentsDiagnosticsOperations
49+
:ivar operations: Operations operations
50+
:vartype operations: azure.mgmt.app.operations.Operations
3551
:ivar managed_environments: ManagedEnvironmentsOperations operations
36-
:vartype managed_environments:
37-
container_apps_api_client.operations.ManagedEnvironmentsOperations
52+
:vartype managed_environments: azure.mgmt.app.operations.ManagedEnvironmentsOperations
3853
: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
54+
:vartype certificates: azure.mgmt.app.operations.CertificatesOperations
55+
:ivar namespaces: NamespacesOperations operations
56+
:vartype namespaces: azure.mgmt.app.operations.NamespacesOperations
5057
:ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations
5158
:vartype managed_environments_storages:
52-
container_apps_api_client.operations.ManagedEnvironmentsStoragesOperations
59+
azure.mgmt.app.operations.ManagedEnvironmentsStoragesOperations
60+
:ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
61+
:vartype container_apps_source_controls:
62+
azure.mgmt.app.operations.ContainerAppsSourceControlsOperations
63+
:ivar connected_environments: ConnectedEnvironmentsOperations operations
64+
:vartype connected_environments: azure.mgmt.app.operations.ConnectedEnvironmentsOperations
65+
:ivar connected_environments_certificates: ConnectedEnvironmentsCertificatesOperations
66+
operations
67+
:vartype connected_environments_certificates:
68+
azure.mgmt.app.operations.ConnectedEnvironmentsCertificatesOperations
69+
:ivar connected_environments_dapr_components: ConnectedEnvironmentsDaprComponentsOperations
70+
operations
71+
:vartype connected_environments_dapr_components:
72+
azure.mgmt.app.operations.ConnectedEnvironmentsDaprComponentsOperations
73+
:ivar connected_environments_storages: ConnectedEnvironmentsStoragesOperations operations
74+
:vartype connected_environments_storages:
75+
azure.mgmt.app.operations.ConnectedEnvironmentsStoragesOperations
5376
:param credential: Credential needed for the client to connect to Azure.
5477
:type credential: ~azure.core.credentials.TokenCredential
5578
:param subscription_id: The ID of the target subscription.
5679
:type subscription_id: str
57-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
80+
:param base_url: Service URL. Default value is "https://management.azure.com".
5881
:type base_url: str
82+
:keyword api_version: Api Version. Default value is "2022-06-01-preview". Note that overriding
83+
this default value may result in unsupported behavior.
84+
:paramtype api_version: str
5985
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
6086
Retry-After header is present.
6187
"""
@@ -74,21 +100,65 @@ def __init__(
74100
self._serialize = Serializer(client_models)
75101
self._deserialize = Deserializer(client_models)
76102
self._serialize.client_side_validation = False
77-
self.container_apps = ContainerAppsOperations(self._client, self._config, self._serialize, self._deserialize)
78-
self.container_apps_revisions = ContainerAppsRevisionsOperations(self._client, self._config, self._serialize, self._deserialize)
79-
self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations(self._client, self._config, self._serialize, self._deserialize)
80-
self.managed_environments = ManagedEnvironmentsOperations(self._client, self._config, self._serialize, self._deserialize)
81-
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)
86-
self.managed_environments_storages = ManagedEnvironmentsStoragesOperations(self._client, self._config, self._serialize, self._deserialize)
103+
self.container_apps_auth_configs = ContainerAppsAuthConfigsOperations(
104+
self._client, self._config, self._serialize, self._deserialize
105+
)
106+
self.container_apps = ContainerAppsOperations(
107+
self._client, self._config, self._serialize, self._deserialize
108+
)
109+
self.container_apps_revisions = ContainerAppsRevisionsOperations(
110+
self._client, self._config, self._serialize, self._deserialize
111+
)
112+
self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations(
113+
self._client, self._config, self._serialize, self._deserialize
114+
)
115+
self.dapr_components = DaprComponentsOperations(
116+
self._client, self._config, self._serialize, self._deserialize
117+
)
118+
self.container_apps_diagnostics = ContainerAppsDiagnosticsOperations(
119+
self._client, self._config, self._serialize, self._deserialize
120+
)
121+
self.managed_environment_diagnostics = ManagedEnvironmentDiagnosticsOperations(
122+
self._client, self._config, self._serialize, self._deserialize
123+
)
124+
self.managed_environments_diagnostics = ManagedEnvironmentsDiagnosticsOperations(
125+
self._client, self._config, self._serialize, self._deserialize
126+
)
127+
self.operations = Operations(
128+
self._client, self._config, self._serialize, self._deserialize
129+
)
130+
self.managed_environments = ManagedEnvironmentsOperations(
131+
self._client, self._config, self._serialize, self._deserialize
132+
)
133+
self.certificates = CertificatesOperations(
134+
self._client, self._config, self._serialize, self._deserialize
135+
)
136+
self.namespaces = NamespacesOperations(
137+
self._client, self._config, self._serialize, self._deserialize
138+
)
139+
self.managed_environments_storages = ManagedEnvironmentsStoragesOperations(
140+
self._client, self._config, self._serialize, self._deserialize
141+
)
142+
self.container_apps_source_controls = ContainerAppsSourceControlsOperations(
143+
self._client, self._config, self._serialize, self._deserialize
144+
)
145+
self.connected_environments = ConnectedEnvironmentsOperations(
146+
self._client, self._config, self._serialize, self._deserialize
147+
)
148+
self.connected_environments_certificates = ConnectedEnvironmentsCertificatesOperations(
149+
self._client, self._config, self._serialize, self._deserialize
150+
)
151+
self.connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations(
152+
self._client, self._config, self._serialize, self._deserialize
153+
)
154+
self.connected_environments_storages = ConnectedEnvironmentsStoragesOperations(
155+
self._client, self._config, self._serialize, self._deserialize
156+
)
87157

88158

89159
def _send_request(
90160
self,
91-
request, # type: HttpRequest
161+
request: HttpRequest,
92162
**kwargs: Any
93163
) -> HttpResponse:
94164
"""Runs the network request through the client's chained policies.

0 commit comments

Comments
 (0)