Skip to content

Commit d005038

Browse files
author
SDKAuto
committed
CodeGen from PR 28283 in Azure/azure-rest-api-specs
Merge a716688286a3c514cdbd2cc32e41f6d90fc8a827 into 18fdfcc2f53363ca3298293d116227b31d4f1f33
1 parent ed7cbc7 commit d005038

File tree

230 files changed

+5154
-446
lines changed

Some content is hidden

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

230 files changed

+5154
-446
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "e5404d3e55f885d2cb8fdbff3fd1a03bcfc6bb4c",
2+
"commit": "00d02f9f247bd07020dbd5c89187ae79cd69fa48",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.7",
55
"use": [
66
"@autorest/[email protected]",
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] --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] --use=@autorest/[email protected] --version=3.9.7 --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 container_app_name: Name of the Container App the Build is associated. Required.
30+
:type container_app_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", container_app_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 container_app_name is None:
46+
raise ValueError("Parameter 'container_app_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.container_app_name = container_app_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: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,19 @@
3232
ConnectedEnvironmentsStoragesOperations,
3333
ContainerAppsAPIClientOperationsMixin,
3434
ContainerAppsAuthConfigsOperations,
35+
ContainerAppsBuildsByContainerAppOperations,
36+
ContainerAppsBuildsOperations,
3537
ContainerAppsDiagnosticsOperations,
3638
ContainerAppsOperations,
39+
ContainerAppsPatchesOperations,
3740
ContainerAppsRevisionReplicasOperations,
3841
ContainerAppsRevisionsOperations,
3942
ContainerAppsSourceControlsOperations,
4043
DaprComponentResiliencyPoliciesOperations,
4144
DaprComponentsOperations,
4245
DaprSubscriptionsOperations,
4346
DotNetComponentsOperations,
47+
FunctionsExtensionOperations,
4448
JavaComponentsOperations,
4549
JobsExecutionsOperations,
4650
JobsOperations,
@@ -63,7 +67,9 @@
6367
class ContainerAppsAPIClient(
6468
ContainerAppsAPIClientOperationsMixin
6569
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
66-
"""ContainerAppsAPIClient.
70+
"""Functions is an extension resource to revisions and the api listed is used to proxy the call
71+
from Web RP to the function app's host process, this api is not exposed to users and only Web
72+
RP is allowed to invoke functions extension resource.
6773
6874
:ivar app_resiliency: AppResiliencyOperations operations
6975
:vartype app_resiliency: azure.mgmt.appcontainers.operations.AppResiliencyOperations
@@ -106,6 +112,16 @@ class ContainerAppsAPIClient(
106112
:ivar container_apps_revision_replicas: ContainerAppsRevisionReplicasOperations operations
107113
:vartype container_apps_revision_replicas:
108114
azure.mgmt.appcontainers.operations.ContainerAppsRevisionReplicasOperations
115+
:ivar container_apps_builds_by_container_app: ContainerAppsBuildsByContainerAppOperations
116+
operations
117+
:vartype container_apps_builds_by_container_app:
118+
azure.mgmt.appcontainers.operations.ContainerAppsBuildsByContainerAppOperations
119+
:ivar container_apps_builds: ContainerAppsBuildsOperations operations
120+
:vartype container_apps_builds:
121+
azure.mgmt.appcontainers.operations.ContainerAppsBuildsOperations
122+
:ivar container_apps_patches: ContainerAppsPatchesOperations operations
123+
:vartype container_apps_patches:
124+
azure.mgmt.appcontainers.operations.ContainerAppsPatchesOperations
109125
:ivar container_apps_diagnostics: ContainerAppsDiagnosticsOperations operations
110126
:vartype container_apps_diagnostics:
111127
azure.mgmt.appcontainers.operations.ContainerAppsDiagnosticsOperations
@@ -117,8 +133,12 @@ class ContainerAppsAPIClient(
117133
azure.mgmt.appcontainers.operations.ManagedEnvironmentsDiagnosticsOperations
118134
:ivar jobs: JobsOperations operations
119135
:vartype jobs: azure.mgmt.appcontainers.operations.JobsOperations
136+
:ivar dot_net_components: DotNetComponentsOperations operations
137+
:vartype dot_net_components: azure.mgmt.appcontainers.operations.DotNetComponentsOperations
120138
:ivar operations: Operations operations
121139
:vartype operations: azure.mgmt.appcontainers.operations.Operations
140+
:ivar java_components: JavaComponentsOperations operations
141+
:vartype java_components: azure.mgmt.appcontainers.operations.JavaComponentsOperations
122142
:ivar jobs_executions: JobsExecutionsOperations operations
123143
:vartype jobs_executions: azure.mgmt.appcontainers.operations.JobsExecutionsOperations
124144
:ivar managed_environments: ManagedEnvironmentsOperations operations
@@ -149,17 +169,17 @@ class ContainerAppsAPIClient(
149169
:ivar managed_environment_usages: ManagedEnvironmentUsagesOperations operations
150170
:vartype managed_environment_usages:
151171
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
172+
:ivar functions_extension: FunctionsExtensionOperations operations
173+
:vartype functions_extension: azure.mgmt.appcontainers.operations.FunctionsExtensionOperations
156174
:param credential: Credential needed for the client to connect to Azure. Required.
157175
:type credential: ~azure.core.credentials.TokenCredential
176+
:param container_app_name: Name of the Container App the Build is associated. Required.
177+
:type container_app_name: str
158178
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
159179
:type subscription_id: str
160180
:param base_url: Service URL. Default value is "https://management.azure.com".
161181
:type base_url: str
162-
:keyword api_version: Api Version. Default value is "2023-11-02-preview". Note that overriding
182+
:keyword api_version: Api Version. Default value is "2024-02-02-preview". Note that overriding
163183
this default value may result in unsupported behavior.
164184
:paramtype api_version: str
165185
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -169,12 +189,13 @@ class ContainerAppsAPIClient(
169189
def __init__(
170190
self,
171191
credential: "TokenCredential",
192+
container_app_name: str,
172193
subscription_id: str,
173194
base_url: str = "https://management.azure.com",
174195
**kwargs: Any
175196
) -> None:
176197
self._config = ContainerAppsAPIClientConfiguration(
177-
credential=credential, subscription_id=subscription_id, **kwargs
198+
credential=credential, container_app_name=container_app_name, subscription_id=subscription_id, **kwargs
178199
)
179200
_policies = kwargs.pop("policies", None)
180201
if _policies is None:
@@ -233,6 +254,15 @@ def __init__(
233254
self.container_apps_revision_replicas = ContainerAppsRevisionReplicasOperations(
234255
self._client, self._config, self._serialize, self._deserialize
235256
)
257+
self.container_apps_builds_by_container_app = ContainerAppsBuildsByContainerAppOperations(
258+
self._client, self._config, self._serialize, self._deserialize
259+
)
260+
self.container_apps_builds = ContainerAppsBuildsOperations(
261+
self._client, self._config, self._serialize, self._deserialize
262+
)
263+
self.container_apps_patches = ContainerAppsPatchesOperations(
264+
self._client, self._config, self._serialize, self._deserialize
265+
)
236266
self.container_apps_diagnostics = ContainerAppsDiagnosticsOperations(
237267
self._client, self._config, self._serialize, self._deserialize
238268
)
@@ -243,7 +273,11 @@ def __init__(
243273
self._client, self._config, self._serialize, self._deserialize
244274
)
245275
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
276+
self.dot_net_components = DotNetComponentsOperations(
277+
self._client, self._config, self._serialize, self._deserialize
278+
)
246279
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
280+
self.java_components = JavaComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
247281
self.jobs_executions = JobsExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
248282
self.managed_environments = ManagedEnvironmentsOperations(
249283
self._client, self._config, self._serialize, self._deserialize
@@ -270,8 +304,7 @@ def __init__(
270304
self.managed_environment_usages = ManagedEnvironmentUsagesOperations(
271305
self._client, self._config, self._serialize, self._deserialize
272306
)
273-
self.java_components = JavaComponentsOperations(self._client, self._config, self._serialize, self._deserialize)
274-
self.dot_net_components = DotNetComponentsOperations(
307+
self.functions_extension = FunctionsExtensionOperations(
275308
self._client, self._config, self._serialize, self._deserialize
276309
)
277310

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 container_app_name: Name of the Container App the Build is associated. Required.
30+
:type container_app_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", container_app_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 container_app_name is None:
46+
raise ValueError("Parameter 'container_app_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.container_app_name = container_app_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)