Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
95 changes: 95 additions & 0 deletions sdk/appplatform/azure-mgmt-appplatform/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,100 @@
# Release History

## 10.1.0b1 (2025-04-17)

### Features Added

- Client `AppPlatformManagementClient` added operation group `eureka_servers`
- Client `AppPlatformManagementClient` added operation group `jobs`
- Client `AppPlatformManagementClient` added operation group `job`
- Client `AppPlatformManagementClient` added operation group `job_execution`
- Client `AppPlatformManagementClient` added operation group `job_executions`
- Model `AppResourceProperties` added property `secrets`
- Model `AppResourceProperties` added property `workload_profile_name`
- Model `AppResourceProperties` added property `test_endpoint_auth_state`
- Enum `BindingType` added member `CA_CERTIFICATES`
- Model `BuildpackProperties` added property `version`
- Model `ClusterResourceProperties` added property `maintenance_schedule_configuration`
- Model `ClusterResourceProperties` added property `managed_environment_id`
- Model `ClusterResourceProperties` added property `infra_resource_group`
- Model `ConfigServerProperties` added property `resource_requests`
- Model `ConfigServerProperties` added property `instances`
- Model `ConfigServerProperties` added property `enabled_state`
- Enum `ConfigServerState` added member `CREATING`
- Enum `ConfigServerState` added member `DELETING`
- Model `ConfigurationServiceSettings` added property `refresh_interval_in_seconds`
- Model `DeploymentSettings` added property `scale`
- Model `GatewayProperties` added property `apm_types`
- Model `GatewayProperties` added property `addon_configs`
- Model `GatewayProperties` added property `response_cache_properties`
- Model `ServiceResource` added property `identity`
- Model `ServiceVNetAddons` added property `private_storage_access`
- Model `ServiceVNetAddons` added property `private_dns_zone_id`
- Model `SupportedBuildpackResourceProperties` added property `version`
- Enum `SupportedRuntimeValue` added member `JAVA21`
- Added enum `ApmType`
- Added enum `ConfigServerEnabledState`
- Added model `ConfigServerInstance`
- Added model `ConfigServerResourceCollection`
- Added model `ConfigServerResourceRequests`
- Added model `CustomScaleRule`
- Added model `EnvSecretsCollection`
- Added model `EnvVar`
- Added enum `EurekaServerEnabledState`
- Added model `EurekaServerProperties`
- Added model `EurekaServerResource`
- Added model `EurekaServerResourceCollection`
- Added enum `EurekaServerState`
- Added enum `Frequency`
- Added model `GatewayLocalResponseCachePerInstanceProperties`
- Added model `GatewayLocalResponseCachePerRouteProperties`
- Added model `GatewayResponseCacheProperties`
- Added model `HttpScaleRule`
- Added model `JobExecution`
- Added model `JobExecutionCollection`
- Added enum `JobExecutionRunningState`
- Added model `JobExecutionTemplate`
- Added model `JobResource`
- Added model `JobResourceCollection`
- Added model `JobResourceProperties`
- Added enum `JobResourceProvisioningState`
- Added model `JobResourceRequests`
- Added model `JobTriggerConfig`
- Added model `MaintenanceScheduleConfiguration`
- Added model `ManagedComponentReference`
- Added model `ManualJobTriggerConfig`
- Added enum `PrivateStorageAccess`
- Added model `QueueScaleRule`
- Added model `Scale`
- Added model `ScaleRule`
- Added model `ScaleRuleAuth`
- Added model `Secret`
- Added model `SystemAssignedServiceIdentity`
- Added enum `SystemAssignedServiceIdentityType`
- Added model `TcpScaleRule`
- Added enum `TestEndpointAuthState`
- Added enum `TriggerType`
- Added enum `WeekDay`
- Added model `WeeklyMaintenanceScheduleConfiguration`
- Model `ConfigServersOperations` added method `begin_delete`
- Model `ConfigServersOperations` added method `list`
- Model `GatewaysOperations` added method `begin_update_capacity`
- Added model `EurekaServersOperations`
- Added model `JobExecutionOperations`
- Added model `JobExecutionsOperations`
- Added model `JobOperations`
- Added model `JobsOperations`
- 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)`
- 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)`
- 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)`
- 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)`
- 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)`
- 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)`
- 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)`
- 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)`
- 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)`
- 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)`

