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

Merge Master #1

Merged
merged 50 commits into from
Dec 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
ca0ac88
[Synapse] - Add x-nullable to properties in Spark and Artifacts (#12…
idear1203 Dec 18, 2020
394ab55
Fix Swagger Correctness and Linting Issues for Microsoft.AAD/DomainSe…
jihochang Dec 18, 2020
9944ea0
Update configure-cli.md (#12165)
qiaozha Dec 18, 2020
13db8a8
add back ManagedDatabaseRestoreDetails specs (#12153)
ericshape Dec 18, 2020
9c40bc3
remove AVS 2019-08-09-preview (#12041)
cataggar Dec 18, 2020
9f5c04b
Azure Sentinel Dynamics365 data connector preview (#12123)
alfeldsh Dec 18, 2020
29af97e
Update configure-cli.md (#12168)
qiaozha Dec 18, 2020
e533735
Update comment.yml (#12143)
ruowan Dec 18, 2020
5a6276c
Commint new examples and paths (#11875)
shschwar Dec 18, 2020
ce64d34
[Hub Generated] Review request for Microsoft.AlertsManagement to add …
napolish Dec 21, 2020
c31b92d
Enable azure-sdk-for-net-track2 (#12169)
Dec 21, 2020
453f24e
Updating existing CRR APIs with zone restore feature (#12157)
arpja Dec 21, 2020
5ffa05d
lastUpdatedDate for templates (#11900)
ShaniFelig Dec 21, 2020
d53b20d
[Hub Generated] Review request for Microsoft.AppPlatform to add versi…
Incarnation-p-lee Dec 22, 2020
108ce06
[Hub Generated] Review request for Microsoft.Consumption to add versi…
zachraMSFT Dec 22, 2020
a5a7a0f
[ASC.Automations] Add new data type "RegulatoryComplianceAssessment" …
surashed Dec 22, 2020
b2c4a2f
add datalake store track2 config (#12186)
00Kai0 Dec 22, 2020
a5e554c
cleanup old pipeline dependencies (#11889)
zhenglaizhang Dec 22, 2020
5468d71
Extending recovery network input in replication intent API to support…
om-nishant Dec 22, 2020
18942e7
[Hub Generated] Review request for Microsoft.Maps to add version prev…
ihvo Dec 22, 2020
85be9bb
add operationsmanagement track2 config (#12141)
00Kai0 Dec 22, 2020
ae80fcb
Update comment.yml (#12202)
ruowan Dec 22, 2020
02195e4
Adding new properties to response body (#12201)
juhee0202 Dec 23, 2020
0e13406
[Hub Generated] Review request for Microsoft.ContainerService to add …
xiazhan Dec 23, 2020
04feecb
Add autorest.az configurations for azure monitor control service (#12…
kairu-ms Dec 23, 2020
1c24ab1
add logic track2 config (#12166)
00Kai0 Dec 23, 2020
d0deec5
add alertsmanagement track2 config (#11759)
00Kai0 Dec 23, 2020
c8d7af6
Update comment.yml (#12213)
ruowan Dec 23, 2020
73024c1
add mixedreality track2 confi (#12070)
00Kai0 Dec 23, 2020
e3ff87c
add signalr track2 config (#11892)
00Kai0 Dec 23, 2020
9740554
add cognitiveservice track2 config (#11498)
00Kai0 Dec 23, 2020
defb081
add machinglearningservices track2 config (#12183)
00Kai0 Dec 23, 2020
51053c9
add apimanagement track2 config (#12187)
00Kai0 Dec 23, 2020
13f655b
add serialconsole track2 config (#12046)
00Kai0 Dec 23, 2020
10ad781
Update TransparentDataEncryption Group Name (#12160)
ericshape Dec 23, 2020
06fd66a
Update readme.python.md (#12216)
andyzhangx Dec 23, 2020
1aceb59
Required changes for Azure HealthBot swagger (#12124)
guy-microsoft Dec 24, 2020
b2310d6
[Hub Generated] Review request for Microsoft.IoTCentral to add versio…
poanchen Dec 24, 2020
130a1b5
add api-version of guest configuration to go SDK (#12217)
ArcturusZhang Dec 24, 2020
bdf769e
add api-version for templatespecs (#12197)
ArcturusZhang Dec 24, 2020
f1f2a12
Update specificationRepositoryConfiguration.json (#12218)
Dec 24, 2020
e9ebf9f
Adding new api version to devops RP (#11585)
Dec 24, 2020
f126b86
Fix wrong output-folder (#12229)
ArcturusZhang Dec 24, 2020
b08824e
Remove swagger and examples because the controller will be used for p…
nemijato Dec 24, 2020
1d47b52
Update pull_request_assignment.yml (#12230)
Dec 25, 2020
17644ec
[Hub Generated] Review request for Microsoft.StorageCache to add vers…
brpanask Dec 25, 2020
34c2f7e
Update Semantic-and-Model-Violations-Reference.md (#12199)
raych1 Dec 28, 2020
634a693
ADP - add system metadata to dataPool (#12179)
aelij Dec 28, 2020
d6ff6d3
Swagger Linting Fix (#12162)
david-msft Dec 28, 2020
bcd4179
[SQL][V20180601] Updating LocationCapabilities spec (#12032)
hotsnr Dec 28, 2020
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
6,015 changes: 0 additions & 6,015 deletions .azure-pipelines-preproduction/package-lock.json

This file was deleted.

47 changes: 0 additions & 47 deletions .azure-pipelines-preproduction/package.json

This file was deleted.

16 changes: 5 additions & 11 deletions .github/comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,12 @@
- WaitForARMFeedback
onCheckedComments: "Hi, @${PRAuthor} your PR are labelled with <b> WaitForARMFeedback</b>. A notification email will be sent out shortly afterwards to notify ARM review board([email protected]). cc @${PRAssignee} "

- rule:
type: checkbox
variables:
openapiHub: https://portal.azure-devex-tools.com
keywords:
- "I have reviewed the [documentation](https://aka.ms/ameonboard) for the workflow."
onCheckedComments: "Hi, @${PRAuthor} Thanks for your PR. I am workflow bot for review process. Here are some small tips. </br> <li> Please ensure to do self-check against checklists in first PR comment.</li> <li> PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging. </li> <li> For specs comparison cross API versions, Use [API Specs Comparison Report Generator](${openapiHub}/tools/diff?pr=${owner}/${repo}/${PRNumber})</li> <li> If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. [How to fix?](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/ci-fix.md)</li></br> Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]"

- rule:
type: label
label: BreakingChangeReviewRequired
onLabeledComments: "Hi @${PRAuthor}, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow [breaking change policy](https://aka.ms/AzBreakingChangesPolicy) to request breaking change review and approval before proceeding swagger PR review. </br>**Action**: To initiate an evaluation of the breaking change, create a new intake using the [template for breaking changes](https://aka.ms/Breakingchangetemplate). Addition details on the process and office hours are on the [Breaking change Wiki](https://dev.azure.com/msazure/AzureWiki/_wiki/wikis/AzureWiki.wiki/37684/Breaking-Changes).</br> If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ma/swaggerfeedback."
variables:
openapiHub: https://portal.azure-devex-tools.com
onLabeledComments: "Hi @${PRAuthor}, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow [breaking change policy](https://aka.ms/AzBreakingChangesPolicy) to request breaking change review and approval before proceeding swagger PR review. </br>**Action**: To initiate an evaluation of the breaking change, create a new intake using the [template for breaking changes](https://aka.ms/Breakingchangetemplate). Addition details on the process and office hours are on the [Breaking change Wiki](https://dev.azure.com/msazure/AzureWiki/_wiki/wikis/AzureWiki.wiki/37684/Breaking-Changes).</br> If you want to know the production traffic statistic, please see [ARM Traffic statistic](${openapiHub}/api/pr/query-traffic?pr=${owner}/${repo}/${PRNumber}&days=5). </br> If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ma/swaggerfeedback."

- rule:
type: label
Expand All @@ -44,9 +38,9 @@
- rule:
type: PROpen
variables:
openapiHub: https://openapihub.test.azure-devex-tools.com/
openapiHub: https://portal.azure-devex-tools.com
keywords:
- "I have reviewed the [documentation](https://aka.ms/ameonboard) for the workflow."
onOpenedComments: "Hi, @${PRAuthor} Thanks for your PR. I am workflow bot for review process. Here are some small tips. </br> <li> Please ensure to do self-check against checklists in first PR comment.</li> <li> PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging. </li> <li> For cross api-version diff. See [OpenAPI Hub Diff](${openapiHub}diff?pr=${owner}/${repo}/${PRNumber})</li> <li> If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. [How to fix?](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/ci-fix.md)</li></br> Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]"
onOpenedComments: "Hi, @${PRAuthor} Thanks for your PR. I am workflow bot for review process. Here are some small tips. </br> <li> Please ensure to do self-check against checklists in first PR comment.</li> <li> PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging. </li> <li> For specs comparison cross API versions, Use [API Specs Comparison Report Generator](${openapiHub}/tools/diff?pr=${owner}/${repo}/${PRNumber})</li> <li> If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. [How to fix?](https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/ci-fix.md)</li></br> Any feedback about review process or workflow bot, pls contact swagger and tools team. [email protected]"


6 changes: 6 additions & 0 deletions .github/pull_request_assignment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@
- "specification/testbase/**"
reviewers:
- PhoenixHe-msft

- rule:
paths:
- "specification/servicelinker/**"
reviewers:
- PhoenixHe-msft

- rule:
paths:
Expand Down
4 changes: 4 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,7 @@ paramref
PARAVIRTUAL
partnertopic
Passthrough
passwd
patternanyentities
patternrule
patternrules
Expand All @@ -1259,6 +1260,7 @@ Phonetik
phplogging
phraselist
phraselists
Pids
pipelineruns
PITR
pixelated
Expand Down Expand Up @@ -1699,6 +1701,7 @@ subfolders
subinquireditemcount
sublist
sublists
submount
subnames
subnet
subnet's
Expand All @@ -1722,6 +1725,7 @@ subword
subwords
sudoer
suggesters
suid
Superfresh
superset
supportedimages
Expand Down
33 changes: 12 additions & 21 deletions documentation/Semantic-and-Model-Violations-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ This document lists the set of automated rules that can be validated against swa
| [INVALID_RESPONSE_CODE](#INVALID_RESPONSE_CODE) | |
| [INVALID_RESPONSE_BODY](#INVALID_RESPONSE_BODY) | |
| [MISSING_REQUIRED_PARAMETER](#MISSING_REQUIRED_PARAMETER) | |
| [KEYWORD_TYPE_EXPECTED](#KEYWORD_TYPE_EXPECTED) | |
| [READONLY_PROPERTY_NOT_ALLOWED_IN_REQUEST](#READONLY_PROPERTY_NOT_ALLOWED_IN_REQUEST) | |
| [SCHEMA_VALIDATION_FAILED](#SCHEMA_VALIDATION_FAILED) | |
| [SECRET_PROPERTY](#SECRET_PROPERTY) | |
| [DISCRIMINATOR_VALUE_NOT_FOUND](#DISCRIMINATOR_VALUE_NOT_FOUND) | |
| [DISCRIMINATOR_NOT_REQUIRED](#DISCRIMINATOR_NOT_REQUIRED) | [OAV131](#DISCRIMINATOR_NOT_REQUIRED) |
| [RESPONSE_BODY_NOT_IN_EXAMPLE](#RESPONSE_BODY_NOT_IN_EXAMPLE) | [OAV130](#RESPONSE_BODY_NOT_IN_EXAMPLE) |
Expand Down Expand Up @@ -359,14 +359,6 @@ This document lists the set of automated rules that can be validated against swa

**How to fix the violation**: The error info has the position of swagger, look for the position in swagger and fix the value type of keyword.

### <a name="KEYWORD_TYPE_EXPECTED" />KEYWORD_TYPE_EXPECTED

**Output Message**: Keyword '{0}' is expected to be of type '{1}'.

**Description**: The value of the keyword in swagger should be the specific type.

**How to fix the violation**: Fix the value type of keyword.

### <a name="PATTERN" />PATTERN

**Output Message**: String does not match pattern {0}: {1}.
Expand Down Expand Up @@ -547,9 +539,9 @@ This document lists the set of automated rules that can be validated against swa

**Output Message**: This operation does not have a defined {0} response code.

**Description**: There's extra response code defined in example file.
**Description**: The specified response code is not defined in example file.

**How to fix the violation**: Remove extra response code definition in example or correct it.
**How to fix the violation**: Add response code to default, or add response code definition in the swagger.

### <a name="INVALID_RESPONSE_BODY" />INVALID_RESPONSE_BODY

Expand All @@ -559,15 +551,6 @@ This document lists the set of automated rules that can be validated against swa

**How to fix the violation**: Add response body.


### <a name="KEYWORD_TYPE_EXPECTED" />KEYWORD_TYPE_EXPECTED

**Output Message**: Keyword 'type' is expected to be of type 'array,boolean,integer,number,null,object,string'.

**Description**: According to Json schema spec, the allowed value for [type](http://json-schema.org/latest/json-schema-validation.html#rfc.section.6.1.1) is 'array,boolean,integer,number,null,object,string'.

**How to fix the violation**: Set the value of type to one of the values above.

### <a name="OBJECT_ADDITIONAL_PROPERTIES" />OBJECT_ADDITIONAL_PROPERTIES

**Output Message**: Additional properties not allowed:{0}.
Expand Down Expand Up @@ -801,6 +784,14 @@ This document lists the set of automated rules that can be validated against swa

**How to fix the violation**: Remove this definition if it's not used.

### <a name="SECRET_PROPERTY" />SECRET_PROPERTY

**Output Message**: Secret property {0} cannot be sent in the response.

**Description**: The secret is not allowed to return in response when it's annotated with x-ms-secret:true.

**How to fix the violation**: Remove this secret value from the response.


### <a name="ROUNDTRIP_INCONSISTENT_PROPERTY" />ROUNDTRIP_INCONSISTENT_PROPERTY

Expand All @@ -826,4 +817,4 @@ This document lists the set of automated rules that can be validated against swa

**Description**: The property was not in the PUT request, but it is returned in the subsequent GET response. This implies that the property is read-only or has a default value.

**How to fix the violation**: If the property is a read-only, update the swagger definition for this property to mark it as "readOnly": true. Alternatively, keep the property in the GET schema but remove it from the PUT schema. If the property has a default value, update the Swagger definition for this property to mark it with "default": <default value> annotation.
**How to fix the violation**: If the property is a read-only, update the swagger definition for this property to mark it as "readOnly": true. Alternatively, keep the property in the GET schema but remove it from the PUT schema. If the property has a default value, update the Swagger definition for this property to mark it with "default": <default value> annotation.
14 changes: 11 additions & 3 deletions documentation/code-gen/configure-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ See configuration in [readme.az.md](./readme.az.md)

## Az Configuration
Az dedicated configurations are configured in readme.az.md.
the typical package-name is usually like `@azure/arm-xxx` where the xxx is related with the service name.
and the typical output-folder in the azure-sdk-for-js is like `$(typescript-sdks-folder)/sdk/xxx/arm-xxx` where the xxx is related with the service name.
A typical readme.az.md is like this:
~~~
// file: readme.az.md
Expand All @@ -98,6 +96,16 @@ python-sdk-output-folder: "$(az-output-folder)/azext_communication/vendored_sdks
```

~~~
where:
1. the `extensions` means the name of the azure cli command modules,
1. the `namespace` means the python SDK namespace,
1. the `package-name` is the python SDK package name,
1. the `azure-cli-extension-folder` is the parameter that will be passed by user in their commmand line which should points to their local `azure-cli-extensions` repo.
*Note: this parameter `azure-cli-extension-folder` is only for Azure CLI extensions and if user are targeting generate the Azure CLI main repo modules, the parameter should be `azure-cli-folder` that points to their local `azure-cli` repo.*
1. the `az-output-folder` is the specific output folder of this command modules. we should follow the basic code structure either in Azure CLI extensions or in Azure CLI main modules. If it is Azure CLI extensions that we are targeting, then the folder path should be like `$(azure-cli-extension-folder)/src/{serviceFolderName}`. If it's the Azure CLI main modules that we are targeting, then the folder path should be like `$(azure-cli-folder)/src/azure-cli/azure/cli/command_modules/{serviceFolderName}`.
1. the `python-sdk-output-folder` is the vendored sdk path. Please Note that, even if we don't really generate the sdk, but we still need the folder path. It's worth notable that in the parts before and after vendored sdks are also configurable for specific user scenarios.

*Note: it's better to add the yaml condition `$(target-mode) != 'core'` for generating cli extensions and `$(target-mode) == 'core'` for generating cli main modules. Make sure those configuration can only be accessed when wanted.*

## Multi-api
Currently the Azure CLI code generator doesn't support multi-api which means each operation contained in one package should only contains one api-version's.
Expand Down Expand Up @@ -237,4 +245,4 @@ autorest --az --use=@autorest/az@latest /home/qiaozha/code/azure-rest-api-specs/

## Advance Usage

For advance usage of CLI Codegen, Please refer to [autorest.az doc](https://github.com/Azure/autorest.az/tree/master/doc)
For advance usage of CLI Codegen, Please refer to [autorest.az doc](https://github.com/Azure/autorest.az/tree/master/doc)
Loading