From aa01f225e0e17ada2b5b07253c2a2a8f40d54bdb Mon Sep 17 00:00:00 2001 From: ravi-pbi <66964951+ravi-pbi@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:24:03 -0700 Subject: [PATCH 01/45] New Swagger Spec File --- .../2020-06-01/powerbiprivatelinks.json | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json new file mode 100644 index 000000000000..cd1d634dc6ad --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -0,0 +1,132 @@ +{ + "swagger": "2.0", + "info": { + "version": "2020-06-01", + "title": "powerbiprivatelinks", + "description": "Description of the new service", + "x-ms-code-generation-settings": { + "name": "powerbiprivatelinksClient" + } + }, + "host": "management.azure.com", + "schemes": ["https"], + "consumes": ["application/json"], + "produces": ["application/json"], + "security": [ + { + "azure_auth": ["user_impersonation"] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/operations": { + "get": { + "tags": ["Tag1"], + "operationId": "OperationGroup_Get", + "x-ms-examples": { + "BatchAccountDelete": { "$ref": "./examples/OperationGroupGet.json" } + }, + "description": "This is a sample get operation, please see guidelines in azure-rest-api-specs repository for more info", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + } + ], + "responses": { + "200": { + "description": "Describe the result of a successful operation.", + "schema": { + "$ref": "#/definitions/Result" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + } + } + } + }, + "definitions": { + "Result": { + "description": "Sample result definition", + "properties": { + "sampleProperty": { + "type": "string", + "description": "Sample property of type string" + } + } + }, + "ErrorResponse": { + "description": "Error response.", + "properties": { + "error": { + "$ref": "#/definitions/ErrorDefinition", + "description": "The error details." + } + } + }, + "ErrorDefinition": { + "description": "Error definition.", + "properties": { + "code": { + "description": "Service specific error code which serves as the substatus for the HTTP error code.", + "type": "string", + "readOnly": true + }, + "message": { + "description": "Description of the error.", + "type": "string", + "readOnly": true + }, + "details": { + "description": "Internal error details.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDefinition" + }, + "readOnly": true + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + }, + "ResourceGroupNameParameter": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group.", + "x-ms-parameter-location": "method" + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to be used with the HTTP request." + } + } +} From 3457e1baabd21ccdf82d69ef63e05ca018f5caea Mon Sep 17 00:00:00 2001 From: ravi-pbi <66964951+ravi-pbi@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:24:03 -0700 Subject: [PATCH 02/45] New Swagger Example Spec File --- .../2020-06-01/examples/OperationGroupGet.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/OperationGroupGet.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/OperationGroupGet.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/OperationGroupGet.json new file mode 100644 index 000000000000..cbd79cc2efd5 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/OperationGroupGet.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "accountName": "sampleacct", + "resourceGroupName": "powerbiprivatelinksClient", + "api-version": "2020-06-01", + "subscriptionId": "subid" + }, + "responses": { + "200": { + "body": { + "sampleProperty": "sampleProperty" + } + } + } +} From 7d7462fa3c2b26f9ddc34810d93c029476e871d8 Mon Sep 17 00:00:00 2001 From: ravi-pbi <66964951+ravi-pbi@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:24:04 -0700 Subject: [PATCH 03/45] New Readme Config File --- .../resource-manager/readme.md | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/readme.md diff --git a/specification/powerbiprivatelinks/resource-manager/readme.md b/specification/powerbiprivatelinks/resource-manager/readme.md new file mode 100644 index 000000000000..1659d46ea0ce --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/readme.md @@ -0,0 +1,77 @@ +# powerbiprivatelinks + +> see https://aka.ms/autorest + +This is the AutoRest configuration file for powerbiprivatelinks. + +## Getting Started + +To build the SDKs for My API, simply install AutoRest via `npm` (`npm install -g autorest`) and then run: + +> `autorest readme.md` + +To see additional help and options, run: + +> `autorest --help` + +For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. + +--- + +## Configuration + +### Basic Information + +These are the global settings for the powerbiprivatelinks. + +```yaml +openapi-type: arm +tag: package-2020-06-01 +``` + +### Tag: package-2020-06-01 + +These settings apply only when `--tag=package-2020-06-01` is specified on the command line. + +```yaml $(tag) == 'package-2020-06-01' +input-file: + - Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +``` + +--- + +# Code Generation + +## Swagger to SDK + +This section describes what SDK should be generated by the automatic system. +This is not used by Autorest itself. + +```yaml $(swagger-to-sdk) +swagger-to-sdk: + - repo: azure-sdk-for-python-track2 + - repo: azure-sdk-for-java + - repo: azure-sdk-for-go-track2 + - repo: azure-sdk-for-js + - repo: azure-resource-manager-schemas + - repo: azure-cli-extensions +``` +## Az + +See configuration in [readme.az.md](./readme.az.md) + +## Go + +See configuration in [readme.go.md](./readme.go.md) + +## Python + +See configuration in [readme.python.md](./readme.python.md) + +## TypeScript + +See configuration in [readme.typescript.md](./readme.typescript.md) + +## CSharp + +See configuration in [readme.csharp.md](./readme.csharp.md) From 72f407a009e169261c7f874cd236699b12568bce Mon Sep 17 00:00:00 2001 From: ravi-pbi <66964951+ravi-pbi@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:24:04 -0700 Subject: [PATCH 04/45] New Azure AZ Readme Config File --- .../resource-manager/readme.az.md | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/readme.az.md diff --git a/specification/powerbiprivatelinks/resource-manager/readme.az.md b/specification/powerbiprivatelinks/resource-manager/readme.az.md new file mode 100644 index 000000000000..6682ee2f922b --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/readme.az.md @@ -0,0 +1,28 @@ +## AZ + +These settings apply only when `--az` is specified on the command line. + +For new Resource Provider. It is highly recommended to onboard Azure CLI extensions. There's no differences in terms of customer usage. + +``` yaml $(az) && $(target-mode) != 'core' +az: + extensions: powerbiprivatelinks + namespace: azure.mgmt.powerbiprivatelinks + package-name: azure-mgmt-powerbiprivatelinks +az-output-folder: $(azure-cli-extension-folder)/src/powerbiprivatelinks +python-sdk-output-folder: "$(az-output-folder)/azext_powerbiprivatelinks/vendored_sdks/powerbiprivatelinks" +# add additional configuration here specific for Azure CLI +# refer to the faq.md for more details +``` + + + +This is for command modules that already in azure cli main repo. +``` yaml $(az) && $(target-mode) == 'core' +az: + extensions: powerbiprivatelinks + namespace: azure.mgmt.powerbiprivatelinks + package-name: azure-mgmt-powerbiprivatelinks +az-output-folder: $(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/powerbiprivatelinks +python-sdk-output-folder: "$(az-output-folder)/vendored_sdks/powerbiprivatelinks" +``` \ No newline at end of file From c5c68c9c526148bbfb4d6993cca6df2640b828aa Mon Sep 17 00:00:00 2001 From: ravi-pbi <66964951+ravi-pbi@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:24:05 -0700 Subject: [PATCH 05/45] New Azure CLI Readme Config File --- specification/powerbiprivatelinks/resource-manager/readme.cli.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/readme.cli.md diff --git a/specification/powerbiprivatelinks/resource-manager/readme.cli.md b/specification/powerbiprivatelinks/resource-manager/readme.cli.md new file mode 100644 index 000000000000..c6cf6ad37ea4 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/readme.cli.md @@ -0,0 +1 @@ +## CLI Common Settings for all the command line tools \ No newline at end of file From ba6317f579f1536e1dd3cc545a2f505a578aae4c Mon Sep 17 00:00:00 2001 From: ravi-pbi <66964951+ravi-pbi@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:24:06 -0700 Subject: [PATCH 06/45] New Go Language Readme Config File --- .../powerbiprivatelinks/resource-manager/readme.go.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/readme.go.md diff --git a/specification/powerbiprivatelinks/resource-manager/readme.go.md b/specification/powerbiprivatelinks/resource-manager/readme.go.md new file mode 100644 index 000000000000..17bff7f7ed79 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/readme.go.md @@ -0,0 +1,11 @@ +## Go + +These settings apply only when `--go` is specified on the command line. + +```yaml $(go) && $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +module-name: sdk/powerbiprivatelinks/armpowerbiprivatelinks +module: github.com/Azure/azure-sdk-for-go/$(module-name) +output-folder: $(go-sdk-folder)/$(module-name) +``` From 0316a199fcbc81287d96c8c805722afa2b6378b1 Mon Sep 17 00:00:00 2001 From: ravi-pbi <66964951+ravi-pbi@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:24:06 -0700 Subject: [PATCH 07/45] New Python Language Readme Config File --- .../resource-manager/readme.python.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/readme.python.md diff --git a/specification/powerbiprivatelinks/resource-manager/readme.python.md b/specification/powerbiprivatelinks/resource-manager/readme.python.md new file mode 100644 index 000000000000..7703078fc2e1 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/readme.python.md @@ -0,0 +1,23 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(track2) +azure-arm: true +license-header: MICROSOFT_MIT_NO_VERSION +package-name: azure-mgmt-powerbiprivatelinks +no-namespace-folders: true +package-version: 1.0.0b1 +clear-output-folder: true +``` + +``` yaml $(python-mode) == 'update' && $(track2) +no-namespace-folders: true +output-folder: $(python-sdks-folder)/powerbiprivatelinks/azure-mgmt-powerbiprivatelinks/azure/mgmt/powerbiprivatelinks +``` + +``` yaml $(python-mode) == 'create' && $(track2) +basic-setup-py: true +output-folder: $(python-sdks-folder)/powerbiprivatelinks/azure-mgmt-powerbiprivatelinks +``` From 6698c5787852c374043a4741be5e9caeb8887256 Mon Sep 17 00:00:00 2001 From: ravi-pbi <66964951+ravi-pbi@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:24:07 -0700 Subject: [PATCH 08/45] New Typescript Language Readme Config File --- .../resource-manager/readme.typescript.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/readme.typescript.md diff --git a/specification/powerbiprivatelinks/resource-manager/readme.typescript.md b/specification/powerbiprivatelinks/resource-manager/readme.typescript.md new file mode 100644 index 000000000000..e7ef4e0088ed --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/readme.typescript.md @@ -0,0 +1,14 @@ +## TypeScript + +These settings apply only when `--typescript` is specified on the command line. +Please also specify `--typescript-sdks-folder=`. + +``` yaml $(typescript) +typescript: + azure-arm: true + package-name: "@azure/arm-powerbiprivatelinks" + output-folder: "$(typescript-sdks-folder)/sdk/powerbiprivatelinks/arm-powerbiprivatelinks" + payload-flattening-threshold: 1 + clear-output-folder: true + generate-metadata: true +``` From c25ec0ead8f3e6545cc1683fbae6a3b36970a252 Mon Sep 17 00:00:00 2001 From: ravi-pbi <66964951+ravi-pbi@users.noreply.github.com> Date: Fri, 16 Jul 2021 13:24:07 -0700 Subject: [PATCH 09/45] New C# Language Readme Config File --- .../resource-manager/readme.csharp.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/readme.csharp.md diff --git a/specification/powerbiprivatelinks/resource-manager/readme.csharp.md b/specification/powerbiprivatelinks/resource-manager/readme.csharp.md new file mode 100644 index 000000000000..761c8476d1ed --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/readme.csharp.md @@ -0,0 +1,15 @@ +## C# + +These settings apply only when `--csharp` is specified on the command line. +Please also specify `--csharp-sdks-folder=`. + +```yaml $(csharp) +csharp: + azure-arm: true + license-header: MICROSOFT_MIT_NO_VERSION + payload-flattening-threshold: 1 + clear-output-folder: true + client-side-validation: false + namespace: Microsoft.PowerBI + output-folder: $(csharp-sdks-folder)/powerbiprivatelinks/management/Microsoft.PowerBI/GeneratedProtocol +``` From d4e208fc53231a6555da612976480de7ecef3231 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 16 Jul 2021 13:31:45 -0700 Subject: [PATCH 10/45] Adding swaggers for Power BI private links --- .../examples/OperationGroupGet.json | 15 - ...rUpdatePrivateEndpointConnectionProxy.json | 65 + ...erBI_CreateOrUpdatePrivateLinkService.json | 35 + ...werBI_DeletePrivateEndpointConnection.json | 20 + ..._DeletePrivateEndpointConnectionProxy.json | 21 + ...esForPowerBI_DeletePrivateLinkService.json | 14 + ...rPowerBI_GetPrivateEndpointConnection.json | 29 + ...rBI_GetPrivateEndpointConnectionProxy.json | 64 + ...ateLinkServiceResourceOperationResult.json | 16 + ...cesForPowerBI_ListAvailableOperations.json | 130 ++ ...ervicesForPowerBI_ListByAzureResource.json | 42 + ...ervicesForPowerBI_ListByResourceGroup.json | 41 + ...rvicesForPowerBI_ListBySubscriptionId.json | 40 + ...esForPowerBI_ListPrivateLinkResources.json | 26 + ...UpdatePrivateEndpointConnectionStatus.json | 41 + ...alidatePrivateEndpointConnectionProxy.json | 81 ++ .../2020-06-01/powerbiprivatelinks.json | 1271 ++++++++++++++++- 17 files changed, 1900 insertions(+), 51 deletions(-) delete mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/OperationGroupGet.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListAvailableOperations.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByAzureResource.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByResourceGroup.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListBySubscriptionId.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/OperationGroupGet.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/OperationGroupGet.json deleted file mode 100644 index cbd79cc2efd5..000000000000 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/OperationGroupGet.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "parameters": { - "accountName": "sampleacct", - "resourceGroupName": "powerbiprivatelinksClient", - "api-version": "2020-06-01", - "subscriptionId": "subid" - }, - "responses": { - "200": { - "body": { - "sampleProperty": "sampleProperty" - } - } - } -} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json new file mode 100644 index 000000000000..be4085b1d698 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "privateEndpointName": "myPrivateEndpointName", + "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "api-version": "2020-06-01", + "x-ms-client-tenant-id": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f", + "body": { + "remotePrivateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName", + "privateLinkServiceConnections": [ + { + "name": "myPrivateEndpointConnection", + "groupIds": [ + "tenant" + ], + "requestMessage": "opt msg" + } + ], + "privateLinkServiceProxies": [ + { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "groupConnectivityInformation": [ + { + "groupId": "tenant", + "memberName": "tenant", + "internalFqdn": "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net", + "customerVisibleFqdns": [ + "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net" + ], + "privateLinkServiceArmRegion": "" + } + ], + "remotePrivateLinkServiceConnectionState": { + "status": "Pending", + "description": "please approve", + "actionsRequired": "None" + }, + "remotePrivateEndpointConnection": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721" + } + } + ], + "connectionDetails": [ + { + "id": "10001", + "memberName": "tenant", + "privateIpAddress": "10.0.1.4", + "linkIdentifier": "1253", + "groupId": "tenant" + } + ] + } + } + }, + "responses": { + "201": { + "headers": { + "Azure-AsyncOperation": "40f12aac-47a9-49f0-b0a8-c9367edca7b0" + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json new file mode 100644 index 000000000000..92c1ad30f4d5 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "api-version": "2020-06-01", + "x-ms-client-tenant-id": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f", + "body": { + "name": "myPrivateLinkServiceResource", + "location": "global", + "properties": { + "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "myPrivateLinkServiceResource", + "location": "global", + "properties": { + "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json new file mode 100644 index 000000000000..3fbf26eda7df --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "privateEndpointName": "myPrivateEndpointName", + "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "api-version": "2020-06-01" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "40f12aac-47a9-49f0-b0a8-c9367edca7b0" + } + }, + "200": { + "headers": {} + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json new file mode 100644 index 000000000000..764c71d58db1 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "privateEndpointName": "myPrivateEndpointName", + "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "api-version": "2020-06-01" + }, + "responses": { + "202": { + "headers": { + "Azure-AsyncOperation": "40f12aac-47a9-49f0-b0a8-c9367edca7b0" + } + }, + "200": { + "headers": {}, + "description": "OK." + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json new file mode 100644 index 000000000000..1e4b647beefb --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "description": "OK", + "headers": {} + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json new file mode 100644 index 000000000000..6fced254fd19 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "privateEndpointName": "myPrivateEndpointName", + "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "name": "myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "type": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "please approve", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy.json new file mode 100644 index 000000000000..50e3da49b789 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy.json @@ -0,0 +1,64 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "privateEndpointName": "myPrivateEndpointName", + "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "name": "myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "type": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnectionProxies", + "remotePrivateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName", + "privateLinkServiceConnections": [ + { + "name": "myPrivateEndpointConnection", + "groupIds": [ + "tenant" + ], + "requestMessage": "opt msg" + } + ], + "privateLinkServiceProxies": [ + { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "groupConnectivityInformation": [ + { + "groupId": "tenant", + "memberName": "tenant", + "internalFqdn": "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net", + "customerVisibleFqdns": [ + "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net" + ], + "privateLinkServiceArmRegion": "" + } + ], + "remotePrivateLinkServiceConnectionState": { + "status": "Pending", + "description": "please approve", + "actionsRequired": "None" + }, + "remotePrivateEndpointConnection": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" + } + } + ], + "connectionDetails": [ + { + "id": "10001", + "memberName": "tenant", + "privateIpAddress": "10.0.1.4", + "linkIdentifier": "1253", + "groupId": "tenant" + } + ] + } + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult.json new file mode 100644 index 000000000000..27144a4a05fe --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "operationId": "9a062a88-e463-4697-bef2-fe039df73a02", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "name": "9a062a88-e463-4697-bef2-fe039df73a02", + "status": "InProgress", + "startTime": "2017-01-06T18:58:24.7596323+00:00" + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListAvailableOperations.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListAvailableOperations.json new file mode 100644 index 000000000000..417d6feb12a1 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListAvailableOperations.json @@ -0,0 +1,130 @@ +{ + "parameters": { + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/read", + "display": { + "description": "Gets all resources for the tenant private link service", + "operation": "Gets all resources", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/operationResults/operationId/read", + "display": { + "description": "Gets operation result of Private Link Service Resources for Power BI.", + "operation": "Get Operation Result", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/read", + "display": { + "description": "Gets resources for the tenant private link service by name", + "operation": "Gets resource by name", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/write", + "display": { + "description": "Creates or updates resource for the tenant private link service", + "operation": "Creates or updates private link service", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/delete", + "display": { + "description": "Deletes resource for the tenant private link service", + "operation": "Deletes private link service", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateLinkResources/read", + "display": { + "description": "Gets private link resources in a Azure resource", + "operation": "Gets private link resources by name", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnectionProxies/privateEndpointName.privateEndpointGuid/read", + "display": { + "description": "Gets private endpoint connection proxy for the tenant", + "operation": "Gets private endpoint connection proxy", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnectionProxies/privateEndpointName.privateEndpointGuid/write", + "display": { + "description": "Creates or updates private endpoint connection proxy for the tenant", + "operation": "Creates or updates private endpoint connection proxy", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnectionProxies/privateEndpointName.privateEndpointGuid/delete", + "display": { + "description": "Deletes private endpoint connection proxy for the tenant", + "operation": "Deletes private endpoint connection proxy", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnectionProxies/privateEndpointName.privateEndpointGuid/validate/action", + "display": { + "description": "Validates a private endpoint connection proxy before create or update", + "operation": "Validates a private endpoint connection proxy", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/privateEndpointName.privateEndpointGuid/read", + "display": { + "description": "Gets private endpoint connection for the tenant", + "operation": "Gets private endpoint connection", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/privateEndpointName.privateEndpointGuid/write", + "display": { + "description": "Creates or updates private endpoint connection for the tenant", + "operation": "Creates or updates private endpoint connection", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + }, + { + "name": "Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/privateEndpointName.privateEndpointGuid/delete", + "display": { + "description": "Deletes private endpoint connection for the tenant", + "operation": "Deletes private endpoint connection", + "resource": "Private link service resources", + "provider": "Microsoft Power BI" + } + } + ] + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByAzureResource.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByAzureResource.json new file mode 100644 index 000000000000..ceac97bbc525 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByAzureResource.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": [ + { + "name": "conection 1", + "location": "west us", + "properties": { + "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f", + "privateEndpointConnections": [ + { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointConnection.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "name": "myPrivateEndpointConnection", + "type": "string", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "My private endpoint connection", + "actionsRequired": "None" + } + } + } + ] + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + ] + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByResourceGroup.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByResourceGroup.json new file mode 100644 index 000000000000..8f2253595701 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByResourceGroup.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": [ + { + "name": "conection 1", + "location": "west us", + "properties": { + "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f", + "privateEndpointConnections": [ + { + "id": "1001", + "name": "myPrivateEndpointConnections", + "type": "string", + "properties": { + "privateEndpoint": { + "id": "myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "My private endpoint connection", + "actionsRequired": "None" + } + } + } + ] + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + ] + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListBySubscriptionId.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListBySubscriptionId.json new file mode 100644 index 000000000000..ca21fd0c664d --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListBySubscriptionId.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": [ + { + "name": "conection 1", + "location": "west us", + "properties": { + "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f", + "privateEndpointConnections": [ + { + "id": "1001", + "name": "myPrivateEndpointConnections", + "type": "string", + "properties": { + "privateEndpoint": { + "id": "myPrivateEndpoint" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "My private endpoint connection", + "actionsRequired": "None" + } + } + } + ] + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + ] + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json new file mode 100644 index 000000000000..17460e18c3d5 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateLinkResources/tenant", + "name": "tenant", + "type": "Microsoft.PowerBI/{resourceType}/privateLinkResources", + "groupId": "tenant", + "requiredMembers": [ + "tenant", + "capacity:3df897a4f10b49e9bddb0e9cf062adba" + ] + } + ] + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json new file mode 100644 index 000000000000..a66e87c612f2 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "privateEndpointName": "myPrivateEndpointName", + "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "api-version": "2020-06-01", + "body": { + "properties": { + "privateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Approved ", + "description": "", + "actionsRequired": "None" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "name": "myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "type": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Approved ", + "description": "", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy.json new file mode 100644 index 000000000000..140127263bd8 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "privateEndpointName": "myPrivateEndpointName", + "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "api-version": "2020-06-01", + "body": { + "remotePrivateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName", + "privateLinkServiceConnections": [ + { + "name": "myPrivateEndpointConnection", + "groupIds": [ + "tenant" + ], + "requestMessage": "opt msg" + } + ], + "privateLinkServiceProxies": [ + { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "groupConnectivityInformation": [] + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "remotePrivateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName", + "privateLinkServiceConnections": [ + { + "name": "myPrivateEndpointConnection", + "groupIds": [ + "tenant" + ], + "requestMessage": "opt msg" + } + ], + "privateLinkServiceProxies": [ + { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "groupConnectivityInformation": [ + { + "groupId": "tenant", + "memberName": "tenant", + "internalFqdn": "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net", + "customerVisibleFqdns": [ + "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net" + ], + "privateLinkServiceArmRegion": "" + } + ], + "remotePrivateLinkServiceConnectionState": { + "status": "Pending", + "description": "please approve", + "actionsRequired": "None" + }, + "remotePrivateEndpointConnection": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721" + } + } + ], + "connectionDetails": [ + { + "id": "10001", + "memberName": "tenant", + "privateIpAddress": "10.0.1.4", + "linkIdentifier": "1253", + "groupId": "tenant" + } + ] + } + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index cd1d634dc6ad..85309841cca4 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -2,19 +2,27 @@ "swagger": "2.0", "info": { "version": "2020-06-01", - "title": "powerbiprivatelinks", - "description": "Description of the new service", + "title": "Power BI Private Link Service Management Client", + "description": "Client to manage your Power BI Private Link Service resources and connection memebrs.", "x-ms-code-generation-settings": { - "name": "powerbiprivatelinksClient" + "name": "privatelinkservicesforpowerbiClient" } }, "host": "management.azure.com", - "schemes": ["https"], - "consumes": ["application/json"], - "produces": ["application/json"], + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], "security": [ { - "azure_auth": ["user_impersonation"] + "azure_auth": [ + "user_impersonation" + ] } ], "securityDefinitions": { @@ -29,78 +37,1228 @@ } }, "paths": { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/operations": { + "/providers/Microsoft.PowerBI/operations": { + "get": { + "x-ms-pageable": { + "nextLinkName": null + }, + "tags": [ + "Operations" + ], + "x-ms-examples": { + "List private link resources in a subscription": { + "$ref": "./examples/privateLinkServicesForPowerBI_ListAvailableOperations.json" + } + }, + "operationId": "privateLinkServicesForPowerBI_ListAvailableOperations", + "description": "Indicates which operations can be performed by the Power BI Resource Provider.", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "Request completed successfully", + "schema": { + "$ref": "#/definitions/OperationList" + } + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI": { + "get": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "x-ms-examples": { + "List private link resources in a subscription": { + "$ref": "./examples/privateLinkServicesForPowerBI_ListBySubscriptionId.json" + } + }, + "operationId": "privateLinkServicesForPowerBI_ListBySubscriptionId", + "description": "Gets all the private link resources for the given subscription id.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/TenantResource" + } + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/operationResults/{operationId}": { + "get": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult", + "x-ms-examples": { + "Result of operation on private link resources": { + "$ref": "./examples/privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult.json" + } + }, + "description": "Gets operation result of Private Link Service Resources for Power BI.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/OperationIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/AsyncOperationDetail" + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI": { + "get": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_ListByResourceGroup", + "x-ms-examples": { + "List private link resources in a resource group": { + "$ref": "./examples/privateLinkServicesForPowerBI_ListByResourceGroup.json" + } + }, + "description": "Gets all the private link resources for the given resource group.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/TenantResource" + } + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}": { + "get": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_ListByResourceName", + "x-ms-examples": { + "List private link resources in a Azure resource": { + "$ref": "./examples/privateLinkServicesForPowerBI_ListByAzureResource.json" + } + }, + "description": "Gets all the private link resources for the given Azure resource.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "array", + "items": { + "$ref": "#/definitions/TenantResource" + } + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "put": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService", + "x-ms-examples": { + "Creates or updates private link service resource": { + "$ref": "./examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json" + } + }, + "description": "Creates or updates a Private Link Service Resource for Power BI.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClientTenantIdHeaderParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "description": "Tenant resource to be created or updated.", + "schema": { + "$ref": "#/definitions/TenantResource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object", + "$ref": "#/definitions/TenantResource" + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_DeletePrivateLinkService", + "x-ms-examples": { + "Deletes private link service resource": { + "$ref": "./examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json" + } + }, + "description": "Deletes a Private Link Service Resource for Power BI.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "headers": {} + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateLinkResources": { + "get": { + "x-ms-pageable": { + "nextLinkName": null + }, + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_ListPrivateLinkResources", + "x-ms-examples": { + "Gets private link resources in a Azure resource": { + "$ref": "./examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json" + } + }, + "description": "Gets Private Link Resources for Power BI by resource group and resource name.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object", + "$ref": "#/definitions/PrivateLinkResources" + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}.{privateEndpointGuid}": { "get": { - "tags": ["Tag1"], - "operationId": "OperationGroup_Get", + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy", + "x-ms-examples": { + "Gets private endpoint connection proxy": { + "$ref": "./examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy.json" + } + }, + "description": "Gets private endpoint connection proxy for Power BI by private endpoint name.", + "summary": "Synchronous API called by NRP to get private endpoint connection proxy for Power BI by private endpoint name.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointGuidParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxy" + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "put": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy", + "x-ms-examples": { + "Creates or updates private endpoint connection proxy": { + "$ref": "./examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json" + } + }, + "description": "Creates or updates private endpoint connection proxy for Power BI by private endpoint name.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointGuidParameter" + }, + { + "$ref": "#/parameters/ClientTenantIdHeaderParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "description": "The PrivateEndpointConnectionProxy to be created or updated.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxy" + } + } + ], + "responses": { + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxyResource" + }, + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "The Azure async operation id to poll on result." + } + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + }, + "delete": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy", + "x-ms-examples": { + "Deletes a private endpoint connection proxy": { + "$ref": "./examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json" + } + }, + "description": "Deletes a private endpoint connection proxy for Power BI by private endpoint name.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointGuidParameter" + } + ], + "responses": { + "200": { + "description": "OK. The operation completed successfully." + }, + "202": { + "description": "Accepted", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "The Azure async operation id to poll on result." + } + } + } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}.{privateEndpointGuid}/validate": { + "post": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy", + "x-ms-examples": { + "Validates a private endpoint connection": { + "$ref": "./examples/privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy.json" + } + }, + "description": "Validates a private endpoint connection before create or update.", + "summary": "Synchronous API called by NRP to validate a private endpoint before create or update.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointGuidParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "description": "The PrivateEndpointConnectionProxy to be created or updated.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxy" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionProxy" + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnections/{privateEndpointName}.{privateEndpointGuid}": { + "get": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_GetPrivateEndpointConnection", + "x-ms-examples": { + "Gets private endpoint connection": { + "$ref": "./examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json" + } + }, + "description": "Gets private endpoint connection for Power BI by private endpoint name.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointGuidParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "put": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionStatus", + "x-ms-examples": { + "Updates status of private endpoint connection": { + "$ref": "./examples/privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json" + } + }, + "description": "Updates the status of Private Endpoint Connection object. Used to approve or reject a connection.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointGuidParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "description": "Private endpoint connection to update.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "headers": {} + } + } + }, + "delete": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBI_DeletePrivateEndpointConnection", "x-ms-examples": { - "BatchAccountDelete": { "$ref": "./examples/OperationGroupGet.json" } + "Deletes private endpoint connection": { + "$ref": "./examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json" + } }, - "description": "This is a sample get operation, please see guidelines in azure-rest-api-specs repository for more info", + "description": "Deletes a private endpoint connection for Power BI by private endpoint name.", + "summary": "Asynchronous API to delete a private endpoint connection for Power BI by private endpoint name.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, { "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointGuidParameter" } ], "responses": { "200": { - "description": "Describe the result of a successful operation.", - "schema": { - "$ref": "#/definitions/Result" + "description": "OK. The operation completed successfully." + }, + "202": { + "description": "Accepted", + "headers": { + "Azure-AsyncOperation": { + "type": "string", + "description": "The Azure async operation id to poll on result." + } } }, "default": { - "description": "Error response describing why the operation failed.", + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" + "$ref": "#/definitions/Error" } } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" } } } }, "definitions": { - "Result": { - "description": "Sample result definition", + "AsyncOperationDetail": { + "title": "AsyncOperationDetail", + "type": "object", "properties": { - "sampleProperty": { + "id": { + "type": "string", + "description": "The operation id." + }, + "name": { "type": "string", - "description": "Sample property of type string" + "description": "The operation name." + }, + "status": { + "type": "string", + "description": "The operation status." + }, + "startTime": { + "type": "string", + "description": "The operation start time." + }, + "endTime": { + "type": "string", + "description": "The operation end time." + }, + "error": { + "$ref": "#/definitions/Error", + "description": "The error." } } }, - "ErrorResponse": { - "description": "Error response.", + "TenantResource": { + "title": "TenantResource", + "type": "object", "properties": { - "error": { - "$ref": "#/definitions/ErrorDefinition", - "description": "The error details." + "id": { + "type": "string", + "readOnly": true, + "description": "Specifies the resource identifier of the resource." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Specifies the name of the resource." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Specifies the type of the resource." + }, + "location": { + "type": "string", + "description": "Specifies the location of the resource." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TenantProperties", + "description": "Specifies the properties of the resource." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Specifies the tags of the resource." + } + }, + "x-ms-azure-resource": true + }, + "TenantProperties": { + "title": "TenantProperties", + "type": "object", + "properties": { + "tenantId": { + "type": "string", + "description": "Specifies the tenant id of the resource." + }, + "privateEndpointConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + }, + "description": "Specifies the private endpoint connections of the resource." + } + } + }, + "PrivateLinkConnectionDetail": { + "title": "PrivateLinkConnectionDetail", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Specifies the type of the connection detail." + }, + "memberName": { + "type": "string", + "description": "Specifies the member name of the connection detail." + }, + "privateIpAddress": { + "type": "string", + "description": "Specifies the private ip address of the connection detail." + }, + "linkIdentifier": { + "type": "string", + "description": "Specifies the link id of the connection detail." + }, + "groupId": { + "type": "string", + "description": "Specifies the group id of the connection detail." + } + } + }, + "GroupConnectivityInformation": { + "title": "GroupConnectivityInformation", + "type": "object", + "properties": { + "groupId": { + "type": "string", + "description": "Specifies the group id of the group connectivity information." + }, + "memberName": { + "type": "string", + "description": "Specifies the member name of the group connectivity information." + }, + "internalFqdn": { + "type": "string", + "description": "Specifies the internal FQDN of the group connectivity information." + }, + "customerVisibleFqdns": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the customer visible FQDNs of the group connectivity information." + }, + "privateLinkServiceArmRegion": { + "type": "string", + "description": "Specifies the ARM region of the group connectivity information." + } + } + }, + "ConnectionState": { + "title": "ConnectionState", + "type": "object", + "properties": { + "status": { + "$ref": "#/definitions/ConnectionStatus", + "description": "Specifies the connection status." + }, + "description": { + "type": "string", + "description": "Specifies the connection status description." + }, + "actionsRequired": { + "$ref": "#/definitions/ActionsRequired", + "description": "Specifies the actions required." + } + } + }, + "PrivateLinkServiceProxy": { + "title": "PrivateLinkServiceProxy", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Specifies the id of the private link service proxy." + }, + "groupConnectivityInformation": { + "type": "array", + "items": { + "$ref": "#/definitions/GroupConnectivityInformation" + }, + "description": "Specifies the group connectivity information of the private link service proxy." + }, + "remotePrivateLinkServiceConnectionState": { + "$ref": "#/definitions/ConnectionState", + "description": "Specifies the connection state of the private link service proxy." + }, + "remotePrivateEndpointConnection": { + "$ref": "#/definitions/RemotePrivateEndpointConnection", + "description": "Specifies the private endpoint connection of the private link service proxy." + } + } + }, + "PrivateLinkServiceConnection": { + "title": "PrivateLinkServiceConnection", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Specifies the name of the private link service connection." + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the group ids of the private link service connection." + }, + "requestMessage": { + "type": "string", + "description": "Specifies the request message of the private link service connection." + } + } + }, + "RemotePrivateEndpoint": { + "title": "RemotePrivateEndpoint", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Specifies the id of the private endpoint." + }, + "manualPrivateLinkServiceConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceConnection" + }, + "description": "Specifies the private link service connections of the private endpoint." + }, + "privateLinkServiceConnections": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceConnection" + }, + "description": "Specifies the private link service connections of the private endpoint." + }, + "privateLinkServiceProxies": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkServiceProxy" + }, + "description": "Specifies the private link service proxies of the private endpoint." + }, + "connectionDetails": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkConnectionDetail" + }, + "description": "Specifies the connection details of the private endpoint." + } + } + }, + "PrivateEndpointConnectionProxyResource": { + "title": "PrivateEndpointConnectionProxyResource", + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Specifies the id of the resource." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Specifies the name of the resource." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Specifies the type of the resource." + }, + "location": { + "type": "string", + "description": "Specifies the location of the resource." + }, + "etag": { + "type": "string", + "description": "Specifies the etag of the resource." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PrivateEndpointConnectionProxy", + "description": "Specifies the private endpoint proxy resource." + } + } + }, + "PrivateEndpointConnectionProxy": { + "title": "PrivateEndpointConnectionProxy", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Specifies the id of the resource." + }, + "name": { + "type": "string", + "description": "Specifies the name of the resource." + }, + "type": { + "type": "string", + "description": "Specifies the type of the resource." + }, + "location": { + "type": "string", + "description": "Specifies the location of the resource." + }, + "etag": { + "type": "string", + "description": "Specifies the etag of the resource." + }, + "remotePrivateEndpoint": { + "$ref": "#/definitions/RemotePrivateEndpoint", + "description": "Specifies the remote private endpoint of the resource." + } + } + }, + "PrivateEndpointConnection": { + "title": "PrivateEndpointConnection", + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "Specifies the id of the resource." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "Specifies the name of the resource." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "Specifies the type of the resource." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "description": "Specifies the properties of the private endpoint connection." + } + }, + "x-ms-azure-resource": true + }, + "PrivateEndpointConnectionProperties": { + "title": "PrivateEndpointConnectionProperties", + "type": "object", + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpoint", + "description": "Specifies the private endpoint." + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/ConnectionState", + "description": "Specifies the connection state." + } + } + }, + "ActionsRequired": { + "title": "ActionsRequired", + "type": "string", + "enum": [ + "None", + "Recreate" + ] + }, + "PrivateEndpoint": { + "title": "PrivateEndpoint", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Specifies the id of private endpoint." + } + } + }, + "PrivateLinkResources": { + "title": "PrivateLinkResources", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + }, + "description": "Specifies the private link resource." + } + } + }, + "PrivateLinkResource": { + "title": "PrivateLinkResource", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Specifies the id of private link resource." + }, + "name": { + "type": "string", + "description": "Specifies the name of private link resource." + }, + "type": { + "type": "string", + "description": "Specifies the type of private link resource." + }, + "groupId": { + "type": "string", + "description": "Specifies the group id of private link resource." + }, + "requiredMembers": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Specifies the required memebrs of private link resource." } } }, - "ErrorDefinition": { - "description": "Error definition.", + "RemotePrivateEndpointConnection": { + "title": "RemotePrivateEndpointConnection", + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "Specifies the id of private endpoint connection." + } + } + }, + "ConnectionStatus": { + "title": "ConnectionStatus", + "type": "string", + "enum": [ + "Pending", + "Approved", + "Rejected", + "Disconnected" + ] + }, + "OperationList": { + "title": "OperationList", + "type": "object", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "Specifies the value of operation list." + } + } + }, + "Operation": { + "title": "Operation", + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service." + }, + "display": { + "$ref": "#/definitions/Display", + "description": "Specifies the display of operation." + } + } + }, + "Display": { + "title": "Display", + "type": "object", + "properties": { + "provider": { + "type": "string", + "description": "The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. Use Title Casing. Begin with \"Microsoft\" for 1st party services." + }, + "resource": { + "type": "string", + "description": "The localized friendly form of the resource type related to this action/operation. This form should match the public documentation for the resource provider. Use Title Casing. For examples, refer to the \"name\" section." + }, + "operation": { + "type": "string", + "description": "The localized friendly name for the operation as shown to the user. This name should be concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the entity/resource to which it applies." + }, + "description": { + "type": "string", + "description": "The localized friendly description for the operation as shown to the user. This description should be thorough, yet concise. It will be used in tool-tips and detailed views." + }, + "origin": { + "type": "string", + "description": "The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is 'user,system'" + } + } + }, + "Error": { + "title": "Error", + "type": "object", "properties": { "code": { - "description": "Service specific error code which serves as the substatus for the HTTP error code.", "type": "string", - "readOnly": true + "description": "Specifies the error code." }, "message": { - "description": "Description of the error.", "type": "string", - "readOnly": true + "description": "Specifies the error message." + }, + "target": { + "type": "string", + "description": "Specifies the error target." }, "details": { - "description": "Internal error details.", "type": "array", "items": { - "$ref": "#/definitions/ErrorDefinition" + "$ref": "#/definitions/ErrorDetail" }, - "readOnly": true + "description": "Specifies the error details." + } + } + }, + "ErrorDetail": { + "title": "ErrorDetail", + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Specifies the error code." + }, + "message": { + "type": "string", + "description": "Specifies the error message." + }, + "target": { + "type": "string", + "description": "Specifies the error target." } } } @@ -111,7 +1269,7 @@ "in": "path", "required": true, "type": "string", - "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)" + "description": "The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)." }, "ResourceGroupNameParameter": { "name": "resourceGroupName", @@ -119,6 +1277,47 @@ "required": true, "type": "string", "description": "The name of the resource group.", + "x-ms-parameter-location": "client" + }, + "AzureResourceNameParameter": { + "name": "azureResourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Azure resource.", + "x-ms-parameter-location": "client" + }, + "PrivateEndpointNameParameter": { + "name": "privateEndpointName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private endpoint.", + "x-ms-parameter-location": "client" + }, + "PrivateEndpointGuidParameter": { + "name": "privateEndpointGuid", + "in": "path", + "required": true, + "type": "string", + "description": "The Guid of the private endpoint. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).", + "x-ms-parameter-location": "client" + }, + "OperationIdParameter": { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The id of Azure async operation.", + "x-ms-parameter-location": "client" + }, + "ClientTenantIdHeaderParameter": { + "name": "x-ms-client-tenant-id", + "in": "header", + "description": "The client tenant id in header. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).", + "required": false, + "type": "string", + "x-ms-client-name": "ClientTenantId", "x-ms-parameter-location": "method" }, "ApiVersionParameter": { From f7a203898ea7006616cbda95f99d633fa44c3a47 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 9 Aug 2021 23:15:01 -0700 Subject: [PATCH 11/45] Fixed Lint erros. --- .../2020-06-01/powerbiprivatelinks.json | 128 ++++++++++++++++-- 1 file changed, 114 insertions(+), 14 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 85309841cca4..21be906deb01 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -73,7 +73,7 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } @@ -113,7 +113,7 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } @@ -153,7 +153,7 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } @@ -196,7 +196,7 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } @@ -242,7 +242,7 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } @@ -296,7 +296,7 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } @@ -330,6 +330,15 @@ "200": { "description": "OK", "headers": {} + }, + "204": { + "description": "No Content." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } } @@ -375,13 +384,13 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}.{privateEndpointGuid}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}": { "get": { "tags": [ "privateLinkServicesForPowerBI" @@ -422,7 +431,7 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } @@ -479,6 +488,12 @@ "description": "The Azure async operation id to poll on result." } } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-long-running-operation": true, @@ -526,6 +541,15 @@ "description": "The Azure async operation id to poll on result." } } + }, + "204": { + "description": "No Content." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } }, "x-ms-long-running-operation": true, @@ -534,7 +558,7 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}.{privateEndpointGuid}/validate": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}/validate": { "post": { "tags": [ "privateLinkServicesForPowerBI" @@ -584,13 +608,13 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnections/{privateEndpointName}.{privateEndpointGuid}": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnections/{privateEndpointName}": { "get": { "tags": [ "privateLinkServicesForPowerBI" @@ -630,7 +654,7 @@ "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } } @@ -679,6 +703,12 @@ "$ref": "#/definitions/PrivateEndpointConnection" }, "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } } } }, @@ -724,10 +754,13 @@ } } }, + "204": { + "description": "No Content." + }, "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/Error" + "$ref": "#/definitions/ErrorResponse" } } }, @@ -1261,7 +1294,74 @@ "description": "Specifies the error target." } } + }, + "ErrorResponse": { + "type": "object", + "description": "Describes the format of Error response.", + "properties": { + "error": { + "description": "The error object", + "type": "object", + "properties": { + "code": { + "type": "string", + "description": "Error code" + }, + "message": { + "type": "string", + "description": "Error message indicating why the operation failed." + } + } + } + } + }, + "SystemData": { + "description": "Metadata pertaining to creation and last modification of the resource.", + "type": "object", + "properties": { + "createdBy": { + "type": "string", + "description": "An identifier for the identity that created the resource" + }, + "createdByType": { + "$ref": "#/definitions/IdentityType", + "description": "The type of identity that created the resource" + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource creation (UTC)" + }, + "lastModifiedBy": { + "type": "string", + "description": "An identifier for the identity that last modified the resource" + }, + "lastModifiedByType": { + "$ref": "#/definitions/IdentityType", + "description": "The type of identity that last modified the resource" + }, + "lastModifiedAt": { + "type": "string", + "format": "date-time", + "description": "The timestamp of resource last modification (UTC)" + } + } + }, + "IdentityType": { + "description": "The type of identity that created/modified the resource.", + "type": "string", + "enum": [ + "User", + "Application", + "ManagedIdentity", + "Key" + ], + "x-ms-enum": { + "name": "IdentityType", + "modelAsString": true + } } + }, "parameters": { "SubscriptionIdParameter": { From bc216219141f9ce92b7d65285622ce923cbb8ceb Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 9 Aug 2021 23:30:13 -0700 Subject: [PATCH 12/45] Fixed spellcheck --- custom-words.txt | 1 + .../stable/2020-06-01/powerbiprivatelinks.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/custom-words.txt b/custom-words.txt index c748372dcab1..92f428fae03a 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2239,3 +2239,4 @@ XLSM DOCM multislot Tebibytes +privatelinkservicesforpowerbi diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 21be906deb01..476e5e9ec320 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -3,7 +3,7 @@ "info": { "version": "2020-06-01", "title": "Power BI Private Link Service Management Client", - "description": "Client to manage your Power BI Private Link Service resources and connection memebrs.", + "description": "Client to manage your Power BI Private Link Service resources and connection members.", "x-ms-code-generation-settings": { "name": "privatelinkservicesforpowerbiClient" } @@ -1175,7 +1175,7 @@ "items": { "type": "string" }, - "description": "Specifies the required memebrs of private link resource." + "description": "Specifies the required members of private link resource." } } }, From dada66f0acb4957d128904172b0ae09e797f8aee Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Tue, 10 Aug 2021 23:22:08 -0700 Subject: [PATCH 13/45] Fixed Lint errors --- ...rUpdatePrivateEndpointConnectionProxy.json | 3 + ...esForPowerBI_DeletePrivateLinkService.json | 3 + ...rPowerBI_GetPrivateEndpointConnection.json | 8 + ...PowerBI_GetPrivateEndpointConnections.json | 37 +++ .../2020-06-01/powerbiprivatelinks.json | 303 +++++++++++++++--- 5 files changed, 302 insertions(+), 52 deletions(-) create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json index be4085b1d698..a4b01ba061e7 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json @@ -59,6 +59,9 @@ "201": { "headers": { "Azure-AsyncOperation": "40f12aac-47a9-49f0-b0a8-c9367edca7b0" + }, + "body": { + "systemData": {} } } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json index 1e4b647beefb..979741ac1625 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json @@ -9,6 +9,9 @@ "200": { "description": "OK", "headers": {} + }, + "204": { + "description": "No Content." } } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json index 6fced254fd19..22d59fb73e52 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json @@ -22,6 +22,14 @@ "description": "please approve", "actionsRequired": "None" } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" } } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json new file mode 100644 index 000000000000..22d59fb73e52 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "privateEndpointName": "myPrivateEndpointName", + "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "name": "myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "type": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "please approve", + "actionsRequired": "None" + } + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + } + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 476e5e9ec320..c16346d383dc 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -39,25 +39,11 @@ "paths": { "/providers/Microsoft.PowerBI/operations": { "get": { - "x-ms-pageable": { - "nextLinkName": null - }, "tags": [ "Operations" ], - "x-ms-examples": { - "List private link resources in a subscription": { - "$ref": "./examples/privateLinkServicesForPowerBI_ListAvailableOperations.json" - } - }, - "operationId": "privateLinkServicesForPowerBI_ListAvailableOperations", - "description": "Indicates which operations can be performed by the Power BI Resource Provider.", - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], + "description": "Lists all of the available Power BI RP operations.", + "operationId": "Operations_List", "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" @@ -65,9 +51,9 @@ ], "responses": { "200": { - "description": "Request completed successfully", + "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/OperationList" + "$ref": "#/definitions/AvailableOperations" } }, "default": { @@ -76,6 +62,9 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" } } }, @@ -614,6 +603,55 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnections": { + "get": { + "tags": [ + "privateLinkServicesForPowerBI" + ], + "operationId": "privateLinkServicesForPowerBIGetPrivateEndpointConnection_List", + "x-ms-examples": { + "Gets private endpoint connections": { + "$ref": "./examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json" + } + }, + "description": "Gets private endpoint connection for Power BI.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointNameParameter" + }, + { + "$ref": "#/parameters/PrivateEndpointGuidParameter" + } + ], + "responses": { + "200": { + "description": "Success. The response describes the list of private endpoint connections in the private endpoint resource.", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnectionList" + }, + "headers": {} + }, + "default": { + "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", + "schema": { + "$ref": "#/definitions/ErrorResponse" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnections/{privateEndpointName}": { "get": { "tags": [ @@ -813,14 +851,18 @@ }, "name": { "type": "string", - "readOnly": true, - "description": "Specifies the name of the resource." + "description": "Specifies the name of the resource.", + "readOnly": true }, "type": { "type": "string", "readOnly": true, "description": "Specifies the type of the resource." }, + "systemData": { + "$ref": "#/definitions/SystemData", + "readOnly": true + }, "location": { "type": "string", "description": "Specifies the location of the resource." @@ -1097,6 +1139,10 @@ "readOnly": true, "description": "Specifies the type of the resource." }, + "systemData": { + "$ref": "#/definitions/SystemData", + "readOnly": true + }, "properties": { "x-ms-client-flatten": true, "$ref": "#/definitions/PrivateEndpointConnectionProperties", @@ -1105,6 +1151,21 @@ }, "x-ms-azure-resource": true }, + "PrivateEndpointConnectionList": { + "title": "PrivateEndpointConnections", + "description": "List of private endpoint connections.", + "type": "object", + "properties": { + "value": { + "title": "PrivateEndpointConnection", + "description": "Specifies the name of the private endpoint connection.", + "type": "array", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + } + }, "PrivateEndpointConnectionProperties": { "title": "PrivateEndpointConnectionProperties", "type": "object", @@ -1151,33 +1212,41 @@ } }, "PrivateLinkResource": { - "title": "PrivateLinkResource", "type": "object", "properties": { - "id": { - "type": "string", - "description": "Specifies the id of private link resource." - }, - "name": { - "type": "string", - "description": "Specifies the name of private link resource." - }, - "type": { - "type": "string", - "description": "Specifies the type of private link resource." - }, + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "description": "A private link resource" + }, + "PrivateLinkResourceProperties": { + "type": "object", + "properties": { "groupId": { + "description": "The private link resource group id.", "type": "string", - "description": "Specifies the group id of private link resource." + "readOnly": true }, "requiredMembers": { + "description": "The private link resource required member names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "requiredZoneNames": { "type": "array", "items": { "type": "string" }, - "description": "Specifies the required members of private link resource." + "description": "The private link resource Private link DNS zone name." } - } + }, + "description": "Properties of a private link resource." }, "RemotePrivateEndpointConnection": { "title": "RemotePrivateEndpointConnection", @@ -1199,33 +1268,157 @@ "Disconnected" ] }, - "OperationList": { - "title": "OperationList", + "AvailableOperations": { + "description": "Available operations of the service", "type": "object", "properties": { "value": { + "description": "Collection of available operation details", + "uniqueItems": false, + "type": "array", + "items": { + "$ref": "#/definitions/OperationDetail" + } + }, + "nextLink": { + "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", + "type": "string" + } + } + }, + "OperationDetail": { + "description": "Operation detail payload", + "type": "object", + "properties": { + "name": { + "description": "Name of the operation", + "type": "string" + }, + "isDataAction": { + "description": "Indicates whether the operation is a data action", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplay", + "description": "Display of the operation" + }, + "origin": { + "description": "Origin of the operation", + "type": "string" + } + } + }, + "OperationDisplay": { + "description": "Operation display payload", + "type": "object", + "properties": { + "provider": { + "description": "Resource provider of the operation", + "type": "string" + }, + "resource": { + "description": "Resource of the operation", + "type": "string" + }, + "operation": { + "description": "Localized friendly name for the operation", + "type": "string" + }, + "description": { + "description": "Localized friendly description for the operation", + "type": "string" + } + } + }, + "OperationListResult": { + "description": "Result list of operations supported for PowerBI. It contains a list of operations and a URL link to get the next set of results.", + "type": "array", + "properties": { + "value": { + "description": "List of resources supported by the Microsoft.PowerBI resource provider.", "type": "array", "items": { "$ref": "#/definitions/Operation" - }, - "description": "Specifies the value of operation list." + } + }, + "nextLink": { + "description": "URL to get the next set of operation list results if there are any.", + "type": "string" } } }, "Operation": { - "title": "Operation", + "description": "PowerBI Private link REST API operation.", "type": "object", "properties": { "name": { - "type": "string", - "description": "The name of the operation being performed on this particular object. This name should match the action name that appears in RBAC / the event service." + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string" }, "display": { - "$ref": "#/definitions/Display", - "description": "Specifies the display of operation." + "description": "The object that represents the operation.", + "type": "object", + "properties": { + "provider": { + "description": "Service provider: Microsoft.PowerBI.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: private endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: create, update, delete, etc.", + "type": "string" + } + } } } }, + "Resource": { + "description": "Represents an instance of an PowerBI resource.", + "type": "object", + "properties": { + "id": { + "type": "string", + "readOnly": true, + "description": "An identifier that represents the PowerBI resource." + }, + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the PowerBI resource." + }, + "type": { + "type": "string", + "readOnly": true, + "description": "The type of the PowerBI resource." + }, + "location": { + "type": "string", + "description": "Location of the PowerBI resource.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Key-value pairs of additional resource provisioning properties." + }, + "systemData": { + "$ref": "#/definitions/SystemData", + "description": "Metadata pertaining to creation and last modification of the resource." + } + }, + "required": [ + "location" + ], + "x-ms-azure-resource": true + }, "Display": { "title": "Display", "type": "object", @@ -1318,32 +1511,39 @@ "SystemData": { "description": "Metadata pertaining to creation and last modification of the resource.", "type": "object", + "readOnly": true, "properties": { "createdBy": { "type": "string", - "description": "An identifier for the identity that created the resource" + "description": "An identifier for the identity that created the resource", + "readOnly": true }, "createdByType": { "$ref": "#/definitions/IdentityType", - "description": "The type of identity that created the resource" + "description": "The type of identity that created the resource", + "readOnly": true }, "createdAt": { "type": "string", "format": "date-time", - "description": "The timestamp of resource creation (UTC)" + "description": "The timestamp of resource creation (UTC)", + "readOnly": true }, "lastModifiedBy": { "type": "string", - "description": "An identifier for the identity that last modified the resource" + "description": "An identifier for the identity that last modified the resource", + "readOnly": true }, "lastModifiedByType": { "$ref": "#/definitions/IdentityType", - "description": "The type of identity that last modified the resource" + "description": "The type of identity that last modified the resource", + "readOnly": true }, "lastModifiedAt": { "type": "string", "format": "date-time", - "description": "The timestamp of resource last modification (UTC)" + "description": "The timestamp of resource last modification (UTC)", + "readOnly": true } } }, @@ -1361,7 +1561,6 @@ "modelAsString": true } } - }, "parameters": { "SubscriptionIdParameter": { From 79640495b43b73d90babf99459c47510d0b30ba2 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Tue, 10 Aug 2021 23:30:56 -0700 Subject: [PATCH 14/45] fixed Avocado error --- .../stable/2020-06-01/powerbiprivatelinks.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index c16346d383dc..d625745e0e7e 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -44,6 +44,11 @@ ], "description": "Lists all of the available Power BI RP operations.", "operationId": "Operations_List", + "x-ms-examples": { + "Lists all of the available Power BI RP operations": { + "$ref": "./examples/privateLinkServicesForPowerBI_ListAvailableOperations.json" + } + }, "parameters": [ { "$ref": "#/parameters/ApiVersionParameter" From d2ee4c768802a1b9c90c8d54a71e2dc67a85277f Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Wed, 11 Aug 2021 00:22:02 -0700 Subject: [PATCH 15/45] fixed model validation --- ...owerBI_CreateOrUpdatePrivateLinkService.json | 1 - ...icesForPowerBI_ListPrivateLinkResources.json | 15 ++++++++++----- .../stable/2020-06-01/powerbiprivatelinks.json | 17 ----------------- 3 files changed, 10 insertions(+), 23 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json index 92c1ad30f4d5..c9ab7ae3ee2e 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json @@ -6,7 +6,6 @@ "api-version": "2020-06-01", "x-ms-client-tenant-id": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f", "body": { - "name": "myPrivateLinkServiceResource", "location": "global", "properties": { "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f" diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json index 17460e18c3d5..c17f8c290628 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json @@ -13,11 +13,16 @@ "id": "subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateLinkResources/tenant", "name": "tenant", "type": "Microsoft.PowerBI/{resourceType}/privateLinkResources", - "groupId": "tenant", - "requiredMembers": [ - "tenant", - "capacity:3df897a4f10b49e9bddb0e9cf062adba" - ] + "properties": { + "groupId": "tenant", + "requiredMembers": [ + "tenant", + "capacity:3df897a4f10b49e9bddb0e9cf062adba" + ], + "requiredZoneNames": [ + "privatelink.powerbi.com" + ] + } } ] } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index d625745e0e7e..b5db1f8459f3 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -1335,23 +1335,6 @@ } } }, - "OperationListResult": { - "description": "Result list of operations supported for PowerBI. It contains a list of operations and a URL link to get the next set of results.", - "type": "array", - "properties": { - "value": { - "description": "List of resources supported by the Microsoft.PowerBI resource provider.", - "type": "array", - "items": { - "$ref": "#/definitions/Operation" - } - }, - "nextLink": { - "description": "URL to get the next set of operation list results if there are any.", - "type": "string" - } - } - }, "Operation": { "description": "PowerBI Private link REST API operation.", "type": "object", From a840c841ca1e3d266bda3311cc6b2daea8b0ef95 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Wed, 11 Aug 2021 00:30:32 -0700 Subject: [PATCH 16/45] fixed model validation. --- ...esForPowerBI_ListPrivateLinkResources.json | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json index c17f8c290628..3d4f7a9ff5c6 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json @@ -8,23 +8,27 @@ "responses": { "200": { "body": { - "value": [ - { - "id": "subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateLinkResources/tenant", - "name": "tenant", - "type": "Microsoft.PowerBI/{resourceType}/privateLinkResources", - "properties": { - "groupId": "tenant", - "requiredMembers": [ - "tenant", - "capacity:3df897a4f10b49e9bddb0e9cf062adba" - ], - "requiredZoneNames": [ - "privatelink.powerbi.com" - ] - } - } - ] + "id": "subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateLinkResources/tenant", + "name": "tenant", + "type": "Microsoft.PowerBI/{resourceType}/privateLinkResources", + "properties": { + "groupId": "tenant", + "requiredMembers": [ + "tenant", + "capacity:3df897a4f10b49e9bddb0e9cf062adba" + ], + "requiredZoneNames": [ + "privatelink.powerbi.com" + ] + }, + "systemData": { + "createdBy": "user1", + "createdByType": "User", + "createdAt": "2020-01-01T17:18:19.1234567Z", + "lastModifiedBy": "user2", + "lastModifiedByType": "User", + "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + } } } } From 0be2b1d2d2db6f35cef85ae78018ee72a2d7272c Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Wed, 11 Aug 2021 23:58:50 -0700 Subject: [PATCH 17/45] updated private endpoint connections --- ...=> PrivateEndpointConnections_Create.json} | 8 +- ...=> PrivateEndpointConnections_Delete.json} | 3 +- ...on => PrivateEndpointConnections_Get.json} | 14 +-- ...ateEndpointConnections_ListByResource.json | 37 ++++++ ...PowerBI_GetPrivateEndpointConnections.json | 37 ------ .../2020-06-01/powerbiprivatelinks.json | 116 +++++++++--------- 6 files changed, 111 insertions(+), 104 deletions(-) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json => PrivateEndpointConnections_Create.json} (91%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json => PrivateEndpointConnections_Delete.json} (95%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json => PrivateEndpointConnections_Get.json} (80%) create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json delete mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json similarity index 91% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json index a66e87c612f2..d931708b21af 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json @@ -6,7 +6,7 @@ "privateEndpointName": "myPrivateEndpointName", "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", "api-version": "2020-06-01", - "body": { + "privateEndpointConnection": { "properties": { "privateEndpoint": { "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" @@ -29,11 +29,15 @@ "privateEndpoint": { "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" }, + "groupIds": [ + "tenant" + ], "privateLinkServiceConnectionState": { "status": "Approved ", "description": "", "actionsRequired": "None" - } + }, + "provisioningState": "Succeeded" } } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Delete.json similarity index 95% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Delete.json index 3fbf26eda7df..8741f9970798 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Delete.json @@ -15,6 +15,7 @@ }, "200": { "headers": {} - } + }, + "204": {} } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json similarity index 80% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json index 22d59fb73e52..319bd1125bc2 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json @@ -17,19 +17,15 @@ "privateEndpoint": { "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" }, + "groupIds": [ + "tenant" + ], "privateLinkServiceConnectionState": { "status": "Pending", "description": "please approve", "actionsRequired": "None" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" + }, + "provisioningState": "Succeeded" } } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json new file mode 100644 index 000000000000..5734c83643d2 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "privateEndpointName": "myPrivateEndpointName", + "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "privateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName" + }, + "groupIds": [ + "tenant" + ], + "privateLinkServiceConnectionState": { + "status": "Pending", + "description": "Test", + "actionsRequired": "None" + }, + "provisioningState": "Succeeded" + }, + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "name": "myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "type": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnections" + } + ] + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json deleted file mode 100644 index 22d59fb73e52..000000000000 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "parameters": { - "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", - "resourceGroupName": "resourceGroup", - "azureResourceName": "azureResourceName", - "privateEndpointName": "myPrivateEndpointName", - "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "api-version": "2020-06-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "name": "myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "type": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnections", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" - }, - "privateLinkServiceConnectionState": { - "status": "Pending", - "description": "please approve", - "actionsRequired": "None" - } - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - } - } - } - } -} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index b5db1f8459f3..de428f06a35c 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -2,11 +2,8 @@ "swagger": "2.0", "info": { "version": "2020-06-01", - "title": "Power BI Private Link Service Management Client", - "description": "Client to manage your Power BI Private Link Service resources and connection members.", - "x-ms-code-generation-settings": { - "name": "privatelinkservicesforpowerbiClient" - } + "title": "PrivateLinkServicesForPowerBIClient", + "description": "Client to manage Power BI Private Link Service resources and connection members." }, "host": "management.azure.com", "schemes": [ @@ -611,39 +608,43 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnections": { "get": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateEndpointConnections" ], - "operationId": "privateLinkServicesForPowerBIGetPrivateEndpointConnection_List", - "x-ms-examples": { - "Gets private endpoint connections": { - "$ref": "./examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnections.json" - } - }, + "summary": "Lists all private endpoint connections under a resource.", "description": "Gets private endpoint connection for Power BI.", + "operationId": "PrivateEndpointConnections_ListByResource", + "consumes": [], + "produces": [ + "application/json" + ], "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/AzureResourceNameParameter" + "name": "resourceGroupName", + "in": "path", + "description": "The name of the resource group within the user's subscription.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/PrivateEndpointNameParameter" + "name": "azureResourceName", + "in": "path", + "description": "The name of the powerbi resource.", + "required": true, + "type": "string" }, { - "$ref": "#/parameters/PrivateEndpointGuidParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { "200": { "description": "Success. The response describes the list of private endpoint connections in the private endpoint resource.", "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionList" - }, - "headers": {} + "$ref": "#/definitions/PrivateEndpointConnectionListResult" + } }, "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", @@ -654,21 +655,22 @@ }, "x-ms-pageable": { "nextLinkName": null + }, + "x-ms-examples": { + "Gets private endpoint connections": { + "$ref": "./examples/PrivateEndpointConnections_ListByResource.json" + } } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnections/{privateEndpointName}": { "get": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateEndpointConnections" ], - "operationId": "privateLinkServicesForPowerBI_GetPrivateEndpointConnection", - "x-ms-examples": { - "Gets private endpoint connection": { - "$ref": "./examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnection.json" - } - }, - "description": "Gets private endpoint connection for Power BI by private endpoint name.", + "summary": "Get a specific private endpoint connection.", + "operationId": "PrivateEndpointConnections_Get", + "description": "Get a specific private endpoint connection for Power BI by private endpoint name.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -683,7 +685,7 @@ "$ref": "#/parameters/PrivateEndpointNameParameter" }, { - "$ref": "#/parameters/PrivateEndpointGuidParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -691,8 +693,7 @@ "description": "OK", "schema": { "$ref": "#/definitions/PrivateEndpointConnection" - }, - "headers": {} + } }, "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", @@ -700,19 +701,20 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Gets private endpoint connection": { + "$ref": "./examples/PrivateEndpointConnections_Get.json" + } } }, "put": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateEndpointConnections" ], - "operationId": "privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionStatus", - "x-ms-examples": { - "Updates status of private endpoint connection": { - "$ref": "./examples/privateLinkServicesForPowerBI_UpdatePrivateEndpointConnectionStatus.json" - } - }, + "summary": "Update a specific private endpoint connection.", "description": "Updates the status of Private Endpoint Connection object. Used to approve or reject a connection.", + "operationId": "PrivateEndpointConnections_Create", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -727,16 +729,16 @@ "$ref": "#/parameters/PrivateEndpointNameParameter" }, { - "$ref": "#/parameters/PrivateEndpointGuidParameter" - }, - { - "name": "body", + "name": "privateEndpointConnection", "in": "body", "required": true, - "description": "Private endpoint connection to update.", + "description": "Private endpoint connection object to update.", "schema": { "$ref": "#/definitions/PrivateEndpointConnection" } + }, + { + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -744,8 +746,7 @@ "description": "OK", "schema": { "$ref": "#/definitions/PrivateEndpointConnection" - }, - "headers": {} + } }, "default": { "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", @@ -753,20 +754,20 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Updates status of private endpoint connection": { + "$ref": "./examples/PrivateEndpointConnections_Create.json" + } } }, "delete": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateEndpointConnections" ], - "operationId": "privateLinkServicesForPowerBI_DeletePrivateEndpointConnection", - "x-ms-examples": { - "Deletes private endpoint connection": { - "$ref": "./examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnection.json" - } - }, "description": "Deletes a private endpoint connection for Power BI by private endpoint name.", "summary": "Asynchronous API to delete a private endpoint connection for Power BI by private endpoint name.", + "operationId": "PrivateEndpointConnections_Delete", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -781,7 +782,7 @@ "$ref": "#/parameters/PrivateEndpointNameParameter" }, { - "$ref": "#/parameters/PrivateEndpointGuidParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -807,6 +808,11 @@ } } }, + "x-ms-examples": { + "Deletes private endpoint connection": { + "$ref": "./examples/PrivateEndpointConnections_Delete.json" + } + }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -1156,7 +1162,7 @@ }, "x-ms-azure-resource": true }, - "PrivateEndpointConnectionList": { + "PrivateEndpointConnectionListResult": { "title": "PrivateEndpointConnections", "description": "List of private endpoint connections.", "type": "object", From 306c11f8517596fbe2926d9d26664a6b5e82679c Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Thu, 12 Aug 2021 00:23:44 -0700 Subject: [PATCH 18/45] updated PrivateLinkResources --- .../PrivateLinkResources_ListByResource.json | 31 ++++++++++++++++ ...esForPowerBI_ListPrivateLinkResources.json | 35 ------------------- .../2020-06-01/powerbiprivatelinks.json | 29 +++++++-------- 3 files changed, 46 insertions(+), 49 deletions(-) create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_ListByResource.json delete mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_ListByResource.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_ListByResource.json new file mode 100644 index 000000000000..c17f8c290628 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_ListByResource.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateLinkResources/tenant", + "name": "tenant", + "type": "Microsoft.PowerBI/{resourceType}/privateLinkResources", + "properties": { + "groupId": "tenant", + "requiredMembers": [ + "tenant", + "capacity:3df897a4f10b49e9bddb0e9cf062adba" + ], + "requiredZoneNames": [ + "privatelink.powerbi.com" + ] + } + } + ] + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json deleted file mode 100644 index 3d4f7a9ff5c6..000000000000 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "parameters": { - "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", - "resourceGroupName": "resourceGroup", - "azureResourceName": "azureResourceName", - "api-version": "2020-06-01" - }, - "responses": { - "200": { - "body": { - "id": "subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateLinkResources/tenant", - "name": "tenant", - "type": "Microsoft.PowerBI/{resourceType}/privateLinkResources", - "properties": { - "groupId": "tenant", - "requiredMembers": [ - "tenant", - "capacity:3df897a4f10b49e9bddb0e9cf062adba" - ], - "requiredZoneNames": [ - "privatelink.powerbi.com" - ] - }, - "systemData": { - "createdBy": "user1", - "createdByType": "User", - "createdAt": "2020-01-01T17:18:19.1234567Z", - "lastModifiedBy": "user2", - "lastModifiedByType": "User", - "lastModifiedAt": "2020-01-02T17:18:19.1234567Z" - } - } - } - } -} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index de428f06a35c..67bf683eaaec 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -336,19 +336,12 @@ }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateLinkResources": { "get": { - "x-ms-pageable": { - "nextLinkName": null - }, "tags": [ - "privateLinkServicesForPowerBI" + "PrivateLinkResources" ], - "operationId": "privateLinkServicesForPowerBI_ListPrivateLinkResources", - "x-ms-examples": { - "Gets private link resources in a Azure resource": { - "$ref": "./examples/privateLinkServicesForPowerBI_ListPrivateLinkResources.json" - } - }, - "description": "Gets Private Link Resources for Power BI by resource group and resource name.", + "summary": "List private link Power BI resource.", + "description": "List private link resources under a specific Power BI resource.", + "operationId": "PrivateLinkResources_ListByResource", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -368,7 +361,7 @@ "description": "OK", "schema": { "type": "object", - "$ref": "#/definitions/PrivateLinkResources" + "$ref": "#/definitions/PrivateLinkResourcesListResult" }, "headers": {} }, @@ -378,6 +371,14 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Gets private link resources in a Azure resource": { + "$ref": "./examples/PrivateLinkResources_ListByResource.json" + } + }, + "x-ms-pageable": { + "nextLinkName": null } } }, @@ -1209,8 +1210,8 @@ } } }, - "PrivateLinkResources": { - "title": "PrivateLinkResources", + "PrivateLinkResourcesListResult": { + "title": "PrivateLinkResourcesListResult", "type": "object", "properties": { "value": { From 630973e565348ef769d4d5da88b3a892a2bc7197 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Thu, 12 Aug 2021 00:37:48 -0700 Subject: [PATCH 19/45] updated PrivateLinkResource --- .../2020-06-01/powerbiprivatelinks.json | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 67bf683eaaec..bbadbeea1f8f 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -1212,27 +1212,40 @@ }, "PrivateLinkResourcesListResult": { "title": "PrivateLinkResourcesListResult", + "description": "Specifies the private link resource.", "type": "object", "properties": { "value": { + "description": "A collection of private endpoint connection resources.", "type": "array", "items": { "$ref": "#/definitions/PrivateLinkResource" - }, - "description": "Specifies the private link resource." + } } } }, "PrivateLinkResource": { + "description": "A private link resource", "type": "object", "properties": { "properties": { "$ref": "#/definitions/PrivateLinkResourceProperties", "description": "Resource properties.", "x-ms-client-flatten": true + }, + "id": { + "description": "Fully qualified identifier of the resource.", + "type": "string" + }, + "name": { + "description": "Name of the resource.", + "type": "string" + }, + "type": { + "description": "Type of the resource.", + "type": "string" } - }, - "description": "A private link resource" + } }, "PrivateLinkResourceProperties": { "type": "object", From 3012eb894918da3dbffad4484c090fe5af196e0f Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Thu, 12 Aug 2021 00:58:36 -0700 Subject: [PATCH 20/45] updated private endpoint connection proxies --- ...vateEndpointConnectionProxies_Create.json} | 0 ...vateEndpointConnectionProxies_Delete.json} | 3 +- ...PrivateEndpointConnectionProxies_Get.json} | 0 .../PrivateEndpointConnections_Get.json | 6 +-- ...ateEndpointConnections_ListByResource.json | 6 +-- .../2020-06-01/powerbiprivatelinks.json | 40 +++++++++---------- 6 files changed, 24 insertions(+), 31 deletions(-) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json => PrivateEndpointConnectionProxies_Create.json} (100%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json => PrivateEndpointConnectionProxies_Delete.json} (96%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy.json => PrivateEndpointConnectionProxies_Get.json} (100%) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Delete.json similarity index 96% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Delete.json index 764c71d58db1..e55bc23d0e7c 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Delete.json @@ -16,6 +16,7 @@ "200": { "headers": {}, "description": "OK." - } + }, + "204": {} } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Get.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Get.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json index 319bd1125bc2..6fced254fd19 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Get.json @@ -17,15 +17,11 @@ "privateEndpoint": { "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" }, - "groupIds": [ - "tenant" - ], "privateLinkServiceConnectionState": { "status": "Pending", "description": "please approve", "actionsRequired": "None" - }, - "provisioningState": "Succeeded" + } } } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json index 5734c83643d2..a42c728b145b 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_ListByResource.json @@ -16,15 +16,11 @@ "privateEndpoint": { "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName" }, - "groupIds": [ - "tenant" - ], "privateLinkServiceConnectionState": { "status": "Pending", "description": "Test", "actionsRequired": "None" - }, - "provisioningState": "Succeeded" + } }, "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", "name": "myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index bbadbeea1f8f..5d70cf00e6ab 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -385,14 +385,9 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}": { "get": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateEndpointConnectionProxies" ], - "operationId": "privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy", - "x-ms-examples": { - "Gets private endpoint connection proxy": { - "$ref": "./examples/privateLinkServicesForPowerBI_GetPrivateEndpointConnectionProxy.json" - } - }, + "operationId": "PrivateEndpointConnectionProxies_Get", "description": "Gets private endpoint connection proxy for Power BI by private endpoint name.", "summary": "Synchronous API called by NRP to get private endpoint connection proxy for Power BI by private endpoint name.", "parameters": [ @@ -409,7 +404,7 @@ "$ref": "#/parameters/PrivateEndpointNameParameter" }, { - "$ref": "#/parameters/PrivateEndpointGuidParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -426,18 +421,18 @@ "$ref": "#/definitions/ErrorResponse" } } + }, + "x-ms-examples": { + "Gets private endpoint connection proxy": { + "$ref": "./examples/PrivateEndpointConnectionProxies_Get.json" + } } }, "put": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateEndpointConnectionProxies" ], - "operationId": "privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy", - "x-ms-examples": { - "Creates or updates private endpoint connection proxy": { - "$ref": "./examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateEndpointConnectionProxy.json" - } - }, + "operationId": "PrivateEndpointConnectionProxies_Create", "description": "Creates or updates private endpoint connection proxy for Power BI by private endpoint name.", "parameters": [ { @@ -453,7 +448,7 @@ "$ref": "#/parameters/PrivateEndpointNameParameter" }, { - "$ref": "#/parameters/PrivateEndpointGuidParameter" + "$ref": "#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/ClientTenantIdHeaderParameter" @@ -488,6 +483,11 @@ } } }, + "x-ms-examples": { + "Creates or updates private endpoint connection proxy": { + "$ref": "./examples/PrivateEndpointConnectionProxies_Create.json" + } + }, "x-ms-long-running-operation": true, "x-ms-long-running-operation-options": { "final-state-via": "azure-async-operation" @@ -495,12 +495,12 @@ }, "delete": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateEndpointConnectionProxies" ], - "operationId": "privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy", + "operationId": "PrivateEndpointConnectionProxies_Delete", "x-ms-examples": { "Deletes a private endpoint connection proxy": { - "$ref": "./examples/privateLinkServicesForPowerBI_DeletePrivateEndpointConnectionProxy.json" + "$ref": "./examples/PrivateEndpointConnectionProxies_Delete.json" } }, "description": "Deletes a private endpoint connection proxy for Power BI by private endpoint name.", @@ -518,7 +518,7 @@ "$ref": "#/parameters/PrivateEndpointNameParameter" }, { - "$ref": "#/parameters/PrivateEndpointGuidParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { From 0a2dd78d3be934292b024aa44dda8c935c2bf1d0 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Thu, 12 Aug 2021 01:03:32 -0700 Subject: [PATCH 21/45] fixed model validation. --- .../examples/PrivateEndpointConnectionProxies_Create.json | 1 - .../examples/PrivateEndpointConnections_Create.json | 6 +----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json index a4b01ba061e7..9c92a9426402 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json @@ -61,7 +61,6 @@ "Azure-AsyncOperation": "40f12aac-47a9-49f0-b0a8-c9367edca7b0" }, "body": { - "systemData": {} } } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json index d931708b21af..982b476e63a4 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json @@ -29,15 +29,11 @@ "privateEndpoint": { "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" }, - "groupIds": [ - "tenant" - ], "privateLinkServiceConnectionState": { "status": "Approved ", "description": "", "actionsRequired": "None" - }, - "provisioningState": "Succeeded" + } } } } From 86875c9d0fc1aa255a5fa8a47aefb569340530d0 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Thu, 12 Aug 2021 01:22:24 -0700 Subject: [PATCH 22/45] updated connectionstate --- .../2020-06-01/powerbiprivatelinks.json | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 5d70cf00e6ab..1c9412675eb2 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -967,20 +967,30 @@ } }, "ConnectionState": { - "title": "ConnectionState", + "description": "ConnectionState information.", "type": "object", "properties": { "status": { - "$ref": "#/definitions/ConnectionStatus", - "description": "Specifies the connection status." + "description": "Status of the connection.", + "enum": [ + "Pending", + "Approved", + "Rejected", + "Disconnected" + ], + "type": "string", + "x-ms-enum": { + "name": "PersistedConnectionStatus", + "modelAsString": true + } }, "description": { - "type": "string", - "description": "Specifies the connection status description." + "description": "Description of the connection state.", + "type": "string" }, "actionsRequired": { - "$ref": "#/definitions/ActionsRequired", - "description": "Specifies the actions required." + "description": "Actions required (if any).", + "type": "string" } } }, @@ -1283,16 +1293,6 @@ } } }, - "ConnectionStatus": { - "title": "ConnectionStatus", - "type": "string", - "enum": [ - "Pending", - "Approved", - "Rejected", - "Disconnected" - ] - }, "AvailableOperations": { "description": "Available operations of the service", "type": "object", From 158d30be0c2dbf08af5ae07751cd1360f89aeb5a Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Thu, 12 Aug 2021 01:44:01 -0700 Subject: [PATCH 23/45] renamed connection files --- ...leOperations.json => Operations_List.json} | 0 ...vice.json => PowerBIResources_Create.json} | 0 ...vice.json => PowerBIResources_Delete.json} | 0 ... PowerBIResources_ListByResourceName.json} | 0 ...ivateEndpointConnectionProxies_Create.json | 3 +- ...teEndpointConnectionProxies_Validate.json} | 0 ...kServiceResourceOperationResults_Get.json} | 0 ...vateLinkServices_ListByResourceGroup.json} | 0 ...ateLinkServices_ListBySubscriptionId.json} | 0 .../2020-06-01/powerbiprivatelinks.json | 53 ++++++++----------- 10 files changed, 22 insertions(+), 34 deletions(-) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_ListAvailableOperations.json => Operations_List.json} (100%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json => PowerBIResources_Create.json} (100%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_DeletePrivateLinkService.json => PowerBIResources_Delete.json} (100%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_ListByAzureResource.json => PowerBIResources_ListByResourceName.json} (100%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy.json => PrivateEndpointConnectionProxies_Validate.json} (100%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult.json => PrivateLinkServiceResourceOperationResults_Get.json} (100%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_ListByResourceGroup.json => PrivateLinkServices_ListByResourceGroup.json} (100%) rename specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/{privateLinkServicesForPowerBI_ListBySubscriptionId.json => PrivateLinkServices_ListBySubscriptionId.json} (100%) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListAvailableOperations.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/Operations_List.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListAvailableOperations.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/Operations_List.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Create.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Create.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Delete.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Delete.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByAzureResource.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_ListByResourceName.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByAzureResource.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_ListByResourceName.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json index 9c92a9426402..c40e5aea4b50 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json @@ -60,8 +60,7 @@ "headers": { "Azure-AsyncOperation": "40f12aac-47a9-49f0-b0a8-c9367edca7b0" }, - "body": { - } + "body": {} } } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Validate.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Validate.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServiceResourceOperationResults_Get.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServiceResourceOperationResults_Get.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByResourceGroup.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServices_ListByResourceGroup.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListByResourceGroup.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServices_ListByResourceGroup.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListBySubscriptionId.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServices_ListBySubscriptionId.json similarity index 100% rename from specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/privateLinkServicesForPowerBI_ListBySubscriptionId.json rename to specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServices_ListBySubscriptionId.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 1c9412675eb2..4c3c67ef31e4 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -43,7 +43,7 @@ "operationId": "Operations_List", "x-ms-examples": { "Lists all of the available Power BI RP operations": { - "$ref": "./examples/privateLinkServicesForPowerBI_ListAvailableOperations.json" + "$ref": "./examples/Operations_List.json" } }, "parameters": [ @@ -73,11 +73,11 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI": { "get": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateLinkServices" ], "x-ms-examples": { "List private link resources in a subscription": { - "$ref": "./examples/privateLinkServicesForPowerBI_ListBySubscriptionId.json" + "$ref": "./examples/PrivateLinkServices_ListBySubscriptionId.json" } }, "operationId": "privateLinkServicesForPowerBI_ListBySubscriptionId", @@ -113,12 +113,12 @@ "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/operationResults/{operationId}": { "get": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateLinkServiceResourceOperationResults" ], - "operationId": "privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult", + "operationId": "PrivateLinkServiceResourceOperationResults_Get", "x-ms-examples": { "Result of operation on private link resources": { - "$ref": "./examples/privateLinkServicesForPowerBI_GetPrivateLinkServiceResourceOperationResult.json" + "$ref": "./examples/PrivateLinkServiceResourceOperationResults_Get.json" } }, "description": "Gets operation result of Private Link Service Resources for Power BI.", @@ -153,12 +153,12 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI": { "get": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateLinkServices" ], - "operationId": "privateLinkServicesForPowerBI_ListByResourceGroup", + "operationId": "PrivateLinkServices_ListByResourceGroup", "x-ms-examples": { "List private link resources in a resource group": { - "$ref": "./examples/privateLinkServicesForPowerBI_ListByResourceGroup.json" + "$ref": "./examples/PrivateLinkServices_ListByResourceGroup.json" } }, "description": "Gets all the private link resources for the given resource group.", @@ -196,12 +196,12 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}": { "get": { "tags": [ - "privateLinkServicesForPowerBI" + "PowerBIResources" ], - "operationId": "privateLinkServicesForPowerBI_ListByResourceName", + "operationId": "PowerBIResources_ListByResourceName", "x-ms-examples": { "List private link resources in a Azure resource": { - "$ref": "./examples/privateLinkServicesForPowerBI_ListByAzureResource.json" + "$ref": "./examples/PowerBIResources_ListByResourceName.json" } }, "description": "Gets all the private link resources for the given Azure resource.", @@ -240,12 +240,12 @@ }, "put": { "tags": [ - "privateLinkServicesForPowerBI" + "PowerBIResources" ], - "operationId": "privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService", + "operationId": "PowerBIResources_Create", "x-ms-examples": { "Creates or updates private link service resource": { - "$ref": "./examples/privateLinkServicesForPowerBI_CreateOrUpdatePrivateLinkService.json" + "$ref": "./examples/PowerBIResources_Create.json" } }, "description": "Creates or updates a Private Link Service Resource for Power BI.", @@ -294,12 +294,12 @@ }, "delete": { "tags": [ - "privateLinkServicesForPowerBI" + "PowerBIResources" ], - "operationId": "privateLinkServicesForPowerBI_DeletePrivateLinkService", + "operationId": "PowerBIResources_Delete", "x-ms-examples": { "Deletes private link service resource": { - "$ref": "./examples/privateLinkServicesForPowerBI_DeletePrivateLinkService.json" + "$ref": "./examples/PowerBIResources_Delete.json" } }, "description": "Deletes a Private Link Service Resource for Power BI.", @@ -553,12 +553,12 @@ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}/validate": { "post": { "tags": [ - "privateLinkServicesForPowerBI" + "PrivateEndpointConnectionProxies" ], - "operationId": "privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy", + "operationId": "PrivateEndpointConnectionProxies_Validate", "x-ms-examples": { "Validates a private endpoint connection": { - "$ref": "./examples/privateLinkServicesForPowerBI_ValidatePrivateEndpointConnectionProxy.json" + "$ref": "./examples/PrivateEndpointConnectionProxies_Validate.json" } }, "description": "Validates a private endpoint connection before create or update.", @@ -576,9 +576,6 @@ { "$ref": "#/parameters/PrivateEndpointNameParameter" }, - { - "$ref": "#/parameters/PrivateEndpointGuidParameter" - }, { "name": "body", "in": "body", @@ -1602,14 +1599,6 @@ "description": "The name of the private endpoint.", "x-ms-parameter-location": "client" }, - "PrivateEndpointGuidParameter": { - "name": "privateEndpointGuid", - "in": "path", - "required": true, - "type": "string", - "description": "The Guid of the private endpoint. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).", - "x-ms-parameter-location": "client" - }, "OperationIdParameter": { "name": "operationId", "in": "path", From 7f0c72d20c6ec181c1638565fffc06ab22056940 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Thu, 12 Aug 2021 01:55:32 -0700 Subject: [PATCH 24/45] update readme file. --- specification/powerbiprivatelinks/resource-manager/readme.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/readme.md b/specification/powerbiprivatelinks/resource-manager/readme.md index 1659d46ea0ce..c1a9dbcd5aa7 100644 --- a/specification/powerbiprivatelinks/resource-manager/readme.md +++ b/specification/powerbiprivatelinks/resource-manager/readme.md @@ -14,15 +14,13 @@ To see additional help and options, run: > `autorest --help` -For other options on installation see [Installing AutoRest](https://aka.ms/autorest/install) on the AutoRest github page. - --- ## Configuration ### Basic Information -These are the global settings for the powerbiprivatelinks. +These are the global settings for the Azure PowerBI API. ```yaml openapi-type: arm From d4ada536b4b8d9682a12d847c4abef29ce528cea Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Thu, 12 Aug 2021 02:07:06 -0700 Subject: [PATCH 25/45] updated python readme --- .../powerbiprivatelinks/resource-manager/readme.python.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/readme.python.md b/specification/powerbiprivatelinks/resource-manager/readme.python.md index 7703078fc2e1..16a681ca739a 100644 --- a/specification/powerbiprivatelinks/resource-manager/readme.python.md +++ b/specification/powerbiprivatelinks/resource-manager/readme.python.md @@ -3,12 +3,14 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. -``` yaml $(track2) +``` yaml $(python) +python-mode: create azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION +namespace: azure.mgmt.powerbiprivatelinks package-name: azure-mgmt-powerbiprivatelinks -no-namespace-folders: true -package-version: 1.0.0b1 +package-version: 2.2.0 +clear-output-folder: true clear-output-folder: true ``` From 66ca323784cdec4c6cac6a8200237d909b67066b Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 13 Aug 2021 10:33:19 -0700 Subject: [PATCH 26/45] fixed code review comments --- .../2020-06-01/powerbiprivatelinks.json | 206 ++++++------------ 1 file changed, 66 insertions(+), 140 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 4c3c67ef31e4..7f5d599052ef 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -59,10 +59,10 @@ } }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } }, "x-ms-pageable": { @@ -90,6 +90,9 @@ "$ref": "#/parameters/ApiVersionParameter" } ], + "x-ms-pageable": { + "nextLinkName": null + }, "responses": { "200": { "description": "OK", @@ -98,14 +101,13 @@ "items": { "$ref": "#/definitions/TenantResource" } - }, - "headers": {} + } }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } } } @@ -138,14 +140,13 @@ "description": "OK", "schema": { "$ref": "#/definitions/AsyncOperationDetail" - }, - "headers": {} + } }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } } } @@ -173,6 +174,9 @@ "$ref": "#/parameters/ApiVersionParameter" } ], + "x-ms-pageable": { + "nextLinkName": null + }, "responses": { "200": { "description": "OK", @@ -181,14 +185,13 @@ "items": { "$ref": "#/definitions/TenantResource" } - }, - "headers": {} + } }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } } } @@ -227,14 +230,13 @@ "items": { "$ref": "#/definitions/TenantResource" } - }, - "headers": {} + } }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } } }, @@ -285,10 +287,10 @@ "headers": {} }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } } }, @@ -319,17 +321,16 @@ ], "responses": { "200": { - "description": "OK", - "headers": {} + "description": "OK" }, "204": { "description": "No Content." }, "default": { - "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } } } @@ -362,14 +363,13 @@ "schema": { "type": "object", "$ref": "#/definitions/PrivateLinkResourcesListResult" - }, - "headers": {} + } }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } }, "x-ms-examples": { @@ -416,10 +416,10 @@ "headers": {} }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } }, "x-ms-examples": { @@ -477,10 +477,10 @@ } }, "default": { - "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } }, "x-ms-examples": { @@ -538,10 +538,10 @@ "description": "No Content." }, "default": { - "description": "Error response describing why the operation failed.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } }, "x-ms-long-running-operation": true, @@ -595,10 +595,10 @@ "headers": {} }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } } } @@ -694,10 +694,10 @@ } }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } }, "x-ms-examples": { @@ -747,10 +747,10 @@ } }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } }, "x-ms-examples": { @@ -800,10 +800,10 @@ "description": "No Content." }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } }, "x-ms-examples": { @@ -869,8 +869,9 @@ "description": "Specifies the type of the resource." }, "systemData": { - "$ref": "#/definitions/SystemData", - "readOnly": true + "readOnly" : true, + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, "location": { "type": "string", @@ -1159,8 +1160,9 @@ "description": "Specifies the type of the resource." }, "systemData": { - "$ref": "#/definitions/SystemData", - "readOnly": true + "readOnly": true, + "description": "The system meta data relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, "properties": { "x-ms-client-flatten": true, @@ -1415,8 +1417,9 @@ "description": "Key-value pairs of additional resource provisioning properties." }, "systemData": { - "$ref": "#/definitions/SystemData", - "description": "Metadata pertaining to creation and last modification of the resource." + "readOnly": true, + "description": "The system metadata relating to this resource.", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" } }, "required": [ @@ -1475,83 +1478,6 @@ } } }, - "ErrorDetail": { - "title": "ErrorDetail", - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "Specifies the error code." - }, - "message": { - "type": "string", - "description": "Specifies the error message." - }, - "target": { - "type": "string", - "description": "Specifies the error target." - } - } - }, - "ErrorResponse": { - "type": "object", - "description": "Describes the format of Error response.", - "properties": { - "error": { - "description": "The error object", - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "Error code" - }, - "message": { - "type": "string", - "description": "Error message indicating why the operation failed." - } - } - } - } - }, - "SystemData": { - "description": "Metadata pertaining to creation and last modification of the resource.", - "type": "object", - "readOnly": true, - "properties": { - "createdBy": { - "type": "string", - "description": "An identifier for the identity that created the resource", - "readOnly": true - }, - "createdByType": { - "$ref": "#/definitions/IdentityType", - "description": "The type of identity that created the resource", - "readOnly": true - }, - "createdAt": { - "type": "string", - "format": "date-time", - "description": "The timestamp of resource creation (UTC)", - "readOnly": true - }, - "lastModifiedBy": { - "type": "string", - "description": "An identifier for the identity that last modified the resource", - "readOnly": true - }, - "lastModifiedByType": { - "$ref": "#/definitions/IdentityType", - "description": "The type of identity that last modified the resource", - "readOnly": true - }, - "lastModifiedAt": { - "type": "string", - "format": "date-time", - "description": "The timestamp of resource last modification (UTC)", - "readOnly": true - } - } - }, "IdentityType": { "description": "The type of identity that created/modified the resource.", "type": "string", From 07754a189e79c3a276a0631be9c88347344f6092 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 13 Aug 2021 10:43:07 -0700 Subject: [PATCH 27/45] updated error ref. --- .../stable/2020-06-01/powerbiprivatelinks.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 7f5d599052ef..5aa8a7544544 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -645,10 +645,10 @@ } }, "default": { - "description": "Default Response. It will be deserialized as per the Error definition specified in the schema. Exception will be thrown.", "schema": { - "$ref": "#/definitions/ErrorResponse" - } + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." } }, "x-ms-pageable": { From b4b20fc70a498d7e8754767d20e684361e391166 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 13 Aug 2021 11:06:46 -0700 Subject: [PATCH 28/45] Removed Error and linked to common-type. --- .../2020-06-01/powerbiprivatelinks.json | 27 +------------------ 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 5aa8a7544544..38a635239c71 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -844,7 +844,7 @@ "description": "The operation end time." }, "error": { - "$ref": "#/definitions/Error", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorDetail", "description": "The error." } } @@ -1453,31 +1453,6 @@ } } }, - "Error": { - "title": "Error", - "type": "object", - "properties": { - "code": { - "type": "string", - "description": "Specifies the error code." - }, - "message": { - "type": "string", - "description": "Specifies the error message." - }, - "target": { - "type": "string", - "description": "Specifies the error target." - }, - "details": { - "type": "array", - "items": { - "$ref": "#/definitions/ErrorDetail" - }, - "description": "Specifies the error details." - } - } - }, "IdentityType": { "description": "The type of identity that created/modified the resource.", "type": "string", From 64100a07f99033fd4078132b8385f59877e347e8 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 13 Aug 2021 11:28:09 -0700 Subject: [PATCH 29/45] added 201 to put request --- .../stable/2020-06-01/powerbiprivatelinks.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 38a635239c71..b31509e84e0d 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -286,6 +286,12 @@ }, "headers": {} }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/TenantResource" + } + }, "default": { "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" @@ -746,6 +752,12 @@ "$ref": "#/definitions/PrivateEndpointConnection" } }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + }, "default": { "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" From da748125b811f282c068e04177f766e296ddc945 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 13 Aug 2021 11:42:08 -0700 Subject: [PATCH 30/45] removed unnecessary definitions. --- .../2020-06-01/powerbiprivatelinks.json | 177 +----------------- 1 file changed, 1 insertion(+), 176 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index b31509e84e0d..d0ab232f6d27 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -55,7 +55,7 @@ "200": { "description": "OK. The request has succeeded.", "schema": { - "$ref": "#/definitions/AvailableOperations" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/OperationListResult" } }, "default": { @@ -1303,181 +1303,6 @@ "description": "Specifies the id of private endpoint connection." } } - }, - "AvailableOperations": { - "description": "Available operations of the service", - "type": "object", - "properties": { - "value": { - "description": "Collection of available operation details", - "uniqueItems": false, - "type": "array", - "items": { - "$ref": "#/definitions/OperationDetail" - } - }, - "nextLink": { - "description": "URL client should use to fetch the next page (per server side paging).\r\nIt's null for now, added for future use.", - "type": "string" - } - } - }, - "OperationDetail": { - "description": "Operation detail payload", - "type": "object", - "properties": { - "name": { - "description": "Name of the operation", - "type": "string" - }, - "isDataAction": { - "description": "Indicates whether the operation is a data action", - "type": "string" - }, - "display": { - "$ref": "#/definitions/OperationDisplay", - "description": "Display of the operation" - }, - "origin": { - "description": "Origin of the operation", - "type": "string" - } - } - }, - "OperationDisplay": { - "description": "Operation display payload", - "type": "object", - "properties": { - "provider": { - "description": "Resource provider of the operation", - "type": "string" - }, - "resource": { - "description": "Resource of the operation", - "type": "string" - }, - "operation": { - "description": "Localized friendly name for the operation", - "type": "string" - }, - "description": { - "description": "Localized friendly description for the operation", - "type": "string" - } - } - }, - "Operation": { - "description": "PowerBI Private link REST API operation.", - "type": "object", - "properties": { - "name": { - "description": "Operation name: {provider}/{resource}/{operation}.", - "type": "string" - }, - "display": { - "description": "The object that represents the operation.", - "type": "object", - "properties": { - "provider": { - "description": "Service provider: Microsoft.PowerBI.", - "type": "string" - }, - "resource": { - "description": "Resource on which the operation is performed: private endpoint, etc.", - "type": "string" - }, - "operation": { - "description": "Operation type: create, update, delete, etc.", - "type": "string" - } - } - } - } - }, - "Resource": { - "description": "Represents an instance of an PowerBI resource.", - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "An identifier that represents the PowerBI resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "The name of the PowerBI resource." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "The type of the PowerBI resource." - }, - "location": { - "type": "string", - "description": "Location of the PowerBI resource.", - "x-ms-mutability": [ - "create", - "read" - ] - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value pairs of additional resource provisioning properties." - }, - "systemData": { - "readOnly": true, - "description": "The system metadata relating to this resource.", - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true - }, - "Display": { - "title": "Display", - "type": "object", - "properties": { - "provider": { - "type": "string", - "description": "The localized friendly form of the resource provider name. This form is also expected to include the publisher/company responsible. Use Title Casing. Begin with \"Microsoft\" for 1st party services." - }, - "resource": { - "type": "string", - "description": "The localized friendly form of the resource type related to this action/operation. This form should match the public documentation for the resource provider. Use Title Casing. For examples, refer to the \"name\" section." - }, - "operation": { - "type": "string", - "description": "The localized friendly name for the operation as shown to the user. This name should be concise (to fit in drop downs), but clear (self-documenting). Use Title Casing and include the entity/resource to which it applies." - }, - "description": { - "type": "string", - "description": "The localized friendly description for the operation as shown to the user. This description should be thorough, yet concise. It will be used in tool-tips and detailed views." - }, - "origin": { - "type": "string", - "description": "The intended executor of the operation; governs the display of the operation in the RBAC UX and the audit logs UX. Default value is 'user,system'" - } - } - }, - "IdentityType": { - "description": "The type of identity that created/modified the resource.", - "type": "string", - "enum": [ - "User", - "Application", - "ManagedIdentity", - "Key" - ], - "x-ms-enum": { - "name": "IdentityType", - "modelAsString": true - } } }, "parameters": { From d2c236eae8eda55ae9290e7193b796272cf37959 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 13 Aug 2021 12:16:01 -0700 Subject: [PATCH 31/45] updates examples for 201 --- .../examples/PowerBIResources_Create.json | 13 +++++++++++++ .../PrivateEndpointConnections_Create.json | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Create.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Create.json index c9ab7ae3ee2e..ba0e6e6c9535 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Create.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Create.json @@ -29,6 +29,19 @@ "tag2": "value2" } } + }, + "201": { + "body": { + "name": "myPrivateLinkServiceResource", + "location": "global", + "properties": { + "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } } } } diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json index 982b476e63a4..44aef5376784 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnections_Create.json @@ -36,6 +36,23 @@ } } } + }, + "201": { + "body": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "name": "myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", + "type": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnections", + "properties": { + "privateEndpoint": { + "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" + }, + "privateLinkServiceConnectionState": { + "status": "Approved ", + "description": "", + "actionsRequired": "None" + } + } + } } } } From d87a9c83042cc89e7b485b24bee1f1db029ce93b Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 13 Aug 2021 12:40:08 -0700 Subject: [PATCH 32/45] updated list of --- .../stable/2020-06-01/powerbiprivatelinks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index d0ab232f6d27..a8e40ed124e4 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -1233,7 +1233,7 @@ }, "PrivateLinkResourcesListResult": { "title": "PrivateLinkResourcesListResult", - "description": "Specifies the private link resource.", + "description": "Specifies list of the private link resource.", "type": "object", "properties": { "value": { From d4f90ffcaa0b956e6c038f66517c8dfc8b15f804 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Fri, 13 Aug 2021 12:55:33 -0700 Subject: [PATCH 33/45] removed extra space --- .../stable/2020-06-01/powerbiprivatelinks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index a8e40ed124e4..515136413f02 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -881,7 +881,7 @@ "description": "Specifies the type of the resource." }, "systemData": { - "readOnly" : true, + "readOnly": true, "description": "The system metadata relating to this resource.", "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData" }, From 43be8f0e542db50174eff761324e816b40fac6a1 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Sun, 15 Aug 2021 11:08:37 -0700 Subject: [PATCH 34/45] Added patch to PowerBIResource --- .../examples/PowerBIResources_Update.json | 47 ++++++++++++ .../2020-06-01/powerbiprivatelinks.json | 72 ++++++++++++++++++- 2 files changed, 118 insertions(+), 1 deletion(-) create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Update.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Update.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Update.json new file mode 100644 index 000000000000..ba0e6e6c9535 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PowerBIResources_Update.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "api-version": "2020-06-01", + "x-ms-client-tenant-id": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f", + "body": { + "location": "global", + "properties": { + "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "name": "myPrivateLinkServiceResource", + "location": "global", + "properties": { + "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "201": { + "body": { + "name": "myPrivateLinkServiceResource", + "location": "global", + "properties": { + "tenantId": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 515136413f02..5eebbd7227e4 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -117,13 +117,13 @@ "tags": [ "PrivateLinkServiceResourceOperationResults" ], + "description": "Gets operation result of Private Link Service Resources for Power BI.", "operationId": "PrivateLinkServiceResourceOperationResults_Get", "x-ms-examples": { "Result of operation on private link resources": { "$ref": "./examples/PrivateLinkServiceResourceOperationResults_Get.json" } }, - "description": "Gets operation result of Private Link Service Resources for Power BI.", "parameters": [ { "$ref": "#/parameters/SubscriptionIdParameter" @@ -142,12 +142,22 @@ "$ref": "#/definitions/AsyncOperationDetail" } }, + "202": { + "description": "Operation is in progress.", + "schema": { + "$ref": "#/definitions/AsyncOperationDetail" + } + }, "default": { "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" }, "description": "An error response received from Power BI service." } + }, + "x-ms-long-running-operation": true, + "x-ms-long-running-operation-options": { + "final-state-via": "azure-async-operation" } } }, @@ -300,6 +310,66 @@ } } }, + "patch": { + "tags": [ + "PowerBIResources" + ], + "operationId": "PowerBIResources_Update", + "x-ms-examples": { + "Updates private link service resource": { + "$ref": "./examples/PowerBIResources_Update.json" + } + }, + "description": "Creates or updates a Private Link Service Resource for Power BI.", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/ClientTenantIdHeaderParameter" + }, + { + "name": "body", + "in": "body", + "required": true, + "description": "Tenant resource to be created or updated.", + "schema": { + "$ref": "#/definitions/TenantResource" + } + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object", + "$ref": "#/definitions/TenantResource" + }, + "headers": {} + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/TenantResource" + } + }, + "default": { + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." + } + } + }, "delete": { "tags": [ "PowerBIResources" From ac56b4dba76cb8ca1cc4c2e53c1e8c3dccfe78d1 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Sun, 15 Aug 2021 11:14:02 -0700 Subject: [PATCH 35/45] added 202 to PrivateLinkServiceResourceOperationResults_Get --- .../PrivateLinkServiceResourceOperationResults_Get.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServiceResourceOperationResults_Get.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServiceResourceOperationResults_Get.json index 27144a4a05fe..d17efeda2c19 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServiceResourceOperationResults_Get.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkServiceResourceOperationResults_Get.json @@ -11,6 +11,13 @@ "status": "InProgress", "startTime": "2017-01-06T18:58:24.7596323+00:00" } + }, + "202": { + "body": { + "name": "9a062a88-e463-4697-bef2-fe039df73a02", + "status": "InProgress", + "startTime": "2017-01-06T18:58:24.7596323+00:00" + } } } } From 95b1c9a35865d08635c56a425e41bc6c5d58c83f Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Sun, 15 Aug 2021 11:28:08 -0700 Subject: [PATCH 36/45] updated readme files --- .../powerbiprivatelinks/resource-manager/readme.md | 14 ++++++++++++++ .../resource-manager/readme.python.md | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/readme.md b/specification/powerbiprivatelinks/resource-manager/readme.md index c1a9dbcd5aa7..7307a0ef0278 100644 --- a/specification/powerbiprivatelinks/resource-manager/readme.md +++ b/specification/powerbiprivatelinks/resource-manager/readme.md @@ -54,6 +54,20 @@ swagger-to-sdk: - repo: azure-resource-manager-schemas - repo: azure-cli-extensions ``` + +## Java + +These settings apply only when `--java` is specified on the command line. +Please also specify `--azure-libraries-for-java-folder=`. + +``` yaml $(java) +azure-arm: true +fluent: true +namespace: com.microsoft.azure.management.powerbiprivatelinks +license-header: MICROSOFT_MIT_NO_CODEGEN +payload-flattening-threshold: 1 +output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-powerbiprivatelinks + ## Az See configuration in [readme.az.md](./readme.az.md) diff --git a/specification/powerbiprivatelinks/resource-manager/readme.python.md b/specification/powerbiprivatelinks/resource-manager/readme.python.md index 16a681ca739a..080807cc4d8f 100644 --- a/specification/powerbiprivatelinks/resource-manager/readme.python.md +++ b/specification/powerbiprivatelinks/resource-manager/readme.python.md @@ -2,6 +2,7 @@ These settings apply only when `--python` is specified on the command line. Please also specify `--python-sdks-folder=`. +Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. ``` yaml $(python) python-mode: create @@ -9,8 +10,7 @@ azure-arm: true license-header: MICROSOFT_MIT_NO_VERSION namespace: azure.mgmt.powerbiprivatelinks package-name: azure-mgmt-powerbiprivatelinks -package-version: 2.2.0 -clear-output-folder: true +package-version: 1.0.0b1 clear-output-folder: true ``` From 4274050178836115cb57860744e6778aca854489 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Sun, 15 Aug 2021 11:40:46 -0700 Subject: [PATCH 37/45] added provisioning state --- .../stable/2020-06-01/powerbiprivatelinks.json | 16 ++++++++++++++++ .../resource-manager/readme.md | 1 + 2 files changed, 17 insertions(+) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 5eebbd7227e4..dc31f00c5209 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -1280,6 +1280,22 @@ "privateLinkServiceConnectionState": { "$ref": "#/definitions/ConnectionState", "description": "Specifies the connection state." + }, + "provisioningState": { + "description": "Provisioning state of the Private Endpoint Connection.", + "enum": [ + "Creating", + "Updating", + "Deleting", + "Succeeded", + "Canceled", + "Failed" + ], + "type": "string", + "x-ms-enum": { + "name": "ResourceProvisioningState", + "modelAsString": true + } } } }, diff --git a/specification/powerbiprivatelinks/resource-manager/readme.md b/specification/powerbiprivatelinks/resource-manager/readme.md index 7307a0ef0278..b9b79c107424 100644 --- a/specification/powerbiprivatelinks/resource-manager/readme.md +++ b/specification/powerbiprivatelinks/resource-manager/readme.md @@ -67,6 +67,7 @@ namespace: com.microsoft.azure.management.powerbiprivatelinks license-header: MICROSOFT_MIT_NO_CODEGEN payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-powerbiprivatelinks +``` ## Az From 726805bde95a71776560e510d33c71a38577be46 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Sun, 15 Aug 2021 11:54:26 -0700 Subject: [PATCH 38/45] trying to fix sdk error --- .../resource-manager/readme.cli.md | 1 - .../resource-manager/readme.md | 20 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) delete mode 100644 specification/powerbiprivatelinks/resource-manager/readme.cli.md diff --git a/specification/powerbiprivatelinks/resource-manager/readme.cli.md b/specification/powerbiprivatelinks/resource-manager/readme.cli.md deleted file mode 100644 index c6cf6ad37ea4..000000000000 --- a/specification/powerbiprivatelinks/resource-manager/readme.cli.md +++ /dev/null @@ -1 +0,0 @@ -## CLI Common Settings for all the command line tools \ No newline at end of file diff --git a/specification/powerbiprivatelinks/resource-manager/readme.md b/specification/powerbiprivatelinks/resource-manager/readme.md index b9b79c107424..5cba20d45269 100644 --- a/specification/powerbiprivatelinks/resource-manager/readme.md +++ b/specification/powerbiprivatelinks/resource-manager/readme.md @@ -69,6 +69,26 @@ payload-flattening-threshold: 1 output-folder: $(azure-libraries-for-java-folder)/azure-mgmt-powerbiprivatelinks ``` +### Java multi-api + +``` yaml $(java) && $(multiapi) +batch: + - tag: package-2020-06-01 +``` + +### Tag: package-2020-06-01 and java + +These settings apply only when `--tag=package-2020-06-01 --java` is specified on the command line. +Please also specify `--azure-libraries-for-java=`. + +``` yaml $(tag) == 'package-2020-06-01' && $(java) && $(multiapi) +java: + namespace: com.microsoft.azure.management.powerbiprivatelinks.v2020-06-01 + output-folder: $(azure-libraries-for-java-folder)/sdk/powerbiprivatelinks/mgmt-v2020-06-01 +regenerate-manager: true +generate-interface: true +``` + ## Az See configuration in [readme.az.md](./readme.az.md) From 4d9c64f0877c25dac30baca0fe82fdf907e32f16 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 16 Aug 2021 14:33:31 -0700 Subject: [PATCH 39/45] removed privateEndpointConnectionProxies --- ...ivateEndpointConnectionProxies_Create.json | 66 ---- ...ivateEndpointConnectionProxies_Delete.json | 22 -- .../PrivateEndpointConnectionProxies_Get.json | 64 ---- ...ateEndpointConnectionProxies_Validate.json | 81 ----- .../2020-06-01/powerbiprivatelinks.json | 323 ------------------ 5 files changed, 556 deletions(-) delete mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json delete mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Delete.json delete mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Get.json delete mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Validate.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json deleted file mode 100644 index c40e5aea4b50..000000000000 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Create.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "parameters": { - "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", - "resourceGroupName": "resourceGroup", - "azureResourceName": "azureResourceName", - "privateEndpointName": "myPrivateEndpointName", - "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "api-version": "2020-06-01", - "x-ms-client-tenant-id": "ac2bc297-8a3e-46f3-972d-87c2b4ae6e2f", - "body": { - "remotePrivateEndpoint": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName", - "privateLinkServiceConnections": [ - { - "name": "myPrivateEndpointConnection", - "groupIds": [ - "tenant" - ], - "requestMessage": "opt msg" - } - ], - "privateLinkServiceProxies": [ - { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "groupConnectivityInformation": [ - { - "groupId": "tenant", - "memberName": "tenant", - "internalFqdn": "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net", - "customerVisibleFqdns": [ - "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net" - ], - "privateLinkServiceArmRegion": "" - } - ], - "remotePrivateLinkServiceConnectionState": { - "status": "Pending", - "description": "please approve", - "actionsRequired": "None" - }, - "remotePrivateEndpointConnection": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721" - } - } - ], - "connectionDetails": [ - { - "id": "10001", - "memberName": "tenant", - "privateIpAddress": "10.0.1.4", - "linkIdentifier": "1253", - "groupId": "tenant" - } - ] - } - } - }, - "responses": { - "201": { - "headers": { - "Azure-AsyncOperation": "40f12aac-47a9-49f0-b0a8-c9367edca7b0" - }, - "body": {} - } - } -} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Delete.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Delete.json deleted file mode 100644 index e55bc23d0e7c..000000000000 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Delete.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "parameters": { - "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", - "resourceGroupName": "resourceGroup", - "azureResourceName": "azureResourceName", - "privateEndpointName": "myPrivateEndpointName", - "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "api-version": "2020-06-01" - }, - "responses": { - "202": { - "headers": { - "Azure-AsyncOperation": "40f12aac-47a9-49f0-b0a8-c9367edca7b0" - } - }, - "200": { - "headers": {}, - "description": "OK." - }, - "204": {} - } -} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Get.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Get.json deleted file mode 100644 index 50e3da49b789..000000000000 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Get.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "parameters": { - "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", - "resourceGroupName": "resourceGroup", - "azureResourceName": "azureResourceName", - "privateEndpointName": "myPrivateEndpointName", - "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "api-version": "2020-06-01" - }, - "responses": { - "200": { - "body": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "name": "myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "type": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnectionProxies", - "remotePrivateEndpoint": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName", - "privateLinkServiceConnections": [ - { - "name": "myPrivateEndpointConnection", - "groupIds": [ - "tenant" - ], - "requestMessage": "opt msg" - } - ], - "privateLinkServiceProxies": [ - { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "groupConnectivityInformation": [ - { - "groupId": "tenant", - "memberName": "tenant", - "internalFqdn": "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net", - "customerVisibleFqdns": [ - "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net" - ], - "privateLinkServiceArmRegion": "" - } - ], - "remotePrivateLinkServiceConnectionState": { - "status": "Pending", - "description": "please approve", - "actionsRequired": "None" - }, - "remotePrivateEndpointConnection": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName" - } - } - ], - "connectionDetails": [ - { - "id": "10001", - "memberName": "tenant", - "privateIpAddress": "10.0.1.4", - "linkIdentifier": "1253", - "groupId": "tenant" - } - ] - } - } - } - } -} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Validate.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Validate.json deleted file mode 100644 index 140127263bd8..000000000000 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateEndpointConnectionProxies_Validate.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "parameters": { - "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", - "resourceGroupName": "resourceGroup", - "azureResourceName": "azureResourceName", - "privateEndpointName": "myPrivateEndpointName", - "privateEndpointGuid": "58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "api-version": "2020-06-01", - "body": { - "remotePrivateEndpoint": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName", - "privateLinkServiceConnections": [ - { - "name": "myPrivateEndpointConnection", - "groupIds": [ - "tenant" - ], - "requestMessage": "opt msg" - } - ], - "privateLinkServiceProxies": [ - { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "groupConnectivityInformation": [] - } - ] - } - } - }, - "responses": { - "200": { - "body": { - "remotePrivateEndpoint": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName", - "privateLinkServiceConnections": [ - { - "name": "myPrivateEndpointConnection", - "groupIds": [ - "tenant" - ], - "requestMessage": "opt msg" - } - ], - "privateLinkServiceProxies": [ - { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.Network/privateEndpoints/myPrivateEndpointName/privateLinkServiceProxies/azureResourceName-proxy.58ffb8de-89ad-41eb-9f8f-de0a7db9d721", - "groupConnectivityInformation": [ - { - "groupId": "tenant", - "memberName": "tenant", - "internalFqdn": "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net", - "customerVisibleFqdns": [ - "91cb8a3f79e644bea2dedce59f8c0107-api.analysis.windows.net" - ], - "privateLinkServiceArmRegion": "" - } - ], - "remotePrivateLinkServiceConnectionState": { - "status": "Pending", - "description": "please approve", - "actionsRequired": "None" - }, - "remotePrivateEndpointConnection": { - "id": "/subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateEndpointConnections/myPrivateEndpointName.58ffb8de-89ad-41eb-9f8f-de0a7db9d721" - } - } - ], - "connectionDetails": [ - { - "id": "10001", - "memberName": "tenant", - "privateIpAddress": "10.0.1.4", - "linkIdentifier": "1253", - "groupId": "tenant" - } - ] - } - } - } - } -} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index dc31f00c5209..b217eba3ac0b 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -458,227 +458,6 @@ } } }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}": { - "get": { - "tags": [ - "PrivateEndpointConnectionProxies" - ], - "operationId": "PrivateEndpointConnectionProxies_Get", - "description": "Gets private endpoint connection proxy for Power BI by private endpoint name.", - "summary": "Synchronous API called by NRP to get private endpoint connection proxy for Power BI by private endpoint name.", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/AzureResourceNameParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionProxy" - }, - "headers": {} - }, - "default": { - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "description": "An error response received from Power BI service." - } - }, - "x-ms-examples": { - "Gets private endpoint connection proxy": { - "$ref": "./examples/PrivateEndpointConnectionProxies_Get.json" - } - } - }, - "put": { - "tags": [ - "PrivateEndpointConnectionProxies" - ], - "operationId": "PrivateEndpointConnectionProxies_Create", - "description": "Creates or updates private endpoint connection proxy for Power BI by private endpoint name.", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/AzureResourceNameParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/ClientTenantIdHeaderParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "description": "The PrivateEndpointConnectionProxy to be created or updated.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionProxy" - } - } - ], - "responses": { - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionProxyResource" - }, - "headers": { - "Azure-AsyncOperation": { - "type": "string", - "description": "The Azure async operation id to poll on result." - } - } - }, - "default": { - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "description": "An error response received from Power BI service." - } - }, - "x-ms-examples": { - "Creates or updates private endpoint connection proxy": { - "$ref": "./examples/PrivateEndpointConnectionProxies_Create.json" - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - } - }, - "delete": { - "tags": [ - "PrivateEndpointConnectionProxies" - ], - "operationId": "PrivateEndpointConnectionProxies_Delete", - "x-ms-examples": { - "Deletes a private endpoint connection proxy": { - "$ref": "./examples/PrivateEndpointConnectionProxies_Delete.json" - } - }, - "description": "Deletes a private endpoint connection proxy for Power BI by private endpoint name.", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/AzureResourceNameParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointNameParameter" - }, - { - "$ref": "#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK. The operation completed successfully." - }, - "202": { - "description": "Accepted", - "headers": { - "Azure-AsyncOperation": { - "type": "string", - "description": "The Azure async operation id to poll on result." - } - } - }, - "204": { - "description": "No Content." - }, - "default": { - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "description": "An error response received from Power BI service." - } - }, - "x-ms-long-running-operation": true, - "x-ms-long-running-operation-options": { - "final-state-via": "azure-async-operation" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnectionProxies/{privateEndpointName}/validate": { - "post": { - "tags": [ - "PrivateEndpointConnectionProxies" - ], - "operationId": "PrivateEndpointConnectionProxies_Validate", - "x-ms-examples": { - "Validates a private endpoint connection": { - "$ref": "./examples/PrivateEndpointConnectionProxies_Validate.json" - } - }, - "description": "Validates a private endpoint connection before create or update.", - "summary": "Synchronous API called by NRP to validate a private endpoint before create or update.", - "parameters": [ - { - "$ref": "#/parameters/SubscriptionIdParameter" - }, - { - "$ref": "#/parameters/ResourceGroupNameParameter" - }, - { - "$ref": "#/parameters/AzureResourceNameParameter" - }, - { - "$ref": "#/parameters/PrivateEndpointNameParameter" - }, - { - "name": "body", - "in": "body", - "required": true, - "description": "The PrivateEndpointConnectionProxy to be created or updated.", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionProxy" - } - } - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/PrivateEndpointConnectionProxy" - }, - "headers": {} - }, - "default": { - "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" - }, - "description": "An error response received from Power BI service." - } - } - } - }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnections": { "get": { "tags": [ @@ -1120,108 +899,6 @@ } } }, - "RemotePrivateEndpoint": { - "title": "RemotePrivateEndpoint", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Specifies the id of the private endpoint." - }, - "manualPrivateLinkServiceConnections": { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateLinkServiceConnection" - }, - "description": "Specifies the private link service connections of the private endpoint." - }, - "privateLinkServiceConnections": { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateLinkServiceConnection" - }, - "description": "Specifies the private link service connections of the private endpoint." - }, - "privateLinkServiceProxies": { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateLinkServiceProxy" - }, - "description": "Specifies the private link service proxies of the private endpoint." - }, - "connectionDetails": { - "type": "array", - "items": { - "$ref": "#/definitions/PrivateLinkConnectionDetail" - }, - "description": "Specifies the connection details of the private endpoint." - } - } - }, - "PrivateEndpointConnectionProxyResource": { - "title": "PrivateEndpointConnectionProxyResource", - "type": "object", - "properties": { - "id": { - "type": "string", - "readOnly": true, - "description": "Specifies the id of the resource." - }, - "name": { - "type": "string", - "readOnly": true, - "description": "Specifies the name of the resource." - }, - "type": { - "type": "string", - "readOnly": true, - "description": "Specifies the type of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." - }, - "etag": { - "type": "string", - "description": "Specifies the etag of the resource." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/PrivateEndpointConnectionProxy", - "description": "Specifies the private endpoint proxy resource." - } - } - }, - "PrivateEndpointConnectionProxy": { - "title": "PrivateEndpointConnectionProxy", - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Specifies the id of the resource." - }, - "name": { - "type": "string", - "description": "Specifies the name of the resource." - }, - "type": { - "type": "string", - "description": "Specifies the type of the resource." - }, - "location": { - "type": "string", - "description": "Specifies the location of the resource." - }, - "etag": { - "type": "string", - "description": "Specifies the etag of the resource." - }, - "remotePrivateEndpoint": { - "$ref": "#/definitions/RemotePrivateEndpoint", - "description": "Specifies the remote private endpoint of the resource." - } - } - }, "PrivateEndpointConnection": { "title": "PrivateEndpointConnection", "type": "object", From 2d38658363da7dc1fd11586d1924a21e6961a35b Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 16 Aug 2021 14:57:41 -0700 Subject: [PATCH 40/45] added PrivateLinkResources_Get --- .../examples/PrivateLinkResources_Get.json | 27 ++++++++++ .../2020-06-01/powerbiprivatelinks.json | 51 +++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_Get.json diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_Get.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_Get.json new file mode 100644 index 000000000000..71ed79438bd4 --- /dev/null +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_Get.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", + "resourceGroupName": "resourceGroup", + "azureResourceName": "azureResourceName", + "api-version": "2020-06-01" + }, + "responses": { + "200": { + "body": { + "id": "subscriptions/a0020869-4d28-422a-89f4-c2413130d73c/resourceGroups/resourceGroup/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/azureResourceName/privateLinkResources/tenant", + "name": "tenant", + "type": "Microsoft.PowerBI/{resourceType}/privateLinkResources", + "properties": { + "groupId": "tenant", + "requiredMembers": [ + "tenant", + "capacity:3df897a4f10b49e9bddb0e9cf062adba" + ], + "requiredZoneNames": [ + "privatelink.powerbi.com" + ] + } + } + } + } +} diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index b217eba3ac0b..91ac7982f8c1 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -458,6 +458,57 @@ } } }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateLinkResources/{privateLinkResourceName}": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "summary": "Get a private link resource.", + "description": "Get properties of a private link resource.", + "operationId": "PrivateLinkResources_Get", + "parameters": [ + { + "$ref": "#/parameters/SubscriptionIdParameter" + }, + { + "$ref": "#/parameters/ResourceGroupNameParameter" + }, + { + "$ref": "#/parameters/AzureResourceNameParameter" + }, + { + "name": "privateLinkResourceName", + "in": "path", + "description": "The name of private link resource.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "type": "object", + "$ref": "#/definitions/PrivateLinkResource" + } + }, + "default": { + "schema": { + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + }, + "description": "An error response received from Power BI service." + } + }, + "x-ms-examples": { + "Gets a private link resource": { + "$ref": "./examples/PrivateLinkResources_Get.json" + } + } + } + }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateEndpointConnections": { "get": { "tags": [ From 117ae1966e0f853410d7716677f28de864ba9e3d Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 16 Aug 2021 15:02:53 -0700 Subject: [PATCH 41/45] added privateLinkResourceName in example --- .../stable/2020-06-01/examples/PrivateLinkResources_Get.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_Get.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_Get.json index 71ed79438bd4..c93cd1e37da5 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_Get.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/examples/PrivateLinkResources_Get.json @@ -3,6 +3,7 @@ "subscriptionId": "a0020869-4d28-422a-89f4-c2413130d73c", "resourceGroupName": "resourceGroup", "azureResourceName": "azureResourceName", + "privateLinkResourceName": "tenant", "api-version": "2020-06-01" }, "responses": { From 387aed8765a2b15a3f30d3904c824ffa6327cc53 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 16 Aug 2021 16:07:38 -0700 Subject: [PATCH 42/45] removed privateLinkServicesForPowerBI from URL --- .../stable/2020-06-01/powerbiprivatelinks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 91ac7982f8c1..b9ee8cc9b012 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -112,7 +112,7 @@ } } }, - "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/operationResults/{operationId}": { + "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/operationResults/{operationId}": { "get": { "tags": [ "PrivateLinkServiceResourceOperationResults" From a227ca98136542ffc7f03cf276f56f1e5b4409b6 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 16 Aug 2021 18:48:15 -0700 Subject: [PATCH 43/45] added nextLink --- .../2020-06-01/powerbiprivatelinks.json | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index b9ee8cc9b012..947f1a3542b7 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -65,9 +65,7 @@ "description": "An error response received from Power BI service." } }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } + "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI": { @@ -90,9 +88,6 @@ "$ref": "#/parameters/ApiVersionParameter" } ], - "x-ms-pageable": { - "nextLinkName": null - }, "responses": { "200": { "description": "OK", @@ -184,9 +179,6 @@ "$ref": "#/parameters/ApiVersionParameter" } ], - "x-ms-pageable": { - "nextLinkName": null - }, "responses": { "200": { "description": "OK", @@ -453,9 +445,7 @@ "$ref": "./examples/PrivateLinkResources_ListByResource.json" } }, - "x-ms-pageable": { - "nextLinkName": null - } + "x-ms-pageable": { "nextLinkName": "nextLink" } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateLinkResources/{privateLinkResourceName}": { @@ -558,7 +548,7 @@ } }, "x-ms-pageable": { - "nextLinkName": null + "nextLinkName": "nextLink" }, "x-ms-examples": { "Gets private endpoint connections": { @@ -994,6 +984,11 @@ "items": { "$ref": "#/definitions/PrivateEndpointConnection" } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results (if there are any).", + "readOnly": true } } }, @@ -1056,6 +1051,11 @@ "items": { "$ref": "#/definitions/PrivateLinkResource" } + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results (if there are any).", + "readOnly": true } } }, From 29afd761fd2373ebade3c2b3d4b9b6f4078aa1e5 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 16 Aug 2021 19:00:17 -0700 Subject: [PATCH 44/45] fixed prettier --- .../stable/2020-06-01/powerbiprivatelinks.json | 4 +++- specification/powerbiprivatelinks/resource-manager/readme.md | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index 947f1a3542b7..e931d43decb9 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -65,7 +65,9 @@ "description": "An error response received from Power BI service." } }, - "x-ms-pageable": { "nextLinkName": "nextLink" } + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, "/subscriptions/{subscriptionId}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI": { diff --git a/specification/powerbiprivatelinks/resource-manager/readme.md b/specification/powerbiprivatelinks/resource-manager/readme.md index 5cba20d45269..016db9095617 100644 --- a/specification/powerbiprivatelinks/resource-manager/readme.md +++ b/specification/powerbiprivatelinks/resource-manager/readme.md @@ -52,7 +52,6 @@ swagger-to-sdk: - repo: azure-sdk-for-go-track2 - repo: azure-sdk-for-js - repo: azure-resource-manager-schemas - - repo: azure-cli-extensions ``` ## Java From c18704714f4fb937cf97b2fcc23dd546e1ae8fc7 Mon Sep 17 00:00:00 2001 From: Ravi Prasad Date: Mon, 16 Aug 2021 19:05:07 -0700 Subject: [PATCH 45/45] Fixed error for Prettier --- .../stable/2020-06-01/powerbiprivatelinks.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json index e931d43decb9..a73a6380f793 100644 --- a/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json +++ b/specification/powerbiprivatelinks/resource-manager/Microsoft.PowerBI/stable/2020-06-01/powerbiprivatelinks.json @@ -447,7 +447,9 @@ "$ref": "./examples/PrivateLinkResources_ListByResource.json" } }, - "x-ms-pageable": { "nextLinkName": "nextLink" } + "x-ms-pageable": { + "nextLinkName": "nextLink" + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PowerBI/privateLinkServicesForPowerBI/{azureResourceName}/privateLinkResources/{privateLinkResourceName}": {