## 10.0.0 (2024-10-29)

### Breaking Changes
Expand Down
6 changes: 3 additions & 3 deletions sdk/appplatform/azure-mgmt-appplatform/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

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

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

### Prerequisites

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

### Install the package
Expand All @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

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

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
6 changes: 3 additions & 3 deletions sdk/appplatform/azure-mgmt-appplatform/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "71341bf84d11e4cf6c3d3c6aa9d1615238b20e90",
"commit": "025ed7c8f2766398935e005e36d4a753805ed215",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.19.0",
"@autorest/python@6.32.3",
"@autorest/[email protected]"
],
"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",
"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",
"readme": "specification/appplatform/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._app_platform_management_client import AppPlatformManagementClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._app_platform_management_client import AppPlatformManagementClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AppPlatformManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,14 @@
CustomizedAcceleratorsOperations,
DeploymentsOperations,
DevToolPortalsOperations,
EurekaServersOperations,
GatewayCustomDomainsOperations,
GatewayRouteConfigsOperations,
GatewaysOperations,
JobExecutionOperations,
JobExecutionsOperations,
JobOperations,
JobsOperations,
MonitoringSettingsOperations,
Operations,
PredefinedAcceleratorsOperations,
Expand All @@ -52,17 +57,18 @@
)

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


class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class AppPlatformManagementClient: # pylint: disable=too-many-instance-attributes
"""REST API for Azure Spring Apps.

:ivar services: ServicesOperations operations
:vartype services: azure.mgmt.appplatform.operations.ServicesOperations
:ivar apms: ApmsOperations operations
:vartype apms: azure.mgmt.appplatform.operations.ApmsOperations
:ivar eureka_servers: EurekaServersOperations operations
:vartype eureka_servers: azure.mgmt.appplatform.operations.EurekaServersOperations
:ivar config_servers: ConfigServersOperations operations
:vartype config_servers: azure.mgmt.appplatform.operations.ConfigServersOperations
:ivar configuration_services: ConfigurationServicesOperations operations
Expand Down Expand Up @@ -127,15 +133,23 @@ class AppPlatformManagementClient: # pylint: disable=client-accepts-api-version
:ivar predefined_accelerators: PredefinedAcceleratorsOperations operations
:vartype predefined_accelerators:
azure.mgmt.appplatform.operations.PredefinedAcceleratorsOperations
:ivar jobs: JobsOperations operations
:vartype jobs: azure.mgmt.appplatform.operations.JobsOperations
:ivar job: JobOperations operations
:vartype job: azure.mgmt.appplatform.operations.JobOperations
:ivar job_execution: JobExecutionOperations operations
:vartype job_execution: azure.mgmt.appplatform.operations.JobExecutionOperations
:ivar job_executions: JobExecutionsOperations operations
:vartype job_executions: azure.mgmt.appplatform.operations.JobExecutionsOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -177,6 +191,7 @@ def __init__(
self._serialize.client_side_validation = False
self.services = ServicesOperations(self._client, self._config, self._serialize, self._deserialize)
self.apms = ApmsOperations(self._client, self._config, self._serialize, self._deserialize)
self.eureka_servers = EurekaServersOperations(self._client, self._config, self._serialize, self._deserialize)
self.config_servers = ConfigServersOperations(self._client, self._config, self._serialize, self._deserialize)
self.configuration_services = ConfigurationServicesOperations(
self._client, self._config, self._serialize, self._deserialize
Expand Down Expand Up @@ -235,6 +250,10 @@ def __init__(
self.predefined_accelerators = PredefinedAcceleratorsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.jobs = JobsOperations(self._client, self._config, self._serialize, self._deserialize)
self.job = JobOperations(self._client, self._config, self._serialize, self._deserialize)
self.job_execution = JobExecutionOperations(self._client, self._config, self._serialize, self._deserialize)
self.job_executions = JobExecutionsOperations(self._client, self._config, self._serialize, self._deserialize)

def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> HttpResponse:
"""Runs the network request through the client's chained policies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
from ._version import VERSION

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


class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for AppPlatformManagementClient.

Note that all parameters used to create this instance are saved as instance
Expand All @@ -29,13 +28,13 @@ class AppPlatformManagementClientConfiguration: # pylint: disable=too-many-inst
:param subscription_id: Gets subscription ID which uniquely identify the Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-12-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2024-05-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

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

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading