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

[AutoPR powerbiprivatelinks] [Hub Generated] Review request for Microsoft.PowerBI to add version stable/2020-06-01 #1810

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
8 changes: 8 additions & 0 deletions src/powerbiprivatelinks/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. :changelog:

Release History
===============

0.1.0
++++++
* Initial release.
88 changes: 88 additions & 0 deletions src/powerbiprivatelinks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
# Azure CLI powerbiprivatelinks Extension #
This is the extension for powerbiprivatelinks

### How to use ###
Install this extension using the below CLI command
```
az extension add --name powerbiprivatelinks
```

### Included Features ###
#### powerbiprivatelinks private-link-service-for-power-bi ####
##### List #####
```
az powerbiprivatelinks private-link-service-for-power-bi list
```
#### powerbiprivatelinks private-link-service-resource-operation-result ####
##### Show #####
```
az powerbiprivatelinks private-link-service-resource-operation-result show
```
#### powerbiprivatelinks private-link-service ####
##### List #####
```
az powerbiprivatelinks private-link-service list
```
#### powerbiprivatelinks power-bi-resource ####
##### Create #####
```
az powerbiprivatelinks power-bi-resource create --location "global" --tenant-id "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f" \
--tags tag1="value1" tag2="value2"
```
##### List #####
```
az powerbiprivatelinks power-bi-resource list
```
##### Delete #####
```
az powerbiprivatelinks power-bi-resource delete
```
#### powerbiprivatelinks private-link-resource ####
##### List #####
```
az powerbiprivatelinks private-link-resource list
```
#### powerbiprivatelinks private-endpoint-connection-proxy ####
##### Create #####
```
az powerbiprivatelinks private-endpoint-connection-proxy create \
--connection-details group-id="tenant" id="10001" link-identifier="1253" member-name="tenant" private-ip-address="10.0.1.4" \
--remote-private-endpoint-id "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" \
--private-link-service-connections name="myPrivateEndpointConnection" group-ids="tenant" request-message="opt msg" \
--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\\"}}]"
```
##### Show #####
```
az powerbiprivatelinks private-endpoint-connection-proxy show
```
##### Validate #####
```
az powerbiprivatelinks private-endpoint-connection-proxy validate \
--remote-private-endpoint-id "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" \
--private-link-service-connections name="myPrivateEndpointConnection" group-ids="tenant" request-message="opt msg" \
--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\\"}]"
```
##### Delete #####
```
az powerbiprivatelinks private-endpoint-connection-proxy delete
```
#### powerbiprivatelinks private-endpoint-connection ####
##### Create #####
```
az powerbiprivatelinks private-endpoint-connection create \
--id "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" \
--private-link-service-connection-state description="" actions-required="None" status="Approved "
```
##### Show #####
```
az powerbiprivatelinks private-endpoint-connection show
```
##### List #####
```
az powerbiprivatelinks private-endpoint-connection list --azure-resource-name "azureResourceName" \
--resource-group "resourceGroup"
```
##### Delete #####
```
az powerbiprivatelinks private-endpoint-connection delete
```
50 changes: 50 additions & 0 deletions src/powerbiprivatelinks/azext_powerbiprivatelinks/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from azure.cli.core import AzCommandsLoader
from azext_powerbiprivatelinks.generated._help import helps # pylint: disable=unused-import
try:
from azext_powerbiprivatelinks.manual._help import helps # pylint: disable=reimported
except ImportError:
pass


class PrivateLinkServicesForPowerBIClientCommandsLoader(AzCommandsLoader):

def __init__(self, cli_ctx=None):
from azure.cli.core.commands import CliCommandType
from azext_powerbiprivatelinks.generated._client_factory import cf_powerbiprivatelinks_cl
powerbiprivatelinks_custom = CliCommandType(
operations_tmpl='azext_powerbiprivatelinks.custom#{}',
client_factory=cf_powerbiprivatelinks_cl)
parent = super(PrivateLinkServicesForPowerBIClientCommandsLoader, self)
parent.__init__(cli_ctx=cli_ctx, custom_command_type=powerbiprivatelinks_custom)

def load_command_table(self, args):
from azext_powerbiprivatelinks.generated.commands import load_command_table
load_command_table(self, args)
try:
from azext_powerbiprivatelinks.manual.commands import load_command_table as load_command_table_manual
load_command_table_manual(self, args)
except ImportError:
pass
return self.command_table

def load_arguments(self, command):
from azext_powerbiprivatelinks.generated._params import load_arguments
load_arguments(self, command)
try:
from azext_powerbiprivatelinks.manual._params import load_arguments as load_arguments_manual
load_arguments_manual(self, command)
except ImportError:
pass


COMMAND_LOADER_CLS = PrivateLinkServicesForPowerBIClientCommandsLoader
17 changes: 17 additions & 0 deletions src/powerbiprivatelinks/azext_powerbiprivatelinks/action.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wildcard-import
# pylint: disable=unused-wildcard-import

from .generated.action import * # noqa: F403
try:
from .manual.action import * # noqa: F403
except ImportError:
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"azext.isExperimental": true,
"azext.minCliCoreVersion": "2.15.0"
}
17 changes: 17 additions & 0 deletions src/powerbiprivatelinks/azext_powerbiprivatelinks/custom.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wildcard-import
# pylint: disable=unused-wildcard-import

from .generated.custom import * # noqa: F403
try:
from .manual.custom import * # noqa: F403
except ImportError:
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------


def cf_powerbiprivatelinks_cl(cli_ctx, *_):
from azure.cli.core.commands.client_factory import get_mgmt_service_client
from azext_powerbiprivatelinks.vendored_sdks.powerbiprivatelinks import PrivateLinkServicesForPowerBIClient
return get_mgmt_service_client(cli_ctx,
PrivateLinkServicesForPowerBIClient)


def cf_private_link_service_for_power_bi(cli_ctx, *_):
return cf_powerbiprivatelinks_cl(cli_ctx).private_link_services_for_power_bi


def cf_private_link_service_resource_operation_result(cli_ctx, *_):
return cf_powerbiprivatelinks_cl(cli_ctx).private_link_service_resource_operation_results


def cf_private_link_service(cli_ctx, *_):
return cf_powerbiprivatelinks_cl(cli_ctx).private_link_services


def cf_power_bi_resource(cli_ctx, *_):
return cf_powerbiprivatelinks_cl(cli_ctx).power_bi_resources


def cf_private_link_resource(cli_ctx, *_):
return cf_powerbiprivatelinks_cl(cli_ctx).private_link_resources


def cf_private_endpoint_connection_proxy(cli_ctx, *_):
return cf_powerbiprivatelinks_cl(cli_ctx).private_endpoint_connection_proxies


def cf_private_endpoint_connection(cli_ctx, *_):
return cf_powerbiprivatelinks_cl(cli_ctx).private_endpoint_connections
Loading