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
11
12
12
from azure .core .rest import HttpRequest , HttpResponse
13
13
from azure .mgmt .core import ARMPipelineClient
14
- from msrest import Deserializer , Serializer
15
14
16
15
from . import models
17
16
from ._configuration import ContainerAppsAPIClientConfiguration
18
- from .operations import CertificatesOperations , ContainerAppsAuthConfigsOperations , ContainerAppsOperations , ContainerAppsRevisionReplicasOperations , ContainerAppsRevisionsOperations , ContainerAppsSourceControlsOperations , DaprComponentsOperations , ManagedEnvironmentsOperations , ManagedEnvironmentsStoragesOperations , Operations
17
+ from ._serialization import Deserializer , Serializer
18
+ from .operations import (
19
+ BillingMetersOperations ,
20
+ CertificatesOperations ,
21
+ ConnectedEnvironmentsCertificatesOperations ,
22
+ ConnectedEnvironmentsDaprComponentsOperations ,
23
+ ConnectedEnvironmentsOperations ,
24
+ ConnectedEnvironmentsStoragesOperations ,
25
+ ContainerAppsAuthConfigsOperations ,
26
+ ContainerAppsDiagnosticsOperations ,
27
+ ContainerAppsOperations ,
28
+ ContainerAppsRevisionReplicasOperations ,
29
+ ContainerAppsRevisionsOperations ,
30
+ ContainerAppsSourceControlsOperations ,
31
+ DaprComponentsOperations ,
32
+ ManagedEnvironmentDiagnosticsOperations ,
33
+ ManagedEnvironmentsDiagnosticsOperations ,
34
+ ManagedEnvironmentsOperations ,
35
+ ManagedEnvironmentsStoragesOperations ,
36
+ NamespacesOperations ,
37
+ Operations ,
38
+ )
19
39
20
40
if TYPE_CHECKING :
21
41
# pylint: disable=unused-import,ungrouped-imports
22
42
from azure .core .credentials import TokenCredential
23
43
24
- class ContainerAppsAPIClient :
44
+
45
+ class ContainerAppsAPIClient : # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
25
46
"""ContainerAppsAPIClient.
26
47
48
+ :ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
49
+ :vartype container_apps_auth_configs:
50
+ azure.mgmt.app.operations.ContainerAppsAuthConfigsOperations
27
51
:ivar container_apps: ContainerAppsOperations operations
28
- :vartype container_apps: container_apps_api_client .operations.ContainerAppsOperations
52
+ :vartype container_apps: azure.mgmt.app .operations.ContainerAppsOperations
29
53
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
30
- :vartype container_apps_revisions:
31
- container_apps_api_client.operations.ContainerAppsRevisionsOperations
54
+ :vartype container_apps_revisions: azure.mgmt.app.operations.ContainerAppsRevisionsOperations
32
55
:ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations
33
56
:vartype container_apps_revision_replicas:
34
- container_apps_api_client.operations.ContainerAppsRevisionReplicasOperations
57
+ azure.mgmt.app.operations.ContainerAppsRevisionReplicasOperations
58
+ :ivar dapr_components: DaprComponentsOperations operations
59
+ :vartype dapr_components: azure.mgmt.app.operations.DaprComponentsOperations
60
+ :ivar container_apps_diagnostics: ContainerAppsDiagnosticsOperations operations
61
+ :vartype container_apps_diagnostics:
62
+ azure.mgmt.app.operations.ContainerAppsDiagnosticsOperations
63
+ :ivar managed_environment_diagnostics: ManagedEnvironmentDiagnosticsOperations operations
64
+ :vartype managed_environment_diagnostics:
65
+ azure.mgmt.app.operations.ManagedEnvironmentDiagnosticsOperations
66
+ :ivar managed_environments_diagnostics: ManagedEnvironmentsDiagnosticsOperations operations
67
+ :vartype managed_environments_diagnostics:
68
+ azure.mgmt.app.operations.ManagedEnvironmentsDiagnosticsOperations
69
+ :ivar operations: Operations operations
70
+ :vartype operations: azure.mgmt.app.operations.Operations
35
71
:ivar managed_environments: ManagedEnvironmentsOperations operations
36
- :vartype managed_environments:
37
- container_apps_api_client.operations.ManagedEnvironmentsOperations
72
+ :vartype managed_environments: azure.mgmt.app.operations.ManagedEnvironmentsOperations
38
73
: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
74
+ :vartype certificates: azure.mgmt.app.operations.CertificatesOperations
75
+ :ivar namespaces: NamespacesOperations operations
76
+ :vartype namespaces: azure.mgmt.app.operations.NamespacesOperations
50
77
:ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations
51
78
:vartype managed_environments_storages:
52
- container_apps_api_client.operations.ManagedEnvironmentsStoragesOperations
53
- :param credential: Credential needed for the client to connect to Azure.
79
+ azure.mgmt.app.operations.ManagedEnvironmentsStoragesOperations
80
+ :ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
81
+ :vartype container_apps_source_controls:
82
+ azure.mgmt.app.operations.ContainerAppsSourceControlsOperations
83
+ :ivar connected_environments: ConnectedEnvironmentsOperations operations
84
+ :vartype connected_environments: azure.mgmt.app.operations.ConnectedEnvironmentsOperations
85
+ :ivar connected_environments_certificates: ConnectedEnvironmentsCertificatesOperations
86
+ operations
87
+ :vartype connected_environments_certificates:
88
+ azure.mgmt.app.operations.ConnectedEnvironmentsCertificatesOperations
89
+ :ivar connected_environments_dapr_components: ConnectedEnvironmentsDaprComponentsOperations
90
+ operations
91
+ :vartype connected_environments_dapr_components:
92
+ azure.mgmt.app.operations.ConnectedEnvironmentsDaprComponentsOperations
93
+ :ivar connected_environments_storages: ConnectedEnvironmentsStoragesOperations operations
94
+ :vartype connected_environments_storages:
95
+ azure.mgmt.app.operations.ConnectedEnvironmentsStoragesOperations
96
+ :ivar billing_meters: BillingMetersOperations operations
97
+ :vartype billing_meters: azure.mgmt.app.operations.BillingMetersOperations
98
+ :param credential: Credential needed for the client to connect to Azure. Required.
54
99
:type credential: ~azure.core.credentials.TokenCredential
55
- :param subscription_id: The ID of the target subscription.
100
+ :param subscription_id: The ID of the target subscription. Required.
56
101
:type subscription_id: str
57
- :param base_url: Service URL. Default value is ' https://management.azure.com' .
102
+ :param base_url: Service URL. Default value is " https://management.azure.com" .
58
103
:type base_url: str
104
+ :keyword api_version: Api Version. Default value is "2022-06-01-preview". Note that overriding
105
+ this default value may result in unsupported behavior.
106
+ :paramtype api_version: str
59
107
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
60
108
Retry-After header is present.
61
109
"""
@@ -67,30 +115,62 @@ def __init__(
67
115
base_url : str = "https://management.azure.com" ,
68
116
** kwargs : Any
69
117
) -> None :
70
- self ._config = ContainerAppsAPIClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
118
+ self ._config = ContainerAppsAPIClientConfiguration (
119
+ credential = credential , subscription_id = subscription_id , ** kwargs
120
+ )
71
121
self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
72
122
73
123
client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
74
124
self ._serialize = Serializer (client_models )
75
125
self ._deserialize = Deserializer (client_models )
76
126
self ._serialize .client_side_validation = False
127
+ self .container_apps_auth_configs = ContainerAppsAuthConfigsOperations (
128
+ self ._client , self ._config , self ._serialize , self ._deserialize
129
+ )
77
130
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 )
131
+ self .container_apps_revisions = ContainerAppsRevisionsOperations (
132
+ self ._client , self ._config , self ._serialize , self ._deserialize
133
+ )
134
+ self .container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations (
135
+ self ._client , self ._config , self ._serialize , self ._deserialize
136
+ )
84
137
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 )
87
-
88
-
89
- def _send_request (
90
- self ,
91
- request , # type: HttpRequest
92
- ** kwargs : Any
93
- ) -> HttpResponse :
138
+ self .container_apps_diagnostics = ContainerAppsDiagnosticsOperations (
139
+ self ._client , self ._config , self ._serialize , self ._deserialize
140
+ )
141
+ self .managed_environment_diagnostics = ManagedEnvironmentDiagnosticsOperations (
142
+ self ._client , self ._config , self ._serialize , self ._deserialize
143
+ )
144
+ self .managed_environments_diagnostics = ManagedEnvironmentsDiagnosticsOperations (
145
+ self ._client , self ._config , self ._serialize , self ._deserialize
146
+ )
147
+ self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
148
+ self .managed_environments = ManagedEnvironmentsOperations (
149
+ self ._client , self ._config , self ._serialize , self ._deserialize
150
+ )
151
+ self .certificates = CertificatesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
152
+ self .namespaces = NamespacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
153
+ self .managed_environments_storages = ManagedEnvironmentsStoragesOperations (
154
+ self ._client , self ._config , self ._serialize , self ._deserialize
155
+ )
156
+ self .container_apps_source_controls = ContainerAppsSourceControlsOperations (
157
+ self ._client , self ._config , self ._serialize , self ._deserialize
158
+ )
159
+ self .connected_environments = ConnectedEnvironmentsOperations (
160
+ self ._client , self ._config , self ._serialize , self ._deserialize
161
+ )
162
+ self .connected_environments_certificates = ConnectedEnvironmentsCertificatesOperations (
163
+ self ._client , self ._config , self ._serialize , self ._deserialize
164
+ )
165
+ self .connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations (
166
+ self ._client , self ._config , self ._serialize , self ._deserialize
167
+ )
168
+ self .connected_environments_storages = ConnectedEnvironmentsStoragesOperations (
169
+ self ._client , self ._config , self ._serialize , self ._deserialize
170
+ )
171
+ self .billing_meters = BillingMetersOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
172
+
173
+ def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
94
174
"""Runs the network request through the client's chained policies.
95
175
96
176
>>> from azure.core.rest import HttpRequest
@@ -99,7 +179,7 @@ def _send_request(
99
179
>>> response = client._send_request(request)
100
180
<HttpResponse: 200 OK>
101
181
102
- For more information on this code flow, see https://aka.ms/azsdk/python/protocol/quickstart
182
+ For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/ python/send_request
103
183
104
184
:param request: The network request you want to make. Required.
105
185
:type request: ~azure.core.rest.HttpRequest
0 commit comments