7
7
# --------------------------------------------------------------------------
8
8
9
9
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
11
13
12
14
from azure .core .rest import HttpRequest , HttpResponse
13
15
from azure .mgmt .core import ARMPipelineClient
14
- from msrest import Deserializer , Serializer
15
16
16
17
from . import models
17
18
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
19
20
20
21
if TYPE_CHECKING :
21
22
# pylint: disable=unused-import,ungrouped-imports
22
23
from azure .core .credentials import TokenCredential
23
24
24
- class ContainerAppsAPIClient :
25
+ class ContainerAppsAPIClient : # pylint: disable=too-many-instance-attributes
25
26
"""ContainerAppsAPIClient.
26
27
28
+ :ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
29
+ :vartype container_apps_auth_configs:
30
+ azure.mgmt.app.operations.ContainerAppsAuthConfigsOperations
27
31
:ivar container_apps: ContainerAppsOperations operations
28
- :vartype container_apps: container_apps_api_client .operations.ContainerAppsOperations
32
+ :vartype container_apps: azure.mgmt.app .operations.ContainerAppsOperations
29
33
: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
32
35
:ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations
33
36
: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
35
51
: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
38
53
: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
50
57
:ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations
51
58
: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
53
76
:param credential: Credential needed for the client to connect to Azure.
54
77
:type credential: ~azure.core.credentials.TokenCredential
55
78
:param subscription_id: The ID of the target subscription.
56
79
: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" .
58
81
: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
59
85
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
60
86
Retry-After header is present.
61
87
"""
@@ -74,21 +100,65 @@ def __init__(
74
100
self ._serialize = Serializer (client_models )
75
101
self ._deserialize = Deserializer (client_models )
76
102
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
+ )
87
157
88
158
89
159
def _send_request (
90
160
self ,
91
- request , # type : HttpRequest
161
+ request : HttpRequest ,
92
162
** kwargs : Any
93
163
) -> HttpResponse :
94
164
"""Runs the network request through the client's chained policies.
0 commit comments