Skip to content

Commit

Permalink
CodeGen from PR 15240 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
[Hub Generated] Review request for Microsoft.PowerBI to add version stable/2020-06-01 (#15240)

* New Swagger Spec File

* New Swagger Example Spec File

* New Readme Config File

* New Azure AZ Readme Config File

* New Azure CLI Readme Config File

* New Go Language Readme Config File

* New Python Language Readme Config File

* New Typescript Language Readme Config File

* New C# Language Readme Config File

* Adding swaggers for Power BI private links

* Fixed Lint erros.

* Fixed spellcheck

* Fixed Lint errors

* fixed Avocado error

* fixed model validation

* fixed model validation.

* updated private endpoint connections

* updated PrivateLinkResources

* updated PrivateLinkResource

* updated private endpoint connection proxies

* fixed model validation.

* updated connectionstate

* renamed connection files

* update readme file.

* updated python readme

* fixed code review comments

* updated error ref.

* Removed Error and linked to common-type.

* added 201 to put request

* removed unnecessary definitions.

* updates examples for 201

* updated list of

* removed extra space

* Added patch to PowerBIResource

* added 202 to PrivateLinkServiceResourceOperationResults_Get

* updated readme files

* added provisioning state

* trying to fix sdk error

* removed privateEndpointConnectionProxies

* added PrivateLinkResources_Get

* added privateLinkResourceName  in example

* removed privateLinkServicesForPowerBI from URL

* added nextLink

* fixed prettier

* Fixed error for Prettier
  • Loading branch information
SDKAuto committed Aug 17, 2021
1 parent 5150e49 commit 2c61535
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 103 deletions.
102 changes: 0 additions & 102 deletions schemas/2016-01-29/Microsoft.PowerBI.json

This file was deleted.

276 changes: 276 additions & 0 deletions schemas/2020-06-01/Microsoft.PowerBI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,276 @@
{
"id": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.PowerBI.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Microsoft.PowerBI",
"description": "Microsoft PowerBI Resource Types",
"resourceDefinitions": {
"privateLinkServicesForPowerBI": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-06-01"
]
},
"location": {
"type": "string",
"description": "Specifies the location of the resource."
},
"name": {
"type": "string",
"description": "The name of the Azure resource."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/TenantProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"resources": {
"type": "array",
"items": {
"oneOf": [
{
"$ref": "#/definitions/privateLinkServicesForPowerBI_privateEndpointConnections_childResource"
}
]
}
},
"tags": {
"oneOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
},
"properties": {}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the tags of the resource."
},
"type": {
"type": "string",
"enum": [
"Microsoft.PowerBI/privateLinkServicesForPowerBI"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PowerBI/privateLinkServicesForPowerBI"
},
"privateLinkServicesForPowerBI_privateEndpointConnections": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-06-01"
]
},
"name": {
"type": "string",
"description": "The name of the private endpoint."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/PrivateEndpointConnectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"type": "string",
"enum": [
"Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnections"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnections"
}
},
"definitions": {
"ConnectionState": {
"type": "object",
"properties": {
"actionsRequired": {
"type": "string",
"description": "Actions required (if any)."
},
"description": {
"type": "string",
"description": "Description of the connection state."
},
"status": {
"oneOf": [
{
"type": "string",
"enum": [
"Pending",
"Approved",
"Rejected",
"Disconnected"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Status of the connection."
}
},
"description": "ConnectionState information."
},
"PrivateEndpoint": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Specifies the id of private endpoint."
}
}
},
"PrivateEndpointConnection": {
"type": "object",
"properties": {
"properties": {
"oneOf": [
{
"$ref": "#/definitions/PrivateEndpointConnectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
}
}
},
"PrivateEndpointConnectionProperties": {
"type": "object",
"properties": {
"privateEndpoint": {
"oneOf": [
{
"$ref": "#/definitions/PrivateEndpoint"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"privateLinkServiceConnectionState": {
"oneOf": [
{
"$ref": "#/definitions/ConnectionState"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "ConnectionState information."
},
"provisioningState": {
"oneOf": [
{
"type": "string",
"enum": [
"Creating",
"Updating",
"Deleting",
"Succeeded",
"Canceled",
"Failed"
]
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Provisioning state of the Private Endpoint Connection."
}
}
},
"privateLinkServicesForPowerBI_privateEndpointConnections_childResource": {
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"enum": [
"2020-06-01"
]
},
"name": {
"type": "string",
"description": "The name of the private endpoint."
},
"properties": {
"oneOf": [
{
"$ref": "#/definitions/PrivateEndpointConnectionProperties"
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
]
},
"type": {
"type": "string",
"enum": [
"privateEndpointConnections"
]
}
},
"required": [
"apiVersion",
"name",
"properties",
"type"
],
"description": "Microsoft.PowerBI/privateLinkServicesForPowerBI/privateEndpointConnections"
},
"TenantProperties": {
"type": "object",
"properties": {
"privateEndpointConnections": {
"oneOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/PrivateEndpointConnection"
}
},
{
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
}
],
"description": "Specifies the private endpoint connections of the resource."
},
"tenantId": {
"type": "string",
"description": "Specifies the tenant id of the resource."
}
}
}
}
}
5 changes: 4 additions & 1 deletion schemas/common/autogeneratedResources.json
Original file line number Diff line number Diff line change
Expand Up @@ -7712,7 +7712,10 @@
"$ref": "https://schema.management.azure.com/schemas/2020-09-01-preview/Microsoft.Portal.json#/resourceDefinitions/dashboards"
},
{
"$ref": "https://schema.management.azure.com/schemas/2016-01-29/Microsoft.PowerBI.json#/resourceDefinitions/workspaceCollections"
"$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.PowerBI.json#/resourceDefinitions/privateLinkServicesForPowerBI"
},
{
"$ref": "https://schema.management.azure.com/schemas/2020-06-01/Microsoft.PowerBI.json#/resourceDefinitions/privateLinkServicesForPowerBI_privateEndpointConnections"
},
{
"$ref": "https://schema.management.azure.com/schemas/2017-10-01/Microsoft.PowerBIDedicated.json#/resourceDefinitions/capacities"
Expand Down

0 comments on commit 2c61535

Please sign in to comment.