Skip to content

Commit ccd2ec2

Browse files
author
SDKAuto
committed
CodeGen from PR 28996 in Azure/azure-rest-api-specs
Merge 106f00a8e261dbaebb4e0e5a35c5d0c7f6a5bfa6 into 9d051b483d82a484960cfbdec2d11d93922a5bd8
1 parent cb50e53 commit ccd2ec2

File tree

279 files changed

+11635
-1324
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+11635
-1324
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "e5404d3e55f885d2cb8fdbff3fd1a03bcfc6bb4c",
2+
"commit": "379a9a730cc84316371106bf4ef8b580b06b229a",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/[email protected].7",
6+
"@autorest/[email protected].16",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/app/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/[email protected].7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
9+
"autorest_command": "autorest specification/app/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/[email protected].16 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/app/resource-manager/readme.md"
1111
}

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_configuration.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,29 @@ class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance-
2626
2727
:param credential: Credential needed for the client to connect to Azure. Required.
2828
:type credential: ~azure.core.credentials.TokenCredential
29+
:param session_pool_name: Name of the session pool. Required.
30+
:type session_pool_name: str
2931
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3032
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2023-11-02-preview". Note that overriding
33+
:keyword api_version: Api Version. Default value is "2024-02-02-preview". Note that overriding
3234
this default value may result in unsupported behavior.
3335
:paramtype api_version: str
3436
"""
3537

36-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2023-11-02-preview")
38+
def __init__(
39+
self, credential: "TokenCredential", session_pool_name: str, subscription_id: str, **kwargs: Any
40+
) -> None:
41+
api_version: str = kwargs.pop("api_version", "2024-02-02-preview")
3842

3943
if credential is None:
4044
raise ValueError("Parameter 'credential' must not be None.")
45+
if session_pool_name is None:
46+
raise ValueError("Parameter 'session_pool_name' must not be None.")
4147
if subscription_id is None:
4248
raise ValueError("Parameter 'subscription_id' must not be None.")
4349

4450
self.credential = credential
51+
self.session_pool_name = session_pool_name
4552
self.subscription_id = subscription_id
4653
self.api_version = api_version
4754
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_container_apps_api_client.py

Lines changed: 65 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,27 @@
3232
ConnectedEnvironmentsStoragesOperations,
3333
ContainerAppsAPIClientOperationsMixin,
3434
ContainerAppsAuthConfigsOperations,
35+
ContainerAppsBuildsByContainerAppOperations,
36+
ContainerAppsBuildsOperations,
3537
ContainerAppsDiagnosticsOperations,
3638
ContainerAppsOperations,
39+
ContainerAppsPatchesOperations,
3740
ContainerAppsRevisionReplicasOperations,
3841
ContainerAppsRevisionsOperations,
42+
ContainerAppsSessionPoolsOperations,
3943
ContainerAppsSourceControlsOperations,
4044
DaprComponentResiliencyPoliciesOperations,
4145
DaprComponentsOperations,
4246
DaprSubscriptionsOperations,
4347
DotNetComponentsOperations,
48+
FunctionsExtensionOperations,
4449
JavaComponentsOperations,
4550
JobsExecutionsOperations,
4651
JobsOperations,
4752
ManagedCertificatesOperations,
4853
ManagedEnvironmentDiagnosticsOperations,
54+
ManagedEnvironmentPrivateEndpointConnectionsOperations,
55+
ManagedEnvironmentPrivateLinkResourcesOperations,
4956
ManagedEnvironmentUsagesOperations,
5057
ManagedEnvironmentsDiagnosticsOperations,
5158
ManagedEnvironmentsOperations,
@@ -63,7 +70,9 @@
6370
class ContainerAppsAPIClient(
6471
ContainerAppsAPIClientOperationsMixin
6572
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
66-
"""ContainerAppsAPIClient.
73+
"""Functions is an extension resource to revisions and the api listed is used to proxy the call
74+
from Web RP to the function app's host process, this api is not exposed to users and only Web
75+
RP is allowed to invoke functions extension resource.
6776
6877
:ivar app_resiliency: AppResiliencyOperations operations
6978
:vartype app_resiliency: azure.mgmt.appcontainers.operations.AppResiliencyOperations
@@ -106,6 +115,16 @@ class ContainerAppsAPIClient(
106115
:ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations
107116
:vartype container_apps_revision_replicas:
108117
azure.mgmt.appcontainers.operations.ContainerAppsRevisionReplicasOperations
118+
:ivar container_apps_builds_by_container_app: ContainerAppsBuildsByContainerAppOperations
119+
operations
120+
:vartype container_apps_builds_by_container_app:
121+
azure.mgmt.appcontainers.operations.ContainerAppsBuildsByContainerAppOperations
122+
:ivar container_apps_builds: ContainerAppsBuildsOperations operations
123+
:vartype container_apps_builds:
124+
azure.mgmt.appcontainers.operations.ContainerAppsBuildsOperations
125+
:ivar container_apps_patches: ContainerAppsPatchesOperations operations
126+
:vartype container_apps_patches:
127+
azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations
109128
:ivar container_apps_diagnostics: ContainerAppsDiagnosticsOperations operations
110129
:vartype container_apps_diagnostics:
111130
azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations
@@ -117,8 +136,12 @@ class ContainerAppsAPIClient(
117136
azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations
118137
:ivar jobs: JobsOperations operations
119138
:vartype jobs: azure.mgmt.appcontainers.operations.JobsOperations
139+
:ivar dot_net_components: DotNetComponentsOperations operations
140+
:vartype dot_net_components: azure.mgmt.appcontainers.operations.DotNetComponentsOperations
120141
:ivar operations: Operations operations
121142
:vartype operations: azure.mgmt.appcontainers.operations.Operations
143+
:ivar java_components: JavaComponentsOperations operations
144+
:vartype java_components: azure.mgmt.appcontainers.operations.JavaComponentsOperations
122145
:ivar jobs_executions: JobsExecutionsOperations operations
123146
:vartype jobs_executions: azure.mgmt.appcontainers.operations.JobsExecutionsOperations
124147
:ivar managed_environments: ManagedEnvironmentsOperations operations
@@ -131,6 +154,14 @@ class ContainerAppsAPIClient(
131154
azure.mgmt.appcontainers.operations.ManagedCertificatesOperations
132155
:ivar namespaces: NamespacesOperations operations
133156
:vartype namespaces: azure.mgmt.appcontainers.operations.NamespacesOperations
157+
:ivar managed_environment_private_endpoint_connections:
158+
ManagedEnvironmentPrivateEndpointConnectionsOperations operations
159+
:vartype managed_environment_private_endpoint_connections:
160+
azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateEndpointConnectionsOperations
161+
:ivar managed_environment_private_link_resources:
162+
ManagedEnvironmentPrivateLinkResourcesOperations operations
163+
:vartype managed_environment_private_link_resources:
164+
azure.mgmt.appcontainers.operations.ManagedEnvironmentPrivateLinkResourcesOperations
134165
:ivar dapr_component_resiliency_policies: DaprComponentResiliencyPoliciesOperations operations
135166
:vartype dapr_component_resiliency_policies:
136167
azure.mgmt.appcontainers.operations.DaprComponentResiliencyPoliciesOperations
@@ -149,17 +180,20 @@ class ContainerAppsAPIClient(
149180
:ivar managed_environment_usages: ManagedEnvironmentUsagesOperations operations
150181
:vartype managed_environment_usages:
151182
azure.mgmt.appcontainers.operations.ManagedEnvironmentUsagesOperations
152-
:ivar java_components: JavaComponentsOperations operations
153-
:vartype java_components: azure.mgmt.appcontainers.operations.JavaComponentsOperations
154-
:ivar dot_net_components: DotNetComponentsOperations operations
155-
:vartype dot_net_components: azure.mgmt.appcontainers.operations.DotNetComponentsOperations
183+
:ivar functions_extension: FunctionsExtensionOperations operations
184+
:vartype functions_extension: azure.mgmt.appcontainers.operations.FunctionsExtensionOperations
185+
:ivar container_apps_session_pools: ContainerAppsSessionPoolsOperations operations
186+
:vartype container_apps_session_pools:
187+
azure.mgmt.appcontainers.operations.ContainerAppsSessionPoolsOperations
156188
:param credential: Credential needed for the client to connect to Azure. Required.
157189
:type credential: ~azure.core.credentials.TokenCredential
190+
:param session_pool_name: Name of the session pool. Required.
191+
:type session_pool_name: str
158192
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
159193
:type subscription_id: str
160194
:param base_url: Service URL. Default value is "https://management.azure.com".
161195
:type base_url: str
162-
:keyword api_version: Api Version. Default value is "2023-11-02-preview". Note that overriding
196+
:keyword api_version: Api Version. Default value is "2024-02-02-preview". Note that overriding
163197
this default value may result in unsupported behavior.
164198
:paramtype api_version: str
165199
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -169,12 +203,13 @@ class ContainerAppsAPIClient(
169203
def __init__(
170204
self,
171205
credential: "TokenCredential",
206+
session_pool_name: str,
172207
subscription_id: str,
173208
base_url: str = "https://management.azure.com",
174209
**kwargs: Any
175210
) -> None:
176211
self._config = ContainerAppsAPIClientConfiguration(
177-
credential=credential, subscription_id=subscription_id, **kwargs
212+
credential=credential, session_pool_name=session_pool_name, subscription_id=subscription_id, **kwargs
178213
)
179214
_policies = kwargs.pop("policies", None)
180215
if _policies is None:
@@ -233,6 +268,15 @@ def __init__(
233268
self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations(
234269
self._client, self._config, self._serialize, self._deserialize
235270
)
271+
self.container_apps_builds_by_container_app = ContainerAppsBuildsByContainerAppOperations(
272+
self._client, self._config, self._serialize, self._deserialize
273+
)
274+
self.container_apps_builds = ContainerAppsBuildsOperations(
275+
self._client, self._config, self._serialize, self._deserialize
276+
)
277+
self.container_apps_patches = ContainerAppsPatchesOperations(
278+
self._client, self._config, self._serialize, self._deserialize
279+
)
236280
self.container_apps_diagnostics = ContainerAppsDiagnosticsOperations(
237281
self._client, self._config, self._serialize, self._deserialize
238282
)
@@ -243,7 +287,11 @@ def __init__(
243287
self._client, self._config, self._serialize, self._deserialize
244288
)
245289
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
290+
self.dot_net_components = DotNetComponentsOperations(
291+
self._client, self._config, self._serialize, self._deserialize
292+
)
246293
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
294+
self.java_components = JavaComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
247295
self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
248296
self.managed_environments = ManagedEnvironmentsOperations(
249297
self._client, self._config, self._serialize, self._deserialize
@@ -253,6 +301,12 @@ def __init__(
253301
self._client, self._config, self._serialize, self._deserialize
254302
)
255303
self.namespaces = NamespacesOperations(self._client, self._config, self._serialize, self._deserialize)
304+
self.managed_environment_private_endpoint_connections = ManagedEnvironmentPrivateEndpointConnectionsOperations(
305+
self._client, self._config, self._serialize, self._deserialize
306+
)
307+
self.managed_environment_private_link_resources = ManagedEnvironmentPrivateLinkResourcesOperations(
308+
self._client, self._config, self._serialize, self._deserialize
309+
)
256310
self.dapr_component_resiliency_policies = DaprComponentResiliencyPoliciesOperations(
257311
self._client, self._config, self._serialize, self._deserialize
258312
)
@@ -270,8 +324,10 @@ def __init__(
270324
self.managed_environment_usages = ManagedEnvironmentUsagesOperations(
271325
self._client, self._config, self._serialize, self._deserialize
272326
)
273-
self.java_components = JavaComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
274-
self.dot_net_components = DotNetComponentsOperations(
327+
self.functions_extension = FunctionsExtensionOperations(
328+
self._client, self._config, self._serialize, self._deserialize
329+
)
330+
self.container_apps_session_pools = ContainerAppsSessionPoolsOperations(
275331
self._client, self._config, self._serialize, self._deserialize
276332
)
277333

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#
2626
# --------------------------------------------------------------------------
2727

28+
2829
# This file is used for handwritten extensions to the generated code. Example:
2930
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
3031
def patch_sdk():

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "3.1.0b1"
9+
VERSION = "1.0.0b1"

sdk/appcontainers/azure-mgmt-appcontainers/azure/mgmt/appcontainers/aio/_configuration.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,29 @@ class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance-
2626
2727
:param credential: Credential needed for the client to connect to Azure. Required.
2828
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
29+
:param session_pool_name: Name of the session pool. Required.
30+
:type session_pool_name: str
2931
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3032
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2023-11-02-preview". Note that overriding
33+
:keyword api_version: Api Version. Default value is "2024-02-02-preview". Note that overriding
3234
this default value may result in unsupported behavior.
3335
:paramtype api_version: str
3436
"""
3537

36-
def __init__(self, credential: "AsyncTokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2023-11-02-preview")
38+
def __init__(
39+
self, credential: "AsyncTokenCredential", session_pool_name: str, subscription_id: str, **kwargs: Any
40+
) -> None:
41+
api_version: str = kwargs.pop("api_version", "2024-02-02-preview")
3842

3943
if credential is None:
4044
raise ValueError("Parameter 'credential' must not be None.")
45+
if session_pool_name is None:
46+
raise ValueError("Parameter 'session_pool_name' must not be None.")
4147
if subscription_id is None:
4248
raise ValueError("Parameter 'subscription_id' must not be None.")
4349

4450
self.credential = credential
51+
self.session_pool_name = session_pool_name
4552
self.subscription_id = subscription_id
4653
self.api_version = api_version
4754
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])

0 commit comments

Comments
 (0)