Skip to content

Commit e2f1b60

Browse files
author
SDKAuto
committed
CodeGen from PR 33988 in Azure/azure-rest-api-specs
Merge 1522e0f61d37aaaa9cdb5c143b6ffdf1643eac13 into 4f6ba43a83ed4f80863e1fe698ac10b89e8c48a0
1 parent 6d22700 commit e2f1b60

File tree

352 files changed

+12117
-3094
lines changed

Some content is hidden

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

352 files changed

+12117
-3094
lines changed

sdk/appplatform/azure-mgmt-appplatform/CHANGELOG.md

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,100 @@
11
# Release History
22

3+
## 10.1.0b1 (2025-04-16)
4+
5+
### Features Added
6+
7+
- Client `AppPlatformManagementClient` added operation group `eureka_servers`
8+
- Client `AppPlatformManagementClient` added operation group `jobs`
9+
- Client `AppPlatformManagementClient` added operation group `job`
10+
- Client `AppPlatformManagementClient` added operation group `job_execution`
11+
- Client `AppPlatformManagementClient` added operation group `job_executions`
12+
- Model `AppResourceProperties` added property `secrets`
13+
- Model `AppResourceProperties` added property `workload_profile_name`
14+
- Model `AppResourceProperties` added property `test_endpoint_auth_state`
15+
- Enum `BindingType` added member `CA_CERTIFICATES`
16+
- Model `BuildpackProperties` added property `version`
17+
- Model `ClusterResourceProperties` added property `maintenance_schedule_configuration`
18+
- Model `ClusterResourceProperties` added property `managed_environment_id`
19+
- Model `ClusterResourceProperties` added property `infra_resource_group`
20+
- Model `ConfigServerProperties` added property `resource_requests`
21+
- Model `ConfigServerProperties` added property `instances`
22+
- Model `ConfigServerProperties` added property `enabled_state`
23+
- Enum `ConfigServerState` added member `CREATING`
24+
- Enum `ConfigServerState` added member `DELETING`
25+
- Model `ConfigurationServiceSettings` added property `refresh_interval_in_seconds`
26+
- Model `DeploymentSettings` added property `scale`
27+
- Model `GatewayProperties` added property `apm_types`
28+
- Model `GatewayProperties` added property `addon_configs`
29+
- Model `GatewayProperties` added property `response_cache_properties`
30+
- Model `ServiceResource` added property `identity`
31+
- Model `ServiceVNetAddons` added property `private_storage_access`
32+
- Model `ServiceVNetAddons` added property `private_dns_zone_id`
33+
- Model `SupportedBuildpackResourceProperties` added property `version`
34+
- Enum `SupportedRuntimeValue` added member `JAVA21`
35+
- Added enum `ApmType`
36+
- Added enum `ConfigServerEnabledState`
37+
- Added model `ConfigServerInstance`
38+
- Added model `ConfigServerResourceCollection`
39+
- Added model `ConfigServerResourceRequests`
40+
- Added model `CustomScaleRule`
41+
- Added model `EnvSecretsCollection`
42+
- Added model `EnvVar`
43+
- Added enum `EurekaServerEnabledState`
44+
- Added model `EurekaServerProperties`
45+
- Added model `EurekaServerResource`
46+
- Added model `EurekaServerResourceCollection`
47+
- Added enum `EurekaServerState`
48+
- Added enum `Frequency`
49+
- Added model `GatewayLocalResponseCachePerInstanceProperties`
50+
- Added model `GatewayLocalResponseCachePerRouteProperties`
51+
- Added model `GatewayResponseCacheProperties`
52+
- Added model `HttpScaleRule`
53+
- Added model `JobExecution`
54+
- Added model `JobExecutionCollection`
55+
- Added enum `JobExecutionRunningState`
56+
- Added model `JobExecutionTemplate`
57+
- Added model `JobResource`
58+
- Added model `JobResourceCollection`
59+
- Added model `JobResourceProperties`
60+
- Added enum `JobResourceProvisioningState`
61+
- Added model `JobResourceRequests`
62+
- Added model `JobTriggerConfig`
63+
- Added model `MaintenanceScheduleConfiguration`
64+
- Added model `ManagedComponentReference`
65+
- Added model `ManualJobTriggerConfig`
66+
- Added enum `PrivateStorageAccess`
67+
- Added model `QueueScaleRule`
68+
- Added model `Scale`
69+
- Added model `ScaleRule`
70+
- Added model `ScaleRuleAuth`
71+
- Added model `Secret`
72+
- Added model `SystemAssignedServiceIdentity`
73+
- Added enum `SystemAssignedServiceIdentityType`
74+
- Added model `TcpScaleRule`
75+
- Added enum `TestEndpointAuthState`
76+
- Added enum `TriggerType`
77+
- Added enum `WeekDay`
78+
- Added model `WeeklyMaintenanceScheduleConfiguration`
79+
- Model `ConfigServersOperations` added method `begin_delete`
80+
- Model `ConfigServersOperations` added method `list`
81+
- Model `GatewaysOperations` added method `begin_update_capacity`
82+
- Added model `EurekaServersOperations`
83+
- Added model `JobExecutionOperations`
84+
- Added model `JobExecutionsOperations`
85+
- Added model `JobOperations`
86+
- Added model `JobsOperations`
87+
- Method `GatewaysOperations.begin_update_capacity` has a new overload `def begin_update_capacity(self: None, resource_group_name: str, service_name: str, gateway_name: str, gateway_capacity_resource: SkuObject, content_type: str)`
88+
- Method `GatewaysOperations.begin_update_capacity` has a new overload `def begin_update_capacity(self: None, resource_group_name: str, service_name: str, gateway_name: str, gateway_capacity_resource: IO[bytes], content_type: str)`
89+
- Method `EurekaServersOperations.begin_update_patch` has a new overload `def begin_update_patch(self: None, resource_group_name: str, service_name: str, eureka_server_resource: EurekaServerResource, content_type: str)`
90+
- Method `EurekaServersOperations.begin_update_patch` has a new overload `def begin_update_patch(self: None, resource_group_name: str, service_name: str, eureka_server_resource: IO[bytes], content_type: str)`
91+
- Method `EurekaServersOperations.begin_update_put` has a new overload `def begin_update_put(self: None, resource_group_name: str, service_name: str, eureka_server_resource: EurekaServerResource, content_type: str)`
92+
- Method `EurekaServersOperations.begin_update_put` has a new overload `def begin_update_put(self: None, resource_group_name: str, service_name: str, eureka_server_resource: IO[bytes], content_type: str)`
93+
- Method `JobOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, service_name: str, job_name: str, job_resource: JobResource, content_type: str)`
94+
- Method `JobOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, service_name: str, job_name: str, job_resource: IO[bytes], content_type: str)`
95+
- Method `JobOperations.begin_start` has a new overload `def begin_start(self: None, resource_group_name: str, service_name: str, job_name: str, template: Optional[JobExecutionTemplate], content_type: str)`
96+
- Method `JobOperations.begin_start` has a new overload `def begin_start(self: None, resource_group_name: str, service_name: str, job_name: str, template: Optional[IO[bytes]], content_type: str)`
97+
398
## 10.0.0 (2024-10-29)
499

