Skip to content

Commit 69ba333

Browse files
author
SDKAuto
committed
CodeGen from PR 34006 in Azure/azure-rest-api-specs
Merge 6cc659de67576bdedf53855ec4dcad2ed42a03ed into 877f166d9819e61625338a9ebb9922e1fc646636
1 parent 90ca562 commit 69ba333

File tree

352 files changed

+12150
-3113
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

+12150
-3113
lines changed

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

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

3+
## 11.0.0b1 (2025-04-18)
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+
98+
### Breaking Changes
99+
100+
- Method `AppPlatformManagementClient.__init__` parameter `base_url` changed default value from `str` to `none`
101+
3102
## 10.0.0 (2024-10-29)
4103

5104
### 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": "2e99511bfd9ef9cf31ecd616bc9c0af63dfc6808",
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.33.0",
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.33.0 --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: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING, cast
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from . import models as _models
1921
from ._configuration import AppPlatformManagementClientConfiguration
@@ -38,9 +40,14 @@
3840
CustomizedAcceleratorsOperations,
3941
DeploymentsOperations,
4042
DevToolPortalsOperations,
43+
EurekaServersOperations,
4144
GatewayCustomDomainsOperations,
4245
GatewayRouteConfigsOperations,
4346
GatewaysOperations,
47+
JobExecutionOperations,
48+
JobExecutionsOperations,
49+
JobOperations,
50+
JobsOperations,
4451
MonitoringSettingsOperations,
4552
Operations,
4653
PredefinedAcceleratorsOperations,
@@ -52,17 +59,18 @@
5259
)
5360

5461
if TYPE_CHECKING:
55-
# pylint: disable=unused-import,ungrouped-imports
5662
from azure.core.credentials import TokenCredential
5763

5864

59-
class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
65+
class AppPlatformManagementClient: # pylint: disable=too-many-instance-attributes
6066
"""REST API for Azure Spring Apps.
6167
6268
:ivar services: ServicesOperations operations
6369
:vartype services: azure.mgmt.appplatform.operations.ServicesOperations
6470
:ivar apms: ApmsOperations operations
6571
:vartype apms: azure.mgmt.appplatform.operations.ApmsOperations
72+
:ivar eureka_servers: EurekaServersOperations operations
73+
:vartype eureka_servers: azure.mgmt.appplatform.operations.EurekaServersOperations
6674
:ivar config_servers: ConfigServersOperations operations
6775
:vartype config_servers: azure.mgmt.appplatform.operations.ConfigServersOperations
6876
:ivar configuration_services: ConfigurationServicesOperations operations
@@ -127,30 +135,40 @@ class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version
127135
:ivar predefined_accelerators: PredefinedAcceleratorsOperations operations
128136
:vartype predefined_accelerators:
129137
azure.mgmt.appplatform.operations.PredefinedAcceleratorsOperations
138+
:ivar jobs: JobsOperations operations
139+
:vartype jobs: azure.mgmt.appplatform.operations.JobsOperations
140+
:ivar job: JobOperations operations
141+
:vartype job: azure.mgmt.appplatform.operations.JobOperations
142+
:ivar job_execution: JobExecutionOperations operations
143+
:vartype job_execution: azure.mgmt.appplatform.operations.JobExecutionOperations
144+
:ivar job_executions: JobExecutionsOperations operations
145+
:vartype job_executions: azure.mgmt.appplatform.operations.JobExecutionsOperations
130146
:param credential: Credential needed for the client to connect to Azure. Required.
131147
:type credential: ~azure.core.credentials.TokenCredential
132148
:param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure
133149
subscription. The subscription ID forms part of the URI for every service call. Required.
134150
:type subscription_id: str
135-
:param base_url: Service URL. Default value is "https://management.azure.com".
151+
:param base_url: Service URL. Default value is None.
136152
: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.
153+
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
154+
this default value may result in unsupported behavior.
139155
:paramtype api_version: str
140156
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
141157
Retry-After header is present.
142158
"""
143159

144160
def __init__(
145-
self,
146-
credential: "TokenCredential",
147-
subscription_id: str,
148-
base_url: str = "https://management.azure.com",
149-
**kwargs: Any
161+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
150162
) -> None:
163+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
164+
_endpoints = get_arm_endpoints(_cloud)
165+
if not base_url:
166+
base_url = _endpoints["resource_manager"]
167+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
151168
self._config = AppPlatformManagementClientConfiguration(
152-
credential=credential, subscription_id=subscription_id, **kwargs
169+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
153170
)
171+
154172
_policies = kwargs.pop("policies", None)
155173
if _policies is None:
156174
_policies = [
@@ -169,14 +187,15 @@ def __init__(
169187
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
170188
self._config.http_logging_policy,
171189
]
172-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
190+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
173191

174192
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
175193
self._serialize = Serializer(client_models)
176194
self._deserialize = Deserializer(client_models)
177195
self._serialize.client_side_validation = False
178196
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
179197
self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize)
198+
self.eureka_servers = EurekaServersOperations(self._client, self._config, self._serialize, self._deserialize)
180199
self.config_servers = ConfigServersOperations(self._client, self._config, self._serialize, self._deserialize)
181200
self.configuration_services = ConfigurationServicesOperations(
182201
self._client, self._config, self._serialize, self._deserialize
@@ -235,6 +254,10 @@ def __init__(
235254
self.predefined_accelerators = PredefinedAcceleratorsOperations(
236255
self._client, self._config, self._serialize, self._deserialize
237256
)
257+
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
258+
self.job = JobOperations(self._client, self._config, self._serialize, self._deserialize)
259+
self.job_execution = JobExecutionOperations(self._client, self._config, self._serialize, self._deserialize)
260+
self.job_executions = JobExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)
238261

239262
def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
240263
"""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)