Skip to content

Commit 4472c35

Browse files
[AutoRelease] t2-dashboard-2022-08-08-86245(Do not merge) (Azure#25596)
* code and test * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: zhenbiao wei <[email protected]>
1 parent 10d13b3 commit 4472c35

30 files changed

+3098
-592
lines changed

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

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

3+
## 1.0.0 (2022-08-17)
4+
5+
**Features**
6+
7+
- Added operation group PrivateEndpointConnectionsOperations
8+
- Added operation group PrivateLinkResourcesOperations
9+
- Model ManagedGrafanaProperties has a new parameter api_key
10+
- Model ManagedGrafanaProperties has a new parameter deterministic_outbound_ip
11+
- Model ManagedGrafanaProperties has a new parameter grafana_integrations
12+
- Model ManagedGrafanaProperties has a new parameter outbound_i_ps
13+
- Model ManagedGrafanaProperties has a new parameter private_endpoint_connections
14+
- Model ManagedGrafanaProperties has a new parameter public_network_access
15+
- Model ManagedGrafanaUpdateParameters has a new parameter properties
16+
317
## 1.0.0b2 (2022-04-13)
418

519
**Features**
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
include _meta.json
2-
recursive-include tests *.py *.yaml
2+
recursive-include tests *.py *.json
33
include *.md
44
include azure/__init__.py
55
include azure/mgmt/__init__.py
66
include LICENSE
7+
include azure/mgmt/dashboard/py.typed

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

Lines changed: 1 addition & 1 deletion
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 Dashboard 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_
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"autorest": "3.7.2",
33
"use": [
4-
"@autorest/python@5.12.0",
4+
"@autorest/python@5.16.0",
55
"@autorest/[email protected]"
66
],
7-
"commit": "36bc7d26fddfaae6ec4f8fda127a5767d27efdd3",
7+
"commit": "1b301846a0e31a668c59b264c900be2128762fac",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/dashboard/resource-manager/readme.md --multiapi --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.12.0 --use=@autorest/[email protected] --version=3.7.2",
9+
"autorest_command": "autorest specification/dashboard/resource-manager/readme.md --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --use=@autorest/python@5.16.0 --use=@autorest/[email protected] --version=3.7.2",
1010
"readme": "specification/dashboard/resource-manager/readme.md"
1111
}

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@
1010
from ._version import VERSION
1111

1212
__version__ = VERSION
13+
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
1320
__all__ = ['DashboardManagementClient']
21+
__all__.extend([p for p in _patch_all if p not in __all__])
1422

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()
23+
_patch_sdk()

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,19 @@
1919
from azure.core.credentials import TokenCredential
2020

2121

22-
class DashboardManagementClientConfiguration(Configuration):
22+
class DashboardManagementClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
2323
"""Configuration for DashboardManagementClient.
2424
2525
Note that all parameters used to create this instance are saved as instance
2626
attributes.
2727
2828
:param credential: Credential needed for the client to connect to Azure.
2929
:type credential: ~azure.core.credentials.TokenCredential
30-
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
30+
:param subscription_id: The ID of the target subscription.
3131
:type subscription_id: str
32+
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
33+
default value may result in unsupported behavior.
34+
:paramtype api_version: str
3235
"""
3336

