Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[purview] add endpoint client param and python config file #1

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"azureKeyVaultName": "AzureKeyVault1",
"api-version": "2018-12-01-preview",
"body": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"azureKeyVaultName": "AzureKeyVault1",
"api-version": "2018-12-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview",
"azureKeyVaultName": "AzureKeyVault1"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview",
"skipToken": null
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"classificationRuleName": "ClassificationRule1",
"api-version": "2018-12-01-preview",
"body": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"subscriptionId": "433a8dfd-e5d5-4e77-ad86-90acdc75eb1a",
"resourceGroupName": "SampleResourceGroup",
"dataCatalogName": "Catalog1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"subscriptionId": "12345678-1234-1234-12345678abc",
"resourceGroupName": "SampleResourceGroup",
"dataCatalogName": "Catalog1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "SampleResourceGroup",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview",
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "SampleResourceGroup",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"classificationRuleName": "ClassificationRule1",
"classificationRuleVersion": 3,
"api-version": "2018-12-01-preview",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"api-version": "2018-12-01-preview",
"body": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"api-version": "2018-12-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"api-version": "2018-12-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"api-version": "2018-12-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myCollection",
"api-version": "2018-12-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "DataSource1",
"scanName": "Scan1",
"api-version": "2018-12-01-preview",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"scanName": "myScanName",
"api-version": "2018-12-01-preview"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"scanRulesetName": "nyScanRulesetName",
"api-version": "2018-12-01-preview",
"body": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"scanRulesetName": "myRuleSetName",
"api-version": "2018-12-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"scanRulesetName": "myRuleSetName",
"api-version": "2018-12-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"scanRulesetName": "nyScanRulesetName",
"api-version": "2018-12-01-preview"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"scanName": "myScanName",
"api-version": "2018-12-01-preview",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"scanName": "myScanName",
"api-version": "2018-12-01-preview",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"scanName": "myScanName",
"api-version": "2018-12-01-preview"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"scanName": "myScanName",
"api-version": "2018-12-01-preview"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSource",
"api-version": "2018-12-01-preview",
"skipToken": null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "DataSource1",
"scanName": "scan1",
"api-version": "2018-12-01-preview",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "testDataSourceName",
"scanName": "scan1",
"api-version": "2018-12-01-preview",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview",
"dataSourceType": "AzureStorage"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview",
"dataSourceType": "AzureStorage",
"version": 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview",
"dataSourceType": "AzureStorage"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview"
},
"responses": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"api-version": "2018-12-01-preview",
"dataSourceType": "AzureStorage"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "DataSource1",
"scanName": "Scan1",
"triggerName": "Trigger1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "DataSource1",
"scanName": "Scan1",
"triggerName": "Trigger1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"dataSourceName": "myDataSourceName",
"scanName": "myScanName",
"api-version": "2018-12-01-preview",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@
"description": "Creates a Microsoft.Scanning management client.",
"version": "2018-12-01-preview"
},
"produces": [
"application/json"
],
"x-ms-parameterized-host": {
"hostTemplate": "{Endpoint}",
"useSchemePrefix": false,
"parameters": [
{
"$ref": "#/parameters/Endpoint"
}
]
},
"paths": {
"/azureKeyVaults/{azureKeyVaultName}": {
"get": {
Expand Down Expand Up @@ -6913,6 +6925,15 @@
}
},
"parameters": {
"Endpoint": {
"name": "Endpoint",
"description": "The scanning endpoint of your purview account. Example: https://{accountName}.scan.purview.azure.com",
"x-ms-parameter-location": "client",
"required": true,
"type": "string",
"in": "path",
"x-ms-skip-url-encoding": true
},
"api-version": {
"in": "query",
"name": "api-version",
Expand Down
28 changes: 16 additions & 12 deletions specification/purview/data-plane/readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Purview

> see https://aka.ms/autorest

This is the AutoRest configuration file for Purview.



---
## Getting Started
## Getting Started
To build the SDK for Purview, simply [Install AutoRest](https://aka.ms/autorest/install) and in this folder, run:

> `autorest`
Expand All @@ -19,12 +19,13 @@ To see additional help and options, run:

## Configuration

### Basic Information
### Basic Information
These are the global settings for the Purview API.

``` yaml
openapi-type: data-plane
tag: package-2018-12-01-preview
title: AzurePurviewScanningClient
```


Expand All @@ -42,17 +43,20 @@ modelerfour:
---
# Code Generation

## C#
## C#

These settings apply only when `--csharp` is specified on the command line.
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`.

``` yaml $(csharp)
csharp:
output-folder: $(csharp-sdks-folder)/Purview/ScanningClient/Generated
add-credentials: true
sync-methods: all
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Azure.Data.Purview.Scanning
clear-output-folder: true
```
output-folder: $(csharp-sdks-folder)/Purview/ScanningClient/Generated
add-credentials: true
sync-methods: all
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Microsoft.Azure.Purview.ScanningClient
clear-output-folder: true
```

## Python

See configuration in [readme.python.md](./readme.python.md)
18 changes: 18 additions & 0 deletions specification/purview/data-plane/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Python

These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.
Use `--python-mode=update` if you already have a setup.py and just want to update the code itself.

``` yaml
add-credential: true
license-header: MICROSOFT_MIT_NO_VERSION
namespace: azure.purview.scanning
package-name: azure-purview-scanning
clear-output-folder: truefr
package-version: 1.0.0b1
basic-setup-py: true
output-folder: $(python-sdks-folder)/purview/azure-purview-scanning/
credential-scopes: https://purview.azure.net/.default
low-level-client: true
```