-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.ChangeAnalysis to add ve…
…rsion preview/2020-04-01-preview (#8981) * New Readme Config File * New Go Language Readme Config File * New Typescript Language Readme Config File * New Python Language Readme Config File * New C# Language Readme Config File * New Ruby Language Readme Config File * New Swagger Spec File * New Swagger Example Spec File * add swagger spec second time * trying to fix violations #1 * adding descriptions and schema tag for default error * removing required location element from proxy resource. * adding prettifier fixed * update 3 * update 4 * update 5 * update 6 * update 7 * update 8 * update 9 * update 10 * update 11 * update 12 * update 13 * update 14 * update 15 * update 16 * update 17 * update 18 * Adds suppression to readme * updating comments of few models * changing description of few elements * prettier run: Co-authored-by: Alex Dubinkov <[email protected]>
- Loading branch information
Showing
14 changed files
with
940 additions
and
0 deletions.
There are no files selected for viewing
519 changes: 519 additions & 0 deletions
519
.../resource-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.json
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
...rosoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"profileName": "default", | ||
"api-version": "2020-04-01-preview", | ||
"resource": {} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"type": "Microsoft.AppConfiguration/profile", | ||
"properties": { | ||
"notifications": { | ||
"azureMonitorWorkspaceProperties": { | ||
"workspaceId": null, | ||
"workspaceResourceId": null | ||
}, | ||
"activationState": "None" | ||
} | ||
}, | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", | ||
"name": "default" | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...eAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileCreateWithIdentity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"profileName": "default", | ||
"api-version": "2020-04-01-preview", | ||
"resource": { | ||
"identity": { | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"type": "Microsoft.ChangeAnalysis/profile", | ||
"properties": { | ||
"notifications": { | ||
"azureMonitorWorkspaceProperties": { | ||
"workspaceId": null, | ||
"workspaceResourceId": null | ||
}, | ||
"activationState": "None" | ||
} | ||
}, | ||
"identity": { | ||
"principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA", | ||
"tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB", | ||
"type": "SystemAssigned" | ||
}, | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", | ||
"name": "default" | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...rosoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"profileName": "default", | ||
"api-version": "2020-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"profileName": "default", | ||
"api-version": "2020-04-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"type": "Microsoft.ChangeAnalysis/profile", | ||
"properties": { | ||
"notifications": { | ||
"azureMonitorWorkspaceProperties": { | ||
"workspaceId": null, | ||
"workspaceResourceId": null | ||
}, | ||
"activationState": "None" | ||
} | ||
}, | ||
"identity": { | ||
"principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA", | ||
"tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB", | ||
"type": "SystemAssigned" | ||
}, | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", | ||
"name": "default" | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...rosoft.ChangeAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"profileName": "default", | ||
"api-version": "2020-04-01-preview", | ||
"resource": { | ||
"properties": { | ||
"notifications": { | ||
"azureMonitorWorkspaceProperties": { | ||
"workspaceId": "workspaceIdValue", | ||
"workspaceResourceId": "workspace resource Id" | ||
}, | ||
"activationState": "Enabled" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"type": "Microsoft.ChangeAnalysis/profile", | ||
"properties": { | ||
"notifications": { | ||
"azureMonitorWorkspaceProperties": { | ||
"workspaceId": "workspaceIdValue", | ||
"workspaceResourceId": "workspace resource Id" | ||
}, | ||
"activationState": "Enabled" | ||
} | ||
} | ||
}, | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", | ||
"name": "default" | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...eAnalysis/preview/2020-04-01-preview/examples/ConfigurationProfileUpdateWithIdentity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "c80fb759-c965-4c6a-9110-9b2b2d038882", | ||
"profileName": "default", | ||
"api-version": "2020-04-01-preview", | ||
"resource": { | ||
"properties": { | ||
"notifications": { | ||
"azureMonitorWorkspaceProperties": { | ||
"workspaceId": "workspaceIdValue", | ||
"workspaceResourceId": "workspace resource Id" | ||
}, | ||
"activationState": "Enabled" | ||
} | ||
}, | ||
"identity": { | ||
"type": "SystemAssigned" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"type": "Microsoft.ChangeAnalysis/profile", | ||
"properties": { | ||
"notifications": { | ||
"azureMonitorWorkspaceProperties": { | ||
"workspaceId": "workspaceIdValue", | ||
"workspaceResourceId": "workspace resource Id" | ||
}, | ||
"activationState": "Enabled" | ||
} | ||
}, | ||
"identity": { | ||
"principalId": "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA", | ||
"tenantId": "BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB", | ||
"type": "SystemAssigned" | ||
}, | ||
"id": "/subscriptions/c80fb759-c965-4c6a-9110-9b2b2d038882/providers/Microsoft.ChangeAnalysis/profile/default", | ||
"name": "default" | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...-manager/Microsoft.ChangeAnalysis/preview/2020-04-01-preview/examples/OperationsList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2020-04-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"name": "Microsoft.ChangeAnalysis/profile/read", | ||
"display": { | ||
"provider": "Microsoft Change Analysis", | ||
"resource": "Azure Application Change Analysis Service Configuration Profile", | ||
"operation": "Read Azure Application Change Analysis Servie Configuration Profile" | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.ChangeAnalysis/profile/write", | ||
"display": { | ||
"provider": "Microsoft Change Analysis", | ||
"resource": "Azure Application Change Analysis Service Configuration Profile", | ||
"operation": "Create or Update Azure Application Change Analysis Servie Configuration Profile Properties" | ||
} | ||
}, | ||
{ | ||
"name": "Microsoft.ChangeAnalysis/register/action", | ||
"display": { | ||
"provider": "Microsoft Change Analysis", | ||
"resource": "", | ||
"operation": "Register Microsoft Change Analysis resource provider with a subscriptions" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
specification/changeanalysis/resource-manager/readme.csharp.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## 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: | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
payload-flattening-threshold: 1 | ||
clear-output-folder: true | ||
client-side-validation: false | ||
namespace: Microsoft.ChangeAnalysis | ||
output-folder: $(csharp-sdks-folder)/changeanalysis/management/Microsoft.ChangeAnalysis/GeneratedProtocol | ||
``` |
19 changes: 19 additions & 0 deletions
19
specification/changeanalysis/resource-manager/readme.go.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Go | ||
|
||
These settings apply only when `--go` is specified on the command line. | ||
|
||
```yaml $(go) | ||
go: | ||
license-header: MICROSOFT_APACHE_NO_VERSION | ||
clear-output-folder: true | ||
``` | ||
### Tag: package-2020-04-01-preview and go | ||
These settings apply only when `--tag=package-2020-04-01-preview --go` is specified on the command line. | ||
Please also specify `--go-sdks-folder=<path to the root directory of your azure-sdk-for-go clone>`. | ||
|
||
```yaml $(tag) == 'package-2020-04-01-preview' && $(go) | ||
namespace: Microsoft.ChangeAnalysis | ||
output-folder: $(go-sdks-folder)/changeanalysis/Generated | ||
``` |
115 changes: 115 additions & 0 deletions
115
specification/changeanalysis/resource-manager/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# changeanalysis | ||
|
||
> see https://aka.ms/autorest | ||
This is the AutoRest configuration file for changeanalysis. | ||
|
||
## 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 changeanalysis. | ||
|
||
``` yaml | ||
openapi-type: arm | ||
tag: package-2020-04-01-preview | ||
``` | ||
### Tag: package-2020-04-01-preview | ||
These settings apply only when `--tag=package-2020-04-01-preview` is specified on the command line. | ||
|
||
``` yaml $(tag) == 'package-2020-04-01-preview' | ||
input-file: | ||
- Microsoft.ChangeAnalysis/preview/2020-04-01-preview/changeanalysis.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 | ||
- repo: azure-sdk-for-java | ||
- repo: azure-sdk-for-go | ||
- repo: azure-sdk-for-js | ||
- repo: azure-sdk-for-ruby | ||
after_scripts: | ||
- bundle install && rake arm:regen_all_profiles['azure_mgmt_changeanalysis'] | ||
``` | ||
|
||
## Go | ||
|
||
See configuration in [readme.go.md](./readme.go.md) | ||
|
||
## Python | ||
|
||
See configuration in [readme.python.md](./readme.python.md) | ||
|
||
## Ruby | ||
|
||
See configuration in [readme.ruby.md](./readme.ruby.md) | ||
|
||
## TypeScript | ||
|
||
See configuration in [readme.typescript.md](./readme.typescript.md) | ||
|
||
## CSharp | ||
|
||
See configuration in [readme.csharp.md](./readme.csharp.md) | ||
|
||
## Suppression | ||
|
||
``` yaml | ||
directive: | ||
- suppress: BodyTopLevelProperties | ||
where: $.definitions.ConfigurationProfileResource.properties | ||
from: changeanalysis.json | ||
reason: |- | ||
https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources | ||
The systemData should be top level element based on the new requirement: | ||
{ | ||
"id": "/subscriptions/{id}/resourceGroups/{group}/providers/{rpns}/{type}/{name}", | ||
"name": "{name}", | ||
"type": "{resourceProviderNamespace}/{resourceType}", | ||
"location": "North US", | ||
"systemData":{ | ||
"createdBy": "<string>", | ||
"createdByType": "<User|Application|ManagedIdentity|Key>", | ||
"createdAt": "<date-time>", | ||
"lastModifiedBy": "<string>", | ||
"lastModifiedByType": "<User|Application|ManagedIdentity|Key>", | ||
"lastModifiedAt": "<date-time>" | ||
}, | ||
"tags": { | ||
"key1": "value 1", | ||
"key2": "value 2" | ||
}, | ||
"kind": "resource kind", | ||
"properties": { | ||
"comment": "Resource defined structure" | ||
} | ||
} | ||
``` |
21 changes: 21 additions & 0 deletions
21
specification/changeanalysis/resource-manager/readme.python.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## 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>`. | ||
|
||
```yaml $(python) | ||
python: | ||
azure-arm: true | ||
license-header: MICROSOFT_MIT_NO_VERSION | ||
payload-flattening-threshold: 2 | ||
namespace: Microsoft.ChangeAnalysis | ||
package-name: changeanalysis | ||
package-version: 2020-04-01-preview | ||
clear-output-folder: true | ||
``` | ||
```yaml $(python) | ||
python: | ||
no-namespace-folders: true | ||
output-folder: $(python-sdks-folder)/azure-mgmt/changeanalysis | ||
``` |
Oops, something went wrong.