5100
### Breaking Changes

sdk/appplatform/azure-mgmt-appplatform/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure App Platform Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "71341bf84d11e4cf6c3d3c6aa9d1615238b20e90",
2+
"commit": "e7f52891d98eba629a54a20c75f81b0537bdf5fa",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.32.3",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/appplatform/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-2023-12 --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/appplatform/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.32.3 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/appplatform/resource-manager/readme.md"
1111
}

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._app_platform_management_client import AppPlatformManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._app_platform_management_client import AppPlatformManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"AppPlatformManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@
3838
CustomizedAcceleratorsOperations,
3939
DeploymentsOperations,
4040
DevToolPortalsOperations,
41+
EurekaServersOperations,
4142
GatewayCustomDomainsOperations,
4243
GatewayRouteConfigsOperations,
4344
GatewaysOperations,
45+
JobExecutionOperations,
46+
JobExecutionsOperations,
47+
JobOperations,
48+
JobsOperations,
4449
MonitoringSettingsOperations,
4550
Operations,
4651
PredefinedAcceleratorsOperations,
@@ -52,17 +57,18 @@
5257
)
5358

5459
if TYPE_CHECKING:
55-
# pylint: disable=unused-import,ungrouped-imports
5660
from azure.core.credentials import TokenCredential
5761

