Skip to content

Commit 9194dc1

Browse files
[AutoRelease] t2-servicelinker-2024-03-07-57247(can only be merged by SDK owner) (#34685)
* code and test * update-testcase * Update assets.json * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 571f231 commit 9194dc1

Some content is hidden

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

57 files changed

+1540
-778
lines changed

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

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

3+
## 1.2.0b2 (2024-03-19)
4+
5+
### Features Added
6+
7+
- Added operation LinkersOperations.list_dapr_configurations
8+
- Model AccessKeyInfoBase has a new parameter auth_mode
9+
- Model AuthInfoBase has a new parameter auth_mode
10+
- Model ConfigurationInfo has a new parameter additional_connection_string_properties
11+
- Model ConfigurationInfo has a new parameter configuration_store
12+
- Model ConfigurationInfo has a new parameter dapr_properties
13+
- Model ConfigurationName has a new parameter required
14+
- Model ConfigurationNameItem has a new parameter dapr_properties
15+
- Model ConfigurationNameItem has a new parameter secret_type
16+
- Model SecretAuthInfo has a new parameter auth_mode
17+
- Model ServicePrincipalCertificateAuthInfo has a new parameter auth_mode
18+
- Model ServicePrincipalSecretAuthInfo has a new parameter auth_mode
19+
- Model SourceConfiguration has a new parameter config_type
20+
- Model SourceConfiguration has a new parameter description
21+
- Model SourceConfiguration has a new parameter key_vault_reference_identity
22+
- Model SystemAssignedIdentityAuthInfo has a new parameter auth_mode
23+
- Model UserAccountAuthInfo has a new parameter auth_mode
24+
- Model UserAssignedIdentityAuthInfo has a new parameter auth_mode
25+
326
## 1.2.0b1 (2022-12-02)
427

528
### Features Added

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

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,61 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Service Linker Management Client Library.
4-
This package has been tested with Python 3.7+.
4+
This package has been tested with Python 3.8+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
88

99
_Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691_
1010

11-
# Usage
11+
## Getting started
1212

13+
### Prerequisites
1314

14-
To learn how to use this package, see the [quickstart guide](https://aka.ms/azsdk/python/mgmt)
15-
16-
For docs and references, see [Python SDK References](https://docs.microsoft.com/python/api/overview/azure/)
17-
Code samples for this package can be found at [Service Linker Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com.
18-
Additional code samples for different Azure services are available at [Samples Repo](https://github.com/Azure-Samples/azure-samples-python-management/tree/main/samples/servicelinker)
15+
- Python 3.8+ is required to use this package.
16+
- [Azure subscription](https://azure.microsoft.com/free/)
1917

18+
### Install the package
2019

21-
# Provide Feedback
20+
```bash
21+
pip install azure-mgmt-servicelinker
22+
pip install azure-identity
23+
```
24+
25+
### Authentication
26+
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
28+
29+
- `AZURE_CLIENT_ID` for Azure client ID.
30+
- `AZURE_TENANT_ID` for Azure tenant ID.
31+
- `AZURE_CLIENT_SECRET` for Azure client secret.
32+
33+
In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
34+
35+
With above configuration, client can be authenticated by following code:
36+
37+
```python
38+
from azure.identity import DefaultAzureCredential
39+
from azure.mgmt.servicelinker import ServiceLinkerManagementClient
40+
import os
41+
42+
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
43+
client = ServiceLinkerManagementClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
44+
```
45+
46+
## Examples
47+
48+
Code samples for this package can be found at:
49+
- [Search Service Linker Management](https://docs.microsoft.com/samples/browse/?languages=python&term=Getting%20started%20-%20Managing&terms=Getting%20started%20-%20Managing) on docs.microsoft.com
50+
- [Azure Python Mgmt SDK Samples Repo](https://aka.ms/azsdk/python/mgmt/samples)
51+
52+
53+
## Troubleshooting
54+
55+
## Next steps
56+
57+
## Provide Feedback
2258

2359
If you encounter any bugs or have suggestions, please file an issue in the
2460
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2561
section of the project.
26-
27-
28-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-servicelinker%2FREADME.png)
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "279924e2cefe36a86703fd85a91679f6dfc067fc",
2+
"commit": "84849e5293de3a8e01cbdde13b2d7086d3fb34d6",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
4+
"autorest": "3.9.7",
55
"use": [
6-
"@autorest/python@6.2.7",
7-
"@autorest/modelerfour@4.24.3"
6+
"@autorest/python@6.7.1",
7+
"@autorest/modelerfour@4.26.2"
88
],
9-
"autorest_command": "autorest specification/servicelinker/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 --tag=package-2022-11-01-preview --use=@autorest/python@6.2.7 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/servicelinker/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",
1010
"readme": "specification/servicelinker/resource-manager/readme.md"
1111
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"AssetsRepo": "Azure/azure-sdk-assets",
3+
"AssetsRepoPrefixPath": "python",
4+
"TagPrefix": "python/servicelinker/azure-mgmt-servicelinker",
5+
"Tag": "python/servicelinker/azure-mgmt-servicelinker_929a1bd9c7"
6+
}

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
import sys
109
from typing import Any, TYPE_CHECKING
1110

1211
from azure.core.configuration import Configuration
@@ -15,11 +14,6 @@
1514

1615
from ._version import VERSION
1716

18-
if sys.version_info >= (3, 8):
19-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20-
else:
21-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22-
2317
if TYPE_CHECKING:
2418
# pylint: disable=unused-import,ungrouped-imports
2519
from azure.core.credentials import TokenCredential
@@ -33,14 +27,14 @@ class ServiceLinkerManagementClientConfiguration(Configuration): # pylint: disa
3327
3428
:param credential: Credential needed for the client to connect to Azure. Required.
3529
:type credential: ~azure.core.credentials.TokenCredential
36-
:keyword api_version: Api Version. Default value is "2022-11-01-preview". Note that overriding
30+
:keyword api_version: Api Version. Default value is "2023-04-01-preview". Note that overriding
3731
this default value may result in unsupported behavior.
3832
:paramtype api_version: str
3933
"""
4034

4135
def __init__(self, credential: "TokenCredential", **kwargs: Any) -> None:
4236
super(ServiceLinkerManagementClientConfiguration, self).__init__(**kwargs)
43-
api_version: Literal["2022-11-01-preview"] = kwargs.pop("api_version", "2022-11-01-preview")
37+
api_version: str = kwargs.pop("api_version", "2023-04-01-preview")
4438

4539
if credential is None:
4640
raise ValueError("Parameter 'credential' must not be None.")

0 commit comments

Comments
 (0)