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 , ContainerAppsAuthConfigsOperations , ContainerAppsOperations , ContainerAppsRevisionReplicasOperations , ContainerAppsRevisionsOperations , ContainerAppsSourceControlsOperations , DaprComponentsOperations , 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 operations: Operations operations
41
+ :vartype operations: azure.mgmt.app.operations.Operations
35
42
:ivar managed_environments: ManagedEnvironmentsOperations operations
36
- :vartype managed_environments:
37
- container_apps_api_client.operations.ManagedEnvironmentsOperations
43
+ :vartype managed_environments: azure.mgmt.app.operations.ManagedEnvironmentsOperations
38
44
: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
45
+ :vartype certificates: azure.mgmt.app.operations.CertificatesOperations
46
+ :ivar namespaces: NamespacesOperations operations
47
+ :vartype namespaces: azure.mgmt.app.operations.NamespacesOperations
50
48
:ivar managed_environments_storages: ManagedEnvironmentsStoragesOperations operations
51
49
:vartype managed_environments_storages:
52
- container_apps_api_client.operations.ManagedEnvironmentsStoragesOperations
50
+ azure.mgmt.app.operations.ManagedEnvironmentsStoragesOperations
51
+ :ivar container_apps_source_controls: ContainerAppsSourceControlsOperations operations
52
+ :vartype container_apps_source_controls:
53
+ azure.mgmt.app.operations.ContainerAppsSourceControlsOperations
53
54
:param credential: Credential needed for the client to connect to Azure.
54
55
:type credential: ~azure.core.credentials.TokenCredential
55
56
:param subscription_id: The ID of the target subscription.
56
57
:type subscription_id: str
57
- :param base_url: Service URL. Default value is ' https://management.azure.com' .
58
+ :param base_url: Service URL. Default value is " https://management.azure.com" .
58
59
:type base_url: str
60
+ :keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this
61
+ default value may result in unsupported behavior.
62
+ :paramtype api_version: str
59
63
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
60
64
Retry-After header is present.
61
65
"""
@@ -74,21 +78,22 @@ def __init__(
74
78
self ._serialize = Serializer (client_models )
75
79
self ._deserialize = Deserializer (client_models )
76
80
self ._serialize .client_side_validation = False
81
+ self .container_apps_auth_configs = ContainerAppsAuthConfigsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
77
82
self .container_apps = ContainerAppsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
78
83
self .container_apps_revisions = ContainerAppsRevisionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
79
84
self .container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
85
+ self .dapr_components = DaprComponentsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
86
+ self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
80
87
self .managed_environments = ManagedEnvironmentsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
81
88
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 )
89
+ self .namespaces = NamespacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
86
90
self .managed_environments_storages = ManagedEnvironmentsStoragesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
91
+ self .container_apps_source_controls = ContainerAppsSourceControlsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
87
92
88
93
89
94
def _send_request (
90
95
self ,
91
- request , # type : HttpRequest
96
+ request : HttpRequest ,
92
97
** kwargs : Any
93
98
) -> HttpResponse :
94
99
"""Runs the network request through the client's chained policies.
0 commit comments