12
12
from azure .core .rest import HttpRequest , HttpResponse
13
13
from azure .mgmt .core import ARMPipelineClient
14
14
15
- from . import models
15
+ from . import models as _models
16
16
from ._configuration import ContainerAppsAPIClientConfiguration
17
17
from ._serialization import Deserializer , Serializer
18
18
from .operations import (
@@ -49,6 +49,25 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
49
49
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
50
50
:vartype container_apps_auth_configs:
51
51
azure.mgmt.appcontainers.operations.ContainerAppsAuthConfigsOperations
52
+ :ivar available_workload_profiles: AvailableWorkloadProfilesOperations operations
53
+ :vartype available_workload_profiles:
54
+ azure.mgmt.appcontainers.operations.AvailableWorkloadProfilesOperations
55
+ :ivar billing_meters: BillingMetersOperations operations
56
+ :vartype billing_meters: azure.mgmt.appcontainers.operations.BillingMetersOperations
57
+ :ivar connected_environments: ConnectedEnvironmentsOperations operations
58
+ :vartype connected_environments:
59
+ azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations
60
+ :ivar connected_environments_certificates: ConnectedEnvironmentsCertificatesOperations
61
+ operations
62
+ :vartype connected_environments_certificates:
63
+ azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations
64
+ :ivar connected_environments_dapr_components: ConnectedEnvironmentsDaprComponentsOperations
65
+ operations
66
+ :vartype connected_environments_dapr_components:
67
+ azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations
68
+ :ivar connected_environments_storages: ConnectedEnvironmentsStoragesOperations operations
69
+ :vartype connected_environments_storages:
70
+ azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations
52
71
:ivar container_apps: ContainerAppsOperations operations
53
72
:vartype container_apps: azure.mgmt.appcontainers.operations.ContainerAppsOperations
54
73
:ivar container_apps_revisions: ContainerAppsRevisionsOperations operations
@@ -57,8 +76,6 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
57
76
:ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations
58
77
:vartype container_apps_revision_replicas:
59
78
azure.mgmt.appcontainers.operations.ContainerAppsRevisionReplicasOperations
60
- :ivar dapr_components: DaprComponentsOperations operations
61
- :vartype dapr_components: azure.mgmt.appcontainers.operations.DaprComponentsOperations
62
79
:ivar container_apps_diagnostics: ContainerAppsDiagnosticsOperations operations
63
80
:vartype container_apps_diagnostics:
64
81
azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations
@@ -77,39 +94,22 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
77
94
:vartype certificates: azure.mgmt.appcontainers.operations.CertificatesOperations
78
95
:ivar namespaces: NamespacesOperations operations
79
96
:vartype namespaces: azure.mgmt.appcontainers.operations.NamespacesOperations
97
+ :ivar dapr_components: DaprComponentsOperations operations
98
+ :vartype dapr_components: azure.mgmt.appcontainers.operations.DaprComponentsOperations
80
99
:ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations
81
100
:vartype managed_environments_storages:
82
101
azure.mgmt.appcontainers.operations.ManagedEnvironmentsStoragesOperations
83
102
:ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
84
103
:vartype container_apps_source_controls:
85
104
azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations
86
- :ivar connected_environments: ConnectedEnvironmentsOperations operations
87
- :vartype connected_environments:
88
- azure.mgmt.appcontainers.operations.ConnectedEnvironmentsOperations
89
- :ivar connected_environments_certificates: ConnectedEnvironmentsCertificatesOperations
90
- operations
91
- :vartype connected_environments_certificates:
92
- azure.mgmt.appcontainers.operations.ConnectedEnvironmentsCertificatesOperations
93
- :ivar connected_environments_dapr_components: ConnectedEnvironmentsDaprComponentsOperations
94
- operations
95
- :vartype connected_environments_dapr_components:
96
- azure.mgmt.appcontainers.operations.ConnectedEnvironmentsDaprComponentsOperations
97
- :ivar connected_environments_storages: ConnectedEnvironmentsStoragesOperations operations
98
- :vartype connected_environments_storages:
99
- azure.mgmt.appcontainers.operations.ConnectedEnvironmentsStoragesOperations
100
- :ivar available_workload_profiles: AvailableWorkloadProfilesOperations operations
101
- :vartype available_workload_profiles:
102
- azure.mgmt.appcontainers.operations.AvailableWorkloadProfilesOperations
103
- :ivar billing_meters: BillingMetersOperations operations
104
- :vartype billing_meters: azure.mgmt.appcontainers.operations.BillingMetersOperations
105
105
:param credential: Credential needed for the client to connect to Azure. Required.
106
106
:type credential: ~azure.core.credentials.TokenCredential
107
107
:param subscription_id: The ID of the target subscription. Required.
108
108
:type subscription_id: str
109
109
:param base_url: Service URL. Default value is "https://management.azure.com".
110
110
:type base_url: str
111
- :keyword api_version: Api Version. Default value is "2022-06 -01-preview ". Note that overriding
112
- this default value may result in unsupported behavior.
111
+ :keyword api_version: Api Version. Default value is "2022-10 -01". Note that overriding this
112
+ default value may result in unsupported behavior.
113
113
:paramtype api_version: str
114
114
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
115
115
Retry-After header is present.
@@ -127,21 +127,36 @@ def __init__(
127
127
)
128
128
self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
129
129
130
- client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
130
+ client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
131
131
self ._serialize = Serializer (client_models )
132
132
self ._deserialize = Deserializer (client_models )
133
133
self ._serialize .client_side_validation = False
134
134
self .container_apps_auth_configs = ContainerAppsAuthConfigsOperations (
135
135
self ._client , self ._config , self ._serialize , self ._deserialize
136
136
)
137
+ self .available_workload_profiles = AvailableWorkloadProfilesOperations (
138
+ self ._client , self ._config , self ._serialize , self ._deserialize
139
+ )
140
+ self .billing_meters = BillingMetersOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
141
+ self .connected_environments = ConnectedEnvironmentsOperations (
142
+ self ._client , self ._config , self ._serialize , self ._deserialize
143
+ )
144
+ self .connected_environments_certificates = ConnectedEnvironmentsCertificatesOperations (
145
+ self ._client , self ._config , self ._serialize , self ._deserialize
146
+ )
147
+ self .connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations (
148
+ self ._client , self ._config , self ._serialize , self ._deserialize
149
+ )
150
+ self .connected_environments_storages = ConnectedEnvironmentsStoragesOperations (
151
+ self ._client , self ._config , self ._serialize , self ._deserialize
152
+ )
137
153
self .container_apps = ContainerAppsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
138
154
self .container_apps_revisions = ContainerAppsRevisionsOperations (
139
155
self ._client , self ._config , self ._serialize , self ._deserialize
140
156
)
141
157
self .container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations (
142
158
self ._client , self ._config , self ._serialize , self ._deserialize
143
159
)
144
- self .dapr_components = DaprComponentsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
145
160
self .container_apps_diagnostics = ContainerAppsDiagnosticsOperations (
146
161
self ._client , self ._config , self ._serialize , self ._deserialize
147
162
)
@@ -157,28 +172,13 @@ def __init__(
157
172
)
158
173
self .certificates = CertificatesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
159
174
self .namespaces = NamespacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
175
+ self .dapr_components = DaprComponentsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
160
176
self .managed_environments_storages = ManagedEnvironmentsStoragesOperations (
161
177
self ._client , self ._config , self ._serialize , self ._deserialize
162
178
)
163
179
self .container_apps_source_controls = ContainerAppsSourceControlsOperations (
164
180
self ._client , self ._config , self ._serialize , self ._deserialize
165
181
)
166
- self .connected_environments = ConnectedEnvironmentsOperations (
167
- self ._client , self ._config , self ._serialize , self ._deserialize
168
- )
169
- self .connected_environments_certificates = ConnectedEnvironmentsCertificatesOperations (
170
- self ._client , self ._config , self ._serialize , self ._deserialize
171
- )
172
- self .connected_environments_dapr_components = ConnectedEnvironmentsDaprComponentsOperations (
173
- self ._client , self ._config , self ._serialize , self ._deserialize
174
- )
175
- self .connected_environments_storages = ConnectedEnvironmentsStoragesOperations (
176
- self ._client , self ._config , self ._serialize , self ._deserialize
177
- )
178
- self .available_workload_profiles = AvailableWorkloadProfilesOperations (
179
- self ._client , self ._config , self ._serialize , self ._deserialize
180
- )
181
- self .billing_meters = BillingMetersOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
182
182
183
183
def _send_request (self , request : HttpRequest , ** kwargs : Any ) -> HttpResponse :
184
184
"""Runs the network request through the client's chained policies.
@@ -202,15 +202,12 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
202
202
request_copy .url = self ._client .format_url (request_copy .url )
203
203
return self ._client .send_request (request_copy , ** kwargs )
204
204
205
- def close (self ):
206
- # type: () -> None
205
+ def close (self ) -> None :
207
206
self ._client .close ()
208
207
209
- def __enter__ (self ):
210
- # type: () -> ContainerAppsAPIClient
208
+ def __enter__ (self ) -> "ContainerAppsAPIClient" :
211
209
self ._client .__enter__ ()
212
210
return self
213
211
214
- def __exit__ (self , * exc_details ):
215
- # type: (Any) -> None
212
+ def __exit__ (self , * exc_details ) -> None :
216
213
self ._client .__exit__ (* exc_details )
0 commit comments