5862

59-
class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
63+
class AppPlatformManagementClient: # pylint: disable=too-many-instance-attributes
6064
"""REST API for Azure Spring Apps.
6165
6266
:ivar services: ServicesOperations operations
6367
:vartype services: azure.mgmt.appplatform.operations.ServicesOperations
6468
:ivar apms: ApmsOperations operations
6569
:vartype apms: azure.mgmt.appplatform.operations.ApmsOperations
70+
:ivar eureka_servers: EurekaServersOperations operations
71+
:vartype eureka_servers: azure.mgmt.appplatform.operations.EurekaServersOperations
6672
:ivar config_servers: ConfigServersOperations operations
6773
:vartype config_servers: azure.mgmt.appplatform.operations.ConfigServersOperations
6874
:ivar configuration_services: ConfigurationServicesOperations operations
@@ -127,15 +133,23 @@ class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version
127133
:ivar predefined_accelerators: PredefinedAcceleratorsOperations operations
128134
:vartype predefined_accelerators:
129135
azure.mgmt.appplatform.operations.PredefinedAcceleratorsOperations
136+
:ivar jobs: JobsOperations operations
137+
:vartype jobs: azure.mgmt.appplatform.operations.JobsOperations
138+
:ivar job: JobOperations operations
139+
:vartype job: azure.mgmt.appplatform.operations.JobOperations
140+
:ivar job_execution: JobExecutionOperations operations
141+
:vartype job_execution: azure.mgmt.appplatform.operations.JobExecutionOperations
142+
:ivar job_executions: JobExecutionsOperations operations
143+
:vartype job_executions: azure.mgmt.appplatform.operations.JobExecutionsOperations
130144
:param credential: Credential needed for the client to connect to Azure. Required.
131145
:type credential: ~azure.core.credentials.TokenCredential
132146
:param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure
133147
subscription. The subscription ID forms part of the URI for every service call. Required.
134148
:type subscription_id: str
135149
:param base_url: Service URL. Default value is "https://management.azure.com".
136150
:type base_url: str
137-
:keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this
138-
default value may result in unsupported behavior.
151+
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
152+
this default value may result in unsupported behavior.
139153
:paramtype api_version: str
140154
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
141155
Retry-After header is present.
@@ -177,6 +191,7 @@ def __init__(
177191
self._serialize.client_side_validation = False
178192
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
179193
self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize)
194+
self.eureka_servers = EurekaServersOperations(self._client, self._config, self._serialize, self._deserialize)
180195
self.config_servers = ConfigServersOperations(self._client, self._config, self._serialize, self._deserialize)
181196
self.configuration_services = ConfigurationServicesOperations(
182197
self._client, self._config, self._serialize, self._deserialize
@@ -235,6 +250,10 @@ def __init__(
235250
self.predefined_accelerators = PredefinedAcceleratorsOperations(
236251
self._client, self._config, self._serialize, self._deserialize
237252
)
253+
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
254+
self.job = JobOperations(self._client, self._config, self._serialize, self._deserialize)
255+
self.job_execution = JobExecutionOperations(self._client, self._config, self._serialize, self._deserialize)
256+
self.job_executions = JobExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
238257

239258
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
240259
"""Runs the network request through the client's chained policies.

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for AppPlatformManagementClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -29,13 +28,13 @@ class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-inst
2928
:param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure
3029
subscription. The subscription ID forms part of the URI for every service call. Required.
3130
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this
33-
default value may result in unsupported behavior.
31+
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
32+
this default value may result in unsupported behavior.
3433
:paramtype api_version: str
3534
"""
3635

3736
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
38-
api_version: str = kwargs.pop("api_version", "2023-12-01")
37+
api_version: str = kwargs.pop("api_version", "2024-05-01-preview")
3938

4039
if credential is None:
4140
raise ValueError("Parameter 'credential' must not be None.")

0 commit comments

Comments
 (0)