Skip to content

Commit e3415c4

Browse files
[AutoRelease] t2-appcontainers-2022-10-05-17273(Do not merge) (#26634)
* code and test * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: zhenbiao wei <[email protected]>
1 parent 05c325b commit e3415c4

File tree

66 files changed

+20519
-6200
lines changed

Some content is hidden

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

66 files changed

+20519
-6200
lines changed

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

+48
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,53 @@
11
# Release History
22

3+
## 2.0.0b1 (2022-10-12)
4+
5+
### Features Added
6+
7+
- Added operation ContainerAppsOperations.get_auth_token
8+
- Added operation ManagedEnvironmentsOperations.get_auth_token
9+
- Added operation ManagedEnvironmentsOperations.list_workload_profile_states
10+
- Added operation group AvailableWorkloadProfilesOperations
11+
- Added operation group BillingMetersOperations
12+
- Added operation group ConnectedEnvironmentsCertificatesOperations
13+
- Added operation group ConnectedEnvironmentsDaprComponentsOperations
14+
- Added operation group ConnectedEnvironmentsOperations
15+
- Added operation group ConnectedEnvironmentsStoragesOperations
16+
- Added operation group ContainerAppsDiagnosticsOperations
17+
- Added operation group ManagedEnvironmentDiagnosticsOperations
18+
- Added operation group ManagedEnvironmentsDiagnosticsOperations
19+
- Model CertificateProperties has a new parameter subject_alternative_names
20+
- Model Configuration has a new parameter max_inactive_revisions
21+
- Model ContainerApp has a new parameter environment_id
22+
- Model ContainerApp has a new parameter event_stream_endpoint
23+
- Model ContainerApp has a new parameter extended_location
24+
- Model ContainerApp has a new parameter workload_profile_type
25+
- Model CustomHostnameAnalysisResult has a new parameter conflict_with_environment_custom_domain
26+
- Model Dapr has a new parameter enable_api_logging
27+
- Model Dapr has a new parameter http_max_request_size
28+
- Model Dapr has a new parameter http_read_buffer_size
29+
- Model Dapr has a new parameter log_level
30+
- Model DaprComponent has a new parameter secret_store_component
31+
- Model Ingress has a new parameter exposed_port
32+
- Model Ingress has a new parameter ip_security_restrictions
33+
- Model ManagedEnvironment has a new parameter custom_domain_configuration
34+
- Model ManagedEnvironment has a new parameter event_stream_endpoint
35+
- Model ManagedEnvironment has a new parameter sku
36+
- Model ManagedEnvironment has a new parameter workload_profiles
37+
- Model ReplicaContainer has a new parameter exec_endpoint
38+
- Model ReplicaContainer has a new parameter log_stream_endpoint
39+
- Model Revision has a new parameter last_active_time
40+
- Model ScaleRule has a new parameter tcp
41+
- Model Template has a new parameter init_containers
42+
- Model VnetConfiguration has a new parameter outbound_settings
43+
44+
### Breaking Changes
45+
46+
- Model CustomHostnameAnalysisResult no longer has parameter id
47+
- Model CustomHostnameAnalysisResult no longer has parameter name
48+
- Model CustomHostnameAnalysisResult no longer has parameter system_data
49+
- Model CustomHostnameAnalysisResult no longer has parameter type
50+
351
## 1.0.0 (2022-05-17)
452

553
**Breaking changes**

sdk/appcontainers/azure-mgmt-appcontainers/MANIFEST.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
include _meta.json
2-
recursive-include tests *.py *.yaml
2+
recursive-include tests *.py *.json
3+
recursive-include samples *.py *.md
34
include *.md
45
include azure/__init__.py
56
include azure/mgmt/__init__.py

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

+1-3
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 Appcontainers Management Client Library.
4-
This package has been tested with Python 3.6+.
4+
This package has been tested with Python 3.7+.
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,8 +12,6 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313

1414
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
15-
16-
1715

1816
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
1917
Code samples for this package can be found at [Appcontainers Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.7.2",
2+
"autorest": "3.9.2",
33
"use": [
4-
"@autorest/python@5.13.0",
5-
"@autorest/modelerfour@4.19.3"
4+
"@autorest/python@6.1.9",
5+
"@autorest/modelerfour@4.24.3"
66
],
7-
"commit": "32143b0f5f230ee2601e3c5d1990188666a5058d",
7+
"commit": "339675bcbc8172eacbe283470405e1e578632afc",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/app/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.13.0 --use=@autorest/modelerfour@4.19.3 --version=3.7.2",
9+
"autorest_command": "autorest specification/app/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.1.9 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/app/resource-manager/readme.md"
1111
}

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

+11-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@
1010
from ._version import VERSION
1111

1212
__version__ = VERSION
13-
__all__ = ['ContainerAppsAPIClient']
1413

15-
# `._patch.py` is used for handwritten extensions to the generated code
16-
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
17-
from ._patch import patch_sdk
18-
patch_sdk()
14+
try:
15+
from ._patch import __all__ as _patch_all
16+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
17+
except ImportError:
18+
_patch_all = []
19+
from ._patch import patch_sdk as _patch_sdk
20+
21+
__all__ = ["ContainerAppsAPIClient"]
22+
__all__.extend([p for p in _patch_all if p not in __all__])
23+
24+
_patch_sdk()

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

+21-25
Original file line numberDiff line numberDiff line change
@@ -25,23 +25,18 @@ class ContainerAppsAPIClientConfiguration(Configuration): # pylint: disable=too
2525
Note that all parameters used to create this instance are saved as instance
2626
attributes.
2727
28-
:param credential: Credential needed for the client to connect to Azure.
28+
:param credential: Credential needed for the client to connect to Azure. Required.
2929
:type credential: ~azure.core.credentials.TokenCredential
30-
:param subscription_id: The ID of the target subscription.
30+
:param subscription_id: The ID of the target subscription. Required.
3131
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this
33-
default value may result in unsupported behavior.
32+
:keyword api_version: Api Version. Default value is "2022-06-01-preview". Note that overriding
33+
this default value may result in unsupported behavior.
3434
:paramtype api_version: str
3535
"""
3636

37-
def __init__(
38-
self,
39-
credential: "TokenCredential",
40-
subscription_id: str,
41-
**kwargs: Any
42-
) -> None:
37+
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4338
super(ContainerAppsAPIClientConfiguration, self).__init__(**kwargs)
44-
api_version = kwargs.pop('api_version', "2022-03-01") # type: str
39+
api_version = kwargs.pop("api_version", "2022-06-01-preview") # type: str
4540

4641
if credential is None:
4742
raise ValueError("Parameter 'credential' must not be None.")
@@ -51,23 +46,24 @@ def __init__(
5146
self.credential = credential
5247
self.subscription_id = subscription_id
5348
self.api_version = api_version
54-
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
55-
kwargs.setdefault('sdk_moniker', 'mgmt-appcontainers/{}'.format(VERSION))
49+
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
50+
kwargs.setdefault("sdk_moniker", "mgmt-appcontainers/{}".format(VERSION))
5651
self._configure(**kwargs)
5752

5853
def _configure(
59-
self,
60-
**kwargs # type: Any
54+
self, **kwargs # type: Any
6155
):
6256
# type: (...) -> None
63-
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
64-
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
65-
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
66-
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
67-
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
68-
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
69-
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
70-
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
71-
self.authentication_policy = kwargs.get('authentication_policy')
57+
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
58+
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
59+
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
60+
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
61+
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
62+
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
63+
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
64+
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
65+
self.authentication_policy = kwargs.get("authentication_policy")
7266
if self.credential and not self.authentication_policy:
73-
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
67+
self.authentication_policy = ARMChallengeAuthenticationPolicy(
68+
self.credential, *self.credential_scopes, **kwargs
69+
)

0 commit comments

Comments
 (0)