Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoRelease] t2-appcontainers-2022-10-05-17273(Do not merge) #26634

Merged
merged 2 commits into from
Oct 12, 2022
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions sdk/appcontainers/azure-mgmt-appcontainers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# Release History

## 2.0.0b1 (2022-10-12)

### Features Added

- Added operation ContainerAppsOperations.get_auth_token
- Added operation ManagedEnvironmentsOperations.get_auth_token
- Added operation ManagedEnvironmentsOperations.list_workload_profile_states
- Added operation group AvailableWorkloadProfilesOperations
- Added operation group BillingMetersOperations
- Added operation group ConnectedEnvironmentsCertificatesOperations
- Added operation group ConnectedEnvironmentsDaprComponentsOperations
- Added operation group ConnectedEnvironmentsOperations
- Added operation group ConnectedEnvironmentsStoragesOperations
- Added operation group ContainerAppsDiagnosticsOperations
- Added operation group ManagedEnvironmentDiagnosticsOperations
- Added operation group ManagedEnvironmentsDiagnosticsOperations
- Model CertificateProperties has a new parameter subject_alternative_names
- Model Configuration has a new parameter max_inactive_revisions
- Model ContainerApp has a new parameter environment_id
- Model ContainerApp has a new parameter event_stream_endpoint
- Model ContainerApp has a new parameter extended_location
- Model ContainerApp has a new parameter workload_profile_type
- Model CustomHostnameAnalysisResult has a new parameter conflict_with_environment_custom_domain
- Model Dapr has a new parameter enable_api_logging
- Model Dapr has a new parameter http_max_request_size
- Model Dapr has a new parameter http_read_buffer_size
- Model Dapr has a new parameter log_level
- Model DaprComponent has a new parameter secret_store_component
- Model Ingress has a new parameter exposed_port
- Model Ingress has a new parameter ip_security_restrictions
- Model ManagedEnvironment has a new parameter custom_domain_configuration
- Model ManagedEnvironment has a new parameter event_stream_endpoint
- Model ManagedEnvironment has a new parameter sku
- Model ManagedEnvironment has a new parameter workload_profiles
- Model ReplicaContainer has a new parameter exec_endpoint
- Model ReplicaContainer has a new parameter log_stream_endpoint
- Model Revision has a new parameter last_active_time
- Model ScaleRule has a new parameter tcp
- Model Template has a new parameter init_containers
- Model VnetConfiguration has a new parameter outbound_settings

### Breaking Changes

- Model CustomHostnameAnalysisResult no longer has parameter id
- Model CustomHostnameAnalysisResult no longer has parameter name
- Model CustomHostnameAnalysisResult no longer has parameter system_data
- Model CustomHostnameAnalysisResult no longer has parameter type

## 1.0.0 (2022-05-17)

**Breaking changes**
Expand Down
3 changes: 2 additions & 1 deletion sdk/appcontainers/azure-mgmt-appcontainers/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include _meta.json
recursive-include tests *.py *.yaml
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
4 changes: 1 addition & 3 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.6+.
This package has been tested with Python 3.7+.
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).

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


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



For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
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.
Expand Down
10 changes: 5 additions & 5 deletions sdk/appcontainers/azure-mgmt-appcontainers/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"autorest": "3.7.2",
"autorest": "3.9.2",
"use": [
"@autorest/python@5.13.0",
"@autorest/modelerfour@4.19.3"
"@autorest/python@6.1.9",
"@autorest/modelerfour@4.24.3"
],
"commit": "32143b0f5f230ee2601e3c5d1990188666a5058d",
"commit": "339675bcbc8172eacbe283470405e1e578632afc",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"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",
"readme": "specification/app/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@
from ._version import VERSION

__version__ = VERSION
__all__ = ['ContainerAppsAPIClient']

# `._patch.py` is used for handwritten extensions to the generated code
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
from ._patch import patch_sdk
patch_sdk()
try:
from ._patch import __all__ as _patch_all
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = ["ContainerAppsAPIClient"]
__all__.extend([p for p in _patch_all if p not in __all__])

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,18 @@ class ContainerAppsAPIClientConfiguration(Configuration): # pylint: disable=too
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.
: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.
:param subscription_id: The ID of the target subscription. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-03-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2022-06-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:
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
super(ContainerAppsAPIClientConfiguration, self).__init__(**kwargs)
api_version = kwargs.pop('api_version', "2022-03-01") # type: str
api_version = kwargs.pop("api_version", "2022-06-01-preview") # type: str

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand All @@ -51,23 +46,24 @@ def __init__(
self.credential = credential
self.subscription_id = subscription_id
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.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-appcontainers/{}".format(VERSION))
self._configure(**kwargs)

def _configure(
self,
**kwargs # type: Any
self, **kwargs # type: Any
):
# type: (...) -> None
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
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.authentication_policy = kwargs.get('authentication_policy')
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
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.authentication_policy = kwargs.get("authentication_policy")
if self.credential and not self.authentication_policy:
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
self.authentication_policy = ARMChallengeAuthenticationPolicy(
self.credential, *self.credential_scopes, **kwargs
)
Loading