23
23
ConnectedEnvironmentsDaprComponentsOperations ,
24
24
ConnectedEnvironmentsOperations ,
25
25
ConnectedEnvironmentsStoragesOperations ,
26
+ ContainerAppsAPIClientOperationsMixin ,
26
27
ContainerAppsAuthConfigsOperations ,
27
28
ContainerAppsDiagnosticsOperations ,
28
29
ContainerAppsOperations ,
29
30
ContainerAppsRevisionReplicasOperations ,
30
31
ContainerAppsRevisionsOperations ,
31
32
ContainerAppsSourceControlsOperations ,
32
33
DaprComponentsOperations ,
34
+ JobsExecutionsOperations ,
35
+ JobsOperations ,
36
+ ManagedCertificatesOperations ,
33
37
ManagedEnvironmentDiagnosticsOperations ,
34
38
ManagedEnvironmentsDiagnosticsOperations ,
35
39
ManagedEnvironmentsOperations ,
43
47
from azure .core .credentials import TokenCredential
44
48
45
49
46
- class ContainerAppsAPIClient : # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
50
+ class ContainerAppsAPIClient (
51
+ ContainerAppsAPIClientOperationsMixin
52
+ ): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
47
53
"""ContainerAppsAPIClient.
48
54
49
55
:ivar container_apps_auth_configs: ContainerAppsAuthConfigsOperations operations
@@ -87,11 +93,18 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
87
93
azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations
88
94
:ivar operations: Operations operations
89
95
:vartype operations: azure.mgmt.appcontainers.operations.Operations
96
+ :ivar jobs: JobsOperations operations
97
+ :vartype jobs: azure.mgmt.appcontainers.operations.JobsOperations
98
+ :ivar jobs_executions: JobsExecutionsOperations operations
99
+ :vartype jobs_executions: azure.mgmt.appcontainers.operations.JobsExecutionsOperations
90
100
:ivar managed_environments: ManagedEnvironmentsOperations operations
91
101
:vartype managed_environments:
92
102
azure.mgmt.appcontainers.operations.ManagedEnvironmentsOperations
93
103
:ivar certificates: CertificatesOperations operations
94
104
:vartype certificates: azure.mgmt.appcontainers.operations.CertificatesOperations
105
+ :ivar managed_certificates: ManagedCertificatesOperations operations
106
+ :vartype managed_certificates:
107
+ azure.mgmt.appcontainers.operations.ManagedCertificatesOperations
95
108
:ivar namespaces: NamespacesOperations operations
96
109
:vartype namespaces: azure.mgmt.appcontainers.operations.NamespacesOperations
97
110
:ivar dapr_components: DaprComponentsOperations operations
@@ -104,12 +117,16 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
104
117
azure.mgmt.appcontainers.operations.ContainerAppsSourceControlsOperations
105
118
:param credential: Credential needed for the client to connect to Azure. Required.
106
119
:type credential: ~azure.core.credentials.TokenCredential
120
+ :param job_name: Job Name. Required.
121
+ :type job_name: str
122
+ :param job_execution_name: Job execution name. Required.
123
+ :type job_execution_name: str
107
124
:param subscription_id: The ID of the target subscription. Required.
108
125
:type subscription_id: str
109
126
:param base_url: Service URL. Default value is "https://management.azure.com".
110
127
:type base_url: str
111
- :keyword api_version: Api Version. Default value is "2022-10 -01". Note that overriding this
112
- default value may result in unsupported behavior.
128
+ :keyword api_version: Api Version. Default value is "2023-04 -01-preview ". Note that overriding
129
+ this default value may result in unsupported behavior.
113
130
:paramtype api_version: str
114
131
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
115
132
Retry-After header is present.
@@ -118,14 +135,20 @@ class ContainerAppsAPIClient: # pylint: disable=client-accepts-api-version-keyw
118
135
def __init__ (
119
136
self ,
120
137
credential : "TokenCredential" ,
138
+ job_name : str ,
139
+ job_execution_name : str ,
121
140
subscription_id : str ,
122
141
base_url : str = "https://management.azure.com" ,
123
142
** kwargs : Any
124
143
) -> None :
125
144
self ._config = ContainerAppsAPIClientConfiguration (
126
- credential = credential , subscription_id = subscription_id , ** kwargs
145
+ credential = credential ,
146
+ job_name = job_name ,
147
+ job_execution_name = job_execution_name ,
148
+ subscription_id = subscription_id ,
149
+ ** kwargs
127
150
)
128
- self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
151
+ self ._client : ARMPipelineClient = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
129
152
130
153
client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
131
154
self ._serialize = Serializer (client_models )
@@ -167,10 +190,15 @@ def __init__(
167
190
self ._client , self ._config , self ._serialize , self ._deserialize
168
191
)
169
192
self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
193
+ self .jobs = JobsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
194
+ self .jobs_executions = JobsExecutionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
170
195
self .managed_environments = ManagedEnvironmentsOperations (
171
196
self ._client , self ._config , self ._serialize , self ._deserialize
172
197
)
173
198
self .certificates = CertificatesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
199
+ self .managed_certificates = ManagedCertificatesOperations (
200
+ self ._client , self ._config , self ._serialize , self ._deserialize
201
+ )
174
202
self .namespaces = NamespacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
175
203
self .dapr_components = DaprComponentsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
176
204
self .managed_environments_storages = ManagedEnvironmentsStoragesOperations (
0 commit comments