Skip to content

Commit b9bd53c

Browse files
author
SDKAuto
committed
CodeGen from PR 15240 in Azure/azure-rest-api-specs
Merge 7f0c72d20c6ec181c1638565fffc06ab22056940 into 1e9e2b4
1 parent cc860fc commit b9bd53c

Some content is hidden

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

52 files changed

+7454
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.. :changelog:
2+
3+
Release History
4+
===============
5+
6+
0.1.0
7+
++++++
8+
* Initial release.

src/powerbiprivatelinks/README.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Azure CLI powerbiprivatelinks Extension #
2+
This is the extension for powerbiprivatelinks
3+
4+
### How to use ###
5+
Install this extension using the below CLI command
6+
```
7+
az extension add --name powerbiprivatelinks
8+
```
9+
10+
### Included Features ###
11+
#### powerbiprivatelinks private-link-service-for-power-bi ####
12+
##### List #####
13+
```
14+
az powerbiprivatelinks private-link-service-for-power-bi list
15+
```
16+
#### powerbiprivatelinks private-link-service-resource-operation-result ####
17+
##### Show #####
18+
```
19+
az powerbiprivatelinks private-link-service-resource-operation-result show
20+
```
21+
#### powerbiprivatelinks private-link-service ####
22+
##### List #####
23+
```
24+
az powerbiprivatelinks private-link-service list
25+
```
26+
#### powerbiprivatelinks power-bi-resource ####
27+
##### Create #####
28+
```
29+
az powerbiprivatelinks power-bi-resource create --location "global" --tenant-id "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f" \
30+
--tags tag1="value1" tag2="value2"
31+
```
32+
##### List #####
33+
```
34+
az powerbiprivatelinks power-bi-resource list
35+
```
36+
##### Delete #####
37+
```
38+
az powerbiprivatelinks power-bi-resource delete
39+
```
40+
#### powerbiprivatelinks private-link-resource ####
41+
##### List #####
42+
```
43+
az powerbiprivatelinks private-link-resource list
44+
```
45+
#### powerbiprivatelinks private-endpoint-connection-proxy ####
46+
##### Create #####
47+
```
48+
az powerbiprivatelinks private-endpoint-connection-proxy create \
49+
--connection-details group-id="tenant" id="10001" link-identifier="1253" member-name="tenant" private-ip-address="10.0.1.4" \
50+
--remote-private-endpoint-id "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" \
51+
--private-link-service-connections name="myPrivateEndpointConnection" group-ids="tenant" request-message="opt msg" \
52+
--private-link-service-proxies "[{\\"groupConnectivityInformation\\":[{\\"customerVisibleFqdns\\":[\\"91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net\\"],\\"groupId\\":\\"tenant\\",\\"internalFqdn\\":\\"91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net\\",\\"memberName\\":\\"tenant\\",\\"privateLinkServiceArmRegion\\":\\"\\"}],\\"id\\":\\"/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721\\",\\"remotePrivateEndpointConnection\\":{\\"id\\":\\"/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721\\"},\\"remotePrivateLinkServiceConnectionState\\":{\\"description\\":\\"please approve\\",\\"actionsRequired\\":\\"None\\",\\"status\\":\\"Pending\\"}}]"
53+
```
54+
##### Show #####
55+
```
56+
az powerbiprivatelinks private-endpoint-connection-proxy show
57+
```
58+
##### Validate #####
59+
```
60+
az powerbiprivatelinks private-endpoint-connection-proxy validate \
61+
--remote-private-endpoint-id "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" \
62+
--private-link-service-connections name="myPrivateEndpointConnection" group-ids="tenant" request-message="opt msg" \
63+
--private-link-service-proxies "[{\\"groupConnectivityInformation\\":[],\\"id\\":\\"/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721\\"}]"
64+
```
65+
##### Delete #####
66+
```
67+
az powerbiprivatelinks private-endpoint-connection-proxy delete
68+
```
69+
#### powerbiprivatelinks private-endpoint-connection ####
70+
##### Create #####
71+
```
72+
az powerbiprivatelinks private-endpoint-connection create \
73+
--id "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" \
74+
--private-link-service-connection-state description="" actions-required="None" status="Approved "
75+
```
76+
##### Show #####
77+
```
78+
az powerbiprivatelinks private-endpoint-connection show
79+
```
80+
##### List #####
81+
```
82+
az powerbiprivatelinks private-endpoint-connection list --azure-resource-name "azureResourceName" \
83+
--resource-group "resourceGroup"
84+
```
85+
##### Delete #####
86+
```
87+
az powerbiprivatelinks private-endpoint-connection delete
88+
```
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
11+
from azure.cli.core import AzCommandsLoader
12+
from azext_powerbiprivatelinks.generated._help import helps # pylint: disable=unused-import
13+
try:
14+
from azext_powerbiprivatelinks.manual._help import helps # pylint: disable=reimported
15+
except ImportError:
16+
pass
17+
18+
19+
class PrivateLinkServicesForPowerBIClientCommandsLoader(AzCommandsLoader):
20+
21+
def __init__(self, cli_ctx=None):
22+
from azure.cli.core.commands import CliCommandType
23+
from azext_powerbiprivatelinks.generated._client_factory import cf_powerbiprivatelinks_cl
24+
powerbiprivatelinks_custom = CliCommandType(
25+
operations_tmpl='azext_powerbiprivatelinks.custom#{}',
26+
client_factory=cf_powerbiprivatelinks_cl)
27+
parent = super(PrivateLinkServicesForPowerBIClientCommandsLoader, self)
28+
parent.__init__(cli_ctx=cli_ctx, custom_command_type=powerbiprivatelinks_custom)
29+
30+
def load_command_table(self, args):
31+
from azext_powerbiprivatelinks.generated.commands import load_command_table
32+
load_command_table(self, args)
33+
try:
34+
from azext_powerbiprivatelinks.manual.commands import load_command_table as load_command_table_manual
35+
load_command_table_manual(self, args)
36+
except ImportError:
37+
pass
38+
return self.command_table
39+
40+
def load_arguments(self, command):
41+
from azext_powerbiprivatelinks.generated._params import load_arguments
42+
load_arguments(self, command)
43+
try:
44+
from azext_powerbiprivatelinks.manual._params import load_arguments as load_arguments_manual
45+
load_arguments_manual(self, command)
46+
except ImportError:
47+
pass
48+
49+
50+
COMMAND_LOADER_CLS = PrivateLinkServicesForPowerBIClientCommandsLoader
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
# pylint: disable=wildcard-import
11+
# pylint: disable=unused-wildcard-import
12+
13+
from .generated.action import * # noqa: F403
14+
try:
15+
from .manual.action import * # noqa: F403
16+
except ImportError:
17+
pass
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"azext.isExperimental": true,
3+
"azext.minCliCoreVersion": "2.15.0"
4+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
# pylint: disable=wildcard-import
11+
# pylint: disable=unused-wildcard-import
12+
13+
from .generated.custom import * # noqa: F403
14+
try:
15+
from .manual.custom import * # noqa: F403
16+
except ImportError:
17+
pass
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for
4+
# license information.
5+
#
6+
# Code generated by Microsoft (R) AutoRest Code Generator.
7+
# Changes may cause incorrect behavior and will be lost if the code is
8+
# regenerated.
9+
# --------------------------------------------------------------------------
10+
11+
12+
def cf_powerbiprivatelinks_cl(cli_ctx, *_):
13+
from azure.cli.core.commands.client_factory import get_mgmt_service_client
14+
from azext_powerbiprivatelinks.vendored_sdks.powerbiprivatelinks import PrivateLinkServicesForPowerBIClient
15+
return get_mgmt_service_client(cli_ctx,
16+
PrivateLinkServicesForPowerBIClient)
17+
18+
19+
def cf_private_link_service_for_power_bi(cli_ctx, *_):
20+
return cf_powerbiprivatelinks_cl(cli_ctx).private_link_services_for_power_bi
21+
22+
23+
def cf_private_link_service_resource_operation_result(cli_ctx, *_):
24+
return cf_powerbiprivatelinks_cl(cli_ctx).private_link_service_resource_operation_results
25+
26+
27+
def cf_private_link_service(cli_ctx, *_):
28+
return cf_powerbiprivatelinks_cl(cli_ctx).private_link_services
29+
30+
31+
def cf_power_bi_resource(cli_ctx, *_):
32+
return cf_powerbiprivatelinks_cl(cli_ctx).power_bi_resources
33+
34+
35+
def cf_private_link_resource(cli_ctx, *_):
36+
return cf_powerbiprivatelinks_cl(cli_ctx).private_link_resources
37+
38+
39+
def cf_private_endpoint_connection_proxy(cli_ctx, *_):
40+
return cf_powerbiprivatelinks_cl(cli_ctx).private_endpoint_connection_proxies
41+
42+
43+
def cf_private_endpoint_connection(cli_ctx, *_):
44+
return cf_powerbiprivatelinks_cl(cli_ctx).private_endpoint_connections

0 commit comments

Comments
 (0)