3437
def __init__(
@@ -38,14 +41,16 @@ def __init__(
3841
**kwargs: Any
3942
) -> None:
4043
super(DashboardManagementClientConfiguration, self).__init__(**kwargs)
44+
api_version = kwargs.pop('api_version', "2022-08-01") # type: str
45+
4146
if credential is None:
4247
raise ValueError("Parameter 'credential' must not be None.")
4348
if subscription_id is None:
4449
raise ValueError("Parameter 'subscription_id' must not be None.")
4550

4651
self.credential = credential
4752
self.subscription_id = subscription_id
48-
self.api_version = "2021-09-01-preview"
53+
self.api_version = api_version
4954
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5055
kwargs.setdefault('sdk_moniker', 'mgmt-dashboard/{}'.format(VERSION))
5156
self._configure(**kwargs)

sdk/dashboard/azure-mgmt-dashboard/azure/mgmt/dashboard/_dashboard_management_client.py

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, Optional, TYPE_CHECKING
10+
from typing import Any, TYPE_CHECKING
11+
12+
from msrest import Deserializer, Serializer
1113

1214
from azure.core.rest import HttpRequest, HttpResponse
1315
from azure.mgmt.core import ARMPipelineClient
14-
from msrest import Deserializer, Serializer
1516

1617
from . import models
1718
from ._configuration import DashboardManagementClientConfiguration
18-
from .operations import GrafanaOperations, Operations
19+
from .operations import GrafanaOperations, Operations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations
1920

2021
if TYPE_CHECKING:
2122
# pylint: disable=unused-import,ungrouped-imports
@@ -28,13 +29,20 @@ class DashboardManagementClient:
2829
:vartype operations: azure.mgmt.dashboard.operations.Operations
2930
:ivar grafana: GrafanaOperations operations
3031
:vartype grafana: azure.mgmt.dashboard.operations.GrafanaOperations
32+
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
33+
:vartype private_endpoint_connections:
34+
azure.mgmt.dashboard.operations.PrivateEndpointConnectionsOperations
35+
:ivar private_link_resources: PrivateLinkResourcesOperations operations
36+
:vartype private_link_resources: azure.mgmt.dashboard.operations.PrivateLinkResourcesOperations
3137
:param credential: Credential needed for the client to connect to Azure.
3238
:type credential: ~azure.core.credentials.TokenCredential
33-
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
34-
subscription. The subscription ID forms part of the URI for every service call.
39+
:param subscription_id: The ID of the target subscription.
3540
:type subscription_id: str
36-
:param base_url: Service URL. Default value is 'https://management.azure.com'.
41+
:param base_url: Service URL. Default value is "https://management.azure.com".
3742
:type base_url: str
43+
:keyword api_version: Api Version. Default value is "2022-08-01". Note that overriding this
44+
default value may result in unsupported behavior.
45+
:paramtype api_version: str
3846
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
3947
Retry-After header is present.
4048
"""
@@ -53,13 +61,23 @@ def __init__(
5361
self._serialize = Serializer(client_models)
5462
self._deserialize = Deserializer(client_models)
5563
self._serialize.client_side_validation = False
56-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
57-
self.grafana = GrafanaOperations(self._client, self._config, self._serialize, self._deserialize)
64+
self.operations = Operations(
65+
self._client, self._config, self._serialize, self._deserialize
66+
)
67+
self.grafana = GrafanaOperations(
68+
self._client, self._config, self._serialize, self._deserialize
69+
)
70+
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
71+
self._client, self._config, self._serialize, self._deserialize
72+
)
73+
self.private_link_resources = PrivateLinkResourcesOperations(
74+
self._client, self._config, self._serialize, self._deserialize
75+
)
5876

5977

6078
def _send_request(
6179
self,
62-
request, # type: HttpRequest
80+
request: HttpRequest,
6381
**kwargs: Any
6482
) -> HttpResponse:
6583
"""Runs the network request through the client's chained policies.

sdk/dashboard/azure-mgmt-dashboard/azure/mgmt/dashboard/_metadata.json

Lines changed: 0 additions & 103 deletions
This file was deleted.

sdk/dashboard/azure-mgmt-dashboard/azure/mgmt/dashboard/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b2"
9+
VERSION = "1.0.0"

sdk/dashboard/azure-mgmt-dashboard/azure/mgmt/dashboard/aio/__init__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77
# --------------------------------------------------------------------------
88

99
from ._dashboard_management_client import DashboardManagementClient
10+
11+
try:
12+
from ._patch import __all__ as _patch_all
13+
from ._patch import * # type: ignore # pylint: disable=unused-wildcard-import
14+
except ImportError:
15+
_patch_all = []
16+
from ._patch import patch_sdk as _patch_sdk
1017
__all__ = ['DashboardManagementClient']
18+
__all__.extend([p for p in _patch_all if p not in __all__])
1119

12-
# `._patch.py` is used for handwritten extensions to the generated code
13-
# Example: https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
14-
from ._patch import patch_sdk
15-
patch_sdk()
20+
_patch_sdk()

0 commit comments

Comments
 (0)