Skip to content

Commit

Permalink
code and test (Azure#34802)
Browse files Browse the repository at this point in the history
Co-authored-by: azure-sdk <PythonSdkPipelines>
  • Loading branch information
azure-sdk authored Mar 18, 2024
1 parent a68e182 commit aa03c97
Show file tree
Hide file tree
Showing 246 changed files with 19,819 additions and 4,481 deletions.
39 changes: 39 additions & 0 deletions sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# Release History

## 3.1.0b1 (2024-03-18)

### Features Added

- Added operation ContainerAppsAPIClientOperationsMixin.get_custom_domain_verification_id
- Added operation JobsOperations.get_detector
- Added operation JobsOperations.list_detectors
- Added operation JobsOperations.proxy_get
- Added operation group AppResiliencyOperations
- Added operation group BuildAuthTokenOperations
- Added operation group BuildersOperations
- Added operation group BuildsByBuilderResourceOperations
- Added operation group BuildsOperations
- Added operation group DaprComponentResiliencyPoliciesOperations
- Added operation group DaprSubscriptionsOperations
- Added operation group DotNetComponentsOperations
- Added operation group JavaComponentsOperations
- Added operation group ManagedEnvironmentUsagesOperations
- Added operation group UsagesOperations
- Model AuthConfig has a new parameter encryption_settings
- Model AvailableWorkloadProfileProperties has a new parameter gpus
- Model CertificateProperties has a new parameter certificate_key_vault_properties
- Model CertificateProperties has a new parameter certificate_type
- Model CustomDomainConfiguration has a new parameter certificate_key_vault_properties
- Model DaprComponent has a new parameter service_component_bind
- Model GithubActionConfiguration has a new parameter build_environment_variables
- Model Ingress has a new parameter additional_port_mappings
- Model Ingress has a new parameter target_port_http_scheme
- Model Job has a new parameter extended_location
- Model JobPatchProperties has a new parameter extended_location
- Model LogAnalyticsConfiguration has a new parameter dynamic_json_columns
- Model Login has a new parameter token_store
- Model ManagedEnvironment has a new parameter app_insights_configuration
- Model ManagedEnvironment has a new parameter identity
- Model ManagedEnvironment has a new parameter open_telemetry_configuration
- Model ManagedEnvironmentStorageProperties has a new parameter nfs_azure_file
- Model ServiceBind has a new parameter client_type
- Model ServiceBind has a new parameter customized_keys

## 3.0.0 (2023-08-18)

### Features Added
Expand Down
7 changes: 2 additions & 5 deletions sdk/appcontainers/azure-mgmt-appcontainers/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 Appcontainers Management Client Library.
This package has been tested with Python 3.7+.
This package has been tested with Python 3.8+.
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.7+ is required to use this package.
- Python 3.8+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand Down Expand Up @@ -59,6 +59,3 @@ Code samples for this package can be found at:
If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-appcontainers%2FREADME.png)
8 changes: 4 additions & 4 deletions sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "4cd95123fb961c68740565a1efcaa5e43bd35802",
"commit": "e5404d3e55f885d2cb8fdbff3fd1a03bcfc6bb4c",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"use": [
"@autorest/python@6.7.1",
"@autorest/modelerfour@4.26.2"
"@autorest/python@6.13.7",
"@autorest/modelerfour@4.27.0"
],
"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/python@6.7.1 --use=@autorest/modelerfour@4.26.2 --version=3.9.7 --version-tolerant=False",
"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/python@6.13.7 --use=@autorest/modelerfour@4.27.0 --version=3.9.7 --version-tolerant=False",
"readme": "specification/app/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy

Expand All @@ -19,24 +18,23 @@
from azure.core.credentials import TokenCredential


class ContainerAppsAPIClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
class ContainerAppsAPIClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
"""Configuration for ContainerAppsAPIClient.
Note that all parameters used to create this instance are saved as instance
attributes.
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The ID of the target subscription. Required.
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2023-05-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-11-02-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:
super(ContainerAppsAPIClientConfiguration, self).__init__(**kwargs)
api_version: str = kwargs.pop("api_version", "2023-05-01")
api_version: str = kwargs.pop("api_version", "2023-11-02-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand All @@ -48,6 +46,7 @@ def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-appcontainers/{}".format(VERSION))
self.polling_interval = kwargs.get("polling_interval", 30)
self._configure(**kwargs)

def _configure(self, **kwargs: Any) -> None:
Expand All @@ -56,9 +55,9 @@ def _configure(self, **kwargs: Any) -> None:
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
self.authentication_policy = kwargs.get("authentication_policy")
if self.credential and not self.authentication_policy:
self.authentication_policy = ARMChallengeAuthenticationPolicy(
Expand Down
Loading

0 comments on commit aa03c97

Please sign in